From 4660cff15d6755f748a32806e8fb0536b80c1592 Mon Sep 17 00:00:00 2001 From: winrid Date: Mon, 22 Jun 2026 14:08:40 -0700 Subject: [PATCH 1/9] Regenerate SDK from latest OpenAPI spec (moderation tenantId + broadcastId params) Adds the optional tenantId query param to the SSO-gated Moderation API endpoints and the optional broadcastId query param to the mutating moderation endpoints. Backward-compatible. Mirrors fastcomments-sdk-js v5.0.2. --- Gemfile.lock | 2 +- client/.openapi-generator/FILES | 535 ++- client/.openapi-generator/VERSION | 2 +- client/.travis.yml | 2 +- client/README.md | 188 +- client/docs/AddDomainConfigResponse.md | 6 +- client/docs/AddHashTagResponse.md | 34 + client/docs/AddHashTagsBulkResponse.md | 34 + .../docs/AggregateQuestionResultsResponse1.md | 34 + client/docs/AggregateResponse.md | 6 +- client/docs/BlockFromCommentPublicResponse.md | 34 + client/docs/BlockUserFromCommentResponse.md | 34 + .../BulkAggregateQuestionResultsResponse1.md | 34 + .../BulkCreateHashTagsResponseResultsInner.md | 6 +- client/docs/ChangeTicketStateResponse1.md | 34 + .../docs/CheckedCommentsForBlockedResponse.md | 34 + ...bineCommentsWithQuestionResultsResponse.md | 34 + client/docs/CreateCommentPublicResponse.md | 40 + client/docs/CreateEmailTemplateResponse1.md | 34 + client/docs/CreateFeedPostPublicResponse.md | 34 + client/docs/CreateFeedPostResponse1.md | 34 + client/docs/CreateModeratorResponse1.md | 34 + client/docs/CreateQuestionConfigResponse1.md | 34 + client/docs/CreateQuestionResultResponse1.md | 34 + client/docs/CreateTenantPackageResponse1.md | 34 + client/docs/CreateTenantResponse1.md | 34 + client/docs/CreateTenantUserResponse1.md | 34 + client/docs/CreateTicketResponse1.md | 34 + client/docs/CreateUserBadgeResponse.md | 36 + client/docs/CreateV1PageReactResponse.md | 32 + client/docs/CreateV2PageReactResponse.md | 32 + client/docs/CreateVoteResponse.md | 40 + client/docs/DefaultApi.md | 720 +-- client/docs/DeleteCommentPublicResponse.md | 36 + client/docs/DeleteCommentResponse.md | 34 + client/docs/DeleteCommentVoteResponse.md | 34 + .../DeleteEmailTemplateRenderErrorResponse.md | 32 + client/docs/DeleteEmailTemplateResponse.md | 32 + client/docs/DeleteFeedPostPublicResponse.md | 16 +- .../docs/DeleteFeedPostPublicResponseAnyOf.md | 18 + client/docs/DeleteHashTagResponse.md | 32 + client/docs/DeleteModerationVoteResponse.md | 34 + client/docs/DeleteModeratorResponse.md | 32 + .../docs/DeleteNotificationCountResponse.md | 32 + .../docs/DeletePendingWebhookEventResponse.md | 32 + client/docs/DeleteQuestionConfigResponse.md | 32 + client/docs/DeleteQuestionResultResponse.md | 32 + client/docs/DeleteTenantPackageResponse.md | 32 + client/docs/DeleteTenantResponse.md | 32 + client/docs/DeleteTenantUserResponse.md | 32 + client/docs/DeleteUserBadgeResponse.md | 32 + client/docs/DeleteV1PageReactResponse.md | 32 + client/docs/DeleteV2PageReactResponse.md | 32 + client/docs/DeleteVoteResponse.md | 34 + client/docs/FlagCommentPublicResponse.md | 32 + client/docs/FlagCommentResponse1.md | 36 + client/docs/GetApiCommentsResponse.md | 38 + client/docs/GetApiExportStatusResponse.md | 38 + client/docs/GetApiIdsResponse.md | 36 + client/docs/GetAuditLogsResponse1.md | 34 + client/docs/GetBanUsersFromCommentResponse.md | 34 + .../GetCachedNotificationCountResponse1.md | 34 + client/docs/GetCommentBanStatusResponse1.md | 36 + client/docs/GetCommentChildrenResponse.md | 34 + client/docs/GetCommentResponse.md | 34 + client/docs/GetCommentTextResponse1.md | 36 + .../docs/GetCommentVoteUserNamesResponse.md | 36 + client/docs/GetCommentsForUserResponse1.md | 34 + client/docs/GetCommentsPublicResponse.md | 78 + client/docs/GetCommentsResponse.md | 34 + client/docs/GetCountResponse.md | 34 + client/docs/GetCountsResponse.md | 34 + client/docs/GetDomainConfigResponse.md | 6 +- client/docs/GetDomainConfigsResponse.md | 6 +- .../GetEmailTemplateDefinitionsResponse1.md | 34 + .../GetEmailTemplateRenderErrorsResponse1.md | 34 + client/docs/GetEmailTemplateResponse1.md | 34 + client/docs/GetEmailTemplatesResponse1.md | 34 + client/docs/GetEventLogResponse1.md | 34 + client/docs/GetFeedPostsPublicResponse.md | 44 + client/docs/GetFeedPostsResponse1.md | 34 + client/docs/GetFeedPostsStatsResponse.md | 34 + client/docs/GetGifLargeResponse.md | 34 + client/docs/GetGifsSearchResponse.md | 18 +- client/docs/GetGifsTrendingResponse.md | 4 +- client/docs/GetGlobalEventLogResponse.md | 34 + client/docs/GetHashTagsResponse1.md | 34 + client/docs/GetLogsResponse.md | 34 + client/docs/GetManualBadgesForUserResponse.md | 34 + client/docs/GetManualBadgesResponse.md | 34 + client/docs/GetModerationCommentResponse.md | 34 + .../docs/GetModerationCommentTextResponse.md | 34 + client/docs/GetModeratorResponse1.md | 34 + client/docs/GetModeratorsResponse1.md | 34 + client/docs/GetNotificationCountResponse1.md | 34 + client/docs/GetNotificationsResponse1.md | 34 + client/docs/GetOfflineUsersResponse.md | 38 + client/docs/GetOnlineUsersResponse.md | 42 + client/docs/GetPagesPublicResponse.md | 36 + .../GetPendingWebhookEventCountResponse1.md | 34 + .../docs/GetPendingWebhookEventsResponse1.md | 34 + client/docs/GetPreBanSummaryResponse.md | 36 + client/docs/GetQuestionConfigResponse1.md | 34 + client/docs/GetQuestionConfigsResponse1.md | 34 + client/docs/GetQuestionResultResponse1.md | 34 + client/docs/GetQuestionResultsResponse1.md | 34 + .../docs/GetSearchCommentsSummaryResponse.md | 34 + client/docs/GetSearchPagesResponse.md | 34 + client/docs/GetSearchSitesResponse.md | 34 + client/docs/GetSearchSuggestResponse.md | 36 + client/docs/GetSearchUsersResponse.md | 34 + client/docs/GetTenantDailyUsagesResponse1.md | 34 + client/docs/GetTenantPackageResponse1.md | 34 + client/docs/GetTenantPackagesResponse1.md | 34 + client/docs/GetTenantResponse1.md | 34 + client/docs/GetTenantUserResponse1.md | 34 + client/docs/GetTenantUsersResponse1.md | 34 + client/docs/GetTenantsResponse1.md | 34 + client/docs/GetTicketResponse1.md | 36 + client/docs/GetTicketsResponse1.md | 34 + client/docs/GetTranslationsResponse1.md | 34 + client/docs/GetTrustFactorResponse.md | 36 + .../docs/GetUserBadgeProgressByIdResponse.md | 34 + .../GetUserBadgeProgressByUserIdResponse.md | 34 + .../docs/GetUserBadgeProgressListResponse.md | 34 + client/docs/GetUserBadgeResponse.md | 34 + client/docs/GetUserBadgesResponse.md | 34 + client/docs/GetUserBanPreferenceResponse.md | 34 + .../docs/GetUserInternalProfileResponse1.md | 34 + .../docs/GetUserNotificationCountResponse1.md | 34 + client/docs/GetUserNotificationsResponse.md | 40 + .../docs/GetUserPresenceStatusesResponse1.md | 34 + client/docs/GetUserReactsPublicResponse.md | 34 + client/docs/GetUserResponse1.md | 34 + client/docs/GetUsersInfoResponse.md | 34 + client/docs/GetV1PageLikesResponse.md | 40 + client/docs/GetV2PageReactUsersResponse1.md | 34 + client/docs/GetV2PageReactsResponse.md | 36 + client/docs/GetVotesForUserResponse1.md | 38 + client/docs/GetVotesResponse1.md | 38 + client/docs/LockCommentResponse.md | 32 + client/docs/ModerationApi.md | 444 +- client/docs/PatchDomainConfigResponse.md | 6 +- client/docs/PatchHashTagResponse.md | 34 + client/docs/PinCommentResponse.md | 34 + client/docs/PostAdjustCommentVotesResponse.md | 34 + client/docs/PostApiExportResponse.md | 34 + client/docs/PostBanUserFromCommentResponse.md | 34 + client/docs/PostBanUserUndoResponse.md | 32 + client/docs/PostBulkPreBanSummaryResponse.md | 42 + client/docs/PostCommentsByIdsResponse.md | 34 + client/docs/PostFlagCommentResponse.md | 32 + client/docs/PostRemoveCommentResponse.md | 20 +- .../docs/PostRestoreDeletedCommentResponse.md | 32 + .../PostSetCommentApprovalStatusResponse.md | 34 + .../PostSetCommentReviewStatusResponse.md | 32 + .../docs/PostSetCommentSpamStatusResponse.md | 32 + client/docs/PostSetCommentTextResponse.md | 34 + client/docs/PostUnFlagCommentResponse.md | 32 + client/docs/PostVoteResponse.md | 40 + client/docs/PublicApi.md | 352 +- client/docs/PutAwardBadgeResponse.md | 36 + client/docs/PutCloseThreadResponse.md | 32 + client/docs/PutDomainConfigResponse.md | 6 +- client/docs/PutRemoveBadgeResponse.md | 34 + client/docs/PutReopenThreadResponse.md | 32 + client/docs/ReactFeedPostPublicResponse.md | 36 + client/docs/RenderEmailTemplateResponse1.md | 34 + client/docs/ReplaceTenantPackageResponse.md | 32 + client/docs/ReplaceTenantUserResponse.md | 32 + .../ResetUserNotificationCountResponse.md | 32 + .../docs/ResetUserNotificationsResponse1.md | 32 + client/docs/SaveCommentResponse.md | 38 + client/docs/SaveCommentsBulkResponse.md | 8 +- client/docs/SearchUsersResponse1.md | 36 + client/docs/SearchUsersResult.md | 4 +- client/docs/SendInviteResponse.md | 32 + client/docs/SendLoginLinkResponse.md | 32 + client/docs/SetCommentTextResponse1.md | 34 + client/docs/SetTrustFactorResponse.md | 34 + client/docs/UnBlockCommentPublicResponse.md | 34 + client/docs/UnBlockUserFromCommentResponse.md | 34 + client/docs/UnFlagCommentResponse.md | 36 + client/docs/UnLockCommentResponse.md | 32 + client/docs/UnPinCommentResponse.md | 34 + client/docs/UpdateCommentResponse.md | 32 + client/docs/UpdateEmailTemplateResponse.md | 32 + client/docs/UpdateFeedPostPublicResponse.md | 34 + client/docs/UpdateFeedPostResponse.md | 32 + client/docs/UpdateModeratorResponse.md | 32 + client/docs/UpdateNotificationResponse.md | 32 + client/docs/UpdateQuestionConfigResponse.md | 32 + client/docs/UpdateQuestionResultResponse.md | 32 + client/docs/UpdateTenantPackageResponse.md | 32 + client/docs/UpdateTenantResponse.md | 32 + client/docs/UpdateTenantUserResponse.md | 32 + client/docs/UpdateUserBadgeResponse.md | 32 + ...cationCommentSubscriptionStatusResponse.md | 22 +- ...ificationPageSubscriptionStatusResponse.md | 22 +- .../UpdateUserNotificationStatusResponse.md | 22 +- client/docs/VoteCommentResponse.md | 40 + client/docs/VoteResponse.md | 2 +- client/docs/VoteResponseStatus.md | 15 - client/fastcomments-client.gemspec | 2 +- client/lib/fastcomments-client.rb | 181 +- .../fastcomments-client/api/default_api.rb | 668 +-- .../fastcomments-client/api/moderation_api.rb | 454 +- .../lib/fastcomments-client/api/public_api.rb | 354 +- client/lib/fastcomments-client/api_client.rb | 10 +- client/lib/fastcomments-client/api_error.rb | 2 +- .../lib/fastcomments-client/api_model_base.rb | 88 + .../lib/fastcomments-client/configuration.rb | 2 +- .../models/add_domain_config_params.rb | 77 +- .../models/add_domain_config_response.rb | 5 +- .../add_domain_config_response_any_of.rb | 77 +- ...nse_status.rb => add_hash_tag_response.rb} | 11 +- .../models/add_hash_tags_bulk_response.rb | 103 + .../models/add_page_api_response.rb | 77 +- .../models/add_sso_user_api_response.rb | 77 +- .../models/adjust_comment_votes_params.rb | 77 +- .../models/adjust_votes_response.rb | 77 +- .../aggregate_question_results_response.rb | 77 +- .../aggregate_question_results_response1.rb | 103 + .../models/aggregate_response.rb | 5 +- .../models/aggregate_time_bucket.rb | 2 +- .../models/aggregation_api_error.rb | 77 +- .../models/aggregation_item.rb | 77 +- .../models/aggregation_op_type.rb | 2 +- .../models/aggregation_operation.rb | 77 +- .../models/aggregation_request.rb | 77 +- .../models/aggregation_request_sort.rb | 77 +- .../models/aggregation_response.rb | 77 +- .../models/aggregation_response_stats.rb | 77 +- .../models/aggregation_value.rb | 77 +- .../models/api_audit_log.rb | 77 +- .../models/api_ban_user_change_log.rb | 77 +- .../models/api_ban_user_changed_values.rb | 77 +- .../models/api_banned_user.rb | 77 +- .../api_banned_user_with_multi_match_info.rb | 77 +- .../fastcomments-client/models/api_comment.rb | 77 +- .../models/api_comment_base.rb | 77 +- .../models/api_comment_base_meta.rb | 77 +- .../models/api_comment_common_banned_user.rb | 77 +- .../models/api_create_user_badge_response.rb | 77 +- .../models/api_domain_configuration.rb | 77 +- .../models/api_empty_response.rb | 77 +- .../models/api_empty_success_response.rb | 77 +- .../fastcomments-client/models/api_error.rb | 77 +- .../models/api_get_comment_response.rb | 77 +- .../models/api_get_comments_response.rb | 77 +- ...i_get_user_badge_progress_list_response.rb | 77 +- .../api_get_user_badge_progress_response.rb | 77 +- .../models/api_get_user_badge_response.rb | 77 +- .../models/api_get_user_badges_response.rb | 77 +- ...erate_get_user_ban_preferences_response.rb | 77 +- .../api_moderate_user_ban_preferences.rb | 77 +- .../fastcomments-client/models/api_page.rb | 77 +- .../models/api_save_comment_response.rb | 77 +- .../fastcomments-client/models/api_status.rb | 2 +- .../fastcomments-client/models/api_tenant.rb | 77 +- .../models/api_tenant_daily_usage.rb | 77 +- .../fastcomments-client/models/api_ticket.rb | 77 +- .../models/api_ticket_detail.rb | 77 +- .../models/api_ticket_file.rb | 77 +- .../models/api_user_subscription.rb | 77 +- .../fastcomments-client/models/apisso_user.rb | 77 +- .../models/award_user_badge_response.rb | 77 +- .../models/ban_user_from_comment_result.rb | 77 +- .../models/ban_user_undo_params.rb | 77 +- .../models/banned_user_match.rb | 77 +- .../banned_user_match_matched_on_value.rb | 5 +- .../models/banned_user_match_type.rb | 2 +- .../models/billing_info.rb | 77 +- .../models/block_from_comment_params.rb | 77 +- .../block_from_comment_public_response.rb | 103 + .../models/block_success.rb | 77 +- .../block_user_from_comment_response.rb | 103 + .../models/build_moderation_filter_params.rb | 77 +- .../build_moderation_filter_response.rb | 77 +- .../models/bulk_aggregate_question_item.rb | 77 +- ...bulk_aggregate_question_results_request.rb | 77 +- ...ulk_aggregate_question_results_response.rb | 77 +- ...lk_aggregate_question_results_response1.rb | 103 + .../models/bulk_create_hash_tags_body.rb | 77 +- .../bulk_create_hash_tags_body_tags_inner.rb | 77 +- .../models/bulk_create_hash_tags_response.rb | 77 +- ...create_hash_tags_response_results_inner.rb | 5 +- .../models/bulk_pre_ban_params.rb | 77 +- .../models/bulk_pre_ban_summary.rb | 77 +- .../change_comment_pin_status_response.rb | 77 +- .../models/change_ticket_state_body.rb | 77 +- .../models/change_ticket_state_response.rb | 77 +- .../models/change_ticket_state_response1.rb | 103 + .../models/check_blocked_comments_response.rb | 77 +- .../checked_comments_for_blocked_response.rb | 103 + ...comments_with_question_results_response.rb | 103 + ...question_results_with_comments_response.rb | 77 +- .../models/comment_data.rb | 77 +- .../models/comment_html_rendering_mode.rb | 2 +- .../models/comment_log_data.rb | 77 +- .../models/comment_log_entry.rb | 77 +- .../models/comment_log_type.rb | 2 +- ...comment_question_results_rendering_type.rb | 2 +- .../models/comment_questions_required.rb | 2 +- .../models/comment_text_update_request.rb | 77 +- .../models/comment_thread_deletion_mode.rb | 2 +- .../models/comment_user_badge_info.rb | 77 +- .../models/comment_user_hash_tag_info.rb | 77 +- .../models/comment_user_mention_info.rb | 77 +- .../models/commenter_name_formats.rb | 2 +- .../models/comments_by_ids_params.rb | 77 +- .../models/create_api_page_data.rb | 77 +- .../create_api_user_subscription_data.rb | 77 +- .../models/create_apisso_user_data.rb | 77 +- .../models/create_comment_params.rb | 77 +- .../models/create_comment_public_response.rb | 103 + .../models/create_email_template_body.rb | 77 +- .../models/create_email_template_response.rb | 77 +- .../models/create_email_template_response1.rb | 103 + .../models/create_feed_post_params.rb | 77 +- .../create_feed_post_public_response.rb | 103 + .../models/create_feed_post_response.rb | 77 +- .../models/create_feed_post_response1.rb | 103 + .../models/create_feed_posts_response.rb | 77 +- .../models/create_hash_tag_body.rb | 77 +- .../models/create_hash_tag_response.rb | 77 +- .../models/create_moderator_body.rb | 77 +- .../models/create_moderator_response.rb | 77 +- .../models/create_moderator_response1.rb | 103 + .../models/create_question_config_body.rb | 77 +- .../models/create_question_config_response.rb | 77 +- .../create_question_config_response1.rb | 103 + .../models/create_question_result_body.rb | 77 +- .../models/create_question_result_response.rb | 77 +- .../create_question_result_response1.rb | 103 + .../create_subscription_api_response.rb | 77 +- .../models/create_tenant_body.rb | 77 +- .../models/create_tenant_package_body.rb | 77 +- .../models/create_tenant_package_response.rb | 77 +- .../models/create_tenant_package_response1.rb | 103 + .../models/create_tenant_response.rb | 77 +- .../models/create_tenant_response1.rb | 103 + .../models/create_tenant_user_body.rb | 77 +- .../models/create_tenant_user_response.rb | 77 +- .../models/create_tenant_user_response1.rb | 103 + .../models/create_ticket_body.rb | 77 +- .../models/create_ticket_response.rb | 77 +- .../models/create_ticket_response1.rb | 103 + .../models/create_user_badge_params.rb | 77 +- .../models/create_user_badge_response.rb | 103 + .../models/create_v1_page_react.rb | 77 +- .../models/create_v1_page_react_response.rb | 103 + .../models/create_v2_page_react_response.rb | 103 + .../models/create_vote_response.rb | 103 + .../models/custom_config_parameters.rb | 77 +- .../models/custom_email_template.rb | 77 +- .../models/delete_comment_action.rb | 2 +- .../models/delete_comment_public_response.rb | 103 + .../models/delete_comment_response.rb | 103 + .../models/delete_comment_result.rb | 77 +- .../models/delete_comment_vote_response.rb | 103 + .../models/delete_domain_config_response.rb | 77 +- ...te_email_template_render_error_response.rb | 103 + .../models/delete_email_template_response.rb | 103 + .../delete_feed_post_public_response.rb | 302 +- ...delete_feed_post_public_response_any_of.rb | 186 + .../models/delete_hash_tag_request_body.rb | 77 +- .../models/delete_hash_tag_response.rb | 103 + .../models/delete_moderation_vote_response.rb | 103 + .../models/delete_moderator_response.rb | 103 + .../delete_notification_count_response.rb | 103 + .../models/delete_page_api_response.rb | 77 +- .../delete_pending_webhook_event_response.rb | 103 + .../models/delete_question_config_response.rb | 103 + .../models/delete_question_result_response.rb | 103 + .../models/delete_sso_user_api_response.rb | 77 +- .../delete_subscription_api_response.rb | 77 +- .../models/delete_tenant_package_response.rb | 103 + .../models/delete_tenant_response.rb | 103 + .../models/delete_tenant_user_response.rb | 103 + .../models/delete_user_badge_response.rb | 103 + .../models/delete_v1_page_react_response.rb | 103 + .../models/delete_v2_page_react_response.rb | 103 + .../models/delete_vote_response.rb | 103 + .../models/deleted_comment_result_comment.rb | 77 +- .../models/digest_email_frequency.rb | 2 +- .../models/email_template_definition.rb | 77 +- .../email_template_render_error_response.rb | 77 +- .../models/event_log_entry.rb | 77 +- .../fastcomments-client/models/f_comment.rb | 77 +- .../models/f_comment_meta.rb | 77 +- .../fastcomments-client/models/feed_post.rb | 77 +- .../models/feed_post_link.rb | 77 +- .../models/feed_post_media_item.rb | 77 +- .../models/feed_post_media_item_asset.rb | 77 +- .../models/feed_post_stats.rb | 77 +- .../models/feed_posts_stats_response.rb | 77 +- .../models/find_comments_by_range_item.rb | 77 +- .../models/find_comments_by_range_response.rb | 77 +- .../models/flag_comment_public_response.rb | 103 + .../models/flag_comment_response.rb | 77 +- .../models/flag_comment_response1.rb | 103 + .../models/get_api_comments_response.rb | 103 + .../models/get_api_export_status_response.rb | 103 + .../models/get_api_ids_response.rb | 103 + .../models/get_audit_logs_response.rb | 77 +- .../models/get_audit_logs_response1.rb | 103 + .../get_ban_users_from_comment_response.rb | 103 + .../models/get_banned_users_count_response.rb | 77 +- .../get_banned_users_from_comment_response.rb | 77 +- .../get_cached_notification_count_response.rb | 77 +- ...get_cached_notification_count_response1.rb | 103 + .../models/get_comment_ban_status_response.rb | 77 +- .../get_comment_ban_status_response1.rb | 103 + .../models/get_comment_children_response.rb | 103 + .../models/get_comment_response.rb | 103 + .../models/get_comment_text_response.rb | 77 +- .../models/get_comment_text_response1.rb | 103 + .../get_comment_vote_user_names_response.rb | 103 + ...omment_vote_user_names_success_response.rb | 77 +- .../models/get_comments_for_user_response.rb | 77 +- .../models/get_comments_for_user_response1.rb | 103 + .../models/get_comments_public_response.rb | 103 + .../models/get_comments_response.rb | 103 + .../get_comments_response_public_comment.rb | 77 +- ...s_response_with_presence_public_comment.rb | 77 +- .../models/get_count_response.rb | 103 + .../models/get_counts_response.rb | 103 + .../models/get_domain_config_response.rb | 5 +- .../models/get_domain_configs_response.rb | 5 +- .../get_domain_configs_response_any_of.rb | 77 +- .../get_domain_configs_response_any_of1.rb | 77 +- ...get_email_template_definitions_response.rb | 77 +- ...et_email_template_definitions_response1.rb | 103 + ...t_email_template_render_errors_response.rb | 77 +- ..._email_template_render_errors_response1.rb | 103 + .../models/get_email_template_response.rb | 77 +- .../models/get_email_template_response1.rb | 103 + .../models/get_email_templates_response.rb | 77 +- .../models/get_email_templates_response1.rb | 103 + .../models/get_event_log_response.rb | 77 +- .../models/get_event_log_response1.rb | 103 + .../models/get_feed_posts_public_response.rb | 103 + .../models/get_feed_posts_response.rb | 77 +- .../models/get_feed_posts_response1.rb | 103 + .../models/get_feed_posts_stats_response.rb | 103 + .../models/get_gif_large_response.rb | 103 + .../models/get_gifs_search_response.rb | 6 +- .../models/get_gifs_trending_response.rb | 5 +- .../models/get_global_event_log_response.rb | 103 + .../models/get_hash_tags_response.rb | 77 +- .../models/get_hash_tags_response1.rb | 103 + .../models/get_logs_response.rb | 103 + .../get_manual_badges_for_user_response.rb | 103 + .../models/get_manual_badges_response.rb | 103 + .../models/get_moderation_comment_response.rb | 103 + .../get_moderation_comment_text_response.rb | 103 + .../models/get_moderator_response.rb | 77 +- .../models/get_moderator_response1.rb | 103 + .../models/get_moderators_response.rb | 77 +- .../models/get_moderators_response1.rb | 103 + .../models/get_my_notifications_response.rb | 77 +- .../models/get_notification_count_response.rb | 77 +- .../get_notification_count_response1.rb | 103 + .../models/get_notifications_response.rb | 77 +- .../models/get_notifications_response1.rb | 103 + .../models/get_offline_users_response.rb | 103 + .../models/get_online_users_response.rb | 103 + .../models/get_page_by_urlid_api_response.rb | 77 +- .../models/get_pages_api_response.rb | 77 +- .../models/get_pages_public_response.rb | 103 + ...et_pending_webhook_event_count_response.rb | 77 +- ...t_pending_webhook_event_count_response1.rb | 103 + .../get_pending_webhook_events_response.rb | 77 +- .../get_pending_webhook_events_response1.rb | 103 + .../models/get_pre_ban_summary_response.rb | 103 + .../models/get_public_feed_posts_response.rb | 77 +- .../models/get_public_pages_response.rb | 77 +- .../models/get_question_config_response.rb | 77 +- .../models/get_question_config_response1.rb | 103 + .../models/get_question_configs_response.rb | 77 +- .../models/get_question_configs_response1.rb | 103 + .../models/get_question_result_response.rb | 77 +- .../models/get_question_result_response1.rb | 103 + .../models/get_question_results_response.rb | 77 +- .../models/get_question_results_response1.rb | 103 + .../get_search_comments_summary_response.rb | 103 + .../models/get_search_pages_response.rb | 103 + .../models/get_search_sites_response.rb | 103 + .../models/get_search_suggest_response.rb | 103 + .../models/get_search_users_response.rb | 103 + .../get_sso_user_by_email_api_response.rb | 77 +- .../models/get_sso_user_by_id_api_response.rb | 77 +- .../models/get_sso_users_response.rb | 77 +- .../models/get_subscriptions_api_response.rb | 77 +- .../get_tenant_daily_usages_response.rb | 77 +- .../get_tenant_daily_usages_response1.rb | 103 + .../get_tenant_manual_badges_response.rb | 77 +- .../models/get_tenant_package_response.rb | 77 +- .../models/get_tenant_package_response1.rb | 103 + .../models/get_tenant_packages_response.rb | 77 +- .../models/get_tenant_packages_response1.rb | 103 + .../models/get_tenant_response.rb | 77 +- .../models/get_tenant_response1.rb | 103 + .../models/get_tenant_user_response.rb | 77 +- .../models/get_tenant_user_response1.rb | 103 + .../models/get_tenant_users_response.rb | 77 +- .../models/get_tenant_users_response1.rb | 103 + .../models/get_tenants_response.rb | 77 +- .../models/get_tenants_response1.rb | 103 + .../models/get_ticket_response.rb | 77 +- .../models/get_ticket_response1.rb | 103 + .../models/get_tickets_response.rb | 77 +- .../models/get_tickets_response1.rb | 103 + .../models/get_translations_response.rb | 77 +- .../models/get_translations_response1.rb | 103 + .../models/get_trust_factor_response.rb | 103 + .../get_user_badge_progress_by_id_response.rb | 103 + ...user_badge_progress_by_user_id_response.rb | 103 + .../get_user_badge_progress_list_response.rb | 103 + .../models/get_user_badge_response.rb | 103 + .../models/get_user_badges_response.rb | 103 + .../get_user_ban_preference_response.rb | 103 + .../get_user_internal_profile_response.rb | 77 +- .../get_user_internal_profile_response1.rb | 103 + ..._user_internal_profile_response_profile.rb | 77 +- .../models/get_user_manual_badges_response.rb | 77 +- .../get_user_notification_count_response.rb | 77 +- .../get_user_notification_count_response1.rb | 103 + .../models/get_user_notifications_response.rb | 103 + .../get_user_presence_statuses_response.rb | 77 +- .../get_user_presence_statuses_response1.rb | 103 + .../models/get_user_reacts_public_response.rb | 103 + .../models/get_user_response.rb | 77 +- .../models/get_user_response1.rb | 103 + .../models/get_user_trust_factor_response.rb | 77 +- .../models/get_users_info_response.rb | 103 + .../models/get_v1_page_likes.rb | 77 +- .../models/get_v1_page_likes_response.rb | 103 + .../get_v2_page_react_users_response.rb | 77 +- .../get_v2_page_react_users_response1.rb | 103 + .../models/get_v2_page_reacts.rb | 77 +- .../models/get_v2_page_reacts_response.rb | 103 + .../models/get_votes_for_user_response.rb | 77 +- .../models/get_votes_for_user_response1.rb | 103 + .../models/get_votes_response.rb | 77 +- .../models/get_votes_response1.rb | 103 + .../models/gif_get_large_response.rb | 77 +- .../fastcomments-client/models/gif_rating.rb | 2 +- .../models/gif_search_internal_error.rb | 77 +- .../models/gif_search_response.rb | 77 +- .../gif_search_response_images_inner_inner.rb | 5 +- .../models/header_account_notification.rb | 77 +- .../models/header_state.rb | 77 +- .../models/ignored_response.rb | 77 +- .../models/image_content_profanity_level.rb | 2 +- ...d_agent_approval_notification_frequency.rb | 2 +- .../models/imported_site_type.rb | 2 +- .../fastcomments-client/models/live_event.rb | 77 +- .../models/live_event_extra_info.rb | 77 +- .../models/live_event_type.rb | 2 +- .../models/lock_comment_response.rb | 103 + .../fastcomments-client/models/media_asset.rb | 77 +- .../models/mention_auto_complete_mode.rb | 2 +- .../fastcomments-client/models/meta_item.rb | 77 +- .../moderation_api_child_comments_response.rb | 77 +- .../models/moderation_api_comment.rb | 77 +- .../models/moderation_api_comment_log.rb | 77 +- .../models/moderation_api_comment_response.rb | 77 +- .../moderation_api_count_comments_response.rb | 77 +- ...moderation_api_get_comment_ids_response.rb | 77 +- .../moderation_api_get_comments_response.rb | 77 +- .../moderation_api_get_logs_response.rb | 77 +- .../moderation_comment_search_response.rb | 77 +- .../models/moderation_export_response.rb | 77 +- .../moderation_export_status_response.rb | 77 +- .../models/moderation_filter.rb | 77 +- .../moderation_page_search_projected.rb | 77 +- .../models/moderation_page_search_response.rb | 77 +- .../moderation_site_search_projected.rb | 77 +- .../models/moderation_site_search_response.rb | 77 +- .../models/moderation_suggest_response.rb | 77 +- .../moderation_user_search_projected.rb | 77 +- .../models/moderation_user_search_response.rb | 77 +- .../fastcomments-client/models/moderator.rb | 77 +- .../models/notification_and_count.rb | 77 +- .../models/notification_object_type.rb | 2 +- .../models/notification_type.rb | 2 +- .../models/page_user_entry.rb | 77 +- .../models/page_users_info_response.rb | 77 +- .../models/page_users_offline_response.rb | 77 +- .../models/page_users_online_response.rb | 77 +- .../models/pages_sort_by.rb | 2 +- .../models/patch_domain_config_params.rb | 77 +- .../models/patch_domain_config_response.rb | 5 +- .../models/patch_hash_tag_response.rb | 103 + .../models/patch_page_api_response.rb | 77 +- .../models/patch_sso_user_api_response.rb | 77 +- .../pending_comment_to_sync_outbound.rb | 77 +- .../models/pin_comment_response.rb | 103 + .../post_adjust_comment_votes_response.rb | 103 + .../models/post_api_export_response.rb | 103 + .../post_ban_user_from_comment_response.rb | 103 + .../models/post_ban_user_undo_response.rb | 103 + .../post_bulk_pre_ban_summary_response.rb | 103 + .../models/post_comments_by_ids_response.rb | 103 + .../models/post_flag_comment_response.rb | 103 + .../models/post_remove_comment_response.rb | 6 +- .../post_restore_deleted_comment_response.rb | 103 + ...st_set_comment_approval_status_response.rb | 103 + ...post_set_comment_review_status_response.rb | 103 + .../post_set_comment_spam_status_response.rb | 103 + .../models/post_set_comment_text_response.rb | 103 + .../models/post_un_flag_comment_response.rb | 103 + .../models/post_vote_response.rb | 103 + .../models/pre_ban_summary.rb | 77 +- .../models/pub_sub_comment.rb | 77 +- .../models/pub_sub_comment_base.rb | 77 +- .../models/pub_sub_vote.rb | 77 +- .../public_api_delete_comment_response.rb | 77 +- .../public_api_get_comment_text_response.rb | 77 +- .../public_api_set_comment_text_response.rb | 77 +- .../public_block_from_comment_params.rb | 77 +- .../models/public_comment.rb | 77 +- .../models/public_comment_base.rb | 77 +- .../models/public_feed_posts_response.rb | 77 +- .../fastcomments-client/models/public_page.rb | 77 +- .../fastcomments-client/models/public_vote.rb | 77 +- .../models/put_award_badge_response.rb | 103 + .../models/put_close_thread_response.rb | 103 + .../models/put_domain_config_response.rb | 5 +- .../models/put_remove_badge_response.rb | 103 + .../models/put_reopen_thread_response.rb | 103 + .../models/put_sso_user_api_response.rb | 77 +- .../models/query_predicate.rb | 77 +- .../models/query_predicate_value.rb | 5 +- .../models/question_config.rb | 77 +- .../question_config_custom_options_inner.rb | 77 +- .../models/question_datum.rb | 77 +- .../models/question_rendering_type.rb | 2 +- .../models/question_result.rb | 77 +- .../question_result_aggregation_overall.rb | 77 +- .../question_sub_question_visibility.rb | 2 +- .../models/question_when_save.rb | 2 +- .../models/react_body_params.rb | 77 +- .../models/react_feed_post_public_response.rb | 103 + .../models/react_feed_post_response.rb | 77 +- ...ring_or_null_after_string_or_null_value.rb | 77 +- .../models/remove_comment_action_response.rb | 77 +- .../models/remove_user_badge_response.rb | 77 +- .../models/render_email_template_body.rb | 77 +- .../models/render_email_template_response.rb | 77 +- .../models/render_email_template_response1.rb | 103 + .../models/renderable_user_notification.rb | 77 +- .../repeat_comment_check_ignored_reason.rb | 2 +- .../models/repeat_comment_handling_action.rb | 2 +- .../models/replace_tenant_package_body.rb | 77 +- .../models/replace_tenant_package_response.rb | 103 + .../models/replace_tenant_user_body.rb | 77 +- .../models/replace_tenant_user_response.rb | 103 + .../reset_user_notification_count_response.rb | 103 + .../reset_user_notifications_response.rb | 77 +- .../reset_user_notifications_response1.rb | 103 + .../models/save_comment_response.rb | 103 + .../models/save_comment_response_optimized.rb | 77 +- .../models/save_comments_bulk_response.rb | 5 +- .../save_comments_response_with_presence.rb | 77 +- .../models/search_users_response.rb | 77 +- .../models/search_users_response1.rb | 103 + .../models/search_users_result.rb | 5 +- .../models/search_users_sectioned_response.rb | 77 +- .../models/send_invite_response.rb | 103 + .../models/send_login_link_response.rb | 103 + .../models/set_comment_approved_response.rb | 77 +- .../models/set_comment_text_params.rb | 77 +- .../models/set_comment_text_response.rb | 77 +- .../models/set_comment_text_response1.rb | 103 + .../models/set_comment_text_result.rb | 77 +- .../models/set_trust_factor_response.rb | 103 + .../models/set_user_trust_factor_response.rb | 77 +- .../fastcomments-client/models/size_preset.rb | 2 +- .../models/sort_directions.rb | 2 +- .../lib/fastcomments-client/models/sortdir.rb | 2 +- .../fastcomments-client/models/spam_rule.rb | 77 +- .../models/sso_security_level.rb | 2 +- .../models/tenant_badge.rb | 77 +- .../models/tenant_hash_tag.rb | 77 +- .../models/tenant_package.rb | 77 +- .../fastcomments-client/models/tos_config.rb | 77 +- .../un_block_comment_public_response.rb | 103 + .../models/un_block_from_comment_params.rb | 77 +- .../un_block_user_from_comment_response.rb | 103 + .../models/un_flag_comment_response.rb | 103 + .../models/un_lock_comment_response.rb | 103 + .../models/un_pin_comment_response.rb | 103 + .../models/unblock_success.rb | 77 +- .../models/updatable_comment_params.rb | 77 +- .../models/update_api_page_data.rb | 77 +- .../update_api_user_subscription_data.rb | 77 +- .../models/update_apisso_user_data.rb | 77 +- .../models/update_comment_response.rb | 103 + .../models/update_domain_config_params.rb | 77 +- .../models/update_email_template_body.rb | 77 +- .../models/update_email_template_response.rb | 103 + .../models/update_feed_post_params.rb | 77 +- .../update_feed_post_public_response.rb | 103 + .../models/update_feed_post_response.rb | 103 + .../models/update_hash_tag_body.rb | 77 +- .../models/update_hash_tag_response.rb | 77 +- .../models/update_moderator_body.rb | 77 +- .../models/update_moderator_response.rb | 103 + .../models/update_notification_body.rb | 77 +- .../models/update_notification_response.rb | 103 + .../models/update_question_config_body.rb | 77 +- .../models/update_question_config_response.rb | 103 + .../models/update_question_result_body.rb | 77 +- .../models/update_question_result_response.rb | 103 + .../update_subscription_api_response.rb | 77 +- .../models/update_tenant_body.rb | 77 +- .../models/update_tenant_package_body.rb | 77 +- .../models/update_tenant_package_response.rb | 103 + .../models/update_tenant_response.rb | 103 + .../models/update_tenant_user_body.rb | 77 +- .../models/update_tenant_user_response.rb | 103 + .../models/update_user_badge_params.rb | 77 +- .../models/update_user_badge_response.rb | 103 + ...on_comment_subscription_status_response.rb | 6 +- ...ation_page_subscription_status_response.rb | 6 +- ...pdate_user_notification_status_response.rb | 6 +- .../models/upload_image_response.rb | 77 +- client/lib/fastcomments-client/models/user.rb | 77 +- .../fastcomments-client/models/user_badge.rb | 77 +- .../models/user_badge_progress.rb | 77 +- .../models/user_notification.rb | 77 +- .../models/user_notification_count.rb | 77 +- .../user_notification_write_response.rb | 77 +- .../models/user_presence_data.rb | 77 +- .../models/user_reacts_response.rb | 77 +- .../models/user_search_result.rb | 77 +- .../models/user_search_section.rb | 2 +- .../models/user_search_section_result.rb | 77 +- .../models/user_session_info.rb | 77 +- .../models/users_list_location.rb | 2 +- .../models/vote_body_params.rb | 77 +- .../models/vote_comment_response.rb | 103 + .../models/vote_delete_response.rb | 77 +- .../models/vote_response.rb | 113 +- .../models/vote_response_user.rb | 77 +- .../fastcomments-client/models/vote_style.rb | 2 +- client/lib/fastcomments-client/version.rb | 4 +- client/spec/api/default_api_spec.rb | 182 +- client/spec/api/moderation_api_spec.rb | 140 +- client/spec/api/public_api_spec.rb | 90 +- .../models/add_domain_config_params_spec.rb | 4 +- .../add_domain_config_response_any_of_spec.rb | 4 +- .../models/add_domain_config_response_spec.rb | 2 +- .../spec/models/add_hash_tag_response_spec.rb | 21 + .../add_hash_tags_bulk_response_spec.rb | 21 + .../spec/models/add_page_api_response_spec.rb | 4 +- .../models/add_sso_user_api_response_spec.rb | 4 +- .../adjust_comment_votes_params_spec.rb | 4 +- .../spec/models/adjust_votes_response_spec.rb | 4 +- ...gregate_question_results_response1_spec.rb | 21 + ...ggregate_question_results_response_spec.rb | 4 +- client/spec/models/aggregate_response_spec.rb | 2 +- .../spec/models/aggregate_time_bucket_spec.rb | 4 +- .../spec/models/aggregation_api_error_spec.rb | 4 +- client/spec/models/aggregation_item_spec.rb | 4 +- .../spec/models/aggregation_op_type_spec.rb | 4 +- .../spec/models/aggregation_operation_spec.rb | 4 +- .../models/aggregation_request_sort_spec.rb | 4 +- .../spec/models/aggregation_request_spec.rb | 4 +- .../spec/models/aggregation_response_spec.rb | 4 +- .../models/aggregation_response_stats_spec.rb | 4 +- client/spec/models/aggregation_value_spec.rb | 4 +- client/spec/models/api_audit_log_spec.rb | 4 +- .../models/api_ban_user_change_log_spec.rb | 4 +- .../api_ban_user_changed_values_spec.rb | 4 +- client/spec/models/api_banned_user_spec.rb | 4 +- ..._banned_user_with_multi_match_info_spec.rb | 4 +- .../spec/models/api_comment_base_meta_spec.rb | 4 +- client/spec/models/api_comment_base_spec.rb | 4 +- .../api_comment_common_banned_user_spec.rb | 4 +- client/spec/models/api_comment_spec.rb | 4 +- .../api_create_user_badge_response_spec.rb | 4 +- .../models/api_domain_configuration_spec.rb | 4 +- client/spec/models/api_empty_response_spec.rb | 4 +- .../models/api_empty_success_response_spec.rb | 4 +- client/spec/models/api_error_spec.rb | 4 +- .../models/api_get_comment_response_spec.rb | 4 +- .../models/api_get_comments_response_spec.rb | 4 +- ..._user_badge_progress_list_response_spec.rb | 4 +- ...i_get_user_badge_progress_response_spec.rb | 4 +- .../api_get_user_badge_response_spec.rb | 4 +- .../api_get_user_badges_response_spec.rb | 4 +- ..._get_user_ban_preferences_response_spec.rb | 4 +- .../api_moderate_user_ban_preferences_spec.rb | 4 +- client/spec/models/api_page_spec.rb | 4 +- .../models/api_save_comment_response_spec.rb | 4 +- client/spec/models/api_status_spec.rb | 4 +- .../models/api_tenant_daily_usage_spec.rb | 4 +- client/spec/models/api_tenant_spec.rb | 4 +- client/spec/models/api_ticket_detail_spec.rb | 4 +- client/spec/models/api_ticket_file_spec.rb | 4 +- client/spec/models/api_ticket_spec.rb | 4 +- .../spec/models/api_user_subscription_spec.rb | 4 +- client/spec/models/apisso_user_spec.rb | 4 +- .../models/award_user_badge_response_spec.rb | 4 +- .../ban_user_from_comment_result_spec.rb | 4 +- .../spec/models/ban_user_undo_params_spec.rb | 4 +- ...banned_user_match_matched_on_value_spec.rb | 2 +- client/spec/models/banned_user_match_spec.rb | 4 +- .../models/banned_user_match_type_spec.rb | 4 +- client/spec/models/billing_info_spec.rb | 4 +- .../models/block_from_comment_params_spec.rb | 4 +- ...block_from_comment_public_response_spec.rb | 21 + client/spec/models/block_success_spec.rb | 4 +- .../block_user_from_comment_response_spec.rb | 21 + .../build_moderation_filter_params_spec.rb | 4 +- .../build_moderation_filter_response_spec.rb | 4 +- .../bulk_aggregate_question_item_spec.rb | 4 +- ...aggregate_question_results_request_spec.rb | 4 +- ...gregate_question_results_response1_spec.rb | 21 + ...ggregate_question_results_response_spec.rb | 4 +- .../models/bulk_create_hash_tags_body_spec.rb | 4 +- ...k_create_hash_tags_body_tags_inner_spec.rb | 4 +- ...e_hash_tags_response_results_inner_spec.rb | 2 +- .../bulk_create_hash_tags_response_spec.rb | 4 +- .../spec/models/bulk_pre_ban_params_spec.rb | 4 +- .../spec/models/bulk_pre_ban_summary_spec.rb | 4 +- ...change_comment_pin_status_response_spec.rb | 4 +- .../models/change_ticket_state_body_spec.rb | 4 +- .../change_ticket_state_response1_spec.rb | 21 + .../change_ticket_state_response_spec.rb | 4 +- .../check_blocked_comments_response_spec.rb | 4 +- ...cked_comments_for_blocked_response_spec.rb | 21 + ...nts_with_question_results_response_spec.rb | 21 + ...ion_results_with_comments_response_spec.rb | 4 +- client/spec/models/comment_data_spec.rb | 4 +- .../comment_html_rendering_mode_spec.rb | 4 +- client/spec/models/comment_log_data_spec.rb | 4 +- client/spec/models/comment_log_entry_spec.rb | 4 +- client/spec/models/comment_log_type_spec.rb | 4 +- ...nt_question_results_rendering_type_spec.rb | 4 +- .../models/comment_questions_required_spec.rb | 4 +- .../comment_text_update_request_spec.rb | 4 +- .../comment_thread_deletion_mode_spec.rb | 4 +- .../models/comment_user_badge_info_spec.rb | 4 +- .../models/comment_user_hash_tag_info_spec.rb | 4 +- .../models/comment_user_mention_info_spec.rb | 4 +- .../models/commenter_name_formats_spec.rb | 4 +- .../models/comments_by_ids_params_spec.rb | 4 +- .../spec/models/create_api_page_data_spec.rb | 4 +- .../create_api_user_subscription_data_spec.rb | 4 +- .../models/create_apisso_user_data_spec.rb | 4 +- .../spec/models/create_comment_params_spec.rb | 4 +- .../create_comment_public_response_spec.rb | 21 + .../models/create_email_template_body_spec.rb | 4 +- .../create_email_template_response1_spec.rb | 21 + .../create_email_template_response_spec.rb | 4 +- .../models/create_feed_post_params_spec.rb | 4 +- .../create_feed_post_public_response_spec.rb | 21 + .../models/create_feed_post_response1_spec.rb | 21 + .../models/create_feed_post_response_spec.rb | 4 +- .../models/create_feed_posts_response_spec.rb | 4 +- .../spec/models/create_hash_tag_body_spec.rb | 4 +- .../models/create_hash_tag_response_spec.rb | 4 +- .../spec/models/create_moderator_body_spec.rb | 4 +- .../models/create_moderator_response1_spec.rb | 21 + .../models/create_moderator_response_spec.rb | 4 +- .../create_question_config_body_spec.rb | 4 +- .../create_question_config_response1_spec.rb | 21 + .../create_question_config_response_spec.rb | 4 +- .../create_question_result_body_spec.rb | 4 +- .../create_question_result_response1_spec.rb | 21 + .../create_question_result_response_spec.rb | 4 +- .../create_subscription_api_response_spec.rb | 4 +- client/spec/models/create_tenant_body_spec.rb | 4 +- .../models/create_tenant_package_body_spec.rb | 4 +- .../create_tenant_package_response1_spec.rb | 21 + .../create_tenant_package_response_spec.rb | 4 +- .../models/create_tenant_response1_spec.rb | 21 + .../models/create_tenant_response_spec.rb | 4 +- .../models/create_tenant_user_body_spec.rb | 4 +- .../create_tenant_user_response1_spec.rb | 21 + .../create_tenant_user_response_spec.rb | 4 +- client/spec/models/create_ticket_body_spec.rb | 4 +- .../models/create_ticket_response1_spec.rb | 21 + .../models/create_ticket_response_spec.rb | 4 +- .../models/create_user_badge_params_spec.rb | 4 +- .../models/create_user_badge_response_spec.rb | 21 + .../create_v1_page_react_response_spec.rb | 21 + .../spec/models/create_v1_page_react_spec.rb | 4 +- .../create_v2_page_react_response_spec.rb | 21 + .../spec/models/create_vote_response_spec.rb | 21 + .../models/custom_config_parameters_spec.rb | 4 +- .../spec/models/custom_email_template_spec.rb | 4 +- .../spec/models/delete_comment_action_spec.rb | 4 +- .../delete_comment_public_response_spec.rb | 21 + .../models/delete_comment_response_spec.rb | 21 + .../spec/models/delete_comment_result_spec.rb | 4 +- .../delete_comment_vote_response_spec.rb | 21 + .../delete_domain_config_response_spec.rb | 4 +- ...ail_template_render_error_response_spec.rb | 21 + .../delete_email_template_response_spec.rb | 21 + ...e_feed_post_public_response_any_of_spec.rb | 36 + .../delete_feed_post_public_response_spec.rb | 17 +- .../delete_hash_tag_request_body_spec.rb | 4 +- .../models/delete_hash_tag_response_spec.rb | 21 + .../delete_moderation_vote_response_spec.rb | 21 + .../models/delete_moderator_response_spec.rb | 21 + ...delete_notification_count_response_spec.rb | 21 + .../models/delete_page_api_response_spec.rb | 4 +- ...ete_pending_webhook_event_response_spec.rb | 21 + .../delete_question_config_response_spec.rb | 21 + .../delete_question_result_response_spec.rb | 21 + .../delete_sso_user_api_response_spec.rb | 4 +- .../delete_subscription_api_response_spec.rb | 4 +- .../delete_tenant_package_response_spec.rb | 21 + .../models/delete_tenant_response_spec.rb | 21 + .../delete_tenant_user_response_spec.rb | 21 + .../models/delete_user_badge_response_spec.rb | 21 + .../delete_v1_page_react_response_spec.rb | 21 + .../delete_v2_page_react_response_spec.rb | 21 + .../spec/models/delete_vote_response_spec.rb | 21 + .../deleted_comment_result_comment_spec.rb | 4 +- .../models/digest_email_frequency_spec.rb | 4 +- .../models/email_template_definition_spec.rb | 4 +- ...ail_template_render_error_response_spec.rb | 4 +- client/spec/models/event_log_entry_spec.rb | 4 +- client/spec/models/f_comment_meta_spec.rb | 4 +- client/spec/models/f_comment_spec.rb | 4 +- client/spec/models/feed_post_link_spec.rb | 4 +- .../models/feed_post_media_item_asset_spec.rb | 4 +- .../spec/models/feed_post_media_item_spec.rb | 4 +- client/spec/models/feed_post_spec.rb | 4 +- client/spec/models/feed_post_stats_spec.rb | 4 +- .../models/feed_posts_stats_response_spec.rb | 4 +- .../find_comments_by_range_item_spec.rb | 4 +- .../find_comments_by_range_response_spec.rb | 4 +- .../flag_comment_public_response_spec.rb | 21 + .../models/flag_comment_response1_spec.rb | 21 + .../spec/models/flag_comment_response_spec.rb | 4 +- .../models/get_api_comments_response_spec.rb | 21 + .../get_api_export_status_response_spec.rb | 21 + .../spec/models/get_api_ids_response_spec.rb | 21 + .../models/get_audit_logs_response1_spec.rb | 21 + .../models/get_audit_logs_response_spec.rb | 4 +- ...et_ban_users_from_comment_response_spec.rb | 21 + .../get_banned_users_count_response_spec.rb | 4 +- ...banned_users_from_comment_response_spec.rb | 4 +- ...ached_notification_count_response1_spec.rb | 21 + ...cached_notification_count_response_spec.rb | 4 +- .../get_comment_ban_status_response1_spec.rb | 21 + .../get_comment_ban_status_response_spec.rb | 4 +- .../get_comment_children_response_spec.rb | 21 + .../spec/models/get_comment_response_spec.rb | 21 + .../models/get_comment_text_response1_spec.rb | 21 + .../models/get_comment_text_response_spec.rb | 4 +- ...t_comment_vote_user_names_response_spec.rb | 21 + ...t_vote_user_names_success_response_spec.rb | 4 +- .../get_comments_for_user_response1_spec.rb | 21 + .../get_comments_for_user_response_spec.rb | 4 +- .../get_comments_public_response_spec.rb | 21 + ...t_comments_response_public_comment_spec.rb | 4 +- .../spec/models/get_comments_response_spec.rb | 21 + ...ponse_with_presence_public_comment_spec.rb | 4 +- client/spec/models/get_count_response_spec.rb | 21 + .../spec/models/get_counts_response_spec.rb | 21 + .../models/get_domain_config_response_spec.rb | 2 +- ...et_domain_configs_response_any_of1_spec.rb | 4 +- ...get_domain_configs_response_any_of_spec.rb | 4 +- .../get_domain_configs_response_spec.rb | 2 +- ...ail_template_definitions_response1_spec.rb | 21 + ...mail_template_definitions_response_spec.rb | 4 +- ...l_template_render_errors_response1_spec.rb | 21 + ...il_template_render_errors_response_spec.rb | 4 +- .../get_email_template_response1_spec.rb | 21 + .../get_email_template_response_spec.rb | 4 +- .../get_email_templates_response1_spec.rb | 21 + .../get_email_templates_response_spec.rb | 4 +- .../models/get_event_log_response1_spec.rb | 21 + .../models/get_event_log_response_spec.rb | 4 +- .../get_feed_posts_public_response_spec.rb | 21 + .../models/get_feed_posts_response1_spec.rb | 21 + .../models/get_feed_posts_response_spec.rb | 4 +- .../get_feed_posts_stats_response_spec.rb | 21 + .../models/get_gif_large_response_spec.rb | 21 + .../models/get_gifs_search_response_spec.rb | 2 +- .../models/get_gifs_trending_response_spec.rb | 2 +- .../get_global_event_log_response_spec.rb | 21 + .../models/get_hash_tags_response1_spec.rb | 21 + .../models/get_hash_tags_response_spec.rb | 4 +- ...atus_spec.rb => get_logs_response_spec.rb} | 6 +- ...et_manual_badges_for_user_response_spec.rb | 21 + .../models/get_manual_badges_response_spec.rb | 21 + .../get_moderation_comment_response_spec.rb | 21 + ...t_moderation_comment_text_response_spec.rb | 21 + .../models/get_moderator_response1_spec.rb | 21 + .../models/get_moderator_response_spec.rb | 4 +- .../models/get_moderators_response1_spec.rb | 21 + .../models/get_moderators_response_spec.rb | 4 +- .../get_my_notifications_response_spec.rb | 4 +- .../get_notification_count_response1_spec.rb | 21 + .../get_notification_count_response_spec.rb | 4 +- .../get_notifications_response1_spec.rb | 21 + .../models/get_notifications_response_spec.rb | 4 +- .../models/get_offline_users_response_spec.rb | 21 + .../models/get_online_users_response_spec.rb | 21 + .../get_page_by_urlid_api_response_spec.rb | 4 +- .../models/get_pages_api_response_spec.rb | 4 +- .../models/get_pages_public_response_spec.rb | 21 + ...ding_webhook_event_count_response1_spec.rb | 21 + ...nding_webhook_event_count_response_spec.rb | 4 +- ...t_pending_webhook_events_response1_spec.rb | 21 + ...et_pending_webhook_events_response_spec.rb | 4 +- .../get_pre_ban_summary_response_spec.rb | 21 + .../get_public_feed_posts_response_spec.rb | 4 +- .../models/get_public_pages_response_spec.rb | 4 +- .../get_question_config_response1_spec.rb | 21 + .../get_question_config_response_spec.rb | 4 +- .../get_question_configs_response1_spec.rb | 21 + .../get_question_configs_response_spec.rb | 4 +- .../get_question_result_response1_spec.rb | 21 + .../get_question_result_response_spec.rb | 4 +- .../get_question_results_response1_spec.rb | 21 + .../get_question_results_response_spec.rb | 4 +- ...t_search_comments_summary_response_spec.rb | 21 + .../models/get_search_pages_response_spec.rb | 21 + .../models/get_search_sites_response_spec.rb | 21 + .../get_search_suggest_response_spec.rb | 21 + .../models/get_search_users_response_spec.rb | 21 + ...get_sso_user_by_email_api_response_spec.rb | 4 +- .../get_sso_user_by_id_api_response_spec.rb | 4 +- .../models/get_sso_users_response_spec.rb | 4 +- .../get_subscriptions_api_response_spec.rb | 4 +- .../get_tenant_daily_usages_response1_spec.rb | 21 + .../get_tenant_daily_usages_response_spec.rb | 4 +- .../get_tenant_manual_badges_response_spec.rb | 4 +- .../get_tenant_package_response1_spec.rb | 21 + .../get_tenant_package_response_spec.rb | 4 +- .../get_tenant_packages_response1_spec.rb | 21 + .../get_tenant_packages_response_spec.rb | 4 +- .../spec/models/get_tenant_response1_spec.rb | 21 + .../spec/models/get_tenant_response_spec.rb | 4 +- .../models/get_tenant_user_response1_spec.rb | 21 + .../models/get_tenant_user_response_spec.rb | 4 +- .../models/get_tenant_users_response1_spec.rb | 21 + .../models/get_tenant_users_response_spec.rb | 4 +- .../spec/models/get_tenants_response1_spec.rb | 21 + .../spec/models/get_tenants_response_spec.rb | 4 +- .../spec/models/get_ticket_response1_spec.rb | 21 + .../spec/models/get_ticket_response_spec.rb | 4 +- .../spec/models/get_tickets_response1_spec.rb | 21 + .../spec/models/get_tickets_response_spec.rb | 4 +- .../models/get_translations_response1_spec.rb | 21 + .../models/get_translations_response_spec.rb | 4 +- .../models/get_trust_factor_response_spec.rb | 21 + ...user_badge_progress_by_id_response_spec.rb | 21 + ...badge_progress_by_user_id_response_spec.rb | 21 + ..._user_badge_progress_list_response_spec.rb | 21 + .../models/get_user_badge_response_spec.rb | 21 + .../models/get_user_badges_response_spec.rb | 21 + .../get_user_ban_preference_response_spec.rb | 21 + ...et_user_internal_profile_response1_spec.rb | 21 + ..._internal_profile_response_profile_spec.rb | 4 +- ...get_user_internal_profile_response_spec.rb | 4 +- .../get_user_manual_badges_response_spec.rb | 4 +- ..._user_notification_count_response1_spec.rb | 21 + ...t_user_notification_count_response_spec.rb | 4 +- .../get_user_notifications_response_spec.rb | 21 + ...t_user_presence_statuses_response1_spec.rb | 21 + ...et_user_presence_statuses_response_spec.rb | 4 +- .../get_user_reacts_public_response_spec.rb | 21 + client/spec/models/get_user_response1_spec.rb | 21 + client/spec/models/get_user_response_spec.rb | 4 +- .../get_user_trust_factor_response_spec.rb | 4 +- .../models/get_users_info_response_spec.rb | 21 + .../models/get_v1_page_likes_response_spec.rb | 21 + client/spec/models/get_v1_page_likes_spec.rb | 4 +- .../get_v2_page_react_users_response1_spec.rb | 21 + .../get_v2_page_react_users_response_spec.rb | 4 +- .../get_v2_page_reacts_response_spec.rb | 21 + client/spec/models/get_v2_page_reacts_spec.rb | 4 +- .../get_votes_for_user_response1_spec.rb | 21 + .../get_votes_for_user_response_spec.rb | 4 +- .../spec/models/get_votes_response1_spec.rb | 21 + client/spec/models/get_votes_response_spec.rb | 4 +- .../models/gif_get_large_response_spec.rb | 4 +- client/spec/models/gif_rating_spec.rb | 4 +- .../models/gif_search_internal_error_spec.rb | 4 +- ...search_response_images_inner_inner_spec.rb | 2 +- .../spec/models/gif_search_response_spec.rb | 4 +- .../header_account_notification_spec.rb | 4 +- client/spec/models/header_state_spec.rb | 4 +- client/spec/models/ignored_response_spec.rb | 4 +- .../image_content_profanity_level_spec.rb | 4 +- ...nt_approval_notification_frequency_spec.rb | 4 +- client/spec/models/imported_site_type_spec.rb | 4 +- .../spec/models/live_event_extra_info_spec.rb | 4 +- client/spec/models/live_event_spec.rb | 4 +- client/spec/models/live_event_type_spec.rb | 4 +- .../spec/models/lock_comment_response_spec.rb | 21 + client/spec/models/media_asset_spec.rb | 4 +- .../models/mention_auto_complete_mode_spec.rb | 4 +- client/spec/models/meta_item_spec.rb | 4 +- ...ration_api_child_comments_response_spec.rb | 4 +- .../models/moderation_api_comment_log_spec.rb | 4 +- .../moderation_api_comment_response_spec.rb | 4 +- .../models/moderation_api_comment_spec.rb | 4 +- ...ration_api_count_comments_response_spec.rb | 4 +- ...ation_api_get_comment_ids_response_spec.rb | 4 +- ...deration_api_get_comments_response_spec.rb | 4 +- .../moderation_api_get_logs_response_spec.rb | 4 +- ...moderation_comment_search_response_spec.rb | 4 +- .../models/moderation_export_response_spec.rb | 4 +- .../moderation_export_status_response_spec.rb | 4 +- client/spec/models/moderation_filter_spec.rb | 4 +- .../moderation_page_search_projected_spec.rb | 4 +- .../moderation_page_search_response_spec.rb | 4 +- .../moderation_site_search_projected_spec.rb | 4 +- .../moderation_site_search_response_spec.rb | 4 +- .../moderation_suggest_response_spec.rb | 4 +- .../moderation_user_search_projected_spec.rb | 4 +- .../moderation_user_search_response_spec.rb | 4 +- client/spec/models/moderator_spec.rb | 4 +- .../models/notification_and_count_spec.rb | 4 +- .../models/notification_object_type_spec.rb | 4 +- client/spec/models/notification_type_spec.rb | 4 +- client/spec/models/page_user_entry_spec.rb | 4 +- .../models/page_users_info_response_spec.rb | 4 +- .../page_users_offline_response_spec.rb | 4 +- .../models/page_users_online_response_spec.rb | 4 +- client/spec/models/pages_sort_by_spec.rb | 4 +- .../models/patch_domain_config_params_spec.rb | 4 +- .../patch_domain_config_response_spec.rb | 2 +- .../models/patch_hash_tag_response_spec.rb | 21 + .../models/patch_page_api_response_spec.rb | 4 +- .../patch_sso_user_api_response_spec.rb | 4 +- .../pending_comment_to_sync_outbound_spec.rb | 4 +- .../spec/models/pin_comment_response_spec.rb | 21 + ...post_adjust_comment_votes_response_spec.rb | 21 + .../models/post_api_export_response_spec.rb | 21 + ...ost_ban_user_from_comment_response_spec.rb | 21 + .../post_ban_user_undo_response_spec.rb | 21 + ...post_bulk_pre_ban_summary_response_spec.rb | 21 + .../post_comments_by_ids_response_spec.rb | 21 + .../models/post_flag_comment_response_spec.rb | 21 + .../post_remove_comment_response_spec.rb | 2 +- ...t_restore_deleted_comment_response_spec.rb | 21 + ...t_comment_approval_status_response_spec.rb | 21 + ...set_comment_review_status_response_spec.rb | 21 + ...t_set_comment_spam_status_response_spec.rb | 21 + .../post_set_comment_text_response_spec.rb | 21 + .../post_un_flag_comment_response_spec.rb | 21 + client/spec/models/post_vote_response_spec.rb | 21 + client/spec/models/pre_ban_summary_spec.rb | 4 +- .../spec/models/pub_sub_comment_base_spec.rb | 4 +- client/spec/models/pub_sub_comment_spec.rb | 4 +- client/spec/models/pub_sub_vote_spec.rb | 4 +- ...public_api_delete_comment_response_spec.rb | 4 +- ...blic_api_get_comment_text_response_spec.rb | 4 +- ...blic_api_set_comment_text_response_spec.rb | 4 +- .../public_block_from_comment_params_spec.rb | 4 +- .../spec/models/public_comment_base_spec.rb | 4 +- client/spec/models/public_comment_spec.rb | 4 +- .../models/public_feed_posts_response_spec.rb | 4 +- client/spec/models/public_page_spec.rb | 4 +- client/spec/models/public_vote_spec.rb | 4 +- .../models/put_award_badge_response_spec.rb | 21 + .../models/put_close_thread_response_spec.rb | 21 + .../models/put_domain_config_response_spec.rb | 2 +- .../models/put_remove_badge_response_spec.rb | 21 + .../models/put_reopen_thread_response_spec.rb | 21 + .../models/put_sso_user_api_response_spec.rb | 4 +- client/spec/models/query_predicate_spec.rb | 4 +- .../spec/models/query_predicate_value_spec.rb | 2 +- ...estion_config_custom_options_inner_spec.rb | 4 +- client/spec/models/question_config_spec.rb | 4 +- client/spec/models/question_datum_spec.rb | 4 +- .../models/question_rendering_type_spec.rb | 4 +- ...uestion_result_aggregation_overall_spec.rb | 4 +- client/spec/models/question_result_spec.rb | 4 +- .../question_sub_question_visibility_spec.rb | 4 +- client/spec/models/question_when_save_spec.rb | 4 +- client/spec/models/react_body_params_spec.rb | 4 +- .../react_feed_post_public_response_spec.rb | 21 + .../models/react_feed_post_response_spec.rb | 4 +- ...or_null_after_string_or_null_value_spec.rb | 4 +- .../remove_comment_action_response_spec.rb | 4 +- .../models/remove_user_badge_response_spec.rb | 4 +- .../models/render_email_template_body_spec.rb | 4 +- .../render_email_template_response1_spec.rb | 21 + .../render_email_template_response_spec.rb | 4 +- .../renderable_user_notification_spec.rb | 4 +- ...epeat_comment_check_ignored_reason_spec.rb | 4 +- .../repeat_comment_handling_action_spec.rb | 4 +- .../replace_tenant_package_body_spec.rb | 4 +- .../replace_tenant_package_response_spec.rb | 21 + .../models/replace_tenant_user_body_spec.rb | 4 +- .../replace_tenant_user_response_spec.rb | 21 + ...t_user_notification_count_response_spec.rb | 21 + ...reset_user_notifications_response1_spec.rb | 21 + .../reset_user_notifications_response_spec.rb | 4 +- .../save_comment_response_optimized_spec.rb | 4 +- .../spec/models/save_comment_response_spec.rb | 21 + .../save_comments_bulk_response_spec.rb | 2 +- ...ve_comments_response_with_presence_spec.rb | 4 +- .../models/search_users_response1_spec.rb | 21 + .../spec/models/search_users_response_spec.rb | 4 +- .../spec/models/search_users_result_spec.rb | 2 +- .../search_users_sectioned_response_spec.rb | 4 +- .../spec/models/send_invite_response_spec.rb | 21 + .../models/send_login_link_response_spec.rb | 21 + .../set_comment_approved_response_spec.rb | 4 +- .../models/set_comment_text_params_spec.rb | 4 +- .../models/set_comment_text_response1_spec.rb | 21 + .../models/set_comment_text_response_spec.rb | 4 +- .../models/set_comment_text_result_spec.rb | 4 +- .../models/set_trust_factor_response_spec.rb | 21 + .../set_user_trust_factor_response_spec.rb | 4 +- client/spec/models/size_preset_spec.rb | 4 +- client/spec/models/sort_directions_spec.rb | 4 +- client/spec/models/sortdir_spec.rb | 4 +- client/spec/models/spam_rule_spec.rb | 4 +- client/spec/models/sso_security_level_spec.rb | 4 +- client/spec/models/tenant_badge_spec.rb | 4 +- client/spec/models/tenant_hash_tag_spec.rb | 4 +- client/spec/models/tenant_package_spec.rb | 4 +- client/spec/models/tos_config_spec.rb | 4 +- .../un_block_comment_public_response_spec.rb | 21 + .../un_block_from_comment_params_spec.rb | 4 +- ...n_block_user_from_comment_response_spec.rb | 21 + .../models/un_flag_comment_response_spec.rb | 21 + .../models/un_lock_comment_response_spec.rb | 21 + .../models/un_pin_comment_response_spec.rb | 21 + client/spec/models/unblock_success_spec.rb | 4 +- .../models/updatable_comment_params_spec.rb | 4 +- .../spec/models/update_api_page_data_spec.rb | 4 +- .../update_api_user_subscription_data_spec.rb | 4 +- .../models/update_apisso_user_data_spec.rb | 4 +- .../models/update_comment_response_spec.rb | 21 + .../update_domain_config_params_spec.rb | 4 +- .../models/update_email_template_body_spec.rb | 4 +- .../update_email_template_response_spec.rb | 21 + .../models/update_feed_post_params_spec.rb | 4 +- .../update_feed_post_public_response_spec.rb | 21 + .../models/update_feed_post_response_spec.rb | 21 + .../spec/models/update_hash_tag_body_spec.rb | 4 +- .../models/update_hash_tag_response_spec.rb | 4 +- .../spec/models/update_moderator_body_spec.rb | 4 +- .../models/update_moderator_response_spec.rb | 21 + .../models/update_notification_body_spec.rb | 4 +- .../update_notification_response_spec.rb | 21 + .../update_question_config_body_spec.rb | 4 +- .../update_question_config_response_spec.rb | 21 + .../update_question_result_body_spec.rb | 4 +- .../update_question_result_response_spec.rb | 21 + .../update_subscription_api_response_spec.rb | 4 +- client/spec/models/update_tenant_body_spec.rb | 4 +- .../models/update_tenant_package_body_spec.rb | 4 +- .../update_tenant_package_response_spec.rb | 21 + .../models/update_tenant_response_spec.rb | 21 + .../models/update_tenant_user_body_spec.rb | 4 +- .../update_tenant_user_response_spec.rb | 21 + .../models/update_user_badge_params_spec.rb | 4 +- .../models/update_user_badge_response_spec.rb | 21 + ...mment_subscription_status_response_spec.rb | 2 +- ..._page_subscription_status_response_spec.rb | 2 +- ..._user_notification_status_response_spec.rb | 2 +- .../spec/models/upload_image_response_spec.rb | 4 +- .../spec/models/user_badge_progress_spec.rb | 4 +- client/spec/models/user_badge_spec.rb | 4 +- .../models/user_notification_count_spec.rb | 4 +- client/spec/models/user_notification_spec.rb | 4 +- .../user_notification_write_response_spec.rb | 4 +- client/spec/models/user_presence_data_spec.rb | 4 +- .../spec/models/user_reacts_response_spec.rb | 4 +- client/spec/models/user_search_result_spec.rb | 4 +- .../models/user_search_section_result_spec.rb | 4 +- .../spec/models/user_search_section_spec.rb | 4 +- client/spec/models/user_session_info_spec.rb | 4 +- client/spec/models/user_spec.rb | 4 +- .../spec/models/users_list_location_spec.rb | 4 +- client/spec/models/vote_body_params_spec.rb | 4 +- .../spec/models/vote_comment_response_spec.rb | 21 + .../spec/models/vote_delete_response_spec.rb | 4 +- client/spec/models/vote_response_spec.rb | 8 +- client/spec/models/vote_response_user_spec.rb | 4 +- client/spec/models/vote_style_spec.rb | 4 +- client/spec/spec_helper.rb | 2 +- openapi.json | 4082 +++++++++-------- 1292 files changed, 34560 insertions(+), 27794 deletions(-) create mode 100644 client/docs/AddHashTagResponse.md create mode 100644 client/docs/AddHashTagsBulkResponse.md create mode 100644 client/docs/AggregateQuestionResultsResponse1.md create mode 100644 client/docs/BlockFromCommentPublicResponse.md create mode 100644 client/docs/BlockUserFromCommentResponse.md create mode 100644 client/docs/BulkAggregateQuestionResultsResponse1.md create mode 100644 client/docs/ChangeTicketStateResponse1.md create mode 100644 client/docs/CheckedCommentsForBlockedResponse.md create mode 100644 client/docs/CombineCommentsWithQuestionResultsResponse.md create mode 100644 client/docs/CreateCommentPublicResponse.md create mode 100644 client/docs/CreateEmailTemplateResponse1.md create mode 100644 client/docs/CreateFeedPostPublicResponse.md create mode 100644 client/docs/CreateFeedPostResponse1.md create mode 100644 client/docs/CreateModeratorResponse1.md create mode 100644 client/docs/CreateQuestionConfigResponse1.md create mode 100644 client/docs/CreateQuestionResultResponse1.md create mode 100644 client/docs/CreateTenantPackageResponse1.md create mode 100644 client/docs/CreateTenantResponse1.md create mode 100644 client/docs/CreateTenantUserResponse1.md create mode 100644 client/docs/CreateTicketResponse1.md create mode 100644 client/docs/CreateUserBadgeResponse.md create mode 100644 client/docs/CreateV1PageReactResponse.md create mode 100644 client/docs/CreateV2PageReactResponse.md create mode 100644 client/docs/CreateVoteResponse.md create mode 100644 client/docs/DeleteCommentPublicResponse.md create mode 100644 client/docs/DeleteCommentResponse.md create mode 100644 client/docs/DeleteCommentVoteResponse.md create mode 100644 client/docs/DeleteEmailTemplateRenderErrorResponse.md create mode 100644 client/docs/DeleteEmailTemplateResponse.md create mode 100644 client/docs/DeleteFeedPostPublicResponseAnyOf.md create mode 100644 client/docs/DeleteHashTagResponse.md create mode 100644 client/docs/DeleteModerationVoteResponse.md create mode 100644 client/docs/DeleteModeratorResponse.md create mode 100644 client/docs/DeleteNotificationCountResponse.md create mode 100644 client/docs/DeletePendingWebhookEventResponse.md create mode 100644 client/docs/DeleteQuestionConfigResponse.md create mode 100644 client/docs/DeleteQuestionResultResponse.md create mode 100644 client/docs/DeleteTenantPackageResponse.md create mode 100644 client/docs/DeleteTenantResponse.md create mode 100644 client/docs/DeleteTenantUserResponse.md create mode 100644 client/docs/DeleteUserBadgeResponse.md create mode 100644 client/docs/DeleteV1PageReactResponse.md create mode 100644 client/docs/DeleteV2PageReactResponse.md create mode 100644 client/docs/DeleteVoteResponse.md create mode 100644 client/docs/FlagCommentPublicResponse.md create mode 100644 client/docs/FlagCommentResponse1.md create mode 100644 client/docs/GetApiCommentsResponse.md create mode 100644 client/docs/GetApiExportStatusResponse.md create mode 100644 client/docs/GetApiIdsResponse.md create mode 100644 client/docs/GetAuditLogsResponse1.md create mode 100644 client/docs/GetBanUsersFromCommentResponse.md create mode 100644 client/docs/GetCachedNotificationCountResponse1.md create mode 100644 client/docs/GetCommentBanStatusResponse1.md create mode 100644 client/docs/GetCommentChildrenResponse.md create mode 100644 client/docs/GetCommentResponse.md create mode 100644 client/docs/GetCommentTextResponse1.md create mode 100644 client/docs/GetCommentVoteUserNamesResponse.md create mode 100644 client/docs/GetCommentsForUserResponse1.md create mode 100644 client/docs/GetCommentsPublicResponse.md create mode 100644 client/docs/GetCommentsResponse.md create mode 100644 client/docs/GetCountResponse.md create mode 100644 client/docs/GetCountsResponse.md create mode 100644 client/docs/GetEmailTemplateDefinitionsResponse1.md create mode 100644 client/docs/GetEmailTemplateRenderErrorsResponse1.md create mode 100644 client/docs/GetEmailTemplateResponse1.md create mode 100644 client/docs/GetEmailTemplatesResponse1.md create mode 100644 client/docs/GetEventLogResponse1.md create mode 100644 client/docs/GetFeedPostsPublicResponse.md create mode 100644 client/docs/GetFeedPostsResponse1.md create mode 100644 client/docs/GetFeedPostsStatsResponse.md create mode 100644 client/docs/GetGifLargeResponse.md create mode 100644 client/docs/GetGlobalEventLogResponse.md create mode 100644 client/docs/GetHashTagsResponse1.md create mode 100644 client/docs/GetLogsResponse.md create mode 100644 client/docs/GetManualBadgesForUserResponse.md create mode 100644 client/docs/GetManualBadgesResponse.md create mode 100644 client/docs/GetModerationCommentResponse.md create mode 100644 client/docs/GetModerationCommentTextResponse.md create mode 100644 client/docs/GetModeratorResponse1.md create mode 100644 client/docs/GetModeratorsResponse1.md create mode 100644 client/docs/GetNotificationCountResponse1.md create mode 100644 client/docs/GetNotificationsResponse1.md create mode 100644 client/docs/GetOfflineUsersResponse.md create mode 100644 client/docs/GetOnlineUsersResponse.md create mode 100644 client/docs/GetPagesPublicResponse.md create mode 100644 client/docs/GetPendingWebhookEventCountResponse1.md create mode 100644 client/docs/GetPendingWebhookEventsResponse1.md create mode 100644 client/docs/GetPreBanSummaryResponse.md create mode 100644 client/docs/GetQuestionConfigResponse1.md create mode 100644 client/docs/GetQuestionConfigsResponse1.md create mode 100644 client/docs/GetQuestionResultResponse1.md create mode 100644 client/docs/GetQuestionResultsResponse1.md create mode 100644 client/docs/GetSearchCommentsSummaryResponse.md create mode 100644 client/docs/GetSearchPagesResponse.md create mode 100644 client/docs/GetSearchSitesResponse.md create mode 100644 client/docs/GetSearchSuggestResponse.md create mode 100644 client/docs/GetSearchUsersResponse.md create mode 100644 client/docs/GetTenantDailyUsagesResponse1.md create mode 100644 client/docs/GetTenantPackageResponse1.md create mode 100644 client/docs/GetTenantPackagesResponse1.md create mode 100644 client/docs/GetTenantResponse1.md create mode 100644 client/docs/GetTenantUserResponse1.md create mode 100644 client/docs/GetTenantUsersResponse1.md create mode 100644 client/docs/GetTenantsResponse1.md create mode 100644 client/docs/GetTicketResponse1.md create mode 100644 client/docs/GetTicketsResponse1.md create mode 100644 client/docs/GetTranslationsResponse1.md create mode 100644 client/docs/GetTrustFactorResponse.md create mode 100644 client/docs/GetUserBadgeProgressByIdResponse.md create mode 100644 client/docs/GetUserBadgeProgressByUserIdResponse.md create mode 100644 client/docs/GetUserBadgeProgressListResponse.md create mode 100644 client/docs/GetUserBadgeResponse.md create mode 100644 client/docs/GetUserBadgesResponse.md create mode 100644 client/docs/GetUserBanPreferenceResponse.md create mode 100644 client/docs/GetUserInternalProfileResponse1.md create mode 100644 client/docs/GetUserNotificationCountResponse1.md create mode 100644 client/docs/GetUserNotificationsResponse.md create mode 100644 client/docs/GetUserPresenceStatusesResponse1.md create mode 100644 client/docs/GetUserReactsPublicResponse.md create mode 100644 client/docs/GetUserResponse1.md create mode 100644 client/docs/GetUsersInfoResponse.md create mode 100644 client/docs/GetV1PageLikesResponse.md create mode 100644 client/docs/GetV2PageReactUsersResponse1.md create mode 100644 client/docs/GetV2PageReactsResponse.md create mode 100644 client/docs/GetVotesForUserResponse1.md create mode 100644 client/docs/GetVotesResponse1.md create mode 100644 client/docs/LockCommentResponse.md create mode 100644 client/docs/PatchHashTagResponse.md create mode 100644 client/docs/PinCommentResponse.md create mode 100644 client/docs/PostAdjustCommentVotesResponse.md create mode 100644 client/docs/PostApiExportResponse.md create mode 100644 client/docs/PostBanUserFromCommentResponse.md create mode 100644 client/docs/PostBanUserUndoResponse.md create mode 100644 client/docs/PostBulkPreBanSummaryResponse.md create mode 100644 client/docs/PostCommentsByIdsResponse.md create mode 100644 client/docs/PostFlagCommentResponse.md create mode 100644 client/docs/PostRestoreDeletedCommentResponse.md create mode 100644 client/docs/PostSetCommentApprovalStatusResponse.md create mode 100644 client/docs/PostSetCommentReviewStatusResponse.md create mode 100644 client/docs/PostSetCommentSpamStatusResponse.md create mode 100644 client/docs/PostSetCommentTextResponse.md create mode 100644 client/docs/PostUnFlagCommentResponse.md create mode 100644 client/docs/PostVoteResponse.md create mode 100644 client/docs/PutAwardBadgeResponse.md create mode 100644 client/docs/PutCloseThreadResponse.md create mode 100644 client/docs/PutRemoveBadgeResponse.md create mode 100644 client/docs/PutReopenThreadResponse.md create mode 100644 client/docs/ReactFeedPostPublicResponse.md create mode 100644 client/docs/RenderEmailTemplateResponse1.md create mode 100644 client/docs/ReplaceTenantPackageResponse.md create mode 100644 client/docs/ReplaceTenantUserResponse.md create mode 100644 client/docs/ResetUserNotificationCountResponse.md create mode 100644 client/docs/ResetUserNotificationsResponse1.md create mode 100644 client/docs/SaveCommentResponse.md create mode 100644 client/docs/SearchUsersResponse1.md create mode 100644 client/docs/SendInviteResponse.md create mode 100644 client/docs/SendLoginLinkResponse.md create mode 100644 client/docs/SetCommentTextResponse1.md create mode 100644 client/docs/SetTrustFactorResponse.md create mode 100644 client/docs/UnBlockCommentPublicResponse.md create mode 100644 client/docs/UnBlockUserFromCommentResponse.md create mode 100644 client/docs/UnFlagCommentResponse.md create mode 100644 client/docs/UnLockCommentResponse.md create mode 100644 client/docs/UnPinCommentResponse.md create mode 100644 client/docs/UpdateCommentResponse.md create mode 100644 client/docs/UpdateEmailTemplateResponse.md create mode 100644 client/docs/UpdateFeedPostPublicResponse.md create mode 100644 client/docs/UpdateFeedPostResponse.md create mode 100644 client/docs/UpdateModeratorResponse.md create mode 100644 client/docs/UpdateNotificationResponse.md create mode 100644 client/docs/UpdateQuestionConfigResponse.md create mode 100644 client/docs/UpdateQuestionResultResponse.md create mode 100644 client/docs/UpdateTenantPackageResponse.md create mode 100644 client/docs/UpdateTenantResponse.md create mode 100644 client/docs/UpdateTenantUserResponse.md create mode 100644 client/docs/UpdateUserBadgeResponse.md create mode 100644 client/docs/VoteCommentResponse.md delete mode 100644 client/docs/VoteResponseStatus.md create mode 100644 client/lib/fastcomments-client/api_model_base.rb rename client/lib/fastcomments-client/models/{vote_response_status.rb => add_hash_tag_response.rb} (94%) create mode 100644 client/lib/fastcomments-client/models/add_hash_tags_bulk_response.rb create mode 100644 client/lib/fastcomments-client/models/aggregate_question_results_response1.rb create mode 100644 client/lib/fastcomments-client/models/block_from_comment_public_response.rb create mode 100644 client/lib/fastcomments-client/models/block_user_from_comment_response.rb create mode 100644 client/lib/fastcomments-client/models/bulk_aggregate_question_results_response1.rb create mode 100644 client/lib/fastcomments-client/models/change_ticket_state_response1.rb create mode 100644 client/lib/fastcomments-client/models/checked_comments_for_blocked_response.rb create mode 100644 client/lib/fastcomments-client/models/combine_comments_with_question_results_response.rb create mode 100644 client/lib/fastcomments-client/models/create_comment_public_response.rb create mode 100644 client/lib/fastcomments-client/models/create_email_template_response1.rb create mode 100644 client/lib/fastcomments-client/models/create_feed_post_public_response.rb create mode 100644 client/lib/fastcomments-client/models/create_feed_post_response1.rb create mode 100644 client/lib/fastcomments-client/models/create_moderator_response1.rb create mode 100644 client/lib/fastcomments-client/models/create_question_config_response1.rb create mode 100644 client/lib/fastcomments-client/models/create_question_result_response1.rb create mode 100644 client/lib/fastcomments-client/models/create_tenant_package_response1.rb create mode 100644 client/lib/fastcomments-client/models/create_tenant_response1.rb create mode 100644 client/lib/fastcomments-client/models/create_tenant_user_response1.rb create mode 100644 client/lib/fastcomments-client/models/create_ticket_response1.rb create mode 100644 client/lib/fastcomments-client/models/create_user_badge_response.rb create mode 100644 client/lib/fastcomments-client/models/create_v1_page_react_response.rb create mode 100644 client/lib/fastcomments-client/models/create_v2_page_react_response.rb create mode 100644 client/lib/fastcomments-client/models/create_vote_response.rb create mode 100644 client/lib/fastcomments-client/models/delete_comment_public_response.rb create mode 100644 client/lib/fastcomments-client/models/delete_comment_response.rb create mode 100644 client/lib/fastcomments-client/models/delete_comment_vote_response.rb create mode 100644 client/lib/fastcomments-client/models/delete_email_template_render_error_response.rb create mode 100644 client/lib/fastcomments-client/models/delete_email_template_response.rb create mode 100644 client/lib/fastcomments-client/models/delete_feed_post_public_response_any_of.rb create mode 100644 client/lib/fastcomments-client/models/delete_hash_tag_response.rb create mode 100644 client/lib/fastcomments-client/models/delete_moderation_vote_response.rb create mode 100644 client/lib/fastcomments-client/models/delete_moderator_response.rb create mode 100644 client/lib/fastcomments-client/models/delete_notification_count_response.rb create mode 100644 client/lib/fastcomments-client/models/delete_pending_webhook_event_response.rb create mode 100644 client/lib/fastcomments-client/models/delete_question_config_response.rb create mode 100644 client/lib/fastcomments-client/models/delete_question_result_response.rb create mode 100644 client/lib/fastcomments-client/models/delete_tenant_package_response.rb create mode 100644 client/lib/fastcomments-client/models/delete_tenant_response.rb create mode 100644 client/lib/fastcomments-client/models/delete_tenant_user_response.rb create mode 100644 client/lib/fastcomments-client/models/delete_user_badge_response.rb create mode 100644 client/lib/fastcomments-client/models/delete_v1_page_react_response.rb create mode 100644 client/lib/fastcomments-client/models/delete_v2_page_react_response.rb create mode 100644 client/lib/fastcomments-client/models/delete_vote_response.rb create mode 100644 client/lib/fastcomments-client/models/flag_comment_public_response.rb create mode 100644 client/lib/fastcomments-client/models/flag_comment_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_api_comments_response.rb create mode 100644 client/lib/fastcomments-client/models/get_api_export_status_response.rb create mode 100644 client/lib/fastcomments-client/models/get_api_ids_response.rb create mode 100644 client/lib/fastcomments-client/models/get_audit_logs_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_ban_users_from_comment_response.rb create mode 100644 client/lib/fastcomments-client/models/get_cached_notification_count_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_comment_ban_status_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_comment_children_response.rb create mode 100644 client/lib/fastcomments-client/models/get_comment_response.rb create mode 100644 client/lib/fastcomments-client/models/get_comment_text_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_comment_vote_user_names_response.rb create mode 100644 client/lib/fastcomments-client/models/get_comments_for_user_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_comments_public_response.rb create mode 100644 client/lib/fastcomments-client/models/get_comments_response.rb create mode 100644 client/lib/fastcomments-client/models/get_count_response.rb create mode 100644 client/lib/fastcomments-client/models/get_counts_response.rb create mode 100644 client/lib/fastcomments-client/models/get_email_template_definitions_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_email_template_render_errors_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_email_template_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_email_templates_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_event_log_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_feed_posts_public_response.rb create mode 100644 client/lib/fastcomments-client/models/get_feed_posts_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_feed_posts_stats_response.rb create mode 100644 client/lib/fastcomments-client/models/get_gif_large_response.rb create mode 100644 client/lib/fastcomments-client/models/get_global_event_log_response.rb create mode 100644 client/lib/fastcomments-client/models/get_hash_tags_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_logs_response.rb create mode 100644 client/lib/fastcomments-client/models/get_manual_badges_for_user_response.rb create mode 100644 client/lib/fastcomments-client/models/get_manual_badges_response.rb create mode 100644 client/lib/fastcomments-client/models/get_moderation_comment_response.rb create mode 100644 client/lib/fastcomments-client/models/get_moderation_comment_text_response.rb create mode 100644 client/lib/fastcomments-client/models/get_moderator_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_moderators_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_notification_count_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_notifications_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_offline_users_response.rb create mode 100644 client/lib/fastcomments-client/models/get_online_users_response.rb create mode 100644 client/lib/fastcomments-client/models/get_pages_public_response.rb create mode 100644 client/lib/fastcomments-client/models/get_pending_webhook_event_count_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_pending_webhook_events_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_pre_ban_summary_response.rb create mode 100644 client/lib/fastcomments-client/models/get_question_config_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_question_configs_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_question_result_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_question_results_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_search_comments_summary_response.rb create mode 100644 client/lib/fastcomments-client/models/get_search_pages_response.rb create mode 100644 client/lib/fastcomments-client/models/get_search_sites_response.rb create mode 100644 client/lib/fastcomments-client/models/get_search_suggest_response.rb create mode 100644 client/lib/fastcomments-client/models/get_search_users_response.rb create mode 100644 client/lib/fastcomments-client/models/get_tenant_daily_usages_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_tenant_package_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_tenant_packages_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_tenant_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_tenant_user_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_tenant_users_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_tenants_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_ticket_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_tickets_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_translations_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_trust_factor_response.rb create mode 100644 client/lib/fastcomments-client/models/get_user_badge_progress_by_id_response.rb create mode 100644 client/lib/fastcomments-client/models/get_user_badge_progress_by_user_id_response.rb create mode 100644 client/lib/fastcomments-client/models/get_user_badge_progress_list_response.rb create mode 100644 client/lib/fastcomments-client/models/get_user_badge_response.rb create mode 100644 client/lib/fastcomments-client/models/get_user_badges_response.rb create mode 100644 client/lib/fastcomments-client/models/get_user_ban_preference_response.rb create mode 100644 client/lib/fastcomments-client/models/get_user_internal_profile_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_user_notification_count_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_user_notifications_response.rb create mode 100644 client/lib/fastcomments-client/models/get_user_presence_statuses_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_user_reacts_public_response.rb create mode 100644 client/lib/fastcomments-client/models/get_user_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_users_info_response.rb create mode 100644 client/lib/fastcomments-client/models/get_v1_page_likes_response.rb create mode 100644 client/lib/fastcomments-client/models/get_v2_page_react_users_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_v2_page_reacts_response.rb create mode 100644 client/lib/fastcomments-client/models/get_votes_for_user_response1.rb create mode 100644 client/lib/fastcomments-client/models/get_votes_response1.rb create mode 100644 client/lib/fastcomments-client/models/lock_comment_response.rb create mode 100644 client/lib/fastcomments-client/models/patch_hash_tag_response.rb create mode 100644 client/lib/fastcomments-client/models/pin_comment_response.rb create mode 100644 client/lib/fastcomments-client/models/post_adjust_comment_votes_response.rb create mode 100644 client/lib/fastcomments-client/models/post_api_export_response.rb create mode 100644 client/lib/fastcomments-client/models/post_ban_user_from_comment_response.rb create mode 100644 client/lib/fastcomments-client/models/post_ban_user_undo_response.rb create mode 100644 client/lib/fastcomments-client/models/post_bulk_pre_ban_summary_response.rb create mode 100644 client/lib/fastcomments-client/models/post_comments_by_ids_response.rb create mode 100644 client/lib/fastcomments-client/models/post_flag_comment_response.rb create mode 100644 client/lib/fastcomments-client/models/post_restore_deleted_comment_response.rb create mode 100644 client/lib/fastcomments-client/models/post_set_comment_approval_status_response.rb create mode 100644 client/lib/fastcomments-client/models/post_set_comment_review_status_response.rb create mode 100644 client/lib/fastcomments-client/models/post_set_comment_spam_status_response.rb create mode 100644 client/lib/fastcomments-client/models/post_set_comment_text_response.rb create mode 100644 client/lib/fastcomments-client/models/post_un_flag_comment_response.rb create mode 100644 client/lib/fastcomments-client/models/post_vote_response.rb create mode 100644 client/lib/fastcomments-client/models/put_award_badge_response.rb create mode 100644 client/lib/fastcomments-client/models/put_close_thread_response.rb create mode 100644 client/lib/fastcomments-client/models/put_remove_badge_response.rb create mode 100644 client/lib/fastcomments-client/models/put_reopen_thread_response.rb create mode 100644 client/lib/fastcomments-client/models/react_feed_post_public_response.rb create mode 100644 client/lib/fastcomments-client/models/render_email_template_response1.rb create mode 100644 client/lib/fastcomments-client/models/replace_tenant_package_response.rb create mode 100644 client/lib/fastcomments-client/models/replace_tenant_user_response.rb create mode 100644 client/lib/fastcomments-client/models/reset_user_notification_count_response.rb create mode 100644 client/lib/fastcomments-client/models/reset_user_notifications_response1.rb create mode 100644 client/lib/fastcomments-client/models/save_comment_response.rb create mode 100644 client/lib/fastcomments-client/models/search_users_response1.rb create mode 100644 client/lib/fastcomments-client/models/send_invite_response.rb create mode 100644 client/lib/fastcomments-client/models/send_login_link_response.rb create mode 100644 client/lib/fastcomments-client/models/set_comment_text_response1.rb create mode 100644 client/lib/fastcomments-client/models/set_trust_factor_response.rb create mode 100644 client/lib/fastcomments-client/models/un_block_comment_public_response.rb create mode 100644 client/lib/fastcomments-client/models/un_block_user_from_comment_response.rb create mode 100644 client/lib/fastcomments-client/models/un_flag_comment_response.rb create mode 100644 client/lib/fastcomments-client/models/un_lock_comment_response.rb create mode 100644 client/lib/fastcomments-client/models/un_pin_comment_response.rb create mode 100644 client/lib/fastcomments-client/models/update_comment_response.rb create mode 100644 client/lib/fastcomments-client/models/update_email_template_response.rb create mode 100644 client/lib/fastcomments-client/models/update_feed_post_public_response.rb create mode 100644 client/lib/fastcomments-client/models/update_feed_post_response.rb create mode 100644 client/lib/fastcomments-client/models/update_moderator_response.rb create mode 100644 client/lib/fastcomments-client/models/update_notification_response.rb create mode 100644 client/lib/fastcomments-client/models/update_question_config_response.rb create mode 100644 client/lib/fastcomments-client/models/update_question_result_response.rb create mode 100644 client/lib/fastcomments-client/models/update_tenant_package_response.rb create mode 100644 client/lib/fastcomments-client/models/update_tenant_response.rb create mode 100644 client/lib/fastcomments-client/models/update_tenant_user_response.rb create mode 100644 client/lib/fastcomments-client/models/update_user_badge_response.rb create mode 100644 client/lib/fastcomments-client/models/vote_comment_response.rb create mode 100644 client/spec/models/add_hash_tag_response_spec.rb create mode 100644 client/spec/models/add_hash_tags_bulk_response_spec.rb create mode 100644 client/spec/models/aggregate_question_results_response1_spec.rb create mode 100644 client/spec/models/block_from_comment_public_response_spec.rb create mode 100644 client/spec/models/block_user_from_comment_response_spec.rb create mode 100644 client/spec/models/bulk_aggregate_question_results_response1_spec.rb create mode 100644 client/spec/models/change_ticket_state_response1_spec.rb create mode 100644 client/spec/models/checked_comments_for_blocked_response_spec.rb create mode 100644 client/spec/models/combine_comments_with_question_results_response_spec.rb create mode 100644 client/spec/models/create_comment_public_response_spec.rb create mode 100644 client/spec/models/create_email_template_response1_spec.rb create mode 100644 client/spec/models/create_feed_post_public_response_spec.rb create mode 100644 client/spec/models/create_feed_post_response1_spec.rb create mode 100644 client/spec/models/create_moderator_response1_spec.rb create mode 100644 client/spec/models/create_question_config_response1_spec.rb create mode 100644 client/spec/models/create_question_result_response1_spec.rb create mode 100644 client/spec/models/create_tenant_package_response1_spec.rb create mode 100644 client/spec/models/create_tenant_response1_spec.rb create mode 100644 client/spec/models/create_tenant_user_response1_spec.rb create mode 100644 client/spec/models/create_ticket_response1_spec.rb create mode 100644 client/spec/models/create_user_badge_response_spec.rb create mode 100644 client/spec/models/create_v1_page_react_response_spec.rb create mode 100644 client/spec/models/create_v2_page_react_response_spec.rb create mode 100644 client/spec/models/create_vote_response_spec.rb create mode 100644 client/spec/models/delete_comment_public_response_spec.rb create mode 100644 client/spec/models/delete_comment_response_spec.rb create mode 100644 client/spec/models/delete_comment_vote_response_spec.rb create mode 100644 client/spec/models/delete_email_template_render_error_response_spec.rb create mode 100644 client/spec/models/delete_email_template_response_spec.rb create mode 100644 client/spec/models/delete_feed_post_public_response_any_of_spec.rb create mode 100644 client/spec/models/delete_hash_tag_response_spec.rb create mode 100644 client/spec/models/delete_moderation_vote_response_spec.rb create mode 100644 client/spec/models/delete_moderator_response_spec.rb create mode 100644 client/spec/models/delete_notification_count_response_spec.rb create mode 100644 client/spec/models/delete_pending_webhook_event_response_spec.rb create mode 100644 client/spec/models/delete_question_config_response_spec.rb create mode 100644 client/spec/models/delete_question_result_response_spec.rb create mode 100644 client/spec/models/delete_tenant_package_response_spec.rb create mode 100644 client/spec/models/delete_tenant_response_spec.rb create mode 100644 client/spec/models/delete_tenant_user_response_spec.rb create mode 100644 client/spec/models/delete_user_badge_response_spec.rb create mode 100644 client/spec/models/delete_v1_page_react_response_spec.rb create mode 100644 client/spec/models/delete_v2_page_react_response_spec.rb create mode 100644 client/spec/models/delete_vote_response_spec.rb create mode 100644 client/spec/models/flag_comment_public_response_spec.rb create mode 100644 client/spec/models/flag_comment_response1_spec.rb create mode 100644 client/spec/models/get_api_comments_response_spec.rb create mode 100644 client/spec/models/get_api_export_status_response_spec.rb create mode 100644 client/spec/models/get_api_ids_response_spec.rb create mode 100644 client/spec/models/get_audit_logs_response1_spec.rb create mode 100644 client/spec/models/get_ban_users_from_comment_response_spec.rb create mode 100644 client/spec/models/get_cached_notification_count_response1_spec.rb create mode 100644 client/spec/models/get_comment_ban_status_response1_spec.rb create mode 100644 client/spec/models/get_comment_children_response_spec.rb create mode 100644 client/spec/models/get_comment_response_spec.rb create mode 100644 client/spec/models/get_comment_text_response1_spec.rb create mode 100644 client/spec/models/get_comment_vote_user_names_response_spec.rb create mode 100644 client/spec/models/get_comments_for_user_response1_spec.rb create mode 100644 client/spec/models/get_comments_public_response_spec.rb create mode 100644 client/spec/models/get_comments_response_spec.rb create mode 100644 client/spec/models/get_count_response_spec.rb create mode 100644 client/spec/models/get_counts_response_spec.rb create mode 100644 client/spec/models/get_email_template_definitions_response1_spec.rb create mode 100644 client/spec/models/get_email_template_render_errors_response1_spec.rb create mode 100644 client/spec/models/get_email_template_response1_spec.rb create mode 100644 client/spec/models/get_email_templates_response1_spec.rb create mode 100644 client/spec/models/get_event_log_response1_spec.rb create mode 100644 client/spec/models/get_feed_posts_public_response_spec.rb create mode 100644 client/spec/models/get_feed_posts_response1_spec.rb create mode 100644 client/spec/models/get_feed_posts_stats_response_spec.rb create mode 100644 client/spec/models/get_gif_large_response_spec.rb create mode 100644 client/spec/models/get_global_event_log_response_spec.rb create mode 100644 client/spec/models/get_hash_tags_response1_spec.rb rename client/spec/models/{vote_response_status_spec.rb => get_logs_response_spec.rb} (74%) create mode 100644 client/spec/models/get_manual_badges_for_user_response_spec.rb create mode 100644 client/spec/models/get_manual_badges_response_spec.rb create mode 100644 client/spec/models/get_moderation_comment_response_spec.rb create mode 100644 client/spec/models/get_moderation_comment_text_response_spec.rb create mode 100644 client/spec/models/get_moderator_response1_spec.rb create mode 100644 client/spec/models/get_moderators_response1_spec.rb create mode 100644 client/spec/models/get_notification_count_response1_spec.rb create mode 100644 client/spec/models/get_notifications_response1_spec.rb create mode 100644 client/spec/models/get_offline_users_response_spec.rb create mode 100644 client/spec/models/get_online_users_response_spec.rb create mode 100644 client/spec/models/get_pages_public_response_spec.rb create mode 100644 client/spec/models/get_pending_webhook_event_count_response1_spec.rb create mode 100644 client/spec/models/get_pending_webhook_events_response1_spec.rb create mode 100644 client/spec/models/get_pre_ban_summary_response_spec.rb create mode 100644 client/spec/models/get_question_config_response1_spec.rb create mode 100644 client/spec/models/get_question_configs_response1_spec.rb create mode 100644 client/spec/models/get_question_result_response1_spec.rb create mode 100644 client/spec/models/get_question_results_response1_spec.rb create mode 100644 client/spec/models/get_search_comments_summary_response_spec.rb create mode 100644 client/spec/models/get_search_pages_response_spec.rb create mode 100644 client/spec/models/get_search_sites_response_spec.rb create mode 100644 client/spec/models/get_search_suggest_response_spec.rb create mode 100644 client/spec/models/get_search_users_response_spec.rb create mode 100644 client/spec/models/get_tenant_daily_usages_response1_spec.rb create mode 100644 client/spec/models/get_tenant_package_response1_spec.rb create mode 100644 client/spec/models/get_tenant_packages_response1_spec.rb create mode 100644 client/spec/models/get_tenant_response1_spec.rb create mode 100644 client/spec/models/get_tenant_user_response1_spec.rb create mode 100644 client/spec/models/get_tenant_users_response1_spec.rb create mode 100644 client/spec/models/get_tenants_response1_spec.rb create mode 100644 client/spec/models/get_ticket_response1_spec.rb create mode 100644 client/spec/models/get_tickets_response1_spec.rb create mode 100644 client/spec/models/get_translations_response1_spec.rb create mode 100644 client/spec/models/get_trust_factor_response_spec.rb create mode 100644 client/spec/models/get_user_badge_progress_by_id_response_spec.rb create mode 100644 client/spec/models/get_user_badge_progress_by_user_id_response_spec.rb create mode 100644 client/spec/models/get_user_badge_progress_list_response_spec.rb create mode 100644 client/spec/models/get_user_badge_response_spec.rb create mode 100644 client/spec/models/get_user_badges_response_spec.rb create mode 100644 client/spec/models/get_user_ban_preference_response_spec.rb create mode 100644 client/spec/models/get_user_internal_profile_response1_spec.rb create mode 100644 client/spec/models/get_user_notification_count_response1_spec.rb create mode 100644 client/spec/models/get_user_notifications_response_spec.rb create mode 100644 client/spec/models/get_user_presence_statuses_response1_spec.rb create mode 100644 client/spec/models/get_user_reacts_public_response_spec.rb create mode 100644 client/spec/models/get_user_response1_spec.rb create mode 100644 client/spec/models/get_users_info_response_spec.rb create mode 100644 client/spec/models/get_v1_page_likes_response_spec.rb create mode 100644 client/spec/models/get_v2_page_react_users_response1_spec.rb create mode 100644 client/spec/models/get_v2_page_reacts_response_spec.rb create mode 100644 client/spec/models/get_votes_for_user_response1_spec.rb create mode 100644 client/spec/models/get_votes_response1_spec.rb create mode 100644 client/spec/models/lock_comment_response_spec.rb create mode 100644 client/spec/models/patch_hash_tag_response_spec.rb create mode 100644 client/spec/models/pin_comment_response_spec.rb create mode 100644 client/spec/models/post_adjust_comment_votes_response_spec.rb create mode 100644 client/spec/models/post_api_export_response_spec.rb create mode 100644 client/spec/models/post_ban_user_from_comment_response_spec.rb create mode 100644 client/spec/models/post_ban_user_undo_response_spec.rb create mode 100644 client/spec/models/post_bulk_pre_ban_summary_response_spec.rb create mode 100644 client/spec/models/post_comments_by_ids_response_spec.rb create mode 100644 client/spec/models/post_flag_comment_response_spec.rb create mode 100644 client/spec/models/post_restore_deleted_comment_response_spec.rb create mode 100644 client/spec/models/post_set_comment_approval_status_response_spec.rb create mode 100644 client/spec/models/post_set_comment_review_status_response_spec.rb create mode 100644 client/spec/models/post_set_comment_spam_status_response_spec.rb create mode 100644 client/spec/models/post_set_comment_text_response_spec.rb create mode 100644 client/spec/models/post_un_flag_comment_response_spec.rb create mode 100644 client/spec/models/post_vote_response_spec.rb create mode 100644 client/spec/models/put_award_badge_response_spec.rb create mode 100644 client/spec/models/put_close_thread_response_spec.rb create mode 100644 client/spec/models/put_remove_badge_response_spec.rb create mode 100644 client/spec/models/put_reopen_thread_response_spec.rb create mode 100644 client/spec/models/react_feed_post_public_response_spec.rb create mode 100644 client/spec/models/render_email_template_response1_spec.rb create mode 100644 client/spec/models/replace_tenant_package_response_spec.rb create mode 100644 client/spec/models/replace_tenant_user_response_spec.rb create mode 100644 client/spec/models/reset_user_notification_count_response_spec.rb create mode 100644 client/spec/models/reset_user_notifications_response1_spec.rb create mode 100644 client/spec/models/save_comment_response_spec.rb create mode 100644 client/spec/models/search_users_response1_spec.rb create mode 100644 client/spec/models/send_invite_response_spec.rb create mode 100644 client/spec/models/send_login_link_response_spec.rb create mode 100644 client/spec/models/set_comment_text_response1_spec.rb create mode 100644 client/spec/models/set_trust_factor_response_spec.rb create mode 100644 client/spec/models/un_block_comment_public_response_spec.rb create mode 100644 client/spec/models/un_block_user_from_comment_response_spec.rb create mode 100644 client/spec/models/un_flag_comment_response_spec.rb create mode 100644 client/spec/models/un_lock_comment_response_spec.rb create mode 100644 client/spec/models/un_pin_comment_response_spec.rb create mode 100644 client/spec/models/update_comment_response_spec.rb create mode 100644 client/spec/models/update_email_template_response_spec.rb create mode 100644 client/spec/models/update_feed_post_public_response_spec.rb create mode 100644 client/spec/models/update_feed_post_response_spec.rb create mode 100644 client/spec/models/update_moderator_response_spec.rb create mode 100644 client/spec/models/update_notification_response_spec.rb create mode 100644 client/spec/models/update_question_config_response_spec.rb create mode 100644 client/spec/models/update_question_result_response_spec.rb create mode 100644 client/spec/models/update_tenant_package_response_spec.rb create mode 100644 client/spec/models/update_tenant_response_spec.rb create mode 100644 client/spec/models/update_tenant_user_response_spec.rb create mode 100644 client/spec/models/update_user_badge_response_spec.rb create mode 100644 client/spec/models/vote_comment_response_spec.rb diff --git a/Gemfile.lock b/Gemfile.lock index 362e3d8..4274611 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - fastcomments (1.2.0) + fastcomments (2.0.0) typhoeus (~> 1.0, >= 1.0.1) GEM diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES index 0685dbd..0899d3b 100644 --- a/client/.openapi-generator/FILES +++ b/client/.openapi-generator/FILES @@ -42,11 +42,14 @@ docs/APIUserSubscription.md docs/AddDomainConfigParams.md docs/AddDomainConfigResponse.md docs/AddDomainConfigResponseAnyOf.md +docs/AddHashTagResponse.md +docs/AddHashTagsBulkResponse.md docs/AddPageAPIResponse.md docs/AddSSOUserAPIResponse.md docs/AdjustCommentVotesParams.md docs/AdjustVotesResponse.md docs/AggregateQuestionResultsResponse.md +docs/AggregateQuestionResultsResponse1.md docs/AggregateResponse.md docs/AggregateTimeBucket.md docs/AggregationAPIError.md @@ -66,12 +69,15 @@ docs/BannedUserMatchMatchedOnValue.md docs/BannedUserMatchType.md docs/BillingInfo.md docs/BlockFromCommentParams.md +docs/BlockFromCommentPublicResponse.md docs/BlockSuccess.md +docs/BlockUserFromCommentResponse.md docs/BuildModerationFilterParams.md docs/BuildModerationFilterResponse.md docs/BulkAggregateQuestionItem.md docs/BulkAggregateQuestionResultsRequest.md docs/BulkAggregateQuestionResultsResponse.md +docs/BulkAggregateQuestionResultsResponse1.md docs/BulkCreateHashTagsBody.md docs/BulkCreateHashTagsBodyTagsInner.md docs/BulkCreateHashTagsResponse.md @@ -81,7 +87,10 @@ docs/BulkPreBanSummary.md docs/ChangeCommentPinStatusResponse.md docs/ChangeTicketStateBody.md docs/ChangeTicketStateResponse.md +docs/ChangeTicketStateResponse1.md docs/CheckBlockedCommentsResponse.md +docs/CheckedCommentsForBlockedResponse.md +docs/CombineCommentsWithQuestionResultsResponse.md docs/CombineQuestionResultsWithCommentsResponse.md docs/CommentData.md docs/CommentHTMLRenderingMode.md @@ -101,41 +110,76 @@ docs/CreateAPIPageData.md docs/CreateAPISSOUserData.md docs/CreateAPIUserSubscriptionData.md docs/CreateCommentParams.md +docs/CreateCommentPublicResponse.md docs/CreateEmailTemplateBody.md docs/CreateEmailTemplateResponse.md +docs/CreateEmailTemplateResponse1.md docs/CreateFeedPostParams.md +docs/CreateFeedPostPublicResponse.md docs/CreateFeedPostResponse.md +docs/CreateFeedPostResponse1.md docs/CreateFeedPostsResponse.md docs/CreateHashTagBody.md docs/CreateHashTagResponse.md docs/CreateModeratorBody.md docs/CreateModeratorResponse.md +docs/CreateModeratorResponse1.md docs/CreateQuestionConfigBody.md docs/CreateQuestionConfigResponse.md +docs/CreateQuestionConfigResponse1.md docs/CreateQuestionResultBody.md docs/CreateQuestionResultResponse.md +docs/CreateQuestionResultResponse1.md docs/CreateSubscriptionAPIResponse.md docs/CreateTenantBody.md docs/CreateTenantPackageBody.md docs/CreateTenantPackageResponse.md +docs/CreateTenantPackageResponse1.md docs/CreateTenantResponse.md +docs/CreateTenantResponse1.md docs/CreateTenantUserBody.md docs/CreateTenantUserResponse.md +docs/CreateTenantUserResponse1.md docs/CreateTicketBody.md docs/CreateTicketResponse.md +docs/CreateTicketResponse1.md docs/CreateUserBadgeParams.md +docs/CreateUserBadgeResponse.md docs/CreateV1PageReact.md +docs/CreateV1PageReactResponse.md +docs/CreateV2PageReactResponse.md +docs/CreateVoteResponse.md docs/CustomConfigParameters.md docs/CustomEmailTemplate.md docs/DefaultApi.md docs/DeleteCommentAction.md +docs/DeleteCommentPublicResponse.md +docs/DeleteCommentResponse.md docs/DeleteCommentResult.md +docs/DeleteCommentVoteResponse.md docs/DeleteDomainConfigResponse.md +docs/DeleteEmailTemplateRenderErrorResponse.md +docs/DeleteEmailTemplateResponse.md docs/DeleteFeedPostPublicResponse.md +docs/DeleteFeedPostPublicResponseAnyOf.md docs/DeleteHashTagRequestBody.md +docs/DeleteHashTagResponse.md +docs/DeleteModerationVoteResponse.md +docs/DeleteModeratorResponse.md +docs/DeleteNotificationCountResponse.md docs/DeletePageAPIResponse.md +docs/DeletePendingWebhookEventResponse.md +docs/DeleteQuestionConfigResponse.md +docs/DeleteQuestionResultResponse.md docs/DeleteSSOUserAPIResponse.md docs/DeleteSubscriptionAPIResponse.md +docs/DeleteTenantPackageResponse.md +docs/DeleteTenantResponse.md +docs/DeleteTenantUserResponse.md +docs/DeleteUserBadgeResponse.md +docs/DeleteV1PageReactResponse.md +docs/DeleteV2PageReactResponse.md +docs/DeleteVoteResponse.md docs/DeletedCommentResultComment.md docs/DigestEmailFrequency.md docs/EmailTemplateDefinition.md @@ -151,72 +195,154 @@ docs/FeedPostStats.md docs/FeedPostsStatsResponse.md docs/FindCommentsByRangeItem.md docs/FindCommentsByRangeResponse.md +docs/FlagCommentPublicResponse.md docs/FlagCommentResponse.md +docs/FlagCommentResponse1.md +docs/GetApiCommentsResponse.md +docs/GetApiExportStatusResponse.md +docs/GetApiIdsResponse.md docs/GetAuditLogsResponse.md +docs/GetAuditLogsResponse1.md +docs/GetBanUsersFromCommentResponse.md docs/GetBannedUsersCountResponse.md docs/GetBannedUsersFromCommentResponse.md docs/GetCachedNotificationCountResponse.md +docs/GetCachedNotificationCountResponse1.md docs/GetCommentBanStatusResponse.md +docs/GetCommentBanStatusResponse1.md +docs/GetCommentChildrenResponse.md +docs/GetCommentResponse.md docs/GetCommentTextResponse.md +docs/GetCommentTextResponse1.md +docs/GetCommentVoteUserNamesResponse.md docs/GetCommentVoteUserNamesSuccessResponse.md docs/GetCommentsForUserResponse.md +docs/GetCommentsForUserResponse1.md +docs/GetCommentsPublicResponse.md +docs/GetCommentsResponse.md docs/GetCommentsResponsePublicComment.md docs/GetCommentsResponseWithPresencePublicComment.md +docs/GetCountResponse.md +docs/GetCountsResponse.md docs/GetDomainConfigResponse.md docs/GetDomainConfigsResponse.md docs/GetDomainConfigsResponseAnyOf.md docs/GetDomainConfigsResponseAnyOf1.md docs/GetEmailTemplateDefinitionsResponse.md +docs/GetEmailTemplateDefinitionsResponse1.md docs/GetEmailTemplateRenderErrorsResponse.md +docs/GetEmailTemplateRenderErrorsResponse1.md docs/GetEmailTemplateResponse.md +docs/GetEmailTemplateResponse1.md docs/GetEmailTemplatesResponse.md +docs/GetEmailTemplatesResponse1.md docs/GetEventLogResponse.md +docs/GetEventLogResponse1.md +docs/GetFeedPostsPublicResponse.md docs/GetFeedPostsResponse.md +docs/GetFeedPostsResponse1.md +docs/GetFeedPostsStatsResponse.md +docs/GetGifLargeResponse.md docs/GetGifsSearchResponse.md docs/GetGifsTrendingResponse.md +docs/GetGlobalEventLogResponse.md docs/GetHashTagsResponse.md +docs/GetHashTagsResponse1.md +docs/GetLogsResponse.md +docs/GetManualBadgesForUserResponse.md +docs/GetManualBadgesResponse.md +docs/GetModerationCommentResponse.md +docs/GetModerationCommentTextResponse.md docs/GetModeratorResponse.md +docs/GetModeratorResponse1.md docs/GetModeratorsResponse.md +docs/GetModeratorsResponse1.md docs/GetMyNotificationsResponse.md docs/GetNotificationCountResponse.md +docs/GetNotificationCountResponse1.md docs/GetNotificationsResponse.md +docs/GetNotificationsResponse1.md +docs/GetOfflineUsersResponse.md +docs/GetOnlineUsersResponse.md docs/GetPageByURLIdAPIResponse.md docs/GetPagesAPIResponse.md +docs/GetPagesPublicResponse.md docs/GetPendingWebhookEventCountResponse.md +docs/GetPendingWebhookEventCountResponse1.md docs/GetPendingWebhookEventsResponse.md +docs/GetPendingWebhookEventsResponse1.md +docs/GetPreBanSummaryResponse.md docs/GetPublicFeedPostsResponse.md docs/GetPublicPagesResponse.md docs/GetQuestionConfigResponse.md +docs/GetQuestionConfigResponse1.md docs/GetQuestionConfigsResponse.md +docs/GetQuestionConfigsResponse1.md docs/GetQuestionResultResponse.md +docs/GetQuestionResultResponse1.md docs/GetQuestionResultsResponse.md +docs/GetQuestionResultsResponse1.md docs/GetSSOUserByEmailAPIResponse.md docs/GetSSOUserByIdAPIResponse.md docs/GetSSOUsersResponse.md +docs/GetSearchCommentsSummaryResponse.md +docs/GetSearchPagesResponse.md +docs/GetSearchSitesResponse.md +docs/GetSearchSuggestResponse.md +docs/GetSearchUsersResponse.md docs/GetSubscriptionsAPIResponse.md docs/GetTenantDailyUsagesResponse.md +docs/GetTenantDailyUsagesResponse1.md docs/GetTenantManualBadgesResponse.md docs/GetTenantPackageResponse.md +docs/GetTenantPackageResponse1.md docs/GetTenantPackagesResponse.md +docs/GetTenantPackagesResponse1.md docs/GetTenantResponse.md +docs/GetTenantResponse1.md docs/GetTenantUserResponse.md +docs/GetTenantUserResponse1.md docs/GetTenantUsersResponse.md +docs/GetTenantUsersResponse1.md docs/GetTenantsResponse.md +docs/GetTenantsResponse1.md docs/GetTicketResponse.md +docs/GetTicketResponse1.md docs/GetTicketsResponse.md +docs/GetTicketsResponse1.md docs/GetTranslationsResponse.md +docs/GetTranslationsResponse1.md +docs/GetTrustFactorResponse.md +docs/GetUserBadgeProgressByIdResponse.md +docs/GetUserBadgeProgressByUserIdResponse.md +docs/GetUserBadgeProgressListResponse.md +docs/GetUserBadgeResponse.md +docs/GetUserBadgesResponse.md +docs/GetUserBanPreferenceResponse.md docs/GetUserInternalProfileResponse.md +docs/GetUserInternalProfileResponse1.md docs/GetUserInternalProfileResponseProfile.md docs/GetUserManualBadgesResponse.md docs/GetUserNotificationCountResponse.md +docs/GetUserNotificationCountResponse1.md +docs/GetUserNotificationsResponse.md docs/GetUserPresenceStatusesResponse.md +docs/GetUserPresenceStatusesResponse1.md +docs/GetUserReactsPublicResponse.md docs/GetUserResponse.md +docs/GetUserResponse1.md docs/GetUserTrustFactorResponse.md +docs/GetUsersInfoResponse.md docs/GetV1PageLikes.md +docs/GetV1PageLikesResponse.md docs/GetV2PageReactUsersResponse.md +docs/GetV2PageReactUsersResponse1.md docs/GetV2PageReacts.md +docs/GetV2PageReactsResponse.md docs/GetVotesForUserResponse.md +docs/GetVotesForUserResponse1.md docs/GetVotesResponse.md +docs/GetVotesResponse1.md docs/GifGetLargeResponse.md docs/GifRating.md docs/GifSearchInternalError.md @@ -231,6 +357,7 @@ docs/ImportedSiteType.md docs/LiveEvent.md docs/LiveEventExtraInfo.md docs/LiveEventType.md +docs/LockCommentResponse.md docs/MediaAsset.md docs/MentionAutoCompleteMode.md docs/MetaItem.md @@ -265,10 +392,26 @@ docs/PageUsersOnlineResponse.md docs/PagesSortBy.md docs/PatchDomainConfigParams.md docs/PatchDomainConfigResponse.md +docs/PatchHashTagResponse.md docs/PatchPageAPIResponse.md docs/PatchSSOUserAPIResponse.md docs/PendingCommentToSyncOutbound.md +docs/PinCommentResponse.md +docs/PostAdjustCommentVotesResponse.md +docs/PostApiExportResponse.md +docs/PostBanUserFromCommentResponse.md +docs/PostBanUserUndoResponse.md +docs/PostBulkPreBanSummaryResponse.md +docs/PostCommentsByIdsResponse.md +docs/PostFlagCommentResponse.md docs/PostRemoveCommentResponse.md +docs/PostRestoreDeletedCommentResponse.md +docs/PostSetCommentApprovalStatusResponse.md +docs/PostSetCommentReviewStatusResponse.md +docs/PostSetCommentSpamStatusResponse.md +docs/PostSetCommentTextResponse.md +docs/PostUnFlagCommentResponse.md +docs/PostVoteResponse.md docs/PreBanSummary.md docs/PubSubComment.md docs/PubSubCommentBase.md @@ -283,7 +426,11 @@ docs/PublicCommentBase.md docs/PublicFeedPostsResponse.md docs/PublicPage.md docs/PublicVote.md +docs/PutAwardBadgeResponse.md +docs/PutCloseThreadResponse.md docs/PutDomainConfigResponse.md +docs/PutRemoveBadgeResponse.md +docs/PutReopenThreadResponse.md docs/PutSSOUserAPIResponse.md docs/QueryPredicate.md docs/QueryPredicateValue.md @@ -296,30 +443,42 @@ docs/QuestionResultAggregationOverall.md docs/QuestionSubQuestionVisibility.md docs/QuestionWhenSave.md docs/ReactBodyParams.md +docs/ReactFeedPostPublicResponse.md docs/ReactFeedPostResponse.md docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md docs/RemoveCommentActionResponse.md docs/RemoveUserBadgeResponse.md docs/RenderEmailTemplateBody.md docs/RenderEmailTemplateResponse.md +docs/RenderEmailTemplateResponse1.md docs/RenderableUserNotification.md docs/RepeatCommentCheckIgnoredReason.md docs/RepeatCommentHandlingAction.md docs/ReplaceTenantPackageBody.md +docs/ReplaceTenantPackageResponse.md docs/ReplaceTenantUserBody.md +docs/ReplaceTenantUserResponse.md +docs/ResetUserNotificationCountResponse.md docs/ResetUserNotificationsResponse.md +docs/ResetUserNotificationsResponse1.md docs/SORTDIR.md docs/SSOSecurityLevel.md +docs/SaveCommentResponse.md docs/SaveCommentResponseOptimized.md docs/SaveCommentsBulkResponse.md docs/SaveCommentsResponseWithPresence.md docs/SearchUsersResponse.md +docs/SearchUsersResponse1.md docs/SearchUsersResult.md docs/SearchUsersSectionedResponse.md +docs/SendInviteResponse.md +docs/SendLoginLinkResponse.md docs/SetCommentApprovedResponse.md docs/SetCommentTextParams.md docs/SetCommentTextResponse.md +docs/SetCommentTextResponse1.md docs/SetCommentTextResult.md +docs/SetTrustFactorResponse.md docs/SetUserTrustFactorResponse.md docs/SizePreset.md docs/SortDirections.md @@ -328,26 +487,43 @@ docs/TOSConfig.md docs/TenantBadge.md docs/TenantHashTag.md docs/TenantPackage.md +docs/UnBlockCommentPublicResponse.md docs/UnBlockFromCommentParams.md +docs/UnBlockUserFromCommentResponse.md +docs/UnFlagCommentResponse.md +docs/UnLockCommentResponse.md +docs/UnPinCommentResponse.md docs/UnblockSuccess.md docs/UpdatableCommentParams.md docs/UpdateAPIPageData.md docs/UpdateAPISSOUserData.md docs/UpdateAPIUserSubscriptionData.md +docs/UpdateCommentResponse.md docs/UpdateDomainConfigParams.md docs/UpdateEmailTemplateBody.md +docs/UpdateEmailTemplateResponse.md docs/UpdateFeedPostParams.md +docs/UpdateFeedPostPublicResponse.md +docs/UpdateFeedPostResponse.md docs/UpdateHashTagBody.md docs/UpdateHashTagResponse.md docs/UpdateModeratorBody.md +docs/UpdateModeratorResponse.md docs/UpdateNotificationBody.md +docs/UpdateNotificationResponse.md docs/UpdateQuestionConfigBody.md +docs/UpdateQuestionConfigResponse.md docs/UpdateQuestionResultBody.md +docs/UpdateQuestionResultResponse.md docs/UpdateSubscriptionAPIResponse.md docs/UpdateTenantBody.md docs/UpdateTenantPackageBody.md +docs/UpdateTenantPackageResponse.md +docs/UpdateTenantResponse.md docs/UpdateTenantUserBody.md +docs/UpdateTenantUserResponse.md docs/UpdateUserBadgeParams.md +docs/UpdateUserBadgeResponse.md docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md docs/UpdateUserNotificationPageSubscriptionStatusResponse.md docs/UpdateUserNotificationStatusResponse.md @@ -366,9 +542,9 @@ docs/UserSearchSectionResult.md docs/UserSessionInfo.md docs/UsersListLocation.md docs/VoteBodyParams.md +docs/VoteCommentResponse.md docs/VoteDeleteResponse.md docs/VoteResponse.md -docs/VoteResponseStatus.md docs/VoteResponseUser.md docs/VoteStyle.md fastcomments-client.gemspec @@ -379,15 +555,19 @@ lib/fastcomments-client/api/moderation_api.rb lib/fastcomments-client/api/public_api.rb lib/fastcomments-client/api_client.rb lib/fastcomments-client/api_error.rb +lib/fastcomments-client/api_model_base.rb lib/fastcomments-client/configuration.rb lib/fastcomments-client/models/add_domain_config_params.rb lib/fastcomments-client/models/add_domain_config_response.rb lib/fastcomments-client/models/add_domain_config_response_any_of.rb +lib/fastcomments-client/models/add_hash_tag_response.rb +lib/fastcomments-client/models/add_hash_tags_bulk_response.rb lib/fastcomments-client/models/add_page_api_response.rb lib/fastcomments-client/models/add_sso_user_api_response.rb lib/fastcomments-client/models/adjust_comment_votes_params.rb lib/fastcomments-client/models/adjust_votes_response.rb lib/fastcomments-client/models/aggregate_question_results_response.rb +lib/fastcomments-client/models/aggregate_question_results_response1.rb lib/fastcomments-client/models/aggregate_response.rb lib/fastcomments-client/models/aggregate_time_bucket.rb lib/fastcomments-client/models/aggregation_api_error.rb @@ -439,12 +619,15 @@ lib/fastcomments-client/models/banned_user_match_matched_on_value.rb lib/fastcomments-client/models/banned_user_match_type.rb lib/fastcomments-client/models/billing_info.rb lib/fastcomments-client/models/block_from_comment_params.rb +lib/fastcomments-client/models/block_from_comment_public_response.rb lib/fastcomments-client/models/block_success.rb +lib/fastcomments-client/models/block_user_from_comment_response.rb lib/fastcomments-client/models/build_moderation_filter_params.rb lib/fastcomments-client/models/build_moderation_filter_response.rb lib/fastcomments-client/models/bulk_aggregate_question_item.rb lib/fastcomments-client/models/bulk_aggregate_question_results_request.rb lib/fastcomments-client/models/bulk_aggregate_question_results_response.rb +lib/fastcomments-client/models/bulk_aggregate_question_results_response1.rb lib/fastcomments-client/models/bulk_create_hash_tags_body.rb lib/fastcomments-client/models/bulk_create_hash_tags_body_tags_inner.rb lib/fastcomments-client/models/bulk_create_hash_tags_response.rb @@ -454,7 +637,10 @@ lib/fastcomments-client/models/bulk_pre_ban_summary.rb lib/fastcomments-client/models/change_comment_pin_status_response.rb lib/fastcomments-client/models/change_ticket_state_body.rb lib/fastcomments-client/models/change_ticket_state_response.rb +lib/fastcomments-client/models/change_ticket_state_response1.rb lib/fastcomments-client/models/check_blocked_comments_response.rb +lib/fastcomments-client/models/checked_comments_for_blocked_response.rb +lib/fastcomments-client/models/combine_comments_with_question_results_response.rb lib/fastcomments-client/models/combine_question_results_with_comments_response.rb lib/fastcomments-client/models/comment_data.rb lib/fastcomments-client/models/comment_html_rendering_mode.rb @@ -474,40 +660,75 @@ lib/fastcomments-client/models/create_api_page_data.rb lib/fastcomments-client/models/create_api_user_subscription_data.rb lib/fastcomments-client/models/create_apisso_user_data.rb lib/fastcomments-client/models/create_comment_params.rb +lib/fastcomments-client/models/create_comment_public_response.rb lib/fastcomments-client/models/create_email_template_body.rb lib/fastcomments-client/models/create_email_template_response.rb +lib/fastcomments-client/models/create_email_template_response1.rb lib/fastcomments-client/models/create_feed_post_params.rb +lib/fastcomments-client/models/create_feed_post_public_response.rb lib/fastcomments-client/models/create_feed_post_response.rb +lib/fastcomments-client/models/create_feed_post_response1.rb lib/fastcomments-client/models/create_feed_posts_response.rb lib/fastcomments-client/models/create_hash_tag_body.rb lib/fastcomments-client/models/create_hash_tag_response.rb lib/fastcomments-client/models/create_moderator_body.rb lib/fastcomments-client/models/create_moderator_response.rb +lib/fastcomments-client/models/create_moderator_response1.rb lib/fastcomments-client/models/create_question_config_body.rb lib/fastcomments-client/models/create_question_config_response.rb +lib/fastcomments-client/models/create_question_config_response1.rb lib/fastcomments-client/models/create_question_result_body.rb lib/fastcomments-client/models/create_question_result_response.rb +lib/fastcomments-client/models/create_question_result_response1.rb lib/fastcomments-client/models/create_subscription_api_response.rb lib/fastcomments-client/models/create_tenant_body.rb lib/fastcomments-client/models/create_tenant_package_body.rb lib/fastcomments-client/models/create_tenant_package_response.rb +lib/fastcomments-client/models/create_tenant_package_response1.rb lib/fastcomments-client/models/create_tenant_response.rb +lib/fastcomments-client/models/create_tenant_response1.rb lib/fastcomments-client/models/create_tenant_user_body.rb lib/fastcomments-client/models/create_tenant_user_response.rb +lib/fastcomments-client/models/create_tenant_user_response1.rb lib/fastcomments-client/models/create_ticket_body.rb lib/fastcomments-client/models/create_ticket_response.rb +lib/fastcomments-client/models/create_ticket_response1.rb lib/fastcomments-client/models/create_user_badge_params.rb +lib/fastcomments-client/models/create_user_badge_response.rb lib/fastcomments-client/models/create_v1_page_react.rb +lib/fastcomments-client/models/create_v1_page_react_response.rb +lib/fastcomments-client/models/create_v2_page_react_response.rb +lib/fastcomments-client/models/create_vote_response.rb lib/fastcomments-client/models/custom_config_parameters.rb lib/fastcomments-client/models/custom_email_template.rb lib/fastcomments-client/models/delete_comment_action.rb +lib/fastcomments-client/models/delete_comment_public_response.rb +lib/fastcomments-client/models/delete_comment_response.rb lib/fastcomments-client/models/delete_comment_result.rb +lib/fastcomments-client/models/delete_comment_vote_response.rb lib/fastcomments-client/models/delete_domain_config_response.rb +lib/fastcomments-client/models/delete_email_template_render_error_response.rb +lib/fastcomments-client/models/delete_email_template_response.rb lib/fastcomments-client/models/delete_feed_post_public_response.rb +lib/fastcomments-client/models/delete_feed_post_public_response_any_of.rb lib/fastcomments-client/models/delete_hash_tag_request_body.rb +lib/fastcomments-client/models/delete_hash_tag_response.rb +lib/fastcomments-client/models/delete_moderation_vote_response.rb +lib/fastcomments-client/models/delete_moderator_response.rb +lib/fastcomments-client/models/delete_notification_count_response.rb lib/fastcomments-client/models/delete_page_api_response.rb +lib/fastcomments-client/models/delete_pending_webhook_event_response.rb +lib/fastcomments-client/models/delete_question_config_response.rb +lib/fastcomments-client/models/delete_question_result_response.rb lib/fastcomments-client/models/delete_sso_user_api_response.rb lib/fastcomments-client/models/delete_subscription_api_response.rb +lib/fastcomments-client/models/delete_tenant_package_response.rb +lib/fastcomments-client/models/delete_tenant_response.rb +lib/fastcomments-client/models/delete_tenant_user_response.rb +lib/fastcomments-client/models/delete_user_badge_response.rb +lib/fastcomments-client/models/delete_v1_page_react_response.rb +lib/fastcomments-client/models/delete_v2_page_react_response.rb +lib/fastcomments-client/models/delete_vote_response.rb lib/fastcomments-client/models/deleted_comment_result_comment.rb lib/fastcomments-client/models/digest_email_frequency.rb lib/fastcomments-client/models/email_template_definition.rb @@ -523,72 +744,154 @@ lib/fastcomments-client/models/feed_post_stats.rb lib/fastcomments-client/models/feed_posts_stats_response.rb lib/fastcomments-client/models/find_comments_by_range_item.rb lib/fastcomments-client/models/find_comments_by_range_response.rb +lib/fastcomments-client/models/flag_comment_public_response.rb lib/fastcomments-client/models/flag_comment_response.rb +lib/fastcomments-client/models/flag_comment_response1.rb +lib/fastcomments-client/models/get_api_comments_response.rb +lib/fastcomments-client/models/get_api_export_status_response.rb +lib/fastcomments-client/models/get_api_ids_response.rb lib/fastcomments-client/models/get_audit_logs_response.rb +lib/fastcomments-client/models/get_audit_logs_response1.rb +lib/fastcomments-client/models/get_ban_users_from_comment_response.rb lib/fastcomments-client/models/get_banned_users_count_response.rb lib/fastcomments-client/models/get_banned_users_from_comment_response.rb lib/fastcomments-client/models/get_cached_notification_count_response.rb +lib/fastcomments-client/models/get_cached_notification_count_response1.rb lib/fastcomments-client/models/get_comment_ban_status_response.rb +lib/fastcomments-client/models/get_comment_ban_status_response1.rb +lib/fastcomments-client/models/get_comment_children_response.rb +lib/fastcomments-client/models/get_comment_response.rb lib/fastcomments-client/models/get_comment_text_response.rb +lib/fastcomments-client/models/get_comment_text_response1.rb +lib/fastcomments-client/models/get_comment_vote_user_names_response.rb lib/fastcomments-client/models/get_comment_vote_user_names_success_response.rb lib/fastcomments-client/models/get_comments_for_user_response.rb +lib/fastcomments-client/models/get_comments_for_user_response1.rb +lib/fastcomments-client/models/get_comments_public_response.rb +lib/fastcomments-client/models/get_comments_response.rb lib/fastcomments-client/models/get_comments_response_public_comment.rb lib/fastcomments-client/models/get_comments_response_with_presence_public_comment.rb +lib/fastcomments-client/models/get_count_response.rb +lib/fastcomments-client/models/get_counts_response.rb lib/fastcomments-client/models/get_domain_config_response.rb lib/fastcomments-client/models/get_domain_configs_response.rb lib/fastcomments-client/models/get_domain_configs_response_any_of.rb lib/fastcomments-client/models/get_domain_configs_response_any_of1.rb lib/fastcomments-client/models/get_email_template_definitions_response.rb +lib/fastcomments-client/models/get_email_template_definitions_response1.rb lib/fastcomments-client/models/get_email_template_render_errors_response.rb +lib/fastcomments-client/models/get_email_template_render_errors_response1.rb lib/fastcomments-client/models/get_email_template_response.rb +lib/fastcomments-client/models/get_email_template_response1.rb lib/fastcomments-client/models/get_email_templates_response.rb +lib/fastcomments-client/models/get_email_templates_response1.rb lib/fastcomments-client/models/get_event_log_response.rb +lib/fastcomments-client/models/get_event_log_response1.rb +lib/fastcomments-client/models/get_feed_posts_public_response.rb lib/fastcomments-client/models/get_feed_posts_response.rb +lib/fastcomments-client/models/get_feed_posts_response1.rb +lib/fastcomments-client/models/get_feed_posts_stats_response.rb +lib/fastcomments-client/models/get_gif_large_response.rb lib/fastcomments-client/models/get_gifs_search_response.rb lib/fastcomments-client/models/get_gifs_trending_response.rb +lib/fastcomments-client/models/get_global_event_log_response.rb lib/fastcomments-client/models/get_hash_tags_response.rb +lib/fastcomments-client/models/get_hash_tags_response1.rb +lib/fastcomments-client/models/get_logs_response.rb +lib/fastcomments-client/models/get_manual_badges_for_user_response.rb +lib/fastcomments-client/models/get_manual_badges_response.rb +lib/fastcomments-client/models/get_moderation_comment_response.rb +lib/fastcomments-client/models/get_moderation_comment_text_response.rb lib/fastcomments-client/models/get_moderator_response.rb +lib/fastcomments-client/models/get_moderator_response1.rb lib/fastcomments-client/models/get_moderators_response.rb +lib/fastcomments-client/models/get_moderators_response1.rb lib/fastcomments-client/models/get_my_notifications_response.rb lib/fastcomments-client/models/get_notification_count_response.rb +lib/fastcomments-client/models/get_notification_count_response1.rb lib/fastcomments-client/models/get_notifications_response.rb +lib/fastcomments-client/models/get_notifications_response1.rb +lib/fastcomments-client/models/get_offline_users_response.rb +lib/fastcomments-client/models/get_online_users_response.rb lib/fastcomments-client/models/get_page_by_urlid_api_response.rb lib/fastcomments-client/models/get_pages_api_response.rb +lib/fastcomments-client/models/get_pages_public_response.rb lib/fastcomments-client/models/get_pending_webhook_event_count_response.rb +lib/fastcomments-client/models/get_pending_webhook_event_count_response1.rb lib/fastcomments-client/models/get_pending_webhook_events_response.rb +lib/fastcomments-client/models/get_pending_webhook_events_response1.rb +lib/fastcomments-client/models/get_pre_ban_summary_response.rb lib/fastcomments-client/models/get_public_feed_posts_response.rb lib/fastcomments-client/models/get_public_pages_response.rb lib/fastcomments-client/models/get_question_config_response.rb +lib/fastcomments-client/models/get_question_config_response1.rb lib/fastcomments-client/models/get_question_configs_response.rb +lib/fastcomments-client/models/get_question_configs_response1.rb lib/fastcomments-client/models/get_question_result_response.rb +lib/fastcomments-client/models/get_question_result_response1.rb lib/fastcomments-client/models/get_question_results_response.rb +lib/fastcomments-client/models/get_question_results_response1.rb +lib/fastcomments-client/models/get_search_comments_summary_response.rb +lib/fastcomments-client/models/get_search_pages_response.rb +lib/fastcomments-client/models/get_search_sites_response.rb +lib/fastcomments-client/models/get_search_suggest_response.rb +lib/fastcomments-client/models/get_search_users_response.rb lib/fastcomments-client/models/get_sso_user_by_email_api_response.rb lib/fastcomments-client/models/get_sso_user_by_id_api_response.rb lib/fastcomments-client/models/get_sso_users_response.rb lib/fastcomments-client/models/get_subscriptions_api_response.rb lib/fastcomments-client/models/get_tenant_daily_usages_response.rb +lib/fastcomments-client/models/get_tenant_daily_usages_response1.rb lib/fastcomments-client/models/get_tenant_manual_badges_response.rb lib/fastcomments-client/models/get_tenant_package_response.rb +lib/fastcomments-client/models/get_tenant_package_response1.rb lib/fastcomments-client/models/get_tenant_packages_response.rb +lib/fastcomments-client/models/get_tenant_packages_response1.rb lib/fastcomments-client/models/get_tenant_response.rb +lib/fastcomments-client/models/get_tenant_response1.rb lib/fastcomments-client/models/get_tenant_user_response.rb +lib/fastcomments-client/models/get_tenant_user_response1.rb lib/fastcomments-client/models/get_tenant_users_response.rb +lib/fastcomments-client/models/get_tenant_users_response1.rb lib/fastcomments-client/models/get_tenants_response.rb +lib/fastcomments-client/models/get_tenants_response1.rb lib/fastcomments-client/models/get_ticket_response.rb +lib/fastcomments-client/models/get_ticket_response1.rb lib/fastcomments-client/models/get_tickets_response.rb +lib/fastcomments-client/models/get_tickets_response1.rb lib/fastcomments-client/models/get_translations_response.rb +lib/fastcomments-client/models/get_translations_response1.rb +lib/fastcomments-client/models/get_trust_factor_response.rb +lib/fastcomments-client/models/get_user_badge_progress_by_id_response.rb +lib/fastcomments-client/models/get_user_badge_progress_by_user_id_response.rb +lib/fastcomments-client/models/get_user_badge_progress_list_response.rb +lib/fastcomments-client/models/get_user_badge_response.rb +lib/fastcomments-client/models/get_user_badges_response.rb +lib/fastcomments-client/models/get_user_ban_preference_response.rb lib/fastcomments-client/models/get_user_internal_profile_response.rb +lib/fastcomments-client/models/get_user_internal_profile_response1.rb lib/fastcomments-client/models/get_user_internal_profile_response_profile.rb lib/fastcomments-client/models/get_user_manual_badges_response.rb lib/fastcomments-client/models/get_user_notification_count_response.rb +lib/fastcomments-client/models/get_user_notification_count_response1.rb +lib/fastcomments-client/models/get_user_notifications_response.rb lib/fastcomments-client/models/get_user_presence_statuses_response.rb +lib/fastcomments-client/models/get_user_presence_statuses_response1.rb +lib/fastcomments-client/models/get_user_reacts_public_response.rb lib/fastcomments-client/models/get_user_response.rb +lib/fastcomments-client/models/get_user_response1.rb lib/fastcomments-client/models/get_user_trust_factor_response.rb +lib/fastcomments-client/models/get_users_info_response.rb lib/fastcomments-client/models/get_v1_page_likes.rb +lib/fastcomments-client/models/get_v1_page_likes_response.rb lib/fastcomments-client/models/get_v2_page_react_users_response.rb +lib/fastcomments-client/models/get_v2_page_react_users_response1.rb lib/fastcomments-client/models/get_v2_page_reacts.rb +lib/fastcomments-client/models/get_v2_page_reacts_response.rb lib/fastcomments-client/models/get_votes_for_user_response.rb +lib/fastcomments-client/models/get_votes_for_user_response1.rb lib/fastcomments-client/models/get_votes_response.rb +lib/fastcomments-client/models/get_votes_response1.rb lib/fastcomments-client/models/gif_get_large_response.rb lib/fastcomments-client/models/gif_rating.rb lib/fastcomments-client/models/gif_search_internal_error.rb @@ -603,6 +906,7 @@ lib/fastcomments-client/models/imported_site_type.rb lib/fastcomments-client/models/live_event.rb lib/fastcomments-client/models/live_event_extra_info.rb lib/fastcomments-client/models/live_event_type.rb +lib/fastcomments-client/models/lock_comment_response.rb lib/fastcomments-client/models/media_asset.rb lib/fastcomments-client/models/mention_auto_complete_mode.rb lib/fastcomments-client/models/meta_item.rb @@ -636,10 +940,26 @@ lib/fastcomments-client/models/page_users_online_response.rb lib/fastcomments-client/models/pages_sort_by.rb lib/fastcomments-client/models/patch_domain_config_params.rb lib/fastcomments-client/models/patch_domain_config_response.rb +lib/fastcomments-client/models/patch_hash_tag_response.rb lib/fastcomments-client/models/patch_page_api_response.rb lib/fastcomments-client/models/patch_sso_user_api_response.rb lib/fastcomments-client/models/pending_comment_to_sync_outbound.rb +lib/fastcomments-client/models/pin_comment_response.rb +lib/fastcomments-client/models/post_adjust_comment_votes_response.rb +lib/fastcomments-client/models/post_api_export_response.rb +lib/fastcomments-client/models/post_ban_user_from_comment_response.rb +lib/fastcomments-client/models/post_ban_user_undo_response.rb +lib/fastcomments-client/models/post_bulk_pre_ban_summary_response.rb +lib/fastcomments-client/models/post_comments_by_ids_response.rb +lib/fastcomments-client/models/post_flag_comment_response.rb lib/fastcomments-client/models/post_remove_comment_response.rb +lib/fastcomments-client/models/post_restore_deleted_comment_response.rb +lib/fastcomments-client/models/post_set_comment_approval_status_response.rb +lib/fastcomments-client/models/post_set_comment_review_status_response.rb +lib/fastcomments-client/models/post_set_comment_spam_status_response.rb +lib/fastcomments-client/models/post_set_comment_text_response.rb +lib/fastcomments-client/models/post_un_flag_comment_response.rb +lib/fastcomments-client/models/post_vote_response.rb lib/fastcomments-client/models/pre_ban_summary.rb lib/fastcomments-client/models/pub_sub_comment.rb lib/fastcomments-client/models/pub_sub_comment_base.rb @@ -653,7 +973,11 @@ lib/fastcomments-client/models/public_comment_base.rb lib/fastcomments-client/models/public_feed_posts_response.rb lib/fastcomments-client/models/public_page.rb lib/fastcomments-client/models/public_vote.rb +lib/fastcomments-client/models/put_award_badge_response.rb +lib/fastcomments-client/models/put_close_thread_response.rb lib/fastcomments-client/models/put_domain_config_response.rb +lib/fastcomments-client/models/put_remove_badge_response.rb +lib/fastcomments-client/models/put_reopen_thread_response.rb lib/fastcomments-client/models/put_sso_user_api_response.rb lib/fastcomments-client/models/query_predicate.rb lib/fastcomments-client/models/query_predicate_value.rb @@ -666,28 +990,40 @@ lib/fastcomments-client/models/question_result_aggregation_overall.rb lib/fastcomments-client/models/question_sub_question_visibility.rb lib/fastcomments-client/models/question_when_save.rb lib/fastcomments-client/models/react_body_params.rb +lib/fastcomments-client/models/react_feed_post_public_response.rb lib/fastcomments-client/models/react_feed_post_response.rb lib/fastcomments-client/models/record_string_before_string_or_null_after_string_or_null_value.rb lib/fastcomments-client/models/remove_comment_action_response.rb lib/fastcomments-client/models/remove_user_badge_response.rb lib/fastcomments-client/models/render_email_template_body.rb lib/fastcomments-client/models/render_email_template_response.rb +lib/fastcomments-client/models/render_email_template_response1.rb lib/fastcomments-client/models/renderable_user_notification.rb lib/fastcomments-client/models/repeat_comment_check_ignored_reason.rb lib/fastcomments-client/models/repeat_comment_handling_action.rb lib/fastcomments-client/models/replace_tenant_package_body.rb +lib/fastcomments-client/models/replace_tenant_package_response.rb lib/fastcomments-client/models/replace_tenant_user_body.rb +lib/fastcomments-client/models/replace_tenant_user_response.rb +lib/fastcomments-client/models/reset_user_notification_count_response.rb lib/fastcomments-client/models/reset_user_notifications_response.rb +lib/fastcomments-client/models/reset_user_notifications_response1.rb +lib/fastcomments-client/models/save_comment_response.rb lib/fastcomments-client/models/save_comment_response_optimized.rb lib/fastcomments-client/models/save_comments_bulk_response.rb lib/fastcomments-client/models/save_comments_response_with_presence.rb lib/fastcomments-client/models/search_users_response.rb +lib/fastcomments-client/models/search_users_response1.rb lib/fastcomments-client/models/search_users_result.rb lib/fastcomments-client/models/search_users_sectioned_response.rb +lib/fastcomments-client/models/send_invite_response.rb +lib/fastcomments-client/models/send_login_link_response.rb lib/fastcomments-client/models/set_comment_approved_response.rb lib/fastcomments-client/models/set_comment_text_params.rb lib/fastcomments-client/models/set_comment_text_response.rb +lib/fastcomments-client/models/set_comment_text_response1.rb lib/fastcomments-client/models/set_comment_text_result.rb +lib/fastcomments-client/models/set_trust_factor_response.rb lib/fastcomments-client/models/set_user_trust_factor_response.rb lib/fastcomments-client/models/size_preset.rb lib/fastcomments-client/models/sort_directions.rb @@ -698,26 +1034,43 @@ lib/fastcomments-client/models/tenant_badge.rb lib/fastcomments-client/models/tenant_hash_tag.rb lib/fastcomments-client/models/tenant_package.rb lib/fastcomments-client/models/tos_config.rb +lib/fastcomments-client/models/un_block_comment_public_response.rb lib/fastcomments-client/models/un_block_from_comment_params.rb +lib/fastcomments-client/models/un_block_user_from_comment_response.rb +lib/fastcomments-client/models/un_flag_comment_response.rb +lib/fastcomments-client/models/un_lock_comment_response.rb +lib/fastcomments-client/models/un_pin_comment_response.rb lib/fastcomments-client/models/unblock_success.rb lib/fastcomments-client/models/updatable_comment_params.rb lib/fastcomments-client/models/update_api_page_data.rb lib/fastcomments-client/models/update_api_user_subscription_data.rb lib/fastcomments-client/models/update_apisso_user_data.rb +lib/fastcomments-client/models/update_comment_response.rb lib/fastcomments-client/models/update_domain_config_params.rb lib/fastcomments-client/models/update_email_template_body.rb +lib/fastcomments-client/models/update_email_template_response.rb lib/fastcomments-client/models/update_feed_post_params.rb +lib/fastcomments-client/models/update_feed_post_public_response.rb +lib/fastcomments-client/models/update_feed_post_response.rb lib/fastcomments-client/models/update_hash_tag_body.rb lib/fastcomments-client/models/update_hash_tag_response.rb lib/fastcomments-client/models/update_moderator_body.rb +lib/fastcomments-client/models/update_moderator_response.rb lib/fastcomments-client/models/update_notification_body.rb +lib/fastcomments-client/models/update_notification_response.rb lib/fastcomments-client/models/update_question_config_body.rb +lib/fastcomments-client/models/update_question_config_response.rb lib/fastcomments-client/models/update_question_result_body.rb +lib/fastcomments-client/models/update_question_result_response.rb lib/fastcomments-client/models/update_subscription_api_response.rb lib/fastcomments-client/models/update_tenant_body.rb lib/fastcomments-client/models/update_tenant_package_body.rb +lib/fastcomments-client/models/update_tenant_package_response.rb +lib/fastcomments-client/models/update_tenant_response.rb lib/fastcomments-client/models/update_tenant_user_body.rb +lib/fastcomments-client/models/update_tenant_user_response.rb lib/fastcomments-client/models/update_user_badge_params.rb +lib/fastcomments-client/models/update_user_badge_response.rb lib/fastcomments-client/models/update_user_notification_comment_subscription_status_response.rb lib/fastcomments-client/models/update_user_notification_page_subscription_status_response.rb lib/fastcomments-client/models/update_user_notification_status_response.rb @@ -736,9 +1089,9 @@ lib/fastcomments-client/models/user_search_section_result.rb lib/fastcomments-client/models/user_session_info.rb lib/fastcomments-client/models/users_list_location.rb lib/fastcomments-client/models/vote_body_params.rb +lib/fastcomments-client/models/vote_comment_response.rb lib/fastcomments-client/models/vote_delete_response.rb lib/fastcomments-client/models/vote_response.rb -lib/fastcomments-client/models/vote_response_status.rb lib/fastcomments-client/models/vote_response_user.rb lib/fastcomments-client/models/vote_style.rb lib/fastcomments-client/version.rb @@ -748,10 +1101,13 @@ spec/api/public_api_spec.rb spec/models/add_domain_config_params_spec.rb spec/models/add_domain_config_response_any_of_spec.rb spec/models/add_domain_config_response_spec.rb +spec/models/add_hash_tag_response_spec.rb +spec/models/add_hash_tags_bulk_response_spec.rb spec/models/add_page_api_response_spec.rb spec/models/add_sso_user_api_response_spec.rb spec/models/adjust_comment_votes_params_spec.rb spec/models/adjust_votes_response_spec.rb +spec/models/aggregate_question_results_response1_spec.rb spec/models/aggregate_question_results_response_spec.rb spec/models/aggregate_response_spec.rb spec/models/aggregate_time_bucket_spec.rb @@ -804,11 +1160,14 @@ spec/models/banned_user_match_spec.rb spec/models/banned_user_match_type_spec.rb spec/models/billing_info_spec.rb spec/models/block_from_comment_params_spec.rb +spec/models/block_from_comment_public_response_spec.rb spec/models/block_success_spec.rb +spec/models/block_user_from_comment_response_spec.rb spec/models/build_moderation_filter_params_spec.rb spec/models/build_moderation_filter_response_spec.rb spec/models/bulk_aggregate_question_item_spec.rb spec/models/bulk_aggregate_question_results_request_spec.rb +spec/models/bulk_aggregate_question_results_response1_spec.rb spec/models/bulk_aggregate_question_results_response_spec.rb spec/models/bulk_create_hash_tags_body_spec.rb spec/models/bulk_create_hash_tags_body_tags_inner_spec.rb @@ -818,8 +1177,11 @@ spec/models/bulk_pre_ban_params_spec.rb spec/models/bulk_pre_ban_summary_spec.rb spec/models/change_comment_pin_status_response_spec.rb spec/models/change_ticket_state_body_spec.rb +spec/models/change_ticket_state_response1_spec.rb spec/models/change_ticket_state_response_spec.rb spec/models/check_blocked_comments_response_spec.rb +spec/models/checked_comments_for_blocked_response_spec.rb +spec/models/combine_comments_with_question_results_response_spec.rb spec/models/combine_question_results_with_comments_response_spec.rb spec/models/comment_data_spec.rb spec/models/comment_html_rendering_mode_spec.rb @@ -839,40 +1201,75 @@ spec/models/create_api_page_data_spec.rb spec/models/create_api_user_subscription_data_spec.rb spec/models/create_apisso_user_data_spec.rb spec/models/create_comment_params_spec.rb +spec/models/create_comment_public_response_spec.rb spec/models/create_email_template_body_spec.rb +spec/models/create_email_template_response1_spec.rb spec/models/create_email_template_response_spec.rb spec/models/create_feed_post_params_spec.rb +spec/models/create_feed_post_public_response_spec.rb +spec/models/create_feed_post_response1_spec.rb spec/models/create_feed_post_response_spec.rb spec/models/create_feed_posts_response_spec.rb spec/models/create_hash_tag_body_spec.rb spec/models/create_hash_tag_response_spec.rb spec/models/create_moderator_body_spec.rb +spec/models/create_moderator_response1_spec.rb spec/models/create_moderator_response_spec.rb spec/models/create_question_config_body_spec.rb +spec/models/create_question_config_response1_spec.rb spec/models/create_question_config_response_spec.rb spec/models/create_question_result_body_spec.rb +spec/models/create_question_result_response1_spec.rb spec/models/create_question_result_response_spec.rb spec/models/create_subscription_api_response_spec.rb spec/models/create_tenant_body_spec.rb spec/models/create_tenant_package_body_spec.rb +spec/models/create_tenant_package_response1_spec.rb spec/models/create_tenant_package_response_spec.rb +spec/models/create_tenant_response1_spec.rb spec/models/create_tenant_response_spec.rb spec/models/create_tenant_user_body_spec.rb +spec/models/create_tenant_user_response1_spec.rb spec/models/create_tenant_user_response_spec.rb spec/models/create_ticket_body_spec.rb +spec/models/create_ticket_response1_spec.rb spec/models/create_ticket_response_spec.rb spec/models/create_user_badge_params_spec.rb +spec/models/create_user_badge_response_spec.rb +spec/models/create_v1_page_react_response_spec.rb spec/models/create_v1_page_react_spec.rb +spec/models/create_v2_page_react_response_spec.rb +spec/models/create_vote_response_spec.rb spec/models/custom_config_parameters_spec.rb spec/models/custom_email_template_spec.rb spec/models/delete_comment_action_spec.rb +spec/models/delete_comment_public_response_spec.rb +spec/models/delete_comment_response_spec.rb spec/models/delete_comment_result_spec.rb +spec/models/delete_comment_vote_response_spec.rb spec/models/delete_domain_config_response_spec.rb +spec/models/delete_email_template_render_error_response_spec.rb +spec/models/delete_email_template_response_spec.rb +spec/models/delete_feed_post_public_response_any_of_spec.rb spec/models/delete_feed_post_public_response_spec.rb spec/models/delete_hash_tag_request_body_spec.rb +spec/models/delete_hash_tag_response_spec.rb +spec/models/delete_moderation_vote_response_spec.rb +spec/models/delete_moderator_response_spec.rb +spec/models/delete_notification_count_response_spec.rb spec/models/delete_page_api_response_spec.rb +spec/models/delete_pending_webhook_event_response_spec.rb +spec/models/delete_question_config_response_spec.rb +spec/models/delete_question_result_response_spec.rb spec/models/delete_sso_user_api_response_spec.rb spec/models/delete_subscription_api_response_spec.rb +spec/models/delete_tenant_package_response_spec.rb +spec/models/delete_tenant_response_spec.rb +spec/models/delete_tenant_user_response_spec.rb +spec/models/delete_user_badge_response_spec.rb +spec/models/delete_v1_page_react_response_spec.rb +spec/models/delete_v2_page_react_response_spec.rb +spec/models/delete_vote_response_spec.rb spec/models/deleted_comment_result_comment_spec.rb spec/models/digest_email_frequency_spec.rb spec/models/email_template_definition_spec.rb @@ -888,71 +1285,153 @@ spec/models/feed_post_stats_spec.rb spec/models/feed_posts_stats_response_spec.rb spec/models/find_comments_by_range_item_spec.rb spec/models/find_comments_by_range_response_spec.rb +spec/models/flag_comment_public_response_spec.rb +spec/models/flag_comment_response1_spec.rb spec/models/flag_comment_response_spec.rb +spec/models/get_api_comments_response_spec.rb +spec/models/get_api_export_status_response_spec.rb +spec/models/get_api_ids_response_spec.rb +spec/models/get_audit_logs_response1_spec.rb spec/models/get_audit_logs_response_spec.rb +spec/models/get_ban_users_from_comment_response_spec.rb spec/models/get_banned_users_count_response_spec.rb spec/models/get_banned_users_from_comment_response_spec.rb +spec/models/get_cached_notification_count_response1_spec.rb spec/models/get_cached_notification_count_response_spec.rb +spec/models/get_comment_ban_status_response1_spec.rb spec/models/get_comment_ban_status_response_spec.rb +spec/models/get_comment_children_response_spec.rb +spec/models/get_comment_response_spec.rb +spec/models/get_comment_text_response1_spec.rb spec/models/get_comment_text_response_spec.rb +spec/models/get_comment_vote_user_names_response_spec.rb spec/models/get_comment_vote_user_names_success_response_spec.rb +spec/models/get_comments_for_user_response1_spec.rb spec/models/get_comments_for_user_response_spec.rb +spec/models/get_comments_public_response_spec.rb spec/models/get_comments_response_public_comment_spec.rb +spec/models/get_comments_response_spec.rb spec/models/get_comments_response_with_presence_public_comment_spec.rb +spec/models/get_count_response_spec.rb +spec/models/get_counts_response_spec.rb spec/models/get_domain_config_response_spec.rb spec/models/get_domain_configs_response_any_of1_spec.rb spec/models/get_domain_configs_response_any_of_spec.rb spec/models/get_domain_configs_response_spec.rb +spec/models/get_email_template_definitions_response1_spec.rb spec/models/get_email_template_definitions_response_spec.rb +spec/models/get_email_template_render_errors_response1_spec.rb spec/models/get_email_template_render_errors_response_spec.rb +spec/models/get_email_template_response1_spec.rb spec/models/get_email_template_response_spec.rb +spec/models/get_email_templates_response1_spec.rb spec/models/get_email_templates_response_spec.rb +spec/models/get_event_log_response1_spec.rb spec/models/get_event_log_response_spec.rb +spec/models/get_feed_posts_public_response_spec.rb +spec/models/get_feed_posts_response1_spec.rb spec/models/get_feed_posts_response_spec.rb +spec/models/get_feed_posts_stats_response_spec.rb +spec/models/get_gif_large_response_spec.rb spec/models/get_gifs_search_response_spec.rb spec/models/get_gifs_trending_response_spec.rb +spec/models/get_global_event_log_response_spec.rb +spec/models/get_hash_tags_response1_spec.rb spec/models/get_hash_tags_response_spec.rb +spec/models/get_logs_response_spec.rb +spec/models/get_manual_badges_for_user_response_spec.rb +spec/models/get_manual_badges_response_spec.rb +spec/models/get_moderation_comment_response_spec.rb +spec/models/get_moderation_comment_text_response_spec.rb +spec/models/get_moderator_response1_spec.rb spec/models/get_moderator_response_spec.rb +spec/models/get_moderators_response1_spec.rb spec/models/get_moderators_response_spec.rb spec/models/get_my_notifications_response_spec.rb +spec/models/get_notification_count_response1_spec.rb spec/models/get_notification_count_response_spec.rb +spec/models/get_notifications_response1_spec.rb spec/models/get_notifications_response_spec.rb +spec/models/get_offline_users_response_spec.rb +spec/models/get_online_users_response_spec.rb spec/models/get_page_by_urlid_api_response_spec.rb spec/models/get_pages_api_response_spec.rb +spec/models/get_pages_public_response_spec.rb +spec/models/get_pending_webhook_event_count_response1_spec.rb spec/models/get_pending_webhook_event_count_response_spec.rb +spec/models/get_pending_webhook_events_response1_spec.rb spec/models/get_pending_webhook_events_response_spec.rb +spec/models/get_pre_ban_summary_response_spec.rb spec/models/get_public_feed_posts_response_spec.rb spec/models/get_public_pages_response_spec.rb +spec/models/get_question_config_response1_spec.rb spec/models/get_question_config_response_spec.rb +spec/models/get_question_configs_response1_spec.rb spec/models/get_question_configs_response_spec.rb +spec/models/get_question_result_response1_spec.rb spec/models/get_question_result_response_spec.rb +spec/models/get_question_results_response1_spec.rb spec/models/get_question_results_response_spec.rb +spec/models/get_search_comments_summary_response_spec.rb +spec/models/get_search_pages_response_spec.rb +spec/models/get_search_sites_response_spec.rb +spec/models/get_search_suggest_response_spec.rb +spec/models/get_search_users_response_spec.rb spec/models/get_sso_user_by_email_api_response_spec.rb spec/models/get_sso_user_by_id_api_response_spec.rb spec/models/get_sso_users_response_spec.rb spec/models/get_subscriptions_api_response_spec.rb +spec/models/get_tenant_daily_usages_response1_spec.rb spec/models/get_tenant_daily_usages_response_spec.rb spec/models/get_tenant_manual_badges_response_spec.rb +spec/models/get_tenant_package_response1_spec.rb spec/models/get_tenant_package_response_spec.rb +spec/models/get_tenant_packages_response1_spec.rb spec/models/get_tenant_packages_response_spec.rb +spec/models/get_tenant_response1_spec.rb spec/models/get_tenant_response_spec.rb +spec/models/get_tenant_user_response1_spec.rb spec/models/get_tenant_user_response_spec.rb +spec/models/get_tenant_users_response1_spec.rb spec/models/get_tenant_users_response_spec.rb +spec/models/get_tenants_response1_spec.rb spec/models/get_tenants_response_spec.rb +spec/models/get_ticket_response1_spec.rb spec/models/get_ticket_response_spec.rb +spec/models/get_tickets_response1_spec.rb spec/models/get_tickets_response_spec.rb +spec/models/get_translations_response1_spec.rb spec/models/get_translations_response_spec.rb +spec/models/get_trust_factor_response_spec.rb +spec/models/get_user_badge_progress_by_id_response_spec.rb +spec/models/get_user_badge_progress_by_user_id_response_spec.rb +spec/models/get_user_badge_progress_list_response_spec.rb +spec/models/get_user_badge_response_spec.rb +spec/models/get_user_badges_response_spec.rb +spec/models/get_user_ban_preference_response_spec.rb +spec/models/get_user_internal_profile_response1_spec.rb spec/models/get_user_internal_profile_response_profile_spec.rb spec/models/get_user_internal_profile_response_spec.rb spec/models/get_user_manual_badges_response_spec.rb +spec/models/get_user_notification_count_response1_spec.rb spec/models/get_user_notification_count_response_spec.rb +spec/models/get_user_notifications_response_spec.rb +spec/models/get_user_presence_statuses_response1_spec.rb spec/models/get_user_presence_statuses_response_spec.rb +spec/models/get_user_reacts_public_response_spec.rb +spec/models/get_user_response1_spec.rb spec/models/get_user_response_spec.rb spec/models/get_user_trust_factor_response_spec.rb +spec/models/get_users_info_response_spec.rb +spec/models/get_v1_page_likes_response_spec.rb spec/models/get_v1_page_likes_spec.rb +spec/models/get_v2_page_react_users_response1_spec.rb spec/models/get_v2_page_react_users_response_spec.rb +spec/models/get_v2_page_reacts_response_spec.rb spec/models/get_v2_page_reacts_spec.rb +spec/models/get_votes_for_user_response1_spec.rb spec/models/get_votes_for_user_response_spec.rb +spec/models/get_votes_response1_spec.rb spec/models/get_votes_response_spec.rb spec/models/gif_get_large_response_spec.rb spec/models/gif_rating_spec.rb @@ -968,6 +1447,7 @@ spec/models/imported_site_type_spec.rb spec/models/live_event_extra_info_spec.rb spec/models/live_event_spec.rb spec/models/live_event_type_spec.rb +spec/models/lock_comment_response_spec.rb spec/models/media_asset_spec.rb spec/models/mention_auto_complete_mode_spec.rb spec/models/meta_item_spec.rb @@ -1001,10 +1481,26 @@ spec/models/page_users_online_response_spec.rb spec/models/pages_sort_by_spec.rb spec/models/patch_domain_config_params_spec.rb spec/models/patch_domain_config_response_spec.rb +spec/models/patch_hash_tag_response_spec.rb spec/models/patch_page_api_response_spec.rb spec/models/patch_sso_user_api_response_spec.rb spec/models/pending_comment_to_sync_outbound_spec.rb +spec/models/pin_comment_response_spec.rb +spec/models/post_adjust_comment_votes_response_spec.rb +spec/models/post_api_export_response_spec.rb +spec/models/post_ban_user_from_comment_response_spec.rb +spec/models/post_ban_user_undo_response_spec.rb +spec/models/post_bulk_pre_ban_summary_response_spec.rb +spec/models/post_comments_by_ids_response_spec.rb +spec/models/post_flag_comment_response_spec.rb spec/models/post_remove_comment_response_spec.rb +spec/models/post_restore_deleted_comment_response_spec.rb +spec/models/post_set_comment_approval_status_response_spec.rb +spec/models/post_set_comment_review_status_response_spec.rb +spec/models/post_set_comment_spam_status_response_spec.rb +spec/models/post_set_comment_text_response_spec.rb +spec/models/post_un_flag_comment_response_spec.rb +spec/models/post_vote_response_spec.rb spec/models/pre_ban_summary_spec.rb spec/models/pub_sub_comment_base_spec.rb spec/models/pub_sub_comment_spec.rb @@ -1018,7 +1514,11 @@ spec/models/public_comment_spec.rb spec/models/public_feed_posts_response_spec.rb spec/models/public_page_spec.rb spec/models/public_vote_spec.rb +spec/models/put_award_badge_response_spec.rb +spec/models/put_close_thread_response_spec.rb spec/models/put_domain_config_response_spec.rb +spec/models/put_remove_badge_response_spec.rb +spec/models/put_reopen_thread_response_spec.rb spec/models/put_sso_user_api_response_spec.rb spec/models/query_predicate_spec.rb spec/models/query_predicate_value_spec.rb @@ -1031,28 +1531,40 @@ spec/models/question_result_spec.rb spec/models/question_sub_question_visibility_spec.rb spec/models/question_when_save_spec.rb spec/models/react_body_params_spec.rb +spec/models/react_feed_post_public_response_spec.rb spec/models/react_feed_post_response_spec.rb spec/models/record_string_before_string_or_null_after_string_or_null_value_spec.rb spec/models/remove_comment_action_response_spec.rb spec/models/remove_user_badge_response_spec.rb spec/models/render_email_template_body_spec.rb +spec/models/render_email_template_response1_spec.rb spec/models/render_email_template_response_spec.rb spec/models/renderable_user_notification_spec.rb spec/models/repeat_comment_check_ignored_reason_spec.rb spec/models/repeat_comment_handling_action_spec.rb spec/models/replace_tenant_package_body_spec.rb +spec/models/replace_tenant_package_response_spec.rb spec/models/replace_tenant_user_body_spec.rb +spec/models/replace_tenant_user_response_spec.rb +spec/models/reset_user_notification_count_response_spec.rb +spec/models/reset_user_notifications_response1_spec.rb spec/models/reset_user_notifications_response_spec.rb spec/models/save_comment_response_optimized_spec.rb +spec/models/save_comment_response_spec.rb spec/models/save_comments_bulk_response_spec.rb spec/models/save_comments_response_with_presence_spec.rb +spec/models/search_users_response1_spec.rb spec/models/search_users_response_spec.rb spec/models/search_users_result_spec.rb spec/models/search_users_sectioned_response_spec.rb +spec/models/send_invite_response_spec.rb +spec/models/send_login_link_response_spec.rb spec/models/set_comment_approved_response_spec.rb spec/models/set_comment_text_params_spec.rb +spec/models/set_comment_text_response1_spec.rb spec/models/set_comment_text_response_spec.rb spec/models/set_comment_text_result_spec.rb +spec/models/set_trust_factor_response_spec.rb spec/models/set_user_trust_factor_response_spec.rb spec/models/size_preset_spec.rb spec/models/sort_directions_spec.rb @@ -1063,26 +1575,43 @@ spec/models/tenant_badge_spec.rb spec/models/tenant_hash_tag_spec.rb spec/models/tenant_package_spec.rb spec/models/tos_config_spec.rb +spec/models/un_block_comment_public_response_spec.rb spec/models/un_block_from_comment_params_spec.rb +spec/models/un_block_user_from_comment_response_spec.rb +spec/models/un_flag_comment_response_spec.rb +spec/models/un_lock_comment_response_spec.rb +spec/models/un_pin_comment_response_spec.rb spec/models/unblock_success_spec.rb spec/models/updatable_comment_params_spec.rb spec/models/update_api_page_data_spec.rb spec/models/update_api_user_subscription_data_spec.rb spec/models/update_apisso_user_data_spec.rb +spec/models/update_comment_response_spec.rb spec/models/update_domain_config_params_spec.rb spec/models/update_email_template_body_spec.rb +spec/models/update_email_template_response_spec.rb spec/models/update_feed_post_params_spec.rb +spec/models/update_feed_post_public_response_spec.rb +spec/models/update_feed_post_response_spec.rb spec/models/update_hash_tag_body_spec.rb spec/models/update_hash_tag_response_spec.rb spec/models/update_moderator_body_spec.rb +spec/models/update_moderator_response_spec.rb spec/models/update_notification_body_spec.rb +spec/models/update_notification_response_spec.rb spec/models/update_question_config_body_spec.rb +spec/models/update_question_config_response_spec.rb spec/models/update_question_result_body_spec.rb +spec/models/update_question_result_response_spec.rb spec/models/update_subscription_api_response_spec.rb spec/models/update_tenant_body_spec.rb spec/models/update_tenant_package_body_spec.rb +spec/models/update_tenant_package_response_spec.rb +spec/models/update_tenant_response_spec.rb spec/models/update_tenant_user_body_spec.rb +spec/models/update_tenant_user_response_spec.rb spec/models/update_user_badge_params_spec.rb +spec/models/update_user_badge_response_spec.rb spec/models/update_user_notification_comment_subscription_status_response_spec.rb spec/models/update_user_notification_page_subscription_status_response_spec.rb spec/models/update_user_notification_status_response_spec.rb @@ -1101,9 +1630,9 @@ spec/models/user_session_info_spec.rb spec/models/user_spec.rb spec/models/users_list_location_spec.rb spec/models/vote_body_params_spec.rb +spec/models/vote_comment_response_spec.rb spec/models/vote_delete_response_spec.rb spec/models/vote_response_spec.rb -spec/models/vote_response_status_spec.rb spec/models/vote_response_user_spec.rb spec/models/vote_style_spec.rb spec/spec_helper.rb diff --git a/client/.openapi-generator/VERSION b/client/.openapi-generator/VERSION index e465da4..ca7bf6e 100644 --- a/client/.openapi-generator/VERSION +++ b/client/.openapi-generator/VERSION @@ -1 +1 @@ -7.14.0 +7.23.0-SNAPSHOT diff --git a/client/.travis.yml b/client/.travis.yml index a643c47..28cbf39 100644 --- a/client/.travis.yml +++ b/client/.travis.yml @@ -8,4 +8,4 @@ script: - bundle install --path vendor/bundle - bundle exec rspec - gem build fastcomments-client.gemspec - - gem install ./fastcomments-client-1.2.1.gem + - gem install ./fastcomments-client-2.0.0.gem diff --git a/client/README.md b/client/README.md index f05866d..98ead94 100644 --- a/client/README.md +++ b/client/README.md @@ -7,8 +7,8 @@ No description provided (generated by Openapi Generator https://github.com/opena This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 0.0.0 -- Package version: 1.2.1 -- Generator version: 7.14.0 +- Package version: 2.0.0 +- Generator version: 7.23.0-SNAPSHOT - Build package: org.openapitools.codegen.languages.RubyClientCodegen ## Installation @@ -24,16 +24,16 @@ gem build fastcomments-client.gemspec Then either install the gem locally: ```shell -gem install ./fastcomments-client-1.2.1.gem +gem install ./fastcomments-client-2.0.0.gem ``` -(for development, run `gem install --dev ./fastcomments-client-1.2.1.gem` to install the development dependencies) +(for development, run `gem install --dev ./fastcomments-client-2.0.0.gem` to install the development dependencies) or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/). Finally add this to the Gemfile: - gem 'fastcomments-client', '~> 1.2.1' + gem 'fastcomments-client', '~> 2.0.0' ### Install from Git @@ -332,11 +332,14 @@ Class | Method | HTTP request | Description - [FastCommentsClient::AddDomainConfigParams](docs/AddDomainConfigParams.md) - [FastCommentsClient::AddDomainConfigResponse](docs/AddDomainConfigResponse.md) - [FastCommentsClient::AddDomainConfigResponseAnyOf](docs/AddDomainConfigResponseAnyOf.md) + - [FastCommentsClient::AddHashTagResponse](docs/AddHashTagResponse.md) + - [FastCommentsClient::AddHashTagsBulkResponse](docs/AddHashTagsBulkResponse.md) - [FastCommentsClient::AddPageAPIResponse](docs/AddPageAPIResponse.md) - [FastCommentsClient::AddSSOUserAPIResponse](docs/AddSSOUserAPIResponse.md) - [FastCommentsClient::AdjustCommentVotesParams](docs/AdjustCommentVotesParams.md) - [FastCommentsClient::AdjustVotesResponse](docs/AdjustVotesResponse.md) - [FastCommentsClient::AggregateQuestionResultsResponse](docs/AggregateQuestionResultsResponse.md) + - [FastCommentsClient::AggregateQuestionResultsResponse1](docs/AggregateQuestionResultsResponse1.md) - [FastCommentsClient::AggregateResponse](docs/AggregateResponse.md) - [FastCommentsClient::AggregateTimeBucket](docs/AggregateTimeBucket.md) - [FastCommentsClient::AggregationAPIError](docs/AggregationAPIError.md) @@ -356,12 +359,15 @@ Class | Method | HTTP request | Description - [FastCommentsClient::BannedUserMatchType](docs/BannedUserMatchType.md) - [FastCommentsClient::BillingInfo](docs/BillingInfo.md) - [FastCommentsClient::BlockFromCommentParams](docs/BlockFromCommentParams.md) + - [FastCommentsClient::BlockFromCommentPublicResponse](docs/BlockFromCommentPublicResponse.md) - [FastCommentsClient::BlockSuccess](docs/BlockSuccess.md) + - [FastCommentsClient::BlockUserFromCommentResponse](docs/BlockUserFromCommentResponse.md) - [FastCommentsClient::BuildModerationFilterParams](docs/BuildModerationFilterParams.md) - [FastCommentsClient::BuildModerationFilterResponse](docs/BuildModerationFilterResponse.md) - [FastCommentsClient::BulkAggregateQuestionItem](docs/BulkAggregateQuestionItem.md) - [FastCommentsClient::BulkAggregateQuestionResultsRequest](docs/BulkAggregateQuestionResultsRequest.md) - [FastCommentsClient::BulkAggregateQuestionResultsResponse](docs/BulkAggregateQuestionResultsResponse.md) + - [FastCommentsClient::BulkAggregateQuestionResultsResponse1](docs/BulkAggregateQuestionResultsResponse1.md) - [FastCommentsClient::BulkCreateHashTagsBody](docs/BulkCreateHashTagsBody.md) - [FastCommentsClient::BulkCreateHashTagsBodyTagsInner](docs/BulkCreateHashTagsBodyTagsInner.md) - [FastCommentsClient::BulkCreateHashTagsResponse](docs/BulkCreateHashTagsResponse.md) @@ -371,7 +377,10 @@ Class | Method | HTTP request | Description - [FastCommentsClient::ChangeCommentPinStatusResponse](docs/ChangeCommentPinStatusResponse.md) - [FastCommentsClient::ChangeTicketStateBody](docs/ChangeTicketStateBody.md) - [FastCommentsClient::ChangeTicketStateResponse](docs/ChangeTicketStateResponse.md) + - [FastCommentsClient::ChangeTicketStateResponse1](docs/ChangeTicketStateResponse1.md) - [FastCommentsClient::CheckBlockedCommentsResponse](docs/CheckBlockedCommentsResponse.md) + - [FastCommentsClient::CheckedCommentsForBlockedResponse](docs/CheckedCommentsForBlockedResponse.md) + - [FastCommentsClient::CombineCommentsWithQuestionResultsResponse](docs/CombineCommentsWithQuestionResultsResponse.md) - [FastCommentsClient::CombineQuestionResultsWithCommentsResponse](docs/CombineQuestionResultsWithCommentsResponse.md) - [FastCommentsClient::CommentData](docs/CommentData.md) - [FastCommentsClient::CommentHTMLRenderingMode](docs/CommentHTMLRenderingMode.md) @@ -391,40 +400,75 @@ Class | Method | HTTP request | Description - [FastCommentsClient::CreateAPISSOUserData](docs/CreateAPISSOUserData.md) - [FastCommentsClient::CreateAPIUserSubscriptionData](docs/CreateAPIUserSubscriptionData.md) - [FastCommentsClient::CreateCommentParams](docs/CreateCommentParams.md) + - [FastCommentsClient::CreateCommentPublicResponse](docs/CreateCommentPublicResponse.md) - [FastCommentsClient::CreateEmailTemplateBody](docs/CreateEmailTemplateBody.md) - [FastCommentsClient::CreateEmailTemplateResponse](docs/CreateEmailTemplateResponse.md) + - [FastCommentsClient::CreateEmailTemplateResponse1](docs/CreateEmailTemplateResponse1.md) - [FastCommentsClient::CreateFeedPostParams](docs/CreateFeedPostParams.md) + - [FastCommentsClient::CreateFeedPostPublicResponse](docs/CreateFeedPostPublicResponse.md) - [FastCommentsClient::CreateFeedPostResponse](docs/CreateFeedPostResponse.md) + - [FastCommentsClient::CreateFeedPostResponse1](docs/CreateFeedPostResponse1.md) - [FastCommentsClient::CreateFeedPostsResponse](docs/CreateFeedPostsResponse.md) - [FastCommentsClient::CreateHashTagBody](docs/CreateHashTagBody.md) - [FastCommentsClient::CreateHashTagResponse](docs/CreateHashTagResponse.md) - [FastCommentsClient::CreateModeratorBody](docs/CreateModeratorBody.md) - [FastCommentsClient::CreateModeratorResponse](docs/CreateModeratorResponse.md) + - [FastCommentsClient::CreateModeratorResponse1](docs/CreateModeratorResponse1.md) - [FastCommentsClient::CreateQuestionConfigBody](docs/CreateQuestionConfigBody.md) - [FastCommentsClient::CreateQuestionConfigResponse](docs/CreateQuestionConfigResponse.md) + - [FastCommentsClient::CreateQuestionConfigResponse1](docs/CreateQuestionConfigResponse1.md) - [FastCommentsClient::CreateQuestionResultBody](docs/CreateQuestionResultBody.md) - [FastCommentsClient::CreateQuestionResultResponse](docs/CreateQuestionResultResponse.md) + - [FastCommentsClient::CreateQuestionResultResponse1](docs/CreateQuestionResultResponse1.md) - [FastCommentsClient::CreateSubscriptionAPIResponse](docs/CreateSubscriptionAPIResponse.md) - [FastCommentsClient::CreateTenantBody](docs/CreateTenantBody.md) - [FastCommentsClient::CreateTenantPackageBody](docs/CreateTenantPackageBody.md) - [FastCommentsClient::CreateTenantPackageResponse](docs/CreateTenantPackageResponse.md) + - [FastCommentsClient::CreateTenantPackageResponse1](docs/CreateTenantPackageResponse1.md) - [FastCommentsClient::CreateTenantResponse](docs/CreateTenantResponse.md) + - [FastCommentsClient::CreateTenantResponse1](docs/CreateTenantResponse1.md) - [FastCommentsClient::CreateTenantUserBody](docs/CreateTenantUserBody.md) - [FastCommentsClient::CreateTenantUserResponse](docs/CreateTenantUserResponse.md) + - [FastCommentsClient::CreateTenantUserResponse1](docs/CreateTenantUserResponse1.md) - [FastCommentsClient::CreateTicketBody](docs/CreateTicketBody.md) - [FastCommentsClient::CreateTicketResponse](docs/CreateTicketResponse.md) + - [FastCommentsClient::CreateTicketResponse1](docs/CreateTicketResponse1.md) - [FastCommentsClient::CreateUserBadgeParams](docs/CreateUserBadgeParams.md) + - [FastCommentsClient::CreateUserBadgeResponse](docs/CreateUserBadgeResponse.md) - [FastCommentsClient::CreateV1PageReact](docs/CreateV1PageReact.md) + - [FastCommentsClient::CreateV1PageReactResponse](docs/CreateV1PageReactResponse.md) + - [FastCommentsClient::CreateV2PageReactResponse](docs/CreateV2PageReactResponse.md) + - [FastCommentsClient::CreateVoteResponse](docs/CreateVoteResponse.md) - [FastCommentsClient::CustomConfigParameters](docs/CustomConfigParameters.md) - [FastCommentsClient::CustomEmailTemplate](docs/CustomEmailTemplate.md) - [FastCommentsClient::DeleteCommentAction](docs/DeleteCommentAction.md) + - [FastCommentsClient::DeleteCommentPublicResponse](docs/DeleteCommentPublicResponse.md) + - [FastCommentsClient::DeleteCommentResponse](docs/DeleteCommentResponse.md) - [FastCommentsClient::DeleteCommentResult](docs/DeleteCommentResult.md) + - [FastCommentsClient::DeleteCommentVoteResponse](docs/DeleteCommentVoteResponse.md) - [FastCommentsClient::DeleteDomainConfigResponse](docs/DeleteDomainConfigResponse.md) + - [FastCommentsClient::DeleteEmailTemplateRenderErrorResponse](docs/DeleteEmailTemplateRenderErrorResponse.md) + - [FastCommentsClient::DeleteEmailTemplateResponse](docs/DeleteEmailTemplateResponse.md) - [FastCommentsClient::DeleteFeedPostPublicResponse](docs/DeleteFeedPostPublicResponse.md) + - [FastCommentsClient::DeleteFeedPostPublicResponseAnyOf](docs/DeleteFeedPostPublicResponseAnyOf.md) - [FastCommentsClient::DeleteHashTagRequestBody](docs/DeleteHashTagRequestBody.md) + - [FastCommentsClient::DeleteHashTagResponse](docs/DeleteHashTagResponse.md) + - [FastCommentsClient::DeleteModerationVoteResponse](docs/DeleteModerationVoteResponse.md) + - [FastCommentsClient::DeleteModeratorResponse](docs/DeleteModeratorResponse.md) + - [FastCommentsClient::DeleteNotificationCountResponse](docs/DeleteNotificationCountResponse.md) - [FastCommentsClient::DeletePageAPIResponse](docs/DeletePageAPIResponse.md) + - [FastCommentsClient::DeletePendingWebhookEventResponse](docs/DeletePendingWebhookEventResponse.md) + - [FastCommentsClient::DeleteQuestionConfigResponse](docs/DeleteQuestionConfigResponse.md) + - [FastCommentsClient::DeleteQuestionResultResponse](docs/DeleteQuestionResultResponse.md) - [FastCommentsClient::DeleteSSOUserAPIResponse](docs/DeleteSSOUserAPIResponse.md) - [FastCommentsClient::DeleteSubscriptionAPIResponse](docs/DeleteSubscriptionAPIResponse.md) + - [FastCommentsClient::DeleteTenantPackageResponse](docs/DeleteTenantPackageResponse.md) + - [FastCommentsClient::DeleteTenantResponse](docs/DeleteTenantResponse.md) + - [FastCommentsClient::DeleteTenantUserResponse](docs/DeleteTenantUserResponse.md) + - [FastCommentsClient::DeleteUserBadgeResponse](docs/DeleteUserBadgeResponse.md) + - [FastCommentsClient::DeleteV1PageReactResponse](docs/DeleteV1PageReactResponse.md) + - [FastCommentsClient::DeleteV2PageReactResponse](docs/DeleteV2PageReactResponse.md) + - [FastCommentsClient::DeleteVoteResponse](docs/DeleteVoteResponse.md) - [FastCommentsClient::DeletedCommentResultComment](docs/DeletedCommentResultComment.md) - [FastCommentsClient::DigestEmailFrequency](docs/DigestEmailFrequency.md) - [FastCommentsClient::EmailTemplateDefinition](docs/EmailTemplateDefinition.md) @@ -440,72 +484,154 @@ Class | Method | HTTP request | Description - [FastCommentsClient::FeedPostsStatsResponse](docs/FeedPostsStatsResponse.md) - [FastCommentsClient::FindCommentsByRangeItem](docs/FindCommentsByRangeItem.md) - [FastCommentsClient::FindCommentsByRangeResponse](docs/FindCommentsByRangeResponse.md) + - [FastCommentsClient::FlagCommentPublicResponse](docs/FlagCommentPublicResponse.md) - [FastCommentsClient::FlagCommentResponse](docs/FlagCommentResponse.md) + - [FastCommentsClient::FlagCommentResponse1](docs/FlagCommentResponse1.md) + - [FastCommentsClient::GetApiCommentsResponse](docs/GetApiCommentsResponse.md) + - [FastCommentsClient::GetApiExportStatusResponse](docs/GetApiExportStatusResponse.md) + - [FastCommentsClient::GetApiIdsResponse](docs/GetApiIdsResponse.md) - [FastCommentsClient::GetAuditLogsResponse](docs/GetAuditLogsResponse.md) + - [FastCommentsClient::GetAuditLogsResponse1](docs/GetAuditLogsResponse1.md) + - [FastCommentsClient::GetBanUsersFromCommentResponse](docs/GetBanUsersFromCommentResponse.md) - [FastCommentsClient::GetBannedUsersCountResponse](docs/GetBannedUsersCountResponse.md) - [FastCommentsClient::GetBannedUsersFromCommentResponse](docs/GetBannedUsersFromCommentResponse.md) - [FastCommentsClient::GetCachedNotificationCountResponse](docs/GetCachedNotificationCountResponse.md) + - [FastCommentsClient::GetCachedNotificationCountResponse1](docs/GetCachedNotificationCountResponse1.md) - [FastCommentsClient::GetCommentBanStatusResponse](docs/GetCommentBanStatusResponse.md) + - [FastCommentsClient::GetCommentBanStatusResponse1](docs/GetCommentBanStatusResponse1.md) + - [FastCommentsClient::GetCommentChildrenResponse](docs/GetCommentChildrenResponse.md) + - [FastCommentsClient::GetCommentResponse](docs/GetCommentResponse.md) - [FastCommentsClient::GetCommentTextResponse](docs/GetCommentTextResponse.md) + - [FastCommentsClient::GetCommentTextResponse1](docs/GetCommentTextResponse1.md) + - [FastCommentsClient::GetCommentVoteUserNamesResponse](docs/GetCommentVoteUserNamesResponse.md) - [FastCommentsClient::GetCommentVoteUserNamesSuccessResponse](docs/GetCommentVoteUserNamesSuccessResponse.md) - [FastCommentsClient::GetCommentsForUserResponse](docs/GetCommentsForUserResponse.md) + - [FastCommentsClient::GetCommentsForUserResponse1](docs/GetCommentsForUserResponse1.md) + - [FastCommentsClient::GetCommentsPublicResponse](docs/GetCommentsPublicResponse.md) + - [FastCommentsClient::GetCommentsResponse](docs/GetCommentsResponse.md) - [FastCommentsClient::GetCommentsResponsePublicComment](docs/GetCommentsResponsePublicComment.md) - [FastCommentsClient::GetCommentsResponseWithPresencePublicComment](docs/GetCommentsResponseWithPresencePublicComment.md) + - [FastCommentsClient::GetCountResponse](docs/GetCountResponse.md) + - [FastCommentsClient::GetCountsResponse](docs/GetCountsResponse.md) - [FastCommentsClient::GetDomainConfigResponse](docs/GetDomainConfigResponse.md) - [FastCommentsClient::GetDomainConfigsResponse](docs/GetDomainConfigsResponse.md) - [FastCommentsClient::GetDomainConfigsResponseAnyOf](docs/GetDomainConfigsResponseAnyOf.md) - [FastCommentsClient::GetDomainConfigsResponseAnyOf1](docs/GetDomainConfigsResponseAnyOf1.md) - [FastCommentsClient::GetEmailTemplateDefinitionsResponse](docs/GetEmailTemplateDefinitionsResponse.md) + - [FastCommentsClient::GetEmailTemplateDefinitionsResponse1](docs/GetEmailTemplateDefinitionsResponse1.md) - [FastCommentsClient::GetEmailTemplateRenderErrorsResponse](docs/GetEmailTemplateRenderErrorsResponse.md) + - [FastCommentsClient::GetEmailTemplateRenderErrorsResponse1](docs/GetEmailTemplateRenderErrorsResponse1.md) - [FastCommentsClient::GetEmailTemplateResponse](docs/GetEmailTemplateResponse.md) + - [FastCommentsClient::GetEmailTemplateResponse1](docs/GetEmailTemplateResponse1.md) - [FastCommentsClient::GetEmailTemplatesResponse](docs/GetEmailTemplatesResponse.md) + - [FastCommentsClient::GetEmailTemplatesResponse1](docs/GetEmailTemplatesResponse1.md) - [FastCommentsClient::GetEventLogResponse](docs/GetEventLogResponse.md) + - [FastCommentsClient::GetEventLogResponse1](docs/GetEventLogResponse1.md) + - [FastCommentsClient::GetFeedPostsPublicResponse](docs/GetFeedPostsPublicResponse.md) - [FastCommentsClient::GetFeedPostsResponse](docs/GetFeedPostsResponse.md) + - [FastCommentsClient::GetFeedPostsResponse1](docs/GetFeedPostsResponse1.md) + - [FastCommentsClient::GetFeedPostsStatsResponse](docs/GetFeedPostsStatsResponse.md) + - [FastCommentsClient::GetGifLargeResponse](docs/GetGifLargeResponse.md) - [FastCommentsClient::GetGifsSearchResponse](docs/GetGifsSearchResponse.md) - [FastCommentsClient::GetGifsTrendingResponse](docs/GetGifsTrendingResponse.md) + - [FastCommentsClient::GetGlobalEventLogResponse](docs/GetGlobalEventLogResponse.md) - [FastCommentsClient::GetHashTagsResponse](docs/GetHashTagsResponse.md) + - [FastCommentsClient::GetHashTagsResponse1](docs/GetHashTagsResponse1.md) + - [FastCommentsClient::GetLogsResponse](docs/GetLogsResponse.md) + - [FastCommentsClient::GetManualBadgesForUserResponse](docs/GetManualBadgesForUserResponse.md) + - [FastCommentsClient::GetManualBadgesResponse](docs/GetManualBadgesResponse.md) + - [FastCommentsClient::GetModerationCommentResponse](docs/GetModerationCommentResponse.md) + - [FastCommentsClient::GetModerationCommentTextResponse](docs/GetModerationCommentTextResponse.md) - [FastCommentsClient::GetModeratorResponse](docs/GetModeratorResponse.md) + - [FastCommentsClient::GetModeratorResponse1](docs/GetModeratorResponse1.md) - [FastCommentsClient::GetModeratorsResponse](docs/GetModeratorsResponse.md) + - [FastCommentsClient::GetModeratorsResponse1](docs/GetModeratorsResponse1.md) - [FastCommentsClient::GetMyNotificationsResponse](docs/GetMyNotificationsResponse.md) - [FastCommentsClient::GetNotificationCountResponse](docs/GetNotificationCountResponse.md) + - [FastCommentsClient::GetNotificationCountResponse1](docs/GetNotificationCountResponse1.md) - [FastCommentsClient::GetNotificationsResponse](docs/GetNotificationsResponse.md) + - [FastCommentsClient::GetNotificationsResponse1](docs/GetNotificationsResponse1.md) + - [FastCommentsClient::GetOfflineUsersResponse](docs/GetOfflineUsersResponse.md) + - [FastCommentsClient::GetOnlineUsersResponse](docs/GetOnlineUsersResponse.md) - [FastCommentsClient::GetPageByURLIdAPIResponse](docs/GetPageByURLIdAPIResponse.md) - [FastCommentsClient::GetPagesAPIResponse](docs/GetPagesAPIResponse.md) + - [FastCommentsClient::GetPagesPublicResponse](docs/GetPagesPublicResponse.md) - [FastCommentsClient::GetPendingWebhookEventCountResponse](docs/GetPendingWebhookEventCountResponse.md) + - [FastCommentsClient::GetPendingWebhookEventCountResponse1](docs/GetPendingWebhookEventCountResponse1.md) - [FastCommentsClient::GetPendingWebhookEventsResponse](docs/GetPendingWebhookEventsResponse.md) + - [FastCommentsClient::GetPendingWebhookEventsResponse1](docs/GetPendingWebhookEventsResponse1.md) + - [FastCommentsClient::GetPreBanSummaryResponse](docs/GetPreBanSummaryResponse.md) - [FastCommentsClient::GetPublicFeedPostsResponse](docs/GetPublicFeedPostsResponse.md) - [FastCommentsClient::GetPublicPagesResponse](docs/GetPublicPagesResponse.md) - [FastCommentsClient::GetQuestionConfigResponse](docs/GetQuestionConfigResponse.md) + - [FastCommentsClient::GetQuestionConfigResponse1](docs/GetQuestionConfigResponse1.md) - [FastCommentsClient::GetQuestionConfigsResponse](docs/GetQuestionConfigsResponse.md) + - [FastCommentsClient::GetQuestionConfigsResponse1](docs/GetQuestionConfigsResponse1.md) - [FastCommentsClient::GetQuestionResultResponse](docs/GetQuestionResultResponse.md) + - [FastCommentsClient::GetQuestionResultResponse1](docs/GetQuestionResultResponse1.md) - [FastCommentsClient::GetQuestionResultsResponse](docs/GetQuestionResultsResponse.md) + - [FastCommentsClient::GetQuestionResultsResponse1](docs/GetQuestionResultsResponse1.md) - [FastCommentsClient::GetSSOUserByEmailAPIResponse](docs/GetSSOUserByEmailAPIResponse.md) - [FastCommentsClient::GetSSOUserByIdAPIResponse](docs/GetSSOUserByIdAPIResponse.md) - [FastCommentsClient::GetSSOUsersResponse](docs/GetSSOUsersResponse.md) + - [FastCommentsClient::GetSearchCommentsSummaryResponse](docs/GetSearchCommentsSummaryResponse.md) + - [FastCommentsClient::GetSearchPagesResponse](docs/GetSearchPagesResponse.md) + - [FastCommentsClient::GetSearchSitesResponse](docs/GetSearchSitesResponse.md) + - [FastCommentsClient::GetSearchSuggestResponse](docs/GetSearchSuggestResponse.md) + - [FastCommentsClient::GetSearchUsersResponse](docs/GetSearchUsersResponse.md) - [FastCommentsClient::GetSubscriptionsAPIResponse](docs/GetSubscriptionsAPIResponse.md) - [FastCommentsClient::GetTenantDailyUsagesResponse](docs/GetTenantDailyUsagesResponse.md) + - [FastCommentsClient::GetTenantDailyUsagesResponse1](docs/GetTenantDailyUsagesResponse1.md) - [FastCommentsClient::GetTenantManualBadgesResponse](docs/GetTenantManualBadgesResponse.md) - [FastCommentsClient::GetTenantPackageResponse](docs/GetTenantPackageResponse.md) + - [FastCommentsClient::GetTenantPackageResponse1](docs/GetTenantPackageResponse1.md) - [FastCommentsClient::GetTenantPackagesResponse](docs/GetTenantPackagesResponse.md) + - [FastCommentsClient::GetTenantPackagesResponse1](docs/GetTenantPackagesResponse1.md) - [FastCommentsClient::GetTenantResponse](docs/GetTenantResponse.md) + - [FastCommentsClient::GetTenantResponse1](docs/GetTenantResponse1.md) - [FastCommentsClient::GetTenantUserResponse](docs/GetTenantUserResponse.md) + - [FastCommentsClient::GetTenantUserResponse1](docs/GetTenantUserResponse1.md) - [FastCommentsClient::GetTenantUsersResponse](docs/GetTenantUsersResponse.md) + - [FastCommentsClient::GetTenantUsersResponse1](docs/GetTenantUsersResponse1.md) - [FastCommentsClient::GetTenantsResponse](docs/GetTenantsResponse.md) + - [FastCommentsClient::GetTenantsResponse1](docs/GetTenantsResponse1.md) - [FastCommentsClient::GetTicketResponse](docs/GetTicketResponse.md) + - [FastCommentsClient::GetTicketResponse1](docs/GetTicketResponse1.md) - [FastCommentsClient::GetTicketsResponse](docs/GetTicketsResponse.md) + - [FastCommentsClient::GetTicketsResponse1](docs/GetTicketsResponse1.md) - [FastCommentsClient::GetTranslationsResponse](docs/GetTranslationsResponse.md) + - [FastCommentsClient::GetTranslationsResponse1](docs/GetTranslationsResponse1.md) + - [FastCommentsClient::GetTrustFactorResponse](docs/GetTrustFactorResponse.md) + - [FastCommentsClient::GetUserBadgeProgressByIdResponse](docs/GetUserBadgeProgressByIdResponse.md) + - [FastCommentsClient::GetUserBadgeProgressByUserIdResponse](docs/GetUserBadgeProgressByUserIdResponse.md) + - [FastCommentsClient::GetUserBadgeProgressListResponse](docs/GetUserBadgeProgressListResponse.md) + - [FastCommentsClient::GetUserBadgeResponse](docs/GetUserBadgeResponse.md) + - [FastCommentsClient::GetUserBadgesResponse](docs/GetUserBadgesResponse.md) + - [FastCommentsClient::GetUserBanPreferenceResponse](docs/GetUserBanPreferenceResponse.md) - [FastCommentsClient::GetUserInternalProfileResponse](docs/GetUserInternalProfileResponse.md) + - [FastCommentsClient::GetUserInternalProfileResponse1](docs/GetUserInternalProfileResponse1.md) - [FastCommentsClient::GetUserInternalProfileResponseProfile](docs/GetUserInternalProfileResponseProfile.md) - [FastCommentsClient::GetUserManualBadgesResponse](docs/GetUserManualBadgesResponse.md) - [FastCommentsClient::GetUserNotificationCountResponse](docs/GetUserNotificationCountResponse.md) + - [FastCommentsClient::GetUserNotificationCountResponse1](docs/GetUserNotificationCountResponse1.md) + - [FastCommentsClient::GetUserNotificationsResponse](docs/GetUserNotificationsResponse.md) - [FastCommentsClient::GetUserPresenceStatusesResponse](docs/GetUserPresenceStatusesResponse.md) + - [FastCommentsClient::GetUserPresenceStatusesResponse1](docs/GetUserPresenceStatusesResponse1.md) + - [FastCommentsClient::GetUserReactsPublicResponse](docs/GetUserReactsPublicResponse.md) - [FastCommentsClient::GetUserResponse](docs/GetUserResponse.md) + - [FastCommentsClient::GetUserResponse1](docs/GetUserResponse1.md) - [FastCommentsClient::GetUserTrustFactorResponse](docs/GetUserTrustFactorResponse.md) + - [FastCommentsClient::GetUsersInfoResponse](docs/GetUsersInfoResponse.md) - [FastCommentsClient::GetV1PageLikes](docs/GetV1PageLikes.md) + - [FastCommentsClient::GetV1PageLikesResponse](docs/GetV1PageLikesResponse.md) - [FastCommentsClient::GetV2PageReactUsersResponse](docs/GetV2PageReactUsersResponse.md) + - [FastCommentsClient::GetV2PageReactUsersResponse1](docs/GetV2PageReactUsersResponse1.md) - [FastCommentsClient::GetV2PageReacts](docs/GetV2PageReacts.md) + - [FastCommentsClient::GetV2PageReactsResponse](docs/GetV2PageReactsResponse.md) - [FastCommentsClient::GetVotesForUserResponse](docs/GetVotesForUserResponse.md) + - [FastCommentsClient::GetVotesForUserResponse1](docs/GetVotesForUserResponse1.md) - [FastCommentsClient::GetVotesResponse](docs/GetVotesResponse.md) + - [FastCommentsClient::GetVotesResponse1](docs/GetVotesResponse1.md) - [FastCommentsClient::GifGetLargeResponse](docs/GifGetLargeResponse.md) - [FastCommentsClient::GifRating](docs/GifRating.md) - [FastCommentsClient::GifSearchInternalError](docs/GifSearchInternalError.md) @@ -520,6 +646,7 @@ Class | Method | HTTP request | Description - [FastCommentsClient::LiveEvent](docs/LiveEvent.md) - [FastCommentsClient::LiveEventExtraInfo](docs/LiveEventExtraInfo.md) - [FastCommentsClient::LiveEventType](docs/LiveEventType.md) + - [FastCommentsClient::LockCommentResponse](docs/LockCommentResponse.md) - [FastCommentsClient::MediaAsset](docs/MediaAsset.md) - [FastCommentsClient::MentionAutoCompleteMode](docs/MentionAutoCompleteMode.md) - [FastCommentsClient::MetaItem](docs/MetaItem.md) @@ -553,10 +680,26 @@ Class | Method | HTTP request | Description - [FastCommentsClient::PagesSortBy](docs/PagesSortBy.md) - [FastCommentsClient::PatchDomainConfigParams](docs/PatchDomainConfigParams.md) - [FastCommentsClient::PatchDomainConfigResponse](docs/PatchDomainConfigResponse.md) + - [FastCommentsClient::PatchHashTagResponse](docs/PatchHashTagResponse.md) - [FastCommentsClient::PatchPageAPIResponse](docs/PatchPageAPIResponse.md) - [FastCommentsClient::PatchSSOUserAPIResponse](docs/PatchSSOUserAPIResponse.md) - [FastCommentsClient::PendingCommentToSyncOutbound](docs/PendingCommentToSyncOutbound.md) + - [FastCommentsClient::PinCommentResponse](docs/PinCommentResponse.md) + - [FastCommentsClient::PostAdjustCommentVotesResponse](docs/PostAdjustCommentVotesResponse.md) + - [FastCommentsClient::PostApiExportResponse](docs/PostApiExportResponse.md) + - [FastCommentsClient::PostBanUserFromCommentResponse](docs/PostBanUserFromCommentResponse.md) + - [FastCommentsClient::PostBanUserUndoResponse](docs/PostBanUserUndoResponse.md) + - [FastCommentsClient::PostBulkPreBanSummaryResponse](docs/PostBulkPreBanSummaryResponse.md) + - [FastCommentsClient::PostCommentsByIdsResponse](docs/PostCommentsByIdsResponse.md) + - [FastCommentsClient::PostFlagCommentResponse](docs/PostFlagCommentResponse.md) - [FastCommentsClient::PostRemoveCommentResponse](docs/PostRemoveCommentResponse.md) + - [FastCommentsClient::PostRestoreDeletedCommentResponse](docs/PostRestoreDeletedCommentResponse.md) + - [FastCommentsClient::PostSetCommentApprovalStatusResponse](docs/PostSetCommentApprovalStatusResponse.md) + - [FastCommentsClient::PostSetCommentReviewStatusResponse](docs/PostSetCommentReviewStatusResponse.md) + - [FastCommentsClient::PostSetCommentSpamStatusResponse](docs/PostSetCommentSpamStatusResponse.md) + - [FastCommentsClient::PostSetCommentTextResponse](docs/PostSetCommentTextResponse.md) + - [FastCommentsClient::PostUnFlagCommentResponse](docs/PostUnFlagCommentResponse.md) + - [FastCommentsClient::PostVoteResponse](docs/PostVoteResponse.md) - [FastCommentsClient::PreBanSummary](docs/PreBanSummary.md) - [FastCommentsClient::PubSubComment](docs/PubSubComment.md) - [FastCommentsClient::PubSubCommentBase](docs/PubSubCommentBase.md) @@ -570,7 +713,11 @@ Class | Method | HTTP request | Description - [FastCommentsClient::PublicFeedPostsResponse](docs/PublicFeedPostsResponse.md) - [FastCommentsClient::PublicPage](docs/PublicPage.md) - [FastCommentsClient::PublicVote](docs/PublicVote.md) + - [FastCommentsClient::PutAwardBadgeResponse](docs/PutAwardBadgeResponse.md) + - [FastCommentsClient::PutCloseThreadResponse](docs/PutCloseThreadResponse.md) - [FastCommentsClient::PutDomainConfigResponse](docs/PutDomainConfigResponse.md) + - [FastCommentsClient::PutRemoveBadgeResponse](docs/PutRemoveBadgeResponse.md) + - [FastCommentsClient::PutReopenThreadResponse](docs/PutReopenThreadResponse.md) - [FastCommentsClient::PutSSOUserAPIResponse](docs/PutSSOUserAPIResponse.md) - [FastCommentsClient::QueryPredicate](docs/QueryPredicate.md) - [FastCommentsClient::QueryPredicateValue](docs/QueryPredicateValue.md) @@ -583,30 +730,42 @@ Class | Method | HTTP request | Description - [FastCommentsClient::QuestionSubQuestionVisibility](docs/QuestionSubQuestionVisibility.md) - [FastCommentsClient::QuestionWhenSave](docs/QuestionWhenSave.md) - [FastCommentsClient::ReactBodyParams](docs/ReactBodyParams.md) + - [FastCommentsClient::ReactFeedPostPublicResponse](docs/ReactFeedPostPublicResponse.md) - [FastCommentsClient::ReactFeedPostResponse](docs/ReactFeedPostResponse.md) - [FastCommentsClient::RecordStringBeforeStringOrNullAfterStringOrNullValue](docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md) - [FastCommentsClient::RemoveCommentActionResponse](docs/RemoveCommentActionResponse.md) - [FastCommentsClient::RemoveUserBadgeResponse](docs/RemoveUserBadgeResponse.md) - [FastCommentsClient::RenderEmailTemplateBody](docs/RenderEmailTemplateBody.md) - [FastCommentsClient::RenderEmailTemplateResponse](docs/RenderEmailTemplateResponse.md) + - [FastCommentsClient::RenderEmailTemplateResponse1](docs/RenderEmailTemplateResponse1.md) - [FastCommentsClient::RenderableUserNotification](docs/RenderableUserNotification.md) - [FastCommentsClient::RepeatCommentCheckIgnoredReason](docs/RepeatCommentCheckIgnoredReason.md) - [FastCommentsClient::RepeatCommentHandlingAction](docs/RepeatCommentHandlingAction.md) - [FastCommentsClient::ReplaceTenantPackageBody](docs/ReplaceTenantPackageBody.md) + - [FastCommentsClient::ReplaceTenantPackageResponse](docs/ReplaceTenantPackageResponse.md) - [FastCommentsClient::ReplaceTenantUserBody](docs/ReplaceTenantUserBody.md) + - [FastCommentsClient::ReplaceTenantUserResponse](docs/ReplaceTenantUserResponse.md) + - [FastCommentsClient::ResetUserNotificationCountResponse](docs/ResetUserNotificationCountResponse.md) - [FastCommentsClient::ResetUserNotificationsResponse](docs/ResetUserNotificationsResponse.md) + - [FastCommentsClient::ResetUserNotificationsResponse1](docs/ResetUserNotificationsResponse1.md) - [FastCommentsClient::SORTDIR](docs/SORTDIR.md) - [FastCommentsClient::SSOSecurityLevel](docs/SSOSecurityLevel.md) + - [FastCommentsClient::SaveCommentResponse](docs/SaveCommentResponse.md) - [FastCommentsClient::SaveCommentResponseOptimized](docs/SaveCommentResponseOptimized.md) - [FastCommentsClient::SaveCommentsBulkResponse](docs/SaveCommentsBulkResponse.md) - [FastCommentsClient::SaveCommentsResponseWithPresence](docs/SaveCommentsResponseWithPresence.md) - [FastCommentsClient::SearchUsersResponse](docs/SearchUsersResponse.md) + - [FastCommentsClient::SearchUsersResponse1](docs/SearchUsersResponse1.md) - [FastCommentsClient::SearchUsersResult](docs/SearchUsersResult.md) - [FastCommentsClient::SearchUsersSectionedResponse](docs/SearchUsersSectionedResponse.md) + - [FastCommentsClient::SendInviteResponse](docs/SendInviteResponse.md) + - [FastCommentsClient::SendLoginLinkResponse](docs/SendLoginLinkResponse.md) - [FastCommentsClient::SetCommentApprovedResponse](docs/SetCommentApprovedResponse.md) - [FastCommentsClient::SetCommentTextParams](docs/SetCommentTextParams.md) - [FastCommentsClient::SetCommentTextResponse](docs/SetCommentTextResponse.md) + - [FastCommentsClient::SetCommentTextResponse1](docs/SetCommentTextResponse1.md) - [FastCommentsClient::SetCommentTextResult](docs/SetCommentTextResult.md) + - [FastCommentsClient::SetTrustFactorResponse](docs/SetTrustFactorResponse.md) - [FastCommentsClient::SetUserTrustFactorResponse](docs/SetUserTrustFactorResponse.md) - [FastCommentsClient::SizePreset](docs/SizePreset.md) - [FastCommentsClient::SortDirections](docs/SortDirections.md) @@ -615,26 +774,43 @@ Class | Method | HTTP request | Description - [FastCommentsClient::TenantBadge](docs/TenantBadge.md) - [FastCommentsClient::TenantHashTag](docs/TenantHashTag.md) - [FastCommentsClient::TenantPackage](docs/TenantPackage.md) + - [FastCommentsClient::UnBlockCommentPublicResponse](docs/UnBlockCommentPublicResponse.md) - [FastCommentsClient::UnBlockFromCommentParams](docs/UnBlockFromCommentParams.md) + - [FastCommentsClient::UnBlockUserFromCommentResponse](docs/UnBlockUserFromCommentResponse.md) + - [FastCommentsClient::UnFlagCommentResponse](docs/UnFlagCommentResponse.md) + - [FastCommentsClient::UnLockCommentResponse](docs/UnLockCommentResponse.md) + - [FastCommentsClient::UnPinCommentResponse](docs/UnPinCommentResponse.md) - [FastCommentsClient::UnblockSuccess](docs/UnblockSuccess.md) - [FastCommentsClient::UpdatableCommentParams](docs/UpdatableCommentParams.md) - [FastCommentsClient::UpdateAPIPageData](docs/UpdateAPIPageData.md) - [FastCommentsClient::UpdateAPISSOUserData](docs/UpdateAPISSOUserData.md) - [FastCommentsClient::UpdateAPIUserSubscriptionData](docs/UpdateAPIUserSubscriptionData.md) + - [FastCommentsClient::UpdateCommentResponse](docs/UpdateCommentResponse.md) - [FastCommentsClient::UpdateDomainConfigParams](docs/UpdateDomainConfigParams.md) - [FastCommentsClient::UpdateEmailTemplateBody](docs/UpdateEmailTemplateBody.md) + - [FastCommentsClient::UpdateEmailTemplateResponse](docs/UpdateEmailTemplateResponse.md) - [FastCommentsClient::UpdateFeedPostParams](docs/UpdateFeedPostParams.md) + - [FastCommentsClient::UpdateFeedPostPublicResponse](docs/UpdateFeedPostPublicResponse.md) + - [FastCommentsClient::UpdateFeedPostResponse](docs/UpdateFeedPostResponse.md) - [FastCommentsClient::UpdateHashTagBody](docs/UpdateHashTagBody.md) - [FastCommentsClient::UpdateHashTagResponse](docs/UpdateHashTagResponse.md) - [FastCommentsClient::UpdateModeratorBody](docs/UpdateModeratorBody.md) + - [FastCommentsClient::UpdateModeratorResponse](docs/UpdateModeratorResponse.md) - [FastCommentsClient::UpdateNotificationBody](docs/UpdateNotificationBody.md) + - [FastCommentsClient::UpdateNotificationResponse](docs/UpdateNotificationResponse.md) - [FastCommentsClient::UpdateQuestionConfigBody](docs/UpdateQuestionConfigBody.md) + - [FastCommentsClient::UpdateQuestionConfigResponse](docs/UpdateQuestionConfigResponse.md) - [FastCommentsClient::UpdateQuestionResultBody](docs/UpdateQuestionResultBody.md) + - [FastCommentsClient::UpdateQuestionResultResponse](docs/UpdateQuestionResultResponse.md) - [FastCommentsClient::UpdateSubscriptionAPIResponse](docs/UpdateSubscriptionAPIResponse.md) - [FastCommentsClient::UpdateTenantBody](docs/UpdateTenantBody.md) - [FastCommentsClient::UpdateTenantPackageBody](docs/UpdateTenantPackageBody.md) + - [FastCommentsClient::UpdateTenantPackageResponse](docs/UpdateTenantPackageResponse.md) + - [FastCommentsClient::UpdateTenantResponse](docs/UpdateTenantResponse.md) - [FastCommentsClient::UpdateTenantUserBody](docs/UpdateTenantUserBody.md) + - [FastCommentsClient::UpdateTenantUserResponse](docs/UpdateTenantUserResponse.md) - [FastCommentsClient::UpdateUserBadgeParams](docs/UpdateUserBadgeParams.md) + - [FastCommentsClient::UpdateUserBadgeResponse](docs/UpdateUserBadgeResponse.md) - [FastCommentsClient::UpdateUserNotificationCommentSubscriptionStatusResponse](docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md) - [FastCommentsClient::UpdateUserNotificationPageSubscriptionStatusResponse](docs/UpdateUserNotificationPageSubscriptionStatusResponse.md) - [FastCommentsClient::UpdateUserNotificationStatusResponse](docs/UpdateUserNotificationStatusResponse.md) @@ -653,9 +829,9 @@ Class | Method | HTTP request | Description - [FastCommentsClient::UserSessionInfo](docs/UserSessionInfo.md) - [FastCommentsClient::UsersListLocation](docs/UsersListLocation.md) - [FastCommentsClient::VoteBodyParams](docs/VoteBodyParams.md) + - [FastCommentsClient::VoteCommentResponse](docs/VoteCommentResponse.md) - [FastCommentsClient::VoteDeleteResponse](docs/VoteDeleteResponse.md) - [FastCommentsClient::VoteResponse](docs/VoteResponse.md) - - [FastCommentsClient::VoteResponseStatus](docs/VoteResponseStatus.md) - [FastCommentsClient::VoteResponseUser](docs/VoteResponseUser.md) - [FastCommentsClient::VoteStyle](docs/VoteStyle.md) diff --git a/client/docs/AddDomainConfigResponse.md b/client/docs/AddDomainConfigResponse.md index 0c97a67..233b670 100644 --- a/client/docs/AddDomainConfigResponse.md +++ b/client/docs/AddDomainConfigResponse.md @@ -4,10 +4,10 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **reason** | **String** | | | -| **code** | **String** | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | | **status** | **Object** | | | -| **configuration** | **Object** | | | +| **configuration** | **Object** | | [optional] | ## Example diff --git a/client/docs/AddHashTagResponse.md b/client/docs/AddHashTagResponse.md new file mode 100644 index 0000000..b5f7d8e --- /dev/null +++ b/client/docs/AddHashTagResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::AddHashTagResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **hash_tag** | [**TenantHashTag**](TenantHashTag.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::AddHashTagResponse.new( + status: null, + hash_tag: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/AddHashTagsBulkResponse.md b/client/docs/AddHashTagsBulkResponse.md new file mode 100644 index 0000000..aae7216 --- /dev/null +++ b/client/docs/AddHashTagsBulkResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::AddHashTagsBulkResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **results** | [**Array<BulkCreateHashTagsResponseResultsInner>**](BulkCreateHashTagsResponseResultsInner.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::AddHashTagsBulkResponse.new( + status: null, + results: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/AggregateQuestionResultsResponse1.md b/client/docs/AggregateQuestionResultsResponse1.md new file mode 100644 index 0000000..663dcb5 --- /dev/null +++ b/client/docs/AggregateQuestionResultsResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::AggregateQuestionResultsResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **data** | [**QuestionResultAggregationOverall**](QuestionResultAggregationOverall.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::AggregateQuestionResultsResponse1.new( + status: null, + data: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/AggregateResponse.md b/client/docs/AggregateResponse.md index 53c2340..3c541c3 100644 --- a/client/docs/AggregateResponse.md +++ b/client/docs/AggregateResponse.md @@ -5,10 +5,10 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **status** | [**APIStatus**](APIStatus.md) | | | -| **data** | [**Array<AggregationItem>**](AggregationItem.md) | | | +| **data** | [**Array<AggregationItem>**](AggregationItem.md) | | [optional] | | **stats** | [**AggregationResponseStats**](AggregationResponseStats.md) | | [optional] | -| **reason** | **String** | | | -| **code** | **String** | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | | **valid_resource_names** | **Array<String>** | | [optional] | ## Example diff --git a/client/docs/BlockFromCommentPublicResponse.md b/client/docs/BlockFromCommentPublicResponse.md new file mode 100644 index 0000000..af133f6 --- /dev/null +++ b/client/docs/BlockFromCommentPublicResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::BlockFromCommentPublicResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **comment_statuses** | **Hash<String, Boolean>** | Construct a type with a set of properties K of type T | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::BlockFromCommentPublicResponse.new( + status: null, + comment_statuses: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/BlockUserFromCommentResponse.md b/client/docs/BlockUserFromCommentResponse.md new file mode 100644 index 0000000..f748566 --- /dev/null +++ b/client/docs/BlockUserFromCommentResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::BlockUserFromCommentResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **comment_statuses** | **Hash<String, Boolean>** | Construct a type with a set of properties K of type T | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::BlockUserFromCommentResponse.new( + status: null, + comment_statuses: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/BulkAggregateQuestionResultsResponse1.md b/client/docs/BulkAggregateQuestionResultsResponse1.md new file mode 100644 index 0000000..df695fc --- /dev/null +++ b/client/docs/BulkAggregateQuestionResultsResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::BulkAggregateQuestionResultsResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **data** | [**Hash<String, QuestionResultAggregationOverall>**](QuestionResultAggregationOverall.md) | Construct a type with a set of properties K of type T | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::BulkAggregateQuestionResultsResponse1.new( + status: null, + data: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/BulkCreateHashTagsResponseResultsInner.md b/client/docs/BulkCreateHashTagsResponseResultsInner.md index bee12bf..eb750c6 100644 --- a/client/docs/BulkCreateHashTagsResponseResultsInner.md +++ b/client/docs/BulkCreateHashTagsResponseResultsInner.md @@ -5,9 +5,9 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **status** | [**APIStatus**](APIStatus.md) | | | -| **hash_tag** | [**TenantHashTag**](TenantHashTag.md) | | | -| **reason** | **String** | | | -| **code** | **String** | | | +| **hash_tag** | [**TenantHashTag**](TenantHashTag.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | | **secondary_code** | **String** | | [optional] | | **banned_until** | **Integer** | | [optional] | | **max_character_length** | **Integer** | | [optional] | diff --git a/client/docs/ChangeTicketStateResponse1.md b/client/docs/ChangeTicketStateResponse1.md new file mode 100644 index 0000000..c74e5ca --- /dev/null +++ b/client/docs/ChangeTicketStateResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::ChangeTicketStateResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **ticket** | [**APITicket**](APITicket.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::ChangeTicketStateResponse1.new( + status: null, + ticket: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/CheckedCommentsForBlockedResponse.md b/client/docs/CheckedCommentsForBlockedResponse.md new file mode 100644 index 0000000..9ff4cd8 --- /dev/null +++ b/client/docs/CheckedCommentsForBlockedResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::CheckedCommentsForBlockedResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **comment_statuses** | **Hash<String, Boolean>** | Construct a type with a set of properties K of type T | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CheckedCommentsForBlockedResponse.new( + comment_statuses: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/CombineCommentsWithQuestionResultsResponse.md b/client/docs/CombineCommentsWithQuestionResultsResponse.md new file mode 100644 index 0000000..b7c104a --- /dev/null +++ b/client/docs/CombineCommentsWithQuestionResultsResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::CombineCommentsWithQuestionResultsResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **data** | [**FindCommentsByRangeResponse**](FindCommentsByRangeResponse.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CombineCommentsWithQuestionResultsResponse.new( + status: null, + data: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/CreateCommentPublicResponse.md b/client/docs/CreateCommentPublicResponse.md new file mode 100644 index 0000000..9ef16af --- /dev/null +++ b/client/docs/CreateCommentPublicResponse.md @@ -0,0 +1,40 @@ +# FastCommentsClient::CreateCommentPublicResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **comment** | [**PublicComment**](PublicComment.md) | | [optional] | +| **user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] | +| **module_data** | **Hash<String, Object>** | Construct a type with a set of properties K of type T | [optional] | +| **user_id_ws** | **String** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateCommentPublicResponse.new( + status: null, + comment: null, + user: null, + module_data: null, + user_id_ws: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/CreateEmailTemplateResponse1.md b/client/docs/CreateEmailTemplateResponse1.md new file mode 100644 index 0000000..17f19fd --- /dev/null +++ b/client/docs/CreateEmailTemplateResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::CreateEmailTemplateResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **email_template** | [**CustomEmailTemplate**](CustomEmailTemplate.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateEmailTemplateResponse1.new( + status: null, + email_template: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/CreateFeedPostPublicResponse.md b/client/docs/CreateFeedPostPublicResponse.md new file mode 100644 index 0000000..28257d2 --- /dev/null +++ b/client/docs/CreateFeedPostPublicResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::CreateFeedPostPublicResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **feed_post** | [**FeedPost**](FeedPost.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateFeedPostPublicResponse.new( + status: null, + feed_post: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/CreateFeedPostResponse1.md b/client/docs/CreateFeedPostResponse1.md new file mode 100644 index 0000000..3ccc4a1 --- /dev/null +++ b/client/docs/CreateFeedPostResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::CreateFeedPostResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **feed_post** | [**FeedPost**](FeedPost.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateFeedPostResponse1.new( + status: null, + feed_post: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/CreateModeratorResponse1.md b/client/docs/CreateModeratorResponse1.md new file mode 100644 index 0000000..13d52ab --- /dev/null +++ b/client/docs/CreateModeratorResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::CreateModeratorResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **moderator** | [**Moderator**](Moderator.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateModeratorResponse1.new( + status: null, + moderator: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/CreateQuestionConfigResponse1.md b/client/docs/CreateQuestionConfigResponse1.md new file mode 100644 index 0000000..98b6726 --- /dev/null +++ b/client/docs/CreateQuestionConfigResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::CreateQuestionConfigResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **question_config** | [**QuestionConfig**](QuestionConfig.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateQuestionConfigResponse1.new( + status: null, + question_config: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/CreateQuestionResultResponse1.md b/client/docs/CreateQuestionResultResponse1.md new file mode 100644 index 0000000..9da6820 --- /dev/null +++ b/client/docs/CreateQuestionResultResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::CreateQuestionResultResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **question_result** | [**QuestionResult**](QuestionResult.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateQuestionResultResponse1.new( + status: null, + question_result: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/CreateTenantPackageResponse1.md b/client/docs/CreateTenantPackageResponse1.md new file mode 100644 index 0000000..7f048d5 --- /dev/null +++ b/client/docs/CreateTenantPackageResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::CreateTenantPackageResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenant_package** | [**TenantPackage**](TenantPackage.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateTenantPackageResponse1.new( + status: null, + tenant_package: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/CreateTenantResponse1.md b/client/docs/CreateTenantResponse1.md new file mode 100644 index 0000000..77b8eae --- /dev/null +++ b/client/docs/CreateTenantResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::CreateTenantResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenant** | [**APITenant**](APITenant.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateTenantResponse1.new( + status: null, + tenant: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/CreateTenantUserResponse1.md b/client/docs/CreateTenantUserResponse1.md new file mode 100644 index 0000000..9e5ab3c --- /dev/null +++ b/client/docs/CreateTenantUserResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::CreateTenantUserResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenant_user** | [**User**](User.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateTenantUserResponse1.new( + status: null, + tenant_user: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/CreateTicketResponse1.md b/client/docs/CreateTicketResponse1.md new file mode 100644 index 0000000..effa241 --- /dev/null +++ b/client/docs/CreateTicketResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::CreateTicketResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **ticket** | [**APITicket**](APITicket.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateTicketResponse1.new( + status: null, + ticket: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/CreateUserBadgeResponse.md b/client/docs/CreateUserBadgeResponse.md new file mode 100644 index 0000000..2faa505 --- /dev/null +++ b/client/docs/CreateUserBadgeResponse.md @@ -0,0 +1,36 @@ +# FastCommentsClient::CreateUserBadgeResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **user_badge** | [**UserBadge**](UserBadge.md) | | [optional] | +| **notes** | **Array<String>** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateUserBadgeResponse.new( + status: null, + user_badge: null, + notes: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/CreateV1PageReactResponse.md b/client/docs/CreateV1PageReactResponse.md new file mode 100644 index 0000000..386bb07 --- /dev/null +++ b/client/docs/CreateV1PageReactResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::CreateV1PageReactResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **code** | **String** | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateV1PageReactResponse.new( + code: null, + status: null, + reason: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/CreateV2PageReactResponse.md b/client/docs/CreateV2PageReactResponse.md new file mode 100644 index 0000000..c499cce --- /dev/null +++ b/client/docs/CreateV2PageReactResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::CreateV2PageReactResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **code** | **String** | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateV2PageReactResponse.new( + code: null, + status: null, + reason: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/CreateVoteResponse.md b/client/docs/CreateVoteResponse.md new file mode 100644 index 0000000..9961a04 --- /dev/null +++ b/client/docs/CreateVoteResponse.md @@ -0,0 +1,40 @@ +# FastCommentsClient::CreateVoteResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **vote_id** | **String** | | [optional] | +| **is_verified** | **Boolean** | | [optional] | +| **user** | [**VoteResponseUser**](VoteResponseUser.md) | | [optional] | +| **edit_key** | **String** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateVoteResponse.new( + status: null, + vote_id: null, + is_verified: null, + user: null, + edit_key: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/DefaultApi.md b/client/docs/DefaultApi.md index 7b9d22b..fecc64a 100644 --- a/client/docs/DefaultApi.md +++ b/client/docs/DefaultApi.md @@ -193,7 +193,7 @@ end ## add_hash_tag -> add_hash_tag(opts) +> add_hash_tag(opts) @@ -229,7 +229,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> add_hash_tag_with_http_info(opts) +> , Integer, Hash)> add_hash_tag_with_http_info(opts) ```ruby begin @@ -237,7 +237,7 @@ begin data, status_code, headers = api_instance.add_hash_tag_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->add_hash_tag_with_http_info: #{e}" end @@ -252,7 +252,7 @@ end ### Return type -[**CreateHashTagResponse**](CreateHashTagResponse.md) +[**AddHashTagResponse**](AddHashTagResponse.md) ### Authorization @@ -266,7 +266,7 @@ end ## add_hash_tags_bulk -> add_hash_tags_bulk(opts) +> add_hash_tags_bulk(opts) @@ -302,7 +302,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> add_hash_tags_bulk_with_http_info(opts) +> , Integer, Hash)> add_hash_tags_bulk_with_http_info(opts) ```ruby begin @@ -310,7 +310,7 @@ begin data, status_code, headers = api_instance.add_hash_tags_bulk_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->add_hash_tags_bulk_with_http_info: #{e}" end @@ -325,7 +325,7 @@ end ### Return type -[**BulkCreateHashTagsResponse**](BulkCreateHashTagsResponse.md) +[**AddHashTagsBulkResponse**](AddHashTagsBulkResponse.md) ### Authorization @@ -560,7 +560,7 @@ end ## aggregate_question_results -> aggregate_question_results(tenant_id, opts) +> aggregate_question_results(tenant_id, opts) @@ -601,7 +601,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> aggregate_question_results_with_http_info(tenant_id, opts) +> , Integer, Hash)> aggregate_question_results_with_http_info(tenant_id, opts) ```ruby begin @@ -609,7 +609,7 @@ begin data, status_code, headers = api_instance.aggregate_question_results_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->aggregate_question_results_with_http_info: #{e}" end @@ -629,7 +629,7 @@ end ### Return type -[**AggregateQuestionResultsResponse**](AggregateQuestionResultsResponse.md) +[**AggregateQuestionResultsResponse1**](AggregateQuestionResultsResponse1.md) ### Authorization @@ -643,7 +643,7 @@ end ## block_user_from_comment -> block_user_from_comment(tenant_id, id, block_from_comment_params, opts) +> block_user_from_comment(tenant_id, id, block_from_comment_params, opts) @@ -682,7 +682,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> block_user_from_comment_with_http_info(tenant_id, id, block_from_comment_params, opts) +> , Integer, Hash)> block_user_from_comment_with_http_info(tenant_id, id, block_from_comment_params, opts) ```ruby begin @@ -690,7 +690,7 @@ begin data, status_code, headers = api_instance.block_user_from_comment_with_http_info(tenant_id, id, block_from_comment_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->block_user_from_comment_with_http_info: #{e}" end @@ -708,7 +708,7 @@ end ### Return type -[**BlockSuccess**](BlockSuccess.md) +[**BlockUserFromCommentResponse**](BlockUserFromCommentResponse.md) ### Authorization @@ -722,7 +722,7 @@ end ## bulk_aggregate_question_results -> bulk_aggregate_question_results(tenant_id, bulk_aggregate_question_results_request, opts) +> bulk_aggregate_question_results(tenant_id, bulk_aggregate_question_results_request, opts) @@ -759,7 +759,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> bulk_aggregate_question_results_with_http_info(tenant_id, bulk_aggregate_question_results_request, opts) +> , Integer, Hash)> bulk_aggregate_question_results_with_http_info(tenant_id, bulk_aggregate_question_results_request, opts) ```ruby begin @@ -767,7 +767,7 @@ begin data, status_code, headers = api_instance.bulk_aggregate_question_results_with_http_info(tenant_id, bulk_aggregate_question_results_request, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->bulk_aggregate_question_results_with_http_info: #{e}" end @@ -783,7 +783,7 @@ end ### Return type -[**BulkAggregateQuestionResultsResponse**](BulkAggregateQuestionResultsResponse.md) +[**BulkAggregateQuestionResultsResponse1**](BulkAggregateQuestionResultsResponse1.md) ### Authorization @@ -797,7 +797,7 @@ end ## change_ticket_state -> change_ticket_state(tenant_id, user_id, id, change_ticket_state_body) +> change_ticket_state(tenant_id, user_id, id, change_ticket_state_body) @@ -833,7 +833,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_state_body) +> , Integer, Hash)> change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_state_body) ```ruby begin @@ -841,7 +841,7 @@ begin data, status_code, headers = api_instance.change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_state_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->change_ticket_state_with_http_info: #{e}" end @@ -858,7 +858,7 @@ end ### Return type -[**ChangeTicketStateResponse**](ChangeTicketStateResponse.md) +[**ChangeTicketStateResponse1**](ChangeTicketStateResponse1.md) ### Authorization @@ -872,7 +872,7 @@ end ## combine_comments_with_question_results -> combine_comments_with_question_results(tenant_id, opts) +> combine_comments_with_question_results(tenant_id, opts) @@ -915,7 +915,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> combine_comments_with_question_results_with_http_info(tenant_id, opts) +> , Integer, Hash)> combine_comments_with_question_results_with_http_info(tenant_id, opts) ```ruby begin @@ -923,7 +923,7 @@ begin data, status_code, headers = api_instance.combine_comments_with_question_results_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->combine_comments_with_question_results_with_http_info: #{e}" end @@ -945,7 +945,7 @@ end ### Return type -[**CombineQuestionResultsWithCommentsResponse**](CombineQuestionResultsWithCommentsResponse.md) +[**CombineCommentsWithQuestionResultsResponse**](CombineCommentsWithQuestionResultsResponse.md) ### Authorization @@ -959,7 +959,7 @@ end ## create_email_template -> create_email_template(tenant_id, create_email_template_body) +> create_email_template(tenant_id, create_email_template_body) @@ -993,7 +993,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_email_template_with_http_info(tenant_id, create_email_template_body) +> , Integer, Hash)> create_email_template_with_http_info(tenant_id, create_email_template_body) ```ruby begin @@ -1001,7 +1001,7 @@ begin data, status_code, headers = api_instance.create_email_template_with_http_info(tenant_id, create_email_template_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_email_template_with_http_info: #{e}" end @@ -1016,7 +1016,7 @@ end ### Return type -[**CreateEmailTemplateResponse**](CreateEmailTemplateResponse.md) +[**CreateEmailTemplateResponse1**](CreateEmailTemplateResponse1.md) ### Authorization @@ -1030,7 +1030,7 @@ end ## create_feed_post -> create_feed_post(tenant_id, create_feed_post_params, opts) +> create_feed_post(tenant_id, create_feed_post_params, opts) @@ -1070,7 +1070,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_feed_post_with_http_info(tenant_id, create_feed_post_params, opts) +> , Integer, Hash)> create_feed_post_with_http_info(tenant_id, create_feed_post_params, opts) ```ruby begin @@ -1078,7 +1078,7 @@ begin data, status_code, headers = api_instance.create_feed_post_with_http_info(tenant_id, create_feed_post_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_feed_post_with_http_info: #{e}" end @@ -1097,7 +1097,7 @@ end ### Return type -[**CreateFeedPostsResponse**](CreateFeedPostsResponse.md) +[**CreateFeedPostResponse1**](CreateFeedPostResponse1.md) ### Authorization @@ -1111,7 +1111,7 @@ end ## create_moderator -> create_moderator(tenant_id, create_moderator_body) +> create_moderator(tenant_id, create_moderator_body) @@ -1145,7 +1145,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_moderator_with_http_info(tenant_id, create_moderator_body) +> , Integer, Hash)> create_moderator_with_http_info(tenant_id, create_moderator_body) ```ruby begin @@ -1153,7 +1153,7 @@ begin data, status_code, headers = api_instance.create_moderator_with_http_info(tenant_id, create_moderator_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_moderator_with_http_info: #{e}" end @@ -1168,7 +1168,7 @@ end ### Return type -[**CreateModeratorResponse**](CreateModeratorResponse.md) +[**CreateModeratorResponse1**](CreateModeratorResponse1.md) ### Authorization @@ -1182,7 +1182,7 @@ end ## create_question_config -> create_question_config(tenant_id, create_question_config_body) +> create_question_config(tenant_id, create_question_config_body) @@ -1216,7 +1216,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_question_config_with_http_info(tenant_id, create_question_config_body) +> , Integer, Hash)> create_question_config_with_http_info(tenant_id, create_question_config_body) ```ruby begin @@ -1224,7 +1224,7 @@ begin data, status_code, headers = api_instance.create_question_config_with_http_info(tenant_id, create_question_config_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_question_config_with_http_info: #{e}" end @@ -1239,7 +1239,7 @@ end ### Return type -[**CreateQuestionConfigResponse**](CreateQuestionConfigResponse.md) +[**CreateQuestionConfigResponse1**](CreateQuestionConfigResponse1.md) ### Authorization @@ -1253,7 +1253,7 @@ end ## create_question_result -> create_question_result(tenant_id, create_question_result_body) +> create_question_result(tenant_id, create_question_result_body) @@ -1287,7 +1287,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_question_result_with_http_info(tenant_id, create_question_result_body) +> , Integer, Hash)> create_question_result_with_http_info(tenant_id, create_question_result_body) ```ruby begin @@ -1295,7 +1295,7 @@ begin data, status_code, headers = api_instance.create_question_result_with_http_info(tenant_id, create_question_result_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_question_result_with_http_info: #{e}" end @@ -1310,7 +1310,7 @@ end ### Return type -[**CreateQuestionResultResponse**](CreateQuestionResultResponse.md) +[**CreateQuestionResultResponse1**](CreateQuestionResultResponse1.md) ### Authorization @@ -1395,7 +1395,7 @@ end ## create_tenant -> create_tenant(tenant_id, create_tenant_body) +> create_tenant(tenant_id, create_tenant_body) @@ -1429,7 +1429,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_tenant_with_http_info(tenant_id, create_tenant_body) +> , Integer, Hash)> create_tenant_with_http_info(tenant_id, create_tenant_body) ```ruby begin @@ -1437,7 +1437,7 @@ begin data, status_code, headers = api_instance.create_tenant_with_http_info(tenant_id, create_tenant_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_tenant_with_http_info: #{e}" end @@ -1452,7 +1452,7 @@ end ### Return type -[**CreateTenantResponse**](CreateTenantResponse.md) +[**CreateTenantResponse1**](CreateTenantResponse1.md) ### Authorization @@ -1466,7 +1466,7 @@ end ## create_tenant_package -> create_tenant_package(tenant_id, create_tenant_package_body) +> create_tenant_package(tenant_id, create_tenant_package_body) @@ -1500,7 +1500,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_tenant_package_with_http_info(tenant_id, create_tenant_package_body) +> , Integer, Hash)> create_tenant_package_with_http_info(tenant_id, create_tenant_package_body) ```ruby begin @@ -1508,7 +1508,7 @@ begin data, status_code, headers = api_instance.create_tenant_package_with_http_info(tenant_id, create_tenant_package_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_tenant_package_with_http_info: #{e}" end @@ -1523,7 +1523,7 @@ end ### Return type -[**CreateTenantPackageResponse**](CreateTenantPackageResponse.md) +[**CreateTenantPackageResponse1**](CreateTenantPackageResponse1.md) ### Authorization @@ -1537,7 +1537,7 @@ end ## create_tenant_user -> create_tenant_user(tenant_id, create_tenant_user_body) +> create_tenant_user(tenant_id, create_tenant_user_body) @@ -1571,7 +1571,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_tenant_user_with_http_info(tenant_id, create_tenant_user_body) +> , Integer, Hash)> create_tenant_user_with_http_info(tenant_id, create_tenant_user_body) ```ruby begin @@ -1579,7 +1579,7 @@ begin data, status_code, headers = api_instance.create_tenant_user_with_http_info(tenant_id, create_tenant_user_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_tenant_user_with_http_info: #{e}" end @@ -1594,7 +1594,7 @@ end ### Return type -[**CreateTenantUserResponse**](CreateTenantUserResponse.md) +[**CreateTenantUserResponse1**](CreateTenantUserResponse1.md) ### Authorization @@ -1608,7 +1608,7 @@ end ## create_ticket -> create_ticket(tenant_id, user_id, create_ticket_body) +> create_ticket(tenant_id, user_id, create_ticket_body) @@ -1643,7 +1643,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_ticket_with_http_info(tenant_id, user_id, create_ticket_body) +> , Integer, Hash)> create_ticket_with_http_info(tenant_id, user_id, create_ticket_body) ```ruby begin @@ -1651,7 +1651,7 @@ begin data, status_code, headers = api_instance.create_ticket_with_http_info(tenant_id, user_id, create_ticket_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_ticket_with_http_info: #{e}" end @@ -1667,7 +1667,7 @@ end ### Return type -[**CreateTicketResponse**](CreateTicketResponse.md) +[**CreateTicketResponse1**](CreateTicketResponse1.md) ### Authorization @@ -1681,7 +1681,7 @@ end ## create_user_badge -> create_user_badge(tenant_id, create_user_badge_params) +> create_user_badge(tenant_id, create_user_badge_params) @@ -1715,7 +1715,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_user_badge_with_http_info(tenant_id, create_user_badge_params) +> , Integer, Hash)> create_user_badge_with_http_info(tenant_id, create_user_badge_params) ```ruby begin @@ -1723,7 +1723,7 @@ begin data, status_code, headers = api_instance.create_user_badge_with_http_info(tenant_id, create_user_badge_params) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_user_badge_with_http_info: #{e}" end @@ -1738,7 +1738,7 @@ end ### Return type -[**APICreateUserBadgeResponse**](APICreateUserBadgeResponse.md) +[**CreateUserBadgeResponse**](CreateUserBadgeResponse.md) ### Authorization @@ -1752,7 +1752,7 @@ end ## create_vote -> create_vote(tenant_id, comment_id, direction, opts) +> create_vote(tenant_id, comment_id, direction, opts) @@ -1791,7 +1791,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_vote_with_http_info(tenant_id, comment_id, direction, opts) +> , Integer, Hash)> create_vote_with_http_info(tenant_id, comment_id, direction, opts) ```ruby begin @@ -1799,7 +1799,7 @@ begin data, status_code, headers = api_instance.create_vote_with_http_info(tenant_id, comment_id, direction, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_vote_with_http_info: #{e}" end @@ -1817,7 +1817,7 @@ end ### Return type -[**VoteResponse**](VoteResponse.md) +[**CreateVoteResponse**](CreateVoteResponse.md) ### Authorization @@ -1831,7 +1831,7 @@ end ## delete_comment -> delete_comment(tenant_id, id, opts) +> delete_comment(tenant_id, id, opts) @@ -1869,7 +1869,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_comment_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> delete_comment_with_http_info(tenant_id, id, opts) ```ruby begin @@ -1877,7 +1877,7 @@ begin data, status_code, headers = api_instance.delete_comment_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_comment_with_http_info: #{e}" end @@ -1894,7 +1894,7 @@ end ### Return type -[**DeleteCommentResult**](DeleteCommentResult.md) +[**DeleteCommentResponse**](DeleteCommentResponse.md) ### Authorization @@ -1979,7 +1979,7 @@ end ## delete_email_template -> delete_email_template(tenant_id, id) +> delete_email_template(tenant_id, id) @@ -2013,7 +2013,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_email_template_with_http_info(tenant_id, id) +> , Integer, Hash)> delete_email_template_with_http_info(tenant_id, id) ```ruby begin @@ -2021,7 +2021,7 @@ begin data, status_code, headers = api_instance.delete_email_template_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_email_template_with_http_info: #{e}" end @@ -2036,7 +2036,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**DeleteEmailTemplateResponse**](DeleteEmailTemplateResponse.md) ### Authorization @@ -2050,7 +2050,7 @@ end ## delete_email_template_render_error -> delete_email_template_render_error(tenant_id, id, error_id) +> delete_email_template_render_error(tenant_id, id, error_id) @@ -2085,7 +2085,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_email_template_render_error_with_http_info(tenant_id, id, error_id) +> , Integer, Hash)> delete_email_template_render_error_with_http_info(tenant_id, id, error_id) ```ruby begin @@ -2093,7 +2093,7 @@ begin data, status_code, headers = api_instance.delete_email_template_render_error_with_http_info(tenant_id, id, error_id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_email_template_render_error_with_http_info: #{e}" end @@ -2109,7 +2109,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**DeleteEmailTemplateRenderErrorResponse**](DeleteEmailTemplateRenderErrorResponse.md) ### Authorization @@ -2123,7 +2123,7 @@ end ## delete_hash_tag -> delete_hash_tag(tag, opts) +> delete_hash_tag(tag, opts) @@ -2160,7 +2160,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_hash_tag_with_http_info(tag, opts) +> , Integer, Hash)> delete_hash_tag_with_http_info(tag, opts) ```ruby begin @@ -2168,7 +2168,7 @@ begin data, status_code, headers = api_instance.delete_hash_tag_with_http_info(tag, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_hash_tag_with_http_info: #{e}" end @@ -2184,7 +2184,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**DeleteHashTagResponse**](DeleteHashTagResponse.md) ### Authorization @@ -2198,7 +2198,7 @@ end ## delete_moderator -> delete_moderator(tenant_id, id, opts) +> delete_moderator(tenant_id, id, opts) @@ -2235,7 +2235,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_moderator_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> delete_moderator_with_http_info(tenant_id, id, opts) ```ruby begin @@ -2243,7 +2243,7 @@ begin data, status_code, headers = api_instance.delete_moderator_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_moderator_with_http_info: #{e}" end @@ -2259,7 +2259,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**DeleteModeratorResponse**](DeleteModeratorResponse.md) ### Authorization @@ -2273,7 +2273,7 @@ end ## delete_notification_count -> delete_notification_count(tenant_id, id) +> delete_notification_count(tenant_id, id) @@ -2307,7 +2307,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_notification_count_with_http_info(tenant_id, id) +> , Integer, Hash)> delete_notification_count_with_http_info(tenant_id, id) ```ruby begin @@ -2315,7 +2315,7 @@ begin data, status_code, headers = api_instance.delete_notification_count_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_notification_count_with_http_info: #{e}" end @@ -2330,7 +2330,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**DeleteNotificationCountResponse**](DeleteNotificationCountResponse.md) ### Authorization @@ -2415,7 +2415,7 @@ end ## delete_pending_webhook_event -> delete_pending_webhook_event(tenant_id, id) +> delete_pending_webhook_event(tenant_id, id) @@ -2449,7 +2449,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_pending_webhook_event_with_http_info(tenant_id, id) +> , Integer, Hash)> delete_pending_webhook_event_with_http_info(tenant_id, id) ```ruby begin @@ -2457,7 +2457,7 @@ begin data, status_code, headers = api_instance.delete_pending_webhook_event_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_pending_webhook_event_with_http_info: #{e}" end @@ -2472,7 +2472,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**DeletePendingWebhookEventResponse**](DeletePendingWebhookEventResponse.md) ### Authorization @@ -2486,7 +2486,7 @@ end ## delete_question_config -> delete_question_config(tenant_id, id) +> delete_question_config(tenant_id, id) @@ -2520,7 +2520,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_question_config_with_http_info(tenant_id, id) +> , Integer, Hash)> delete_question_config_with_http_info(tenant_id, id) ```ruby begin @@ -2528,7 +2528,7 @@ begin data, status_code, headers = api_instance.delete_question_config_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_question_config_with_http_info: #{e}" end @@ -2543,7 +2543,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**DeleteQuestionConfigResponse**](DeleteQuestionConfigResponse.md) ### Authorization @@ -2557,7 +2557,7 @@ end ## delete_question_result -> delete_question_result(tenant_id, id) +> delete_question_result(tenant_id, id) @@ -2591,7 +2591,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_question_result_with_http_info(tenant_id, id) +> , Integer, Hash)> delete_question_result_with_http_info(tenant_id, id) ```ruby begin @@ -2599,7 +2599,7 @@ begin data, status_code, headers = api_instance.delete_question_result_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_question_result_with_http_info: #{e}" end @@ -2614,7 +2614,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**DeleteQuestionResultResponse**](DeleteQuestionResultResponse.md) ### Authorization @@ -2780,7 +2780,7 @@ end ## delete_tenant -> delete_tenant(tenant_id, id, opts) +> delete_tenant(tenant_id, id, opts) @@ -2817,7 +2817,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_tenant_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> delete_tenant_with_http_info(tenant_id, id, opts) ```ruby begin @@ -2825,7 +2825,7 @@ begin data, status_code, headers = api_instance.delete_tenant_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_tenant_with_http_info: #{e}" end @@ -2841,7 +2841,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**DeleteTenantResponse**](DeleteTenantResponse.md) ### Authorization @@ -2855,7 +2855,7 @@ end ## delete_tenant_package -> delete_tenant_package(tenant_id, id) +> delete_tenant_package(tenant_id, id) @@ -2889,7 +2889,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_tenant_package_with_http_info(tenant_id, id) +> , Integer, Hash)> delete_tenant_package_with_http_info(tenant_id, id) ```ruby begin @@ -2897,7 +2897,7 @@ begin data, status_code, headers = api_instance.delete_tenant_package_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_tenant_package_with_http_info: #{e}" end @@ -2912,7 +2912,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**DeleteTenantPackageResponse**](DeleteTenantPackageResponse.md) ### Authorization @@ -2926,7 +2926,7 @@ end ## delete_tenant_user -> delete_tenant_user(tenant_id, id, opts) +> delete_tenant_user(tenant_id, id, opts) @@ -2964,7 +2964,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_tenant_user_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> delete_tenant_user_with_http_info(tenant_id, id, opts) ```ruby begin @@ -2972,7 +2972,7 @@ begin data, status_code, headers = api_instance.delete_tenant_user_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_tenant_user_with_http_info: #{e}" end @@ -2989,7 +2989,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**DeleteTenantUserResponse**](DeleteTenantUserResponse.md) ### Authorization @@ -3003,7 +3003,7 @@ end ## delete_user_badge -> delete_user_badge(tenant_id, id) +> delete_user_badge(tenant_id, id) @@ -3037,7 +3037,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_user_badge_with_http_info(tenant_id, id) +> , Integer, Hash)> delete_user_badge_with_http_info(tenant_id, id) ```ruby begin @@ -3045,7 +3045,7 @@ begin data, status_code, headers = api_instance.delete_user_badge_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_user_badge_with_http_info: #{e}" end @@ -3060,7 +3060,7 @@ end ### Return type -[**APIEmptySuccessResponse**](APIEmptySuccessResponse.md) +[**DeleteUserBadgeResponse**](DeleteUserBadgeResponse.md) ### Authorization @@ -3074,7 +3074,7 @@ end ## delete_vote -> delete_vote(tenant_id, id, opts) +> delete_vote(tenant_id, id, opts) @@ -3111,7 +3111,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_vote_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> delete_vote_with_http_info(tenant_id, id, opts) ```ruby begin @@ -3119,7 +3119,7 @@ begin data, status_code, headers = api_instance.delete_vote_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_vote_with_http_info: #{e}" end @@ -3135,7 +3135,7 @@ end ### Return type -[**VoteDeleteResponse**](VoteDeleteResponse.md) +[**DeleteVoteResponse**](DeleteVoteResponse.md) ### Authorization @@ -3149,7 +3149,7 @@ end ## flag_comment -> flag_comment(tenant_id, id, opts) +> flag_comment(tenant_id, id, opts) @@ -3187,7 +3187,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> flag_comment_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> flag_comment_with_http_info(tenant_id, id, opts) ```ruby begin @@ -3195,7 +3195,7 @@ begin data, status_code, headers = api_instance.flag_comment_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->flag_comment_with_http_info: #{e}" end @@ -3212,7 +3212,7 @@ end ### Return type -[**FlagCommentResponse**](FlagCommentResponse.md) +[**FlagCommentResponse1**](FlagCommentResponse1.md) ### Authorization @@ -3226,7 +3226,7 @@ end ## get_audit_logs -> get_audit_logs(tenant_id, opts) +> get_audit_logs(tenant_id, opts) @@ -3266,7 +3266,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_audit_logs_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_audit_logs_with_http_info(tenant_id, opts) ```ruby begin @@ -3274,7 +3274,7 @@ begin data, status_code, headers = api_instance.get_audit_logs_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_audit_logs_with_http_info: #{e}" end @@ -3293,7 +3293,7 @@ end ### Return type -[**GetAuditLogsResponse**](GetAuditLogsResponse.md) +[**GetAuditLogsResponse1**](GetAuditLogsResponse1.md) ### Authorization @@ -3307,7 +3307,7 @@ end ## get_cached_notification_count -> get_cached_notification_count(tenant_id, id) +> get_cached_notification_count(tenant_id, id) @@ -3341,7 +3341,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_cached_notification_count_with_http_info(tenant_id, id) +> , Integer, Hash)> get_cached_notification_count_with_http_info(tenant_id, id) ```ruby begin @@ -3349,7 +3349,7 @@ begin data, status_code, headers = api_instance.get_cached_notification_count_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_cached_notification_count_with_http_info: #{e}" end @@ -3364,7 +3364,7 @@ end ### Return type -[**GetCachedNotificationCountResponse**](GetCachedNotificationCountResponse.md) +[**GetCachedNotificationCountResponse1**](GetCachedNotificationCountResponse1.md) ### Authorization @@ -3378,7 +3378,7 @@ end ## get_comment -> get_comment(tenant_id, id) +> get_comment(tenant_id, id) @@ -3412,7 +3412,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comment_with_http_info(tenant_id, id) +> , Integer, Hash)> get_comment_with_http_info(tenant_id, id) ```ruby begin @@ -3420,7 +3420,7 @@ begin data, status_code, headers = api_instance.get_comment_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_comment_with_http_info: #{e}" end @@ -3435,7 +3435,7 @@ end ### Return type -[**APIGetCommentResponse**](APIGetCommentResponse.md) +[**GetCommentResponse**](GetCommentResponse.md) ### Authorization @@ -3449,7 +3449,7 @@ end ## get_comments -> get_comments(tenant_id, opts) +> get_comments(tenant_id, opts) @@ -3500,7 +3500,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comments_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_comments_with_http_info(tenant_id, opts) ```ruby begin @@ -3508,7 +3508,7 @@ begin data, status_code, headers = api_instance.get_comments_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_comments_with_http_info: #{e}" end @@ -3538,7 +3538,7 @@ end ### Return type -[**APIGetCommentsResponse**](APIGetCommentsResponse.md) +[**GetCommentsResponse**](GetCommentsResponse.md) ### Authorization @@ -3692,7 +3692,7 @@ end ## get_email_template -> get_email_template(tenant_id, id) +> get_email_template(tenant_id, id) @@ -3726,7 +3726,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_email_template_with_http_info(tenant_id, id) +> , Integer, Hash)> get_email_template_with_http_info(tenant_id, id) ```ruby begin @@ -3734,7 +3734,7 @@ begin data, status_code, headers = api_instance.get_email_template_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_email_template_with_http_info: #{e}" end @@ -3749,7 +3749,7 @@ end ### Return type -[**GetEmailTemplateResponse**](GetEmailTemplateResponse.md) +[**GetEmailTemplateResponse1**](GetEmailTemplateResponse1.md) ### Authorization @@ -3763,7 +3763,7 @@ end ## get_email_template_definitions -> get_email_template_definitions(tenant_id) +> get_email_template_definitions(tenant_id) @@ -3796,7 +3796,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_email_template_definitions_with_http_info(tenant_id) +> , Integer, Hash)> get_email_template_definitions_with_http_info(tenant_id) ```ruby begin @@ -3804,7 +3804,7 @@ begin data, status_code, headers = api_instance.get_email_template_definitions_with_http_info(tenant_id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_email_template_definitions_with_http_info: #{e}" end @@ -3818,7 +3818,7 @@ end ### Return type -[**GetEmailTemplateDefinitionsResponse**](GetEmailTemplateDefinitionsResponse.md) +[**GetEmailTemplateDefinitionsResponse1**](GetEmailTemplateDefinitionsResponse1.md) ### Authorization @@ -3832,7 +3832,7 @@ end ## get_email_template_render_errors -> get_email_template_render_errors(tenant_id, id, opts) +> get_email_template_render_errors(tenant_id, id, opts) @@ -3869,7 +3869,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_email_template_render_errors_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> get_email_template_render_errors_with_http_info(tenant_id, id, opts) ```ruby begin @@ -3877,7 +3877,7 @@ begin data, status_code, headers = api_instance.get_email_template_render_errors_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_email_template_render_errors_with_http_info: #{e}" end @@ -3893,7 +3893,7 @@ end ### Return type -[**GetEmailTemplateRenderErrorsResponse**](GetEmailTemplateRenderErrorsResponse.md) +[**GetEmailTemplateRenderErrorsResponse1**](GetEmailTemplateRenderErrorsResponse1.md) ### Authorization @@ -3907,7 +3907,7 @@ end ## get_email_templates -> get_email_templates(tenant_id, opts) +> get_email_templates(tenant_id, opts) @@ -3943,7 +3943,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_email_templates_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_email_templates_with_http_info(tenant_id, opts) ```ruby begin @@ -3951,7 +3951,7 @@ begin data, status_code, headers = api_instance.get_email_templates_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_email_templates_with_http_info: #{e}" end @@ -3966,7 +3966,7 @@ end ### Return type -[**GetEmailTemplatesResponse**](GetEmailTemplatesResponse.md) +[**GetEmailTemplatesResponse1**](GetEmailTemplatesResponse1.md) ### Authorization @@ -3980,7 +3980,7 @@ end ## get_feed_posts -> get_feed_posts(tenant_id, opts) +> get_feed_posts(tenant_id, opts) @@ -4020,7 +4020,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_feed_posts_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_feed_posts_with_http_info(tenant_id, opts) ```ruby begin @@ -4028,7 +4028,7 @@ begin data, status_code, headers = api_instance.get_feed_posts_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_feed_posts_with_http_info: #{e}" end @@ -4045,7 +4045,7 @@ end ### Return type -[**GetFeedPostsResponse**](GetFeedPostsResponse.md) +[**GetFeedPostsResponse1**](GetFeedPostsResponse1.md) ### Authorization @@ -4059,7 +4059,7 @@ end ## get_hash_tags -> get_hash_tags(tenant_id, opts) +> get_hash_tags(tenant_id, opts) @@ -4095,7 +4095,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_hash_tags_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_hash_tags_with_http_info(tenant_id, opts) ```ruby begin @@ -4103,7 +4103,7 @@ begin data, status_code, headers = api_instance.get_hash_tags_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_hash_tags_with_http_info: #{e}" end @@ -4118,7 +4118,7 @@ end ### Return type -[**GetHashTagsResponse**](GetHashTagsResponse.md) +[**GetHashTagsResponse1**](GetHashTagsResponse1.md) ### Authorization @@ -4132,7 +4132,7 @@ end ## get_moderator -> get_moderator(tenant_id, id) +> get_moderator(tenant_id, id) @@ -4166,7 +4166,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_moderator_with_http_info(tenant_id, id) +> , Integer, Hash)> get_moderator_with_http_info(tenant_id, id) ```ruby begin @@ -4174,7 +4174,7 @@ begin data, status_code, headers = api_instance.get_moderator_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_moderator_with_http_info: #{e}" end @@ -4189,7 +4189,7 @@ end ### Return type -[**GetModeratorResponse**](GetModeratorResponse.md) +[**GetModeratorResponse1**](GetModeratorResponse1.md) ### Authorization @@ -4203,7 +4203,7 @@ end ## get_moderators -> get_moderators(tenant_id, opts) +> get_moderators(tenant_id, opts) @@ -4239,7 +4239,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_moderators_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_moderators_with_http_info(tenant_id, opts) ```ruby begin @@ -4247,7 +4247,7 @@ begin data, status_code, headers = api_instance.get_moderators_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_moderators_with_http_info: #{e}" end @@ -4262,7 +4262,7 @@ end ### Return type -[**GetModeratorsResponse**](GetModeratorsResponse.md) +[**GetModeratorsResponse1**](GetModeratorsResponse1.md) ### Authorization @@ -4276,7 +4276,7 @@ end ## get_notification_count -> get_notification_count(tenant_id, opts) +> get_notification_count(tenant_id, opts) @@ -4316,7 +4316,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_notification_count_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_notification_count_with_http_info(tenant_id, opts) ```ruby begin @@ -4324,7 +4324,7 @@ begin data, status_code, headers = api_instance.get_notification_count_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_notification_count_with_http_info: #{e}" end @@ -4343,7 +4343,7 @@ end ### Return type -[**GetNotificationCountResponse**](GetNotificationCountResponse.md) +[**GetNotificationCountResponse1**](GetNotificationCountResponse1.md) ### Authorization @@ -4357,7 +4357,7 @@ end ## get_notifications -> get_notifications(tenant_id, opts) +> get_notifications(tenant_id, opts) @@ -4398,7 +4398,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_notifications_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_notifications_with_http_info(tenant_id, opts) ```ruby begin @@ -4406,7 +4406,7 @@ begin data, status_code, headers = api_instance.get_notifications_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_notifications_with_http_info: #{e}" end @@ -4426,7 +4426,7 @@ end ### Return type -[**GetNotificationsResponse**](GetNotificationsResponse.md) +[**GetNotificationsResponse1**](GetNotificationsResponse1.md) ### Authorization @@ -4580,7 +4580,7 @@ end ## get_pending_webhook_event_count -> get_pending_webhook_event_count(tenant_id, opts) +> get_pending_webhook_event_count(tenant_id, opts) @@ -4621,7 +4621,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_pending_webhook_event_count_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_pending_webhook_event_count_with_http_info(tenant_id, opts) ```ruby begin @@ -4629,7 +4629,7 @@ begin data, status_code, headers = api_instance.get_pending_webhook_event_count_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_pending_webhook_event_count_with_http_info: #{e}" end @@ -4649,7 +4649,7 @@ end ### Return type -[**GetPendingWebhookEventCountResponse**](GetPendingWebhookEventCountResponse.md) +[**GetPendingWebhookEventCountResponse1**](GetPendingWebhookEventCountResponse1.md) ### Authorization @@ -4663,7 +4663,7 @@ end ## get_pending_webhook_events -> get_pending_webhook_events(tenant_id, opts) +> get_pending_webhook_events(tenant_id, opts) @@ -4705,7 +4705,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_pending_webhook_events_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_pending_webhook_events_with_http_info(tenant_id, opts) ```ruby begin @@ -4713,7 +4713,7 @@ begin data, status_code, headers = api_instance.get_pending_webhook_events_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_pending_webhook_events_with_http_info: #{e}" end @@ -4734,7 +4734,7 @@ end ### Return type -[**GetPendingWebhookEventsResponse**](GetPendingWebhookEventsResponse.md) +[**GetPendingWebhookEventsResponse1**](GetPendingWebhookEventsResponse1.md) ### Authorization @@ -4748,7 +4748,7 @@ end ## get_question_config -> get_question_config(tenant_id, id) +> get_question_config(tenant_id, id) @@ -4782,7 +4782,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_question_config_with_http_info(tenant_id, id) +> , Integer, Hash)> get_question_config_with_http_info(tenant_id, id) ```ruby begin @@ -4790,7 +4790,7 @@ begin data, status_code, headers = api_instance.get_question_config_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_question_config_with_http_info: #{e}" end @@ -4805,7 +4805,7 @@ end ### Return type -[**GetQuestionConfigResponse**](GetQuestionConfigResponse.md) +[**GetQuestionConfigResponse1**](GetQuestionConfigResponse1.md) ### Authorization @@ -4819,7 +4819,7 @@ end ## get_question_configs -> get_question_configs(tenant_id, opts) +> get_question_configs(tenant_id, opts) @@ -4855,7 +4855,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_question_configs_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_question_configs_with_http_info(tenant_id, opts) ```ruby begin @@ -4863,7 +4863,7 @@ begin data, status_code, headers = api_instance.get_question_configs_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_question_configs_with_http_info: #{e}" end @@ -4878,7 +4878,7 @@ end ### Return type -[**GetQuestionConfigsResponse**](GetQuestionConfigsResponse.md) +[**GetQuestionConfigsResponse1**](GetQuestionConfigsResponse1.md) ### Authorization @@ -4892,7 +4892,7 @@ end ## get_question_result -> get_question_result(tenant_id, id) +> get_question_result(tenant_id, id) @@ -4926,7 +4926,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_question_result_with_http_info(tenant_id, id) +> , Integer, Hash)> get_question_result_with_http_info(tenant_id, id) ```ruby begin @@ -4934,7 +4934,7 @@ begin data, status_code, headers = api_instance.get_question_result_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_question_result_with_http_info: #{e}" end @@ -4949,7 +4949,7 @@ end ### Return type -[**GetQuestionResultResponse**](GetQuestionResultResponse.md) +[**GetQuestionResultResponse1**](GetQuestionResultResponse1.md) ### Authorization @@ -4963,7 +4963,7 @@ end ## get_question_results -> get_question_results(tenant_id, opts) +> get_question_results(tenant_id, opts) @@ -5004,7 +5004,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_question_results_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_question_results_with_http_info(tenant_id, opts) ```ruby begin @@ -5012,7 +5012,7 @@ begin data, status_code, headers = api_instance.get_question_results_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_question_results_with_http_info: #{e}" end @@ -5032,7 +5032,7 @@ end ### Return type -[**GetQuestionResultsResponse**](GetQuestionResultsResponse.md) +[**GetQuestionResultsResponse1**](GetQuestionResultsResponse1.md) ### Authorization @@ -5334,7 +5334,7 @@ end ## get_tenant -> get_tenant(tenant_id, id) +> get_tenant(tenant_id, id) @@ -5368,7 +5368,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenant_with_http_info(tenant_id, id) +> , Integer, Hash)> get_tenant_with_http_info(tenant_id, id) ```ruby begin @@ -5376,7 +5376,7 @@ begin data, status_code, headers = api_instance.get_tenant_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenant_with_http_info: #{e}" end @@ -5391,7 +5391,7 @@ end ### Return type -[**GetTenantResponse**](GetTenantResponse.md) +[**GetTenantResponse1**](GetTenantResponse1.md) ### Authorization @@ -5405,7 +5405,7 @@ end ## get_tenant_daily_usages -> get_tenant_daily_usages(tenant_id, opts) +> get_tenant_daily_usages(tenant_id, opts) @@ -5444,7 +5444,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenant_daily_usages_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_tenant_daily_usages_with_http_info(tenant_id, opts) ```ruby begin @@ -5452,7 +5452,7 @@ begin data, status_code, headers = api_instance.get_tenant_daily_usages_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenant_daily_usages_with_http_info: #{e}" end @@ -5470,7 +5470,7 @@ end ### Return type -[**GetTenantDailyUsagesResponse**](GetTenantDailyUsagesResponse.md) +[**GetTenantDailyUsagesResponse1**](GetTenantDailyUsagesResponse1.md) ### Authorization @@ -5484,7 +5484,7 @@ end ## get_tenant_package -> get_tenant_package(tenant_id, id) +> get_tenant_package(tenant_id, id) @@ -5518,7 +5518,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenant_package_with_http_info(tenant_id, id) +> , Integer, Hash)> get_tenant_package_with_http_info(tenant_id, id) ```ruby begin @@ -5526,7 +5526,7 @@ begin data, status_code, headers = api_instance.get_tenant_package_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenant_package_with_http_info: #{e}" end @@ -5541,7 +5541,7 @@ end ### Return type -[**GetTenantPackageResponse**](GetTenantPackageResponse.md) +[**GetTenantPackageResponse1**](GetTenantPackageResponse1.md) ### Authorization @@ -5555,7 +5555,7 @@ end ## get_tenant_packages -> get_tenant_packages(tenant_id, opts) +> get_tenant_packages(tenant_id, opts) @@ -5591,7 +5591,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenant_packages_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_tenant_packages_with_http_info(tenant_id, opts) ```ruby begin @@ -5599,7 +5599,7 @@ begin data, status_code, headers = api_instance.get_tenant_packages_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenant_packages_with_http_info: #{e}" end @@ -5614,7 +5614,7 @@ end ### Return type -[**GetTenantPackagesResponse**](GetTenantPackagesResponse.md) +[**GetTenantPackagesResponse1**](GetTenantPackagesResponse1.md) ### Authorization @@ -5628,7 +5628,7 @@ end ## get_tenant_user -> get_tenant_user(tenant_id, id) +> get_tenant_user(tenant_id, id) @@ -5662,7 +5662,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenant_user_with_http_info(tenant_id, id) +> , Integer, Hash)> get_tenant_user_with_http_info(tenant_id, id) ```ruby begin @@ -5670,7 +5670,7 @@ begin data, status_code, headers = api_instance.get_tenant_user_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenant_user_with_http_info: #{e}" end @@ -5685,7 +5685,7 @@ end ### Return type -[**GetTenantUserResponse**](GetTenantUserResponse.md) +[**GetTenantUserResponse1**](GetTenantUserResponse1.md) ### Authorization @@ -5699,7 +5699,7 @@ end ## get_tenant_users -> get_tenant_users(tenant_id, opts) +> get_tenant_users(tenant_id, opts) @@ -5735,7 +5735,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenant_users_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_tenant_users_with_http_info(tenant_id, opts) ```ruby begin @@ -5743,7 +5743,7 @@ begin data, status_code, headers = api_instance.get_tenant_users_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenant_users_with_http_info: #{e}" end @@ -5758,7 +5758,7 @@ end ### Return type -[**GetTenantUsersResponse**](GetTenantUsersResponse.md) +[**GetTenantUsersResponse1**](GetTenantUsersResponse1.md) ### Authorization @@ -5772,7 +5772,7 @@ end ## get_tenants -> get_tenants(tenant_id, opts) +> get_tenants(tenant_id, opts) @@ -5809,7 +5809,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenants_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_tenants_with_http_info(tenant_id, opts) ```ruby begin @@ -5817,7 +5817,7 @@ begin data, status_code, headers = api_instance.get_tenants_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenants_with_http_info: #{e}" end @@ -5833,7 +5833,7 @@ end ### Return type -[**GetTenantsResponse**](GetTenantsResponse.md) +[**GetTenantsResponse1**](GetTenantsResponse1.md) ### Authorization @@ -5847,7 +5847,7 @@ end ## get_ticket -> get_ticket(tenant_id, id, opts) +> get_ticket(tenant_id, id, opts) @@ -5884,7 +5884,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_ticket_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> get_ticket_with_http_info(tenant_id, id, opts) ```ruby begin @@ -5892,7 +5892,7 @@ begin data, status_code, headers = api_instance.get_ticket_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_ticket_with_http_info: #{e}" end @@ -5908,7 +5908,7 @@ end ### Return type -[**GetTicketResponse**](GetTicketResponse.md) +[**GetTicketResponse1**](GetTicketResponse1.md) ### Authorization @@ -5922,7 +5922,7 @@ end ## get_tickets -> get_tickets(tenant_id, opts) +> get_tickets(tenant_id, opts) @@ -5961,7 +5961,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tickets_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_tickets_with_http_info(tenant_id, opts) ```ruby begin @@ -5969,7 +5969,7 @@ begin data, status_code, headers = api_instance.get_tickets_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tickets_with_http_info: #{e}" end @@ -5987,7 +5987,7 @@ end ### Return type -[**GetTicketsResponse**](GetTicketsResponse.md) +[**GetTicketsResponse1**](GetTicketsResponse1.md) ### Authorization @@ -6001,7 +6001,7 @@ end ## get_user -> get_user(tenant_id, id) +> get_user(tenant_id, id) @@ -6035,7 +6035,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_with_http_info(tenant_id, id) +> , Integer, Hash)> get_user_with_http_info(tenant_id, id) ```ruby begin @@ -6043,7 +6043,7 @@ begin data, status_code, headers = api_instance.get_user_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user_with_http_info: #{e}" end @@ -6058,7 +6058,7 @@ end ### Return type -[**GetUserResponse**](GetUserResponse.md) +[**GetUserResponse1**](GetUserResponse1.md) ### Authorization @@ -6072,7 +6072,7 @@ end ## get_user_badge -> get_user_badge(tenant_id, id) +> get_user_badge(tenant_id, id) @@ -6106,7 +6106,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_badge_with_http_info(tenant_id, id) +> , Integer, Hash)> get_user_badge_with_http_info(tenant_id, id) ```ruby begin @@ -6114,7 +6114,7 @@ begin data, status_code, headers = api_instance.get_user_badge_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user_badge_with_http_info: #{e}" end @@ -6129,7 +6129,7 @@ end ### Return type -[**APIGetUserBadgeResponse**](APIGetUserBadgeResponse.md) +[**GetUserBadgeResponse**](GetUserBadgeResponse.md) ### Authorization @@ -6143,7 +6143,7 @@ end ## get_user_badge_progress_by_id -> get_user_badge_progress_by_id(tenant_id, id) +> get_user_badge_progress_by_id(tenant_id, id) @@ -6177,7 +6177,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_badge_progress_by_id_with_http_info(tenant_id, id) +> , Integer, Hash)> get_user_badge_progress_by_id_with_http_info(tenant_id, id) ```ruby begin @@ -6185,7 +6185,7 @@ begin data, status_code, headers = api_instance.get_user_badge_progress_by_id_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user_badge_progress_by_id_with_http_info: #{e}" end @@ -6200,7 +6200,7 @@ end ### Return type -[**APIGetUserBadgeProgressResponse**](APIGetUserBadgeProgressResponse.md) +[**GetUserBadgeProgressByIdResponse**](GetUserBadgeProgressByIdResponse.md) ### Authorization @@ -6214,7 +6214,7 @@ end ## get_user_badge_progress_by_user_id -> get_user_badge_progress_by_user_id(tenant_id, user_id) +> get_user_badge_progress_by_user_id(tenant_id, user_id) @@ -6248,7 +6248,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id) +> , Integer, Hash)> get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id) ```ruby begin @@ -6256,7 +6256,7 @@ begin data, status_code, headers = api_instance.get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user_badge_progress_by_user_id_with_http_info: #{e}" end @@ -6271,7 +6271,7 @@ end ### Return type -[**APIGetUserBadgeProgressResponse**](APIGetUserBadgeProgressResponse.md) +[**GetUserBadgeProgressByUserIdResponse**](GetUserBadgeProgressByUserIdResponse.md) ### Authorization @@ -6285,7 +6285,7 @@ end ## get_user_badge_progress_list -> get_user_badge_progress_list(tenant_id, opts) +> get_user_badge_progress_list(tenant_id, opts) @@ -6323,7 +6323,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_badge_progress_list_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_user_badge_progress_list_with_http_info(tenant_id, opts) ```ruby begin @@ -6331,7 +6331,7 @@ begin data, status_code, headers = api_instance.get_user_badge_progress_list_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user_badge_progress_list_with_http_info: #{e}" end @@ -6348,7 +6348,7 @@ end ### Return type -[**APIGetUserBadgeProgressListResponse**](APIGetUserBadgeProgressListResponse.md) +[**GetUserBadgeProgressListResponse**](GetUserBadgeProgressListResponse.md) ### Authorization @@ -6362,7 +6362,7 @@ end ## get_user_badges -> get_user_badges(tenant_id, opts) +> get_user_badges(tenant_id, opts) @@ -6403,7 +6403,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_badges_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_user_badges_with_http_info(tenant_id, opts) ```ruby begin @@ -6411,7 +6411,7 @@ begin data, status_code, headers = api_instance.get_user_badges_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user_badges_with_http_info: #{e}" end @@ -6431,7 +6431,7 @@ end ### Return type -[**APIGetUserBadgesResponse**](APIGetUserBadgesResponse.md) +[**GetUserBadgesResponse**](GetUserBadgesResponse.md) ### Authorization @@ -6445,7 +6445,7 @@ end ## get_votes -> get_votes(tenant_id, url_id) +> get_votes(tenant_id, url_id) @@ -6479,7 +6479,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_votes_with_http_info(tenant_id, url_id) +> , Integer, Hash)> get_votes_with_http_info(tenant_id, url_id) ```ruby begin @@ -6487,7 +6487,7 @@ begin data, status_code, headers = api_instance.get_votes_with_http_info(tenant_id, url_id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_votes_with_http_info: #{e}" end @@ -6502,7 +6502,7 @@ end ### Return type -[**GetVotesResponse**](GetVotesResponse.md) +[**GetVotesResponse1**](GetVotesResponse1.md) ### Authorization @@ -6516,7 +6516,7 @@ end ## get_votes_for_user -> get_votes_for_user(tenant_id, url_id, opts) +> get_votes_for_user(tenant_id, url_id, opts) @@ -6554,7 +6554,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_votes_for_user_with_http_info(tenant_id, url_id, opts) +> , Integer, Hash)> get_votes_for_user_with_http_info(tenant_id, url_id, opts) ```ruby begin @@ -6562,7 +6562,7 @@ begin data, status_code, headers = api_instance.get_votes_for_user_with_http_info(tenant_id, url_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_votes_for_user_with_http_info: #{e}" end @@ -6579,7 +6579,7 @@ end ### Return type -[**GetVotesForUserResponse**](GetVotesForUserResponse.md) +[**GetVotesForUserResponse1**](GetVotesForUserResponse1.md) ### Authorization @@ -6666,7 +6666,7 @@ end ## patch_hash_tag -> patch_hash_tag(tag, opts) +> patch_hash_tag(tag, opts) @@ -6703,7 +6703,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> patch_hash_tag_with_http_info(tag, opts) +> , Integer, Hash)> patch_hash_tag_with_http_info(tag, opts) ```ruby begin @@ -6711,7 +6711,7 @@ begin data, status_code, headers = api_instance.patch_hash_tag_with_http_info(tag, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->patch_hash_tag_with_http_info: #{e}" end @@ -6727,7 +6727,7 @@ end ### Return type -[**UpdateHashTagResponse**](UpdateHashTagResponse.md) +[**PatchHashTagResponse**](PatchHashTagResponse.md) ### Authorization @@ -7041,7 +7041,7 @@ end ## render_email_template -> render_email_template(tenant_id, render_email_template_body, opts) +> render_email_template(tenant_id, render_email_template_body, opts) @@ -7078,7 +7078,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> render_email_template_with_http_info(tenant_id, render_email_template_body, opts) +> , Integer, Hash)> render_email_template_with_http_info(tenant_id, render_email_template_body, opts) ```ruby begin @@ -7086,7 +7086,7 @@ begin data, status_code, headers = api_instance.render_email_template_with_http_info(tenant_id, render_email_template_body, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->render_email_template_with_http_info: #{e}" end @@ -7102,7 +7102,7 @@ end ### Return type -[**RenderEmailTemplateResponse**](RenderEmailTemplateResponse.md) +[**RenderEmailTemplateResponse1**](RenderEmailTemplateResponse1.md) ### Authorization @@ -7116,7 +7116,7 @@ end ## replace_tenant_package -> replace_tenant_package(tenant_id, id, replace_tenant_package_body) +> replace_tenant_package(tenant_id, id, replace_tenant_package_body) @@ -7151,7 +7151,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_body) +> , Integer, Hash)> replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_body) ```ruby begin @@ -7159,7 +7159,7 @@ begin data, status_code, headers = api_instance.replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->replace_tenant_package_with_http_info: #{e}" end @@ -7175,7 +7175,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**ReplaceTenantPackageResponse**](ReplaceTenantPackageResponse.md) ### Authorization @@ -7189,7 +7189,7 @@ end ## replace_tenant_user -> replace_tenant_user(tenant_id, id, replace_tenant_user_body, opts) +> replace_tenant_user(tenant_id, id, replace_tenant_user_body, opts) @@ -7227,7 +7227,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> replace_tenant_user_with_http_info(tenant_id, id, replace_tenant_user_body, opts) +> , Integer, Hash)> replace_tenant_user_with_http_info(tenant_id, id, replace_tenant_user_body, opts) ```ruby begin @@ -7235,7 +7235,7 @@ begin data, status_code, headers = api_instance.replace_tenant_user_with_http_info(tenant_id, id, replace_tenant_user_body, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->replace_tenant_user_with_http_info: #{e}" end @@ -7252,7 +7252,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**ReplaceTenantUserResponse**](ReplaceTenantUserResponse.md) ### Authorization @@ -7266,7 +7266,7 @@ end ## save_comment -> save_comment(tenant_id, create_comment_params, opts) +> save_comment(tenant_id, create_comment_params, opts) @@ -7306,7 +7306,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> save_comment_with_http_info(tenant_id, create_comment_params, opts) +> , Integer, Hash)> save_comment_with_http_info(tenant_id, create_comment_params, opts) ```ruby begin @@ -7314,7 +7314,7 @@ begin data, status_code, headers = api_instance.save_comment_with_http_info(tenant_id, create_comment_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->save_comment_with_http_info: #{e}" end @@ -7333,7 +7333,7 @@ end ### Return type -[**APISaveCommentResponse**](APISaveCommentResponse.md) +[**SaveCommentResponse**](SaveCommentResponse.md) ### Authorization @@ -7428,7 +7428,7 @@ end ## send_invite -> send_invite(tenant_id, id, from_name) +> send_invite(tenant_id, id, from_name) @@ -7463,7 +7463,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> send_invite_with_http_info(tenant_id, id, from_name) +> , Integer, Hash)> send_invite_with_http_info(tenant_id, id, from_name) ```ruby begin @@ -7471,7 +7471,7 @@ begin data, status_code, headers = api_instance.send_invite_with_http_info(tenant_id, id, from_name) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->send_invite_with_http_info: #{e}" end @@ -7487,7 +7487,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**SendInviteResponse**](SendInviteResponse.md) ### Authorization @@ -7501,7 +7501,7 @@ end ## send_login_link -> send_login_link(tenant_id, id, opts) +> send_login_link(tenant_id, id, opts) @@ -7538,7 +7538,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> send_login_link_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> send_login_link_with_http_info(tenant_id, id, opts) ```ruby begin @@ -7546,7 +7546,7 @@ begin data, status_code, headers = api_instance.send_login_link_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->send_login_link_with_http_info: #{e}" end @@ -7562,7 +7562,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**SendLoginLinkResponse**](SendLoginLinkResponse.md) ### Authorization @@ -7576,7 +7576,7 @@ end ## un_block_user_from_comment -> un_block_user_from_comment(tenant_id, id, un_block_from_comment_params, opts) +> un_block_user_from_comment(tenant_id, id, un_block_from_comment_params, opts) @@ -7615,7 +7615,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comment_params, opts) +> , Integer, Hash)> un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comment_params, opts) ```ruby begin @@ -7623,7 +7623,7 @@ begin data, status_code, headers = api_instance.un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comment_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->un_block_user_from_comment_with_http_info: #{e}" end @@ -7641,7 +7641,7 @@ end ### Return type -[**UnblockSuccess**](UnblockSuccess.md) +[**UnBlockUserFromCommentResponse**](UnBlockUserFromCommentResponse.md) ### Authorization @@ -7655,7 +7655,7 @@ end ## un_flag_comment -> un_flag_comment(tenant_id, id, opts) +> un_flag_comment(tenant_id, id, opts) @@ -7693,7 +7693,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> un_flag_comment_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> un_flag_comment_with_http_info(tenant_id, id, opts) ```ruby begin @@ -7701,7 +7701,7 @@ begin data, status_code, headers = api_instance.un_flag_comment_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->un_flag_comment_with_http_info: #{e}" end @@ -7718,7 +7718,7 @@ end ### Return type -[**FlagCommentResponse**](FlagCommentResponse.md) +[**UnFlagCommentResponse**](UnFlagCommentResponse.md) ### Authorization @@ -7732,7 +7732,7 @@ end ## update_comment -> update_comment(tenant_id, id, updatable_comment_params, opts) +> update_comment(tenant_id, id, updatable_comment_params, opts) @@ -7772,7 +7772,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts) +> , Integer, Hash)> update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts) ```ruby begin @@ -7780,7 +7780,7 @@ begin data, status_code, headers = api_instance.update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_comment_with_http_info: #{e}" end @@ -7799,7 +7799,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**UpdateCommentResponse**](UpdateCommentResponse.md) ### Authorization @@ -7813,7 +7813,7 @@ end ## update_email_template -> update_email_template(tenant_id, id, update_email_template_body) +> update_email_template(tenant_id, id, update_email_template_body) @@ -7848,7 +7848,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_email_template_with_http_info(tenant_id, id, update_email_template_body) +> , Integer, Hash)> update_email_template_with_http_info(tenant_id, id, update_email_template_body) ```ruby begin @@ -7856,7 +7856,7 @@ begin data, status_code, headers = api_instance.update_email_template_with_http_info(tenant_id, id, update_email_template_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_email_template_with_http_info: #{e}" end @@ -7872,7 +7872,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**UpdateEmailTemplateResponse**](UpdateEmailTemplateResponse.md) ### Authorization @@ -7886,7 +7886,7 @@ end ## update_feed_post -> update_feed_post(tenant_id, id, feed_post) +> update_feed_post(tenant_id, id, feed_post) @@ -7921,7 +7921,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_feed_post_with_http_info(tenant_id, id, feed_post) +> , Integer, Hash)> update_feed_post_with_http_info(tenant_id, id, feed_post) ```ruby begin @@ -7929,7 +7929,7 @@ begin data, status_code, headers = api_instance.update_feed_post_with_http_info(tenant_id, id, feed_post) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_feed_post_with_http_info: #{e}" end @@ -7945,7 +7945,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**UpdateFeedPostResponse**](UpdateFeedPostResponse.md) ### Authorization @@ -7959,7 +7959,7 @@ end ## update_moderator -> update_moderator(tenant_id, id, update_moderator_body) +> update_moderator(tenant_id, id, update_moderator_body) @@ -7994,7 +7994,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_moderator_with_http_info(tenant_id, id, update_moderator_body) +> , Integer, Hash)> update_moderator_with_http_info(tenant_id, id, update_moderator_body) ```ruby begin @@ -8002,7 +8002,7 @@ begin data, status_code, headers = api_instance.update_moderator_with_http_info(tenant_id, id, update_moderator_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_moderator_with_http_info: #{e}" end @@ -8018,7 +8018,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**UpdateModeratorResponse**](UpdateModeratorResponse.md) ### Authorization @@ -8032,7 +8032,7 @@ end ## update_notification -> update_notification(tenant_id, id, update_notification_body, opts) +> update_notification(tenant_id, id, update_notification_body, opts) @@ -8070,7 +8070,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_notification_with_http_info(tenant_id, id, update_notification_body, opts) +> , Integer, Hash)> update_notification_with_http_info(tenant_id, id, update_notification_body, opts) ```ruby begin @@ -8078,7 +8078,7 @@ begin data, status_code, headers = api_instance.update_notification_with_http_info(tenant_id, id, update_notification_body, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_notification_with_http_info: #{e}" end @@ -8095,7 +8095,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**UpdateNotificationResponse**](UpdateNotificationResponse.md) ### Authorization @@ -8109,7 +8109,7 @@ end ## update_question_config -> update_question_config(tenant_id, id, update_question_config_body) +> update_question_config(tenant_id, id, update_question_config_body) @@ -8144,7 +8144,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_question_config_with_http_info(tenant_id, id, update_question_config_body) +> , Integer, Hash)> update_question_config_with_http_info(tenant_id, id, update_question_config_body) ```ruby begin @@ -8152,7 +8152,7 @@ begin data, status_code, headers = api_instance.update_question_config_with_http_info(tenant_id, id, update_question_config_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_question_config_with_http_info: #{e}" end @@ -8168,7 +8168,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**UpdateQuestionConfigResponse**](UpdateQuestionConfigResponse.md) ### Authorization @@ -8182,7 +8182,7 @@ end ## update_question_result -> update_question_result(tenant_id, id, update_question_result_body) +> update_question_result(tenant_id, id, update_question_result_body) @@ -8217,7 +8217,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_question_result_with_http_info(tenant_id, id, update_question_result_body) +> , Integer, Hash)> update_question_result_with_http_info(tenant_id, id, update_question_result_body) ```ruby begin @@ -8225,7 +8225,7 @@ begin data, status_code, headers = api_instance.update_question_result_with_http_info(tenant_id, id, update_question_result_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_question_result_with_http_info: #{e}" end @@ -8241,7 +8241,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**UpdateQuestionResultResponse**](UpdateQuestionResultResponse.md) ### Authorization @@ -8332,7 +8332,7 @@ end ## update_tenant -> update_tenant(tenant_id, id, update_tenant_body) +> update_tenant(tenant_id, id, update_tenant_body) @@ -8367,7 +8367,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_tenant_with_http_info(tenant_id, id, update_tenant_body) +> , Integer, Hash)> update_tenant_with_http_info(tenant_id, id, update_tenant_body) ```ruby begin @@ -8375,7 +8375,7 @@ begin data, status_code, headers = api_instance.update_tenant_with_http_info(tenant_id, id, update_tenant_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_tenant_with_http_info: #{e}" end @@ -8391,7 +8391,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**UpdateTenantResponse**](UpdateTenantResponse.md) ### Authorization @@ -8405,7 +8405,7 @@ end ## update_tenant_package -> update_tenant_package(tenant_id, id, update_tenant_package_body) +> update_tenant_package(tenant_id, id, update_tenant_package_body) @@ -8440,7 +8440,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_body) +> , Integer, Hash)> update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_body) ```ruby begin @@ -8448,7 +8448,7 @@ begin data, status_code, headers = api_instance.update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_tenant_package_with_http_info: #{e}" end @@ -8464,7 +8464,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**UpdateTenantPackageResponse**](UpdateTenantPackageResponse.md) ### Authorization @@ -8478,7 +8478,7 @@ end ## update_tenant_user -> update_tenant_user(tenant_id, id, update_tenant_user_body, opts) +> update_tenant_user(tenant_id, id, update_tenant_user_body, opts) @@ -8516,7 +8516,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_tenant_user_with_http_info(tenant_id, id, update_tenant_user_body, opts) +> , Integer, Hash)> update_tenant_user_with_http_info(tenant_id, id, update_tenant_user_body, opts) ```ruby begin @@ -8524,7 +8524,7 @@ begin data, status_code, headers = api_instance.update_tenant_user_with_http_info(tenant_id, id, update_tenant_user_body, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_tenant_user_with_http_info: #{e}" end @@ -8541,7 +8541,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**UpdateTenantUserResponse**](UpdateTenantUserResponse.md) ### Authorization @@ -8555,7 +8555,7 @@ end ## update_user_badge -> update_user_badge(tenant_id, id, update_user_badge_params) +> update_user_badge(tenant_id, id, update_user_badge_params) @@ -8590,7 +8590,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_user_badge_with_http_info(tenant_id, id, update_user_badge_params) +> , Integer, Hash)> update_user_badge_with_http_info(tenant_id, id, update_user_badge_params) ```ruby begin @@ -8598,7 +8598,7 @@ begin data, status_code, headers = api_instance.update_user_badge_with_http_info(tenant_id, id, update_user_badge_params) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_user_badge_with_http_info: #{e}" end @@ -8614,7 +8614,7 @@ end ### Return type -[**APIEmptySuccessResponse**](APIEmptySuccessResponse.md) +[**UpdateUserBadgeResponse**](UpdateUserBadgeResponse.md) ### Authorization diff --git a/client/docs/DeleteCommentPublicResponse.md b/client/docs/DeleteCommentPublicResponse.md new file mode 100644 index 0000000..bb47221 --- /dev/null +++ b/client/docs/DeleteCommentPublicResponse.md @@ -0,0 +1,36 @@ +# FastCommentsClient::DeleteCommentPublicResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **comment** | [**DeletedCommentResultComment**](DeletedCommentResultComment.md) | | [optional] | +| **hard_removed** | **Boolean** | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::DeleteCommentPublicResponse.new( + comment: null, + hard_removed: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/DeleteCommentResponse.md b/client/docs/DeleteCommentResponse.md new file mode 100644 index 0000000..e001d62 --- /dev/null +++ b/client/docs/DeleteCommentResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::DeleteCommentResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **action** | [**DeleteCommentAction**](DeleteCommentAction.md) | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::DeleteCommentResponse.new( + action: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/DeleteCommentVoteResponse.md b/client/docs/DeleteCommentVoteResponse.md new file mode 100644 index 0000000..7e49cab --- /dev/null +++ b/client/docs/DeleteCommentVoteResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::DeleteCommentVoteResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **was_pending_vote** | **Boolean** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::DeleteCommentVoteResponse.new( + status: null, + was_pending_vote: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/DeleteEmailTemplateRenderErrorResponse.md b/client/docs/DeleteEmailTemplateRenderErrorResponse.md new file mode 100644 index 0000000..bf81415 --- /dev/null +++ b/client/docs/DeleteEmailTemplateRenderErrorResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::DeleteEmailTemplateRenderErrorResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::DeleteEmailTemplateRenderErrorResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/DeleteEmailTemplateResponse.md b/client/docs/DeleteEmailTemplateResponse.md new file mode 100644 index 0000000..48d57a3 --- /dev/null +++ b/client/docs/DeleteEmailTemplateResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::DeleteEmailTemplateResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::DeleteEmailTemplateResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/DeleteFeedPostPublicResponse.md b/client/docs/DeleteFeedPostPublicResponse.md index 567c513..a892fb1 100644 --- a/client/docs/DeleteFeedPostPublicResponse.md +++ b/client/docs/DeleteFeedPostPublicResponse.md @@ -5,6 +5,13 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | ## Example @@ -12,7 +19,14 @@ require 'fastcomments-client' instance = FastCommentsClient::DeleteFeedPostPublicResponse.new( - status: null + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null ) ``` diff --git a/client/docs/DeleteFeedPostPublicResponseAnyOf.md b/client/docs/DeleteFeedPostPublicResponseAnyOf.md new file mode 100644 index 0000000..f021c41 --- /dev/null +++ b/client/docs/DeleteFeedPostPublicResponseAnyOf.md @@ -0,0 +1,18 @@ +# FastCommentsClient::DeleteFeedPostPublicResponseAnyOf + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::DeleteFeedPostPublicResponseAnyOf.new( + status: null +) +``` + diff --git a/client/docs/DeleteHashTagResponse.md b/client/docs/DeleteHashTagResponse.md new file mode 100644 index 0000000..b21fea0 --- /dev/null +++ b/client/docs/DeleteHashTagResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::DeleteHashTagResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::DeleteHashTagResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/DeleteModerationVoteResponse.md b/client/docs/DeleteModerationVoteResponse.md new file mode 100644 index 0000000..a0cda57 --- /dev/null +++ b/client/docs/DeleteModerationVoteResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::DeleteModerationVoteResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **was_pending_vote** | **Boolean** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::DeleteModerationVoteResponse.new( + status: null, + was_pending_vote: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/DeleteModeratorResponse.md b/client/docs/DeleteModeratorResponse.md new file mode 100644 index 0000000..f99a7ab --- /dev/null +++ b/client/docs/DeleteModeratorResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::DeleteModeratorResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::DeleteModeratorResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/DeleteNotificationCountResponse.md b/client/docs/DeleteNotificationCountResponse.md new file mode 100644 index 0000000..4e84d9c --- /dev/null +++ b/client/docs/DeleteNotificationCountResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::DeleteNotificationCountResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::DeleteNotificationCountResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/DeletePendingWebhookEventResponse.md b/client/docs/DeletePendingWebhookEventResponse.md new file mode 100644 index 0000000..9df6d13 --- /dev/null +++ b/client/docs/DeletePendingWebhookEventResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::DeletePendingWebhookEventResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::DeletePendingWebhookEventResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/DeleteQuestionConfigResponse.md b/client/docs/DeleteQuestionConfigResponse.md new file mode 100644 index 0000000..a6d3744 --- /dev/null +++ b/client/docs/DeleteQuestionConfigResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::DeleteQuestionConfigResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::DeleteQuestionConfigResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/DeleteQuestionResultResponse.md b/client/docs/DeleteQuestionResultResponse.md new file mode 100644 index 0000000..92d580c --- /dev/null +++ b/client/docs/DeleteQuestionResultResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::DeleteQuestionResultResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::DeleteQuestionResultResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/DeleteTenantPackageResponse.md b/client/docs/DeleteTenantPackageResponse.md new file mode 100644 index 0000000..2754e58 --- /dev/null +++ b/client/docs/DeleteTenantPackageResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::DeleteTenantPackageResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::DeleteTenantPackageResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/DeleteTenantResponse.md b/client/docs/DeleteTenantResponse.md new file mode 100644 index 0000000..238d28a --- /dev/null +++ b/client/docs/DeleteTenantResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::DeleteTenantResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::DeleteTenantResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/DeleteTenantUserResponse.md b/client/docs/DeleteTenantUserResponse.md new file mode 100644 index 0000000..300137c --- /dev/null +++ b/client/docs/DeleteTenantUserResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::DeleteTenantUserResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::DeleteTenantUserResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/DeleteUserBadgeResponse.md b/client/docs/DeleteUserBadgeResponse.md new file mode 100644 index 0000000..7552615 --- /dev/null +++ b/client/docs/DeleteUserBadgeResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::DeleteUserBadgeResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::DeleteUserBadgeResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/DeleteV1PageReactResponse.md b/client/docs/DeleteV1PageReactResponse.md new file mode 100644 index 0000000..1471724 --- /dev/null +++ b/client/docs/DeleteV1PageReactResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::DeleteV1PageReactResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **code** | **String** | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::DeleteV1PageReactResponse.new( + code: null, + status: null, + reason: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/DeleteV2PageReactResponse.md b/client/docs/DeleteV2PageReactResponse.md new file mode 100644 index 0000000..ee7774b --- /dev/null +++ b/client/docs/DeleteV2PageReactResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::DeleteV2PageReactResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **code** | **String** | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::DeleteV2PageReactResponse.new( + code: null, + status: null, + reason: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/DeleteVoteResponse.md b/client/docs/DeleteVoteResponse.md new file mode 100644 index 0000000..df042af --- /dev/null +++ b/client/docs/DeleteVoteResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::DeleteVoteResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **was_pending_vote** | **Boolean** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::DeleteVoteResponse.new( + status: null, + was_pending_vote: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/FlagCommentPublicResponse.md b/client/docs/FlagCommentPublicResponse.md new file mode 100644 index 0000000..ed2782c --- /dev/null +++ b/client/docs/FlagCommentPublicResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::FlagCommentPublicResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::FlagCommentPublicResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/FlagCommentResponse1.md b/client/docs/FlagCommentResponse1.md new file mode 100644 index 0000000..108def2 --- /dev/null +++ b/client/docs/FlagCommentResponse1.md @@ -0,0 +1,36 @@ +# FastCommentsClient::FlagCommentResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status_code** | **Integer** | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **code** | **String** | | [optional] | +| **reason** | **String** | | [optional] | +| **was_unapproved** | **Boolean** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::FlagCommentResponse1.new( + status_code: null, + status: null, + code: null, + reason: null, + was_unapproved: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetApiCommentsResponse.md b/client/docs/GetApiCommentsResponse.md new file mode 100644 index 0000000..2d970df --- /dev/null +++ b/client/docs/GetApiCommentsResponse.md @@ -0,0 +1,38 @@ +# FastCommentsClient::GetApiCommentsResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **translations** | **Object** | | [optional] | +| **comments** | [**Array<ModerationAPIComment>**](ModerationAPIComment.md) | | [optional] | +| **moderation_filter** | [**ModerationFilter**](ModerationFilter.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetApiCommentsResponse.new( + status: null, + translations: null, + comments: null, + moderation_filter: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetApiExportStatusResponse.md b/client/docs/GetApiExportStatusResponse.md new file mode 100644 index 0000000..d4ad64f --- /dev/null +++ b/client/docs/GetApiExportStatusResponse.md @@ -0,0 +1,38 @@ +# FastCommentsClient::GetApiExportStatusResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **job_status** | **String** | | [optional] | +| **record_count** | **Integer** | | [optional] | +| **download_url** | **String** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetApiExportStatusResponse.new( + status: null, + job_status: null, + record_count: null, + download_url: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetApiIdsResponse.md b/client/docs/GetApiIdsResponse.md new file mode 100644 index 0000000..49cfaaf --- /dev/null +++ b/client/docs/GetApiIdsResponse.md @@ -0,0 +1,36 @@ +# FastCommentsClient::GetApiIdsResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **ids** | **Array<String>** | | [optional] | +| **has_more** | **Boolean** | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetApiIdsResponse.new( + ids: null, + has_more: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetAuditLogsResponse1.md b/client/docs/GetAuditLogsResponse1.md new file mode 100644 index 0000000..6d2f751 --- /dev/null +++ b/client/docs/GetAuditLogsResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetAuditLogsResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **audit_logs** | [**Array<APIAuditLog>**](APIAuditLog.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetAuditLogsResponse1.new( + status: null, + audit_logs: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetBanUsersFromCommentResponse.md b/client/docs/GetBanUsersFromCommentResponse.md new file mode 100644 index 0000000..f87aaf5 --- /dev/null +++ b/client/docs/GetBanUsersFromCommentResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetBanUsersFromCommentResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **banned_users** | [**Array<APIBannedUserWithMultiMatchInfo>**](APIBannedUserWithMultiMatchInfo.md) | | [optional] | +| **code** | **String** | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetBanUsersFromCommentResponse.new( + banned_users: null, + code: null, + status: null, + reason: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetCachedNotificationCountResponse1.md b/client/docs/GetCachedNotificationCountResponse1.md new file mode 100644 index 0000000..b10da07 --- /dev/null +++ b/client/docs/GetCachedNotificationCountResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetCachedNotificationCountResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **data** | [**UserNotificationCount**](UserNotificationCount.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetCachedNotificationCountResponse1.new( + status: null, + data: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetCommentBanStatusResponse1.md b/client/docs/GetCommentBanStatusResponse1.md new file mode 100644 index 0000000..b93b08b --- /dev/null +++ b/client/docs/GetCommentBanStatusResponse1.md @@ -0,0 +1,36 @@ +# FastCommentsClient::GetCommentBanStatusResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **email_domain** | **String** | | [optional] | +| **can_ip_ban** | **Boolean** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetCommentBanStatusResponse1.new( + status: null, + email_domain: null, + can_ip_ban: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetCommentChildrenResponse.md b/client/docs/GetCommentChildrenResponse.md new file mode 100644 index 0000000..9848885 --- /dev/null +++ b/client/docs/GetCommentChildrenResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetCommentChildrenResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **comments** | [**Array<ModerationAPIComment>**](ModerationAPIComment.md) | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetCommentChildrenResponse.new( + comments: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetCommentResponse.md b/client/docs/GetCommentResponse.md new file mode 100644 index 0000000..41b669c --- /dev/null +++ b/client/docs/GetCommentResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetCommentResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **comment** | [**APIComment**](APIComment.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetCommentResponse.new( + status: null, + comment: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetCommentTextResponse1.md b/client/docs/GetCommentTextResponse1.md new file mode 100644 index 0000000..daa0637 --- /dev/null +++ b/client/docs/GetCommentTextResponse1.md @@ -0,0 +1,36 @@ +# FastCommentsClient::GetCommentTextResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **comment_text** | **String** | | [optional] | +| **sanitized_comment_text** | **String** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetCommentTextResponse1.new( + status: null, + comment_text: null, + sanitized_comment_text: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetCommentVoteUserNamesResponse.md b/client/docs/GetCommentVoteUserNamesResponse.md new file mode 100644 index 0000000..4f0b228 --- /dev/null +++ b/client/docs/GetCommentVoteUserNamesResponse.md @@ -0,0 +1,36 @@ +# FastCommentsClient::GetCommentVoteUserNamesResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **vote_user_names** | **Array<String>** | | [optional] | +| **has_more** | **Boolean** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetCommentVoteUserNamesResponse.new( + status: null, + vote_user_names: null, + has_more: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetCommentsForUserResponse1.md b/client/docs/GetCommentsForUserResponse1.md new file mode 100644 index 0000000..96d20b2 --- /dev/null +++ b/client/docs/GetCommentsForUserResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetCommentsForUserResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **moderating_tenant_ids** | **Array<String>** | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetCommentsForUserResponse1.new( + moderating_tenant_ids: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetCommentsPublicResponse.md b/client/docs/GetCommentsPublicResponse.md new file mode 100644 index 0000000..eb465dd --- /dev/null +++ b/client/docs/GetCommentsPublicResponse.md @@ -0,0 +1,78 @@ +# FastCommentsClient::GetCommentsPublicResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status_code** | **Integer** | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **code** | **String** | | [optional] | +| **reason** | **String** | | [optional] | +| **translated_warning** | **String** | | [optional] | +| **comments** | [**Array<PublicComment>**](PublicComment.md) | | [optional] | +| **user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] | +| **url_id_clean** | **String** | | [optional] | +| **last_gen_date** | **Integer** | | [optional] | +| **includes_past_pages** | **Boolean** | | [optional] | +| **is_demo** | **Boolean** | | [optional] | +| **comment_count** | **Integer** | | [optional] | +| **is_site_admin** | **Boolean** | | [optional] | +| **has_billing_issue** | **Boolean** | | [optional] | +| **module_data** | **Hash<String, Object>** | Construct a type with a set of properties K of type T | [optional] | +| **page_number** | **Integer** | | [optional] | +| **is_white_labeled** | **Boolean** | | [optional] | +| **is_prod** | **Boolean** | | [optional] | +| **is_crawler** | **Boolean** | | [optional] | +| **notification_count** | **Integer** | | [optional] | +| **has_more** | **Boolean** | | [optional] | +| **is_closed** | **Boolean** | | [optional] | +| **presence_poll_state** | **Integer** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | +| **url_id_ws** | **String** | | [optional] | +| **user_id_ws** | **String** | | [optional] | +| **tenant_id_ws** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetCommentsPublicResponse.new( + status_code: null, + status: null, + code: null, + reason: null, + translated_warning: null, + comments: null, + user: null, + url_id_clean: null, + last_gen_date: null, + includes_past_pages: null, + is_demo: null, + comment_count: null, + is_site_admin: null, + has_billing_issue: null, + module_data: null, + page_number: null, + is_white_labeled: null, + is_prod: null, + is_crawler: null, + notification_count: null, + has_more: null, + is_closed: null, + presence_poll_state: null, + custom_config: null, + url_id_ws: null, + user_id_ws: null, + tenant_id_ws: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null +) +``` + diff --git a/client/docs/GetCommentsResponse.md b/client/docs/GetCommentsResponse.md new file mode 100644 index 0000000..e87fb22 --- /dev/null +++ b/client/docs/GetCommentsResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetCommentsResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **comments** | [**Array<APIComment>**](APIComment.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetCommentsResponse.new( + status: null, + comments: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetCountResponse.md b/client/docs/GetCountResponse.md new file mode 100644 index 0000000..6809ad8 --- /dev/null +++ b/client/docs/GetCountResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetCountResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **count** | **Float** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetCountResponse.new( + status: null, + count: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetCountsResponse.md b/client/docs/GetCountsResponse.md new file mode 100644 index 0000000..947d708 --- /dev/null +++ b/client/docs/GetCountsResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetCountsResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **total_count** | **Float** | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetCountsResponse.new( + total_count: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetDomainConfigResponse.md b/client/docs/GetDomainConfigResponse.md index 3c3869b..dcc47cb 100644 --- a/client/docs/GetDomainConfigResponse.md +++ b/client/docs/GetDomainConfigResponse.md @@ -4,10 +4,10 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **configuration** | **Object** | | | +| **configuration** | **Object** | | [optional] | | **status** | **Object** | | | -| **reason** | **String** | | | -| **code** | **String** | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | ## Example diff --git a/client/docs/GetDomainConfigsResponse.md b/client/docs/GetDomainConfigsResponse.md index a31d299..47812f3 100644 --- a/client/docs/GetDomainConfigsResponse.md +++ b/client/docs/GetDomainConfigsResponse.md @@ -4,10 +4,10 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **configurations** | **Object** | | | +| **configurations** | **Object** | | [optional] | | **status** | **Object** | | | -| **reason** | **String** | | | -| **code** | **String** | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | ## Example diff --git a/client/docs/GetEmailTemplateDefinitionsResponse1.md b/client/docs/GetEmailTemplateDefinitionsResponse1.md new file mode 100644 index 0000000..3e89253 --- /dev/null +++ b/client/docs/GetEmailTemplateDefinitionsResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetEmailTemplateDefinitionsResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **definitions** | [**Array<EmailTemplateDefinition>**](EmailTemplateDefinition.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetEmailTemplateDefinitionsResponse1.new( + status: null, + definitions: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetEmailTemplateRenderErrorsResponse1.md b/client/docs/GetEmailTemplateRenderErrorsResponse1.md new file mode 100644 index 0000000..07e0389 --- /dev/null +++ b/client/docs/GetEmailTemplateRenderErrorsResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetEmailTemplateRenderErrorsResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **render_errors** | [**Array<EmailTemplateRenderErrorResponse>**](EmailTemplateRenderErrorResponse.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetEmailTemplateRenderErrorsResponse1.new( + status: null, + render_errors: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetEmailTemplateResponse1.md b/client/docs/GetEmailTemplateResponse1.md new file mode 100644 index 0000000..5455298 --- /dev/null +++ b/client/docs/GetEmailTemplateResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetEmailTemplateResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **email_template** | [**CustomEmailTemplate**](CustomEmailTemplate.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetEmailTemplateResponse1.new( + status: null, + email_template: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetEmailTemplatesResponse1.md b/client/docs/GetEmailTemplatesResponse1.md new file mode 100644 index 0000000..9820fff --- /dev/null +++ b/client/docs/GetEmailTemplatesResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetEmailTemplatesResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **email_templates** | [**Array<CustomEmailTemplate>**](CustomEmailTemplate.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetEmailTemplatesResponse1.new( + status: null, + email_templates: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetEventLogResponse1.md b/client/docs/GetEventLogResponse1.md new file mode 100644 index 0000000..2c28a0b --- /dev/null +++ b/client/docs/GetEventLogResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetEventLogResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **events** | [**Array<EventLogEntry>**](EventLogEntry.md) | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetEventLogResponse1.new( + events: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetFeedPostsPublicResponse.md b/client/docs/GetFeedPostsPublicResponse.md new file mode 100644 index 0000000..1266025 --- /dev/null +++ b/client/docs/GetFeedPostsPublicResponse.md @@ -0,0 +1,44 @@ +# FastCommentsClient::GetFeedPostsPublicResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **my_reacts** | **Hash<String, Hash<String, Boolean>>** | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **feed_posts** | [**Array<FeedPost>**](FeedPost.md) | | [optional] | +| **user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] | +| **url_id_ws** | **String** | | [optional] | +| **user_id_ws** | **String** | | [optional] | +| **tenant_id_ws** | **String** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetFeedPostsPublicResponse.new( + my_reacts: null, + status: null, + feed_posts: null, + user: null, + url_id_ws: null, + user_id_ws: null, + tenant_id_ws: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetFeedPostsResponse1.md b/client/docs/GetFeedPostsResponse1.md new file mode 100644 index 0000000..d940a67 --- /dev/null +++ b/client/docs/GetFeedPostsResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetFeedPostsResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **feed_posts** | [**Array<FeedPost>**](FeedPost.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetFeedPostsResponse1.new( + status: null, + feed_posts: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetFeedPostsStatsResponse.md b/client/docs/GetFeedPostsStatsResponse.md new file mode 100644 index 0000000..4178acd --- /dev/null +++ b/client/docs/GetFeedPostsStatsResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetFeedPostsStatsResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **stats** | [**Hash<String, FeedPostStats>**](FeedPostStats.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetFeedPostsStatsResponse.new( + status: null, + stats: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetGifLargeResponse.md b/client/docs/GetGifLargeResponse.md new file mode 100644 index 0000000..3732576 --- /dev/null +++ b/client/docs/GetGifLargeResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetGifLargeResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **src** | **String** | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetGifLargeResponse.new( + src: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetGifsSearchResponse.md b/client/docs/GetGifsSearchResponse.md index 8e22fde..d8d32c0 100644 --- a/client/docs/GetGifsSearchResponse.md +++ b/client/docs/GetGifsSearchResponse.md @@ -4,9 +4,15 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **images** | **Array<Array<GifSearchResponseImagesInnerInner>>** | | | +| **images** | **Array<Array<GifSearchResponseImagesInnerInner>>** | | [optional] | | **status** | [**APIStatus**](APIStatus.md) | | | -| **code** | **String** | | | +| **code** | **String** | | [optional] | +| **reason** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | ## Example @@ -16,7 +22,13 @@ require 'fastcomments-client' instance = FastCommentsClient::GetGifsSearchResponse.new( images: null, status: null, - code: null + code: null, + reason: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null ) ``` diff --git a/client/docs/GetGifsTrendingResponse.md b/client/docs/GetGifsTrendingResponse.md index 59081c8..fc90e31 100644 --- a/client/docs/GetGifsTrendingResponse.md +++ b/client/docs/GetGifsTrendingResponse.md @@ -4,9 +4,9 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **images** | **Array<Array<GifSearchResponseImagesInnerInner>>** | | | +| **images** | **Array<Array<GifSearchResponseImagesInnerInner>>** | | [optional] | | **status** | [**APIStatus**](APIStatus.md) | | | -| **code** | **String** | | | +| **code** | **String** | | [optional] | ## Example diff --git a/client/docs/GetGlobalEventLogResponse.md b/client/docs/GetGlobalEventLogResponse.md new file mode 100644 index 0000000..e8579ab --- /dev/null +++ b/client/docs/GetGlobalEventLogResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetGlobalEventLogResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **events** | [**Array<EventLogEntry>**](EventLogEntry.md) | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetGlobalEventLogResponse.new( + events: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetHashTagsResponse1.md b/client/docs/GetHashTagsResponse1.md new file mode 100644 index 0000000..baee096 --- /dev/null +++ b/client/docs/GetHashTagsResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetHashTagsResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **hash_tags** | [**Array<TenantHashTag>**](TenantHashTag.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetHashTagsResponse1.new( + status: null, + hash_tags: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetLogsResponse.md b/client/docs/GetLogsResponse.md new file mode 100644 index 0000000..33becec --- /dev/null +++ b/client/docs/GetLogsResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetLogsResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **logs** | [**Array<ModerationAPICommentLog>**](ModerationAPICommentLog.md) | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetLogsResponse.new( + logs: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetManualBadgesForUserResponse.md b/client/docs/GetManualBadgesForUserResponse.md new file mode 100644 index 0000000..34a71a2 --- /dev/null +++ b/client/docs/GetManualBadgesForUserResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetManualBadgesForUserResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **badges** | [**Array<UserBadge>**](UserBadge.md) | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetManualBadgesForUserResponse.new( + badges: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetManualBadgesResponse.md b/client/docs/GetManualBadgesResponse.md new file mode 100644 index 0000000..4e0f8a7 --- /dev/null +++ b/client/docs/GetManualBadgesResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetManualBadgesResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **badges** | [**Array<TenantBadge>**](TenantBadge.md) | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetManualBadgesResponse.new( + badges: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetModerationCommentResponse.md b/client/docs/GetModerationCommentResponse.md new file mode 100644 index 0000000..6a705e0 --- /dev/null +++ b/client/docs/GetModerationCommentResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetModerationCommentResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **comment** | [**ModerationAPIComment**](ModerationAPIComment.md) | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetModerationCommentResponse.new( + comment: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetModerationCommentTextResponse.md b/client/docs/GetModerationCommentTextResponse.md new file mode 100644 index 0000000..f9d4165 --- /dev/null +++ b/client/docs/GetModerationCommentTextResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetModerationCommentTextResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **comment** | **String** | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetModerationCommentTextResponse.new( + comment: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetModeratorResponse1.md b/client/docs/GetModeratorResponse1.md new file mode 100644 index 0000000..543fb7d --- /dev/null +++ b/client/docs/GetModeratorResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetModeratorResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **moderator** | [**Moderator**](Moderator.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetModeratorResponse1.new( + status: null, + moderator: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetModeratorsResponse1.md b/client/docs/GetModeratorsResponse1.md new file mode 100644 index 0000000..a759f6c --- /dev/null +++ b/client/docs/GetModeratorsResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetModeratorsResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **moderators** | [**Array<Moderator>**](Moderator.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetModeratorsResponse1.new( + status: null, + moderators: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetNotificationCountResponse1.md b/client/docs/GetNotificationCountResponse1.md new file mode 100644 index 0000000..13d1544 --- /dev/null +++ b/client/docs/GetNotificationCountResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetNotificationCountResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **count** | **Float** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetNotificationCountResponse1.new( + status: null, + count: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetNotificationsResponse1.md b/client/docs/GetNotificationsResponse1.md new file mode 100644 index 0000000..5f9ed03 --- /dev/null +++ b/client/docs/GetNotificationsResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetNotificationsResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **notifications** | [**Array<UserNotification>**](UserNotification.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetNotificationsResponse1.new( + status: null, + notifications: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetOfflineUsersResponse.md b/client/docs/GetOfflineUsersResponse.md new file mode 100644 index 0000000..bd0f224 --- /dev/null +++ b/client/docs/GetOfflineUsersResponse.md @@ -0,0 +1,38 @@ +# FastCommentsClient::GetOfflineUsersResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **next_after_user_id** | **String** | | [optional] | +| **next_after_name** | **String** | | [optional] | +| **users** | [**Array<PageUserEntry>**](PageUserEntry.md) | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetOfflineUsersResponse.new( + next_after_user_id: null, + next_after_name: null, + users: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetOnlineUsersResponse.md b/client/docs/GetOnlineUsersResponse.md new file mode 100644 index 0000000..e502fd4 --- /dev/null +++ b/client/docs/GetOnlineUsersResponse.md @@ -0,0 +1,42 @@ +# FastCommentsClient::GetOnlineUsersResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **next_after_user_id** | **String** | | [optional] | +| **next_after_name** | **String** | | [optional] | +| **total_count** | **Float** | | [optional] | +| **anon_count** | **Float** | | [optional] | +| **users** | [**Array<PageUserEntry>**](PageUserEntry.md) | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetOnlineUsersResponse.new( + next_after_user_id: null, + next_after_name: null, + total_count: null, + anon_count: null, + users: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetPagesPublicResponse.md b/client/docs/GetPagesPublicResponse.md new file mode 100644 index 0000000..93ddadd --- /dev/null +++ b/client/docs/GetPagesPublicResponse.md @@ -0,0 +1,36 @@ +# FastCommentsClient::GetPagesPublicResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **next_cursor** | **String** | | [optional] | +| **pages** | [**Array<PublicPage>**](PublicPage.md) | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetPagesPublicResponse.new( + next_cursor: null, + pages: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetPendingWebhookEventCountResponse1.md b/client/docs/GetPendingWebhookEventCountResponse1.md new file mode 100644 index 0000000..d4202ea --- /dev/null +++ b/client/docs/GetPendingWebhookEventCountResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetPendingWebhookEventCountResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **count** | **Float** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetPendingWebhookEventCountResponse1.new( + status: null, + count: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetPendingWebhookEventsResponse1.md b/client/docs/GetPendingWebhookEventsResponse1.md new file mode 100644 index 0000000..f5d417e --- /dev/null +++ b/client/docs/GetPendingWebhookEventsResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetPendingWebhookEventsResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **pending_webhook_events** | [**Array<PendingCommentToSyncOutbound>**](PendingCommentToSyncOutbound.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetPendingWebhookEventsResponse1.new( + status: null, + pending_webhook_events: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetPreBanSummaryResponse.md b/client/docs/GetPreBanSummaryResponse.md new file mode 100644 index 0000000..241bccb --- /dev/null +++ b/client/docs/GetPreBanSummaryResponse.md @@ -0,0 +1,36 @@ +# FastCommentsClient::GetPreBanSummaryResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **usernames** | **Array<String>** | | [optional] | +| **count** | **Float** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetPreBanSummaryResponse.new( + status: null, + usernames: null, + count: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetQuestionConfigResponse1.md b/client/docs/GetQuestionConfigResponse1.md new file mode 100644 index 0000000..55b13bd --- /dev/null +++ b/client/docs/GetQuestionConfigResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetQuestionConfigResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **question_config** | [**QuestionConfig**](QuestionConfig.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetQuestionConfigResponse1.new( + status: null, + question_config: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetQuestionConfigsResponse1.md b/client/docs/GetQuestionConfigsResponse1.md new file mode 100644 index 0000000..6a08376 --- /dev/null +++ b/client/docs/GetQuestionConfigsResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetQuestionConfigsResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **question_configs** | [**Array<QuestionConfig>**](QuestionConfig.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetQuestionConfigsResponse1.new( + status: null, + question_configs: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetQuestionResultResponse1.md b/client/docs/GetQuestionResultResponse1.md new file mode 100644 index 0000000..01e1f27 --- /dev/null +++ b/client/docs/GetQuestionResultResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetQuestionResultResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **question_result** | [**QuestionResult**](QuestionResult.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetQuestionResultResponse1.new( + status: null, + question_result: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetQuestionResultsResponse1.md b/client/docs/GetQuestionResultsResponse1.md new file mode 100644 index 0000000..31fa020 --- /dev/null +++ b/client/docs/GetQuestionResultsResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetQuestionResultsResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **question_results** | [**Array<QuestionResult>**](QuestionResult.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetQuestionResultsResponse1.new( + status: null, + question_results: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetSearchCommentsSummaryResponse.md b/client/docs/GetSearchCommentsSummaryResponse.md new file mode 100644 index 0000000..ac10ce2 --- /dev/null +++ b/client/docs/GetSearchCommentsSummaryResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetSearchCommentsSummaryResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **comment_count** | **Integer** | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetSearchCommentsSummaryResponse.new( + comment_count: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetSearchPagesResponse.md b/client/docs/GetSearchPagesResponse.md new file mode 100644 index 0000000..a173f42 --- /dev/null +++ b/client/docs/GetSearchPagesResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetSearchPagesResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **pages** | [**Array<ModerationPageSearchProjected>**](ModerationPageSearchProjected.md) | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetSearchPagesResponse.new( + pages: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetSearchSitesResponse.md b/client/docs/GetSearchSitesResponse.md new file mode 100644 index 0000000..499443d --- /dev/null +++ b/client/docs/GetSearchSitesResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetSearchSitesResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **sites** | [**Array<ModerationSiteSearchProjected>**](ModerationSiteSearchProjected.md) | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetSearchSitesResponse.new( + sites: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetSearchSuggestResponse.md b/client/docs/GetSearchSuggestResponse.md new file mode 100644 index 0000000..994086a --- /dev/null +++ b/client/docs/GetSearchSuggestResponse.md @@ -0,0 +1,36 @@ +# FastCommentsClient::GetSearchSuggestResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **pages** | [**Array<ModerationPageSearchProjected>**](ModerationPageSearchProjected.md) | | [optional] | +| **users** | [**Array<ModerationUserSearchProjected>**](ModerationUserSearchProjected.md) | | [optional] | +| **code** | **String** | | [optional] | +| **reason** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetSearchSuggestResponse.new( + status: null, + pages: null, + users: null, + code: null, + reason: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetSearchUsersResponse.md b/client/docs/GetSearchUsersResponse.md new file mode 100644 index 0000000..9ae0ec7 --- /dev/null +++ b/client/docs/GetSearchUsersResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetSearchUsersResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **users** | [**Array<ModerationUserSearchProjected>**](ModerationUserSearchProjected.md) | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetSearchUsersResponse.new( + users: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetTenantDailyUsagesResponse1.md b/client/docs/GetTenantDailyUsagesResponse1.md new file mode 100644 index 0000000..c6b433f --- /dev/null +++ b/client/docs/GetTenantDailyUsagesResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetTenantDailyUsagesResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenant_daily_usages** | [**Array<APITenantDailyUsage>**](APITenantDailyUsage.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetTenantDailyUsagesResponse1.new( + status: null, + tenant_daily_usages: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetTenantPackageResponse1.md b/client/docs/GetTenantPackageResponse1.md new file mode 100644 index 0000000..ec499b3 --- /dev/null +++ b/client/docs/GetTenantPackageResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetTenantPackageResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenant_package** | [**TenantPackage**](TenantPackage.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetTenantPackageResponse1.new( + status: null, + tenant_package: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetTenantPackagesResponse1.md b/client/docs/GetTenantPackagesResponse1.md new file mode 100644 index 0000000..8343bc5 --- /dev/null +++ b/client/docs/GetTenantPackagesResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetTenantPackagesResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenant_packages** | [**Array<TenantPackage>**](TenantPackage.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetTenantPackagesResponse1.new( + status: null, + tenant_packages: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetTenantResponse1.md b/client/docs/GetTenantResponse1.md new file mode 100644 index 0000000..10f5681 --- /dev/null +++ b/client/docs/GetTenantResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetTenantResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenant** | [**APITenant**](APITenant.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetTenantResponse1.new( + status: null, + tenant: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetTenantUserResponse1.md b/client/docs/GetTenantUserResponse1.md new file mode 100644 index 0000000..0f29bc6 --- /dev/null +++ b/client/docs/GetTenantUserResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetTenantUserResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenant_user** | [**User**](User.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetTenantUserResponse1.new( + status: null, + tenant_user: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetTenantUsersResponse1.md b/client/docs/GetTenantUsersResponse1.md new file mode 100644 index 0000000..6b15ef9 --- /dev/null +++ b/client/docs/GetTenantUsersResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetTenantUsersResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenant_users** | [**Array<User>**](User.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetTenantUsersResponse1.new( + status: null, + tenant_users: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetTenantsResponse1.md b/client/docs/GetTenantsResponse1.md new file mode 100644 index 0000000..c44cf4f --- /dev/null +++ b/client/docs/GetTenantsResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetTenantsResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenants** | [**Array<APITenant>**](APITenant.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetTenantsResponse1.new( + status: null, + tenants: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetTicketResponse1.md b/client/docs/GetTicketResponse1.md new file mode 100644 index 0000000..c42a377 --- /dev/null +++ b/client/docs/GetTicketResponse1.md @@ -0,0 +1,36 @@ +# FastCommentsClient::GetTicketResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **ticket** | [**APITicketDetail**](APITicketDetail.md) | | [optional] | +| **available_states** | **Array<Float>** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetTicketResponse1.new( + status: null, + ticket: null, + available_states: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetTicketsResponse1.md b/client/docs/GetTicketsResponse1.md new file mode 100644 index 0000000..3301345 --- /dev/null +++ b/client/docs/GetTicketsResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetTicketsResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tickets** | [**Array<APITicket>**](APITicket.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetTicketsResponse1.new( + status: null, + tickets: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetTranslationsResponse1.md b/client/docs/GetTranslationsResponse1.md new file mode 100644 index 0000000..9f668de --- /dev/null +++ b/client/docs/GetTranslationsResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetTranslationsResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **translations** | **Hash<String, String>** | Construct a type with a set of properties K of type T | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetTranslationsResponse1.new( + translations: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetTrustFactorResponse.md b/client/docs/GetTrustFactorResponse.md new file mode 100644 index 0000000..3555e95 --- /dev/null +++ b/client/docs/GetTrustFactorResponse.md @@ -0,0 +1,36 @@ +# FastCommentsClient::GetTrustFactorResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **manual_trust_factor** | **Float** | | [optional] | +| **auto_trust_factor** | **Float** | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetTrustFactorResponse.new( + manual_trust_factor: null, + auto_trust_factor: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetUserBadgeProgressByIdResponse.md b/client/docs/GetUserBadgeProgressByIdResponse.md new file mode 100644 index 0000000..3ccbf12 --- /dev/null +++ b/client/docs/GetUserBadgeProgressByIdResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetUserBadgeProgressByIdResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **user_badge_progress** | [**UserBadgeProgress**](UserBadgeProgress.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetUserBadgeProgressByIdResponse.new( + status: null, + user_badge_progress: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetUserBadgeProgressByUserIdResponse.md b/client/docs/GetUserBadgeProgressByUserIdResponse.md new file mode 100644 index 0000000..8fda688 --- /dev/null +++ b/client/docs/GetUserBadgeProgressByUserIdResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetUserBadgeProgressByUserIdResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **user_badge_progress** | [**UserBadgeProgress**](UserBadgeProgress.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetUserBadgeProgressByUserIdResponse.new( + status: null, + user_badge_progress: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetUserBadgeProgressListResponse.md b/client/docs/GetUserBadgeProgressListResponse.md new file mode 100644 index 0000000..8b92460 --- /dev/null +++ b/client/docs/GetUserBadgeProgressListResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetUserBadgeProgressListResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **user_badge_progresses** | [**Array<UserBadgeProgress>**](UserBadgeProgress.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetUserBadgeProgressListResponse.new( + status: null, + user_badge_progresses: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetUserBadgeResponse.md b/client/docs/GetUserBadgeResponse.md new file mode 100644 index 0000000..430c4bf --- /dev/null +++ b/client/docs/GetUserBadgeResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetUserBadgeResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **user_badge** | [**UserBadge**](UserBadge.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetUserBadgeResponse.new( + status: null, + user_badge: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetUserBadgesResponse.md b/client/docs/GetUserBadgesResponse.md new file mode 100644 index 0000000..11bfce5 --- /dev/null +++ b/client/docs/GetUserBadgesResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetUserBadgesResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **user_badges** | [**Array<UserBadge>**](UserBadge.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetUserBadgesResponse.new( + status: null, + user_badges: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetUserBanPreferenceResponse.md b/client/docs/GetUserBanPreferenceResponse.md new file mode 100644 index 0000000..3d6d130 --- /dev/null +++ b/client/docs/GetUserBanPreferenceResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetUserBanPreferenceResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **preferences** | [**APIModerateUserBanPreferences**](APIModerateUserBanPreferences.md) | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetUserBanPreferenceResponse.new( + preferences: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetUserInternalProfileResponse1.md b/client/docs/GetUserInternalProfileResponse1.md new file mode 100644 index 0000000..fd979dd --- /dev/null +++ b/client/docs/GetUserInternalProfileResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetUserInternalProfileResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **profile** | [**GetUserInternalProfileResponseProfile**](GetUserInternalProfileResponseProfile.md) | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetUserInternalProfileResponse1.new( + profile: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetUserNotificationCountResponse1.md b/client/docs/GetUserNotificationCountResponse1.md new file mode 100644 index 0000000..4c209b0 --- /dev/null +++ b/client/docs/GetUserNotificationCountResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetUserNotificationCountResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **count** | **Integer** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetUserNotificationCountResponse1.new( + status: null, + count: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetUserNotificationsResponse.md b/client/docs/GetUserNotificationsResponse.md new file mode 100644 index 0000000..707dbfa --- /dev/null +++ b/client/docs/GetUserNotificationsResponse.md @@ -0,0 +1,40 @@ +# FastCommentsClient::GetUserNotificationsResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **translations** | **Hash<String, String>** | Construct a type with a set of properties K of type T | [optional] | +| **is_subscribed** | **Boolean** | | [optional] | +| **has_more** | **Boolean** | | [optional] | +| **notifications** | [**Array<RenderableUserNotification>**](RenderableUserNotification.md) | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetUserNotificationsResponse.new( + translations: null, + is_subscribed: null, + has_more: null, + notifications: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetUserPresenceStatusesResponse1.md b/client/docs/GetUserPresenceStatusesResponse1.md new file mode 100644 index 0000000..3bbbc81 --- /dev/null +++ b/client/docs/GetUserPresenceStatusesResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetUserPresenceStatusesResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **user_ids_online** | **Hash<String, Boolean>** | Construct a type with a set of properties K of type T | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetUserPresenceStatusesResponse1.new( + status: null, + user_ids_online: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetUserReactsPublicResponse.md b/client/docs/GetUserReactsPublicResponse.md new file mode 100644 index 0000000..59bb9a9 --- /dev/null +++ b/client/docs/GetUserReactsPublicResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetUserReactsPublicResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reacts** | **Hash<String, Hash<String, Boolean>>** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetUserReactsPublicResponse.new( + status: null, + reacts: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetUserResponse1.md b/client/docs/GetUserResponse1.md new file mode 100644 index 0000000..cc98169 --- /dev/null +++ b/client/docs/GetUserResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetUserResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **user** | [**User**](User.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetUserResponse1.new( + status: null, + user: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetUsersInfoResponse.md b/client/docs/GetUsersInfoResponse.md new file mode 100644 index 0000000..ae7af9f --- /dev/null +++ b/client/docs/GetUsersInfoResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetUsersInfoResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **users** | [**Array<PageUserEntry>**](PageUserEntry.md) | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetUsersInfoResponse.new( + users: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetV1PageLikesResponse.md b/client/docs/GetV1PageLikesResponse.md new file mode 100644 index 0000000..cacf102 --- /dev/null +++ b/client/docs/GetV1PageLikesResponse.md @@ -0,0 +1,40 @@ +# FastCommentsClient::GetV1PageLikesResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **url_id_ws** | **String** | | [optional] | +| **did_like** | **Boolean** | | [optional] | +| **comment_count** | **Integer** | | [optional] | +| **like_count** | **Integer** | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetV1PageLikesResponse.new( + url_id_ws: null, + did_like: null, + comment_count: null, + like_count: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetV2PageReactUsersResponse1.md b/client/docs/GetV2PageReactUsersResponse1.md new file mode 100644 index 0000000..b5131ab --- /dev/null +++ b/client/docs/GetV2PageReactUsersResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetV2PageReactUsersResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **user_names** | **Array<String>** | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetV2PageReactUsersResponse1.new( + user_names: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetV2PageReactsResponse.md b/client/docs/GetV2PageReactsResponse.md new file mode 100644 index 0000000..62ec485 --- /dev/null +++ b/client/docs/GetV2PageReactsResponse.md @@ -0,0 +1,36 @@ +# FastCommentsClient::GetV2PageReactsResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **reacted_ids** | **Array<String>** | | [optional] | +| **counts** | **Hash<String, Float>** | Construct a type with a set of properties K of type T | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetV2PageReactsResponse.new( + reacted_ids: null, + counts: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetVotesForUserResponse1.md b/client/docs/GetVotesForUserResponse1.md new file mode 100644 index 0000000..f3be7bb --- /dev/null +++ b/client/docs/GetVotesForUserResponse1.md @@ -0,0 +1,38 @@ +# FastCommentsClient::GetVotesForUserResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **applied_authorized_votes** | [**Array<PublicVote>**](PublicVote.md) | | [optional] | +| **applied_anonymous_votes** | [**Array<PublicVote>**](PublicVote.md) | | [optional] | +| **pending_votes** | [**Array<PublicVote>**](PublicVote.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetVotesForUserResponse1.new( + status: null, + applied_authorized_votes: null, + applied_anonymous_votes: null, + pending_votes: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/GetVotesResponse1.md b/client/docs/GetVotesResponse1.md new file mode 100644 index 0000000..c486213 --- /dev/null +++ b/client/docs/GetVotesResponse1.md @@ -0,0 +1,38 @@ +# FastCommentsClient::GetVotesResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **applied_authorized_votes** | [**Array<PublicVote>**](PublicVote.md) | | [optional] | +| **applied_anonymous_votes** | [**Array<PublicVote>**](PublicVote.md) | | [optional] | +| **pending_votes** | [**Array<PublicVote>**](PublicVote.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetVotesResponse1.new( + status: null, + applied_authorized_votes: null, + applied_anonymous_votes: null, + pending_votes: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/LockCommentResponse.md b/client/docs/LockCommentResponse.md new file mode 100644 index 0000000..29c4b0b --- /dev/null +++ b/client/docs/LockCommentResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::LockCommentResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::LockCommentResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/ModerationApi.md b/client/docs/ModerationApi.md index e3b5b8c..cbc6a0a 100644 --- a/client/docs/ModerationApi.md +++ b/client/docs/ModerationApi.md @@ -51,7 +51,7 @@ All URIs are relative to *https://fastcomments.com* ## delete_moderation_vote -> delete_moderation_vote(comment_id, vote_id, opts) +> delete_moderation_vote(comment_id, vote_id, opts) @@ -65,6 +65,8 @@ api_instance = FastCommentsClient::ModerationApi.new comment_id = 'comment_id_example' # String | vote_id = 'vote_id_example' # String | opts = { + broadcast_id: 'broadcast_id_example', # String | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -81,7 +83,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_moderation_vote_with_http_info(comment_id, vote_id, opts) +> , Integer, Hash)> delete_moderation_vote_with_http_info(comment_id, vote_id, opts) ```ruby begin @@ -89,7 +91,7 @@ begin data, status_code, headers = api_instance.delete_moderation_vote_with_http_info(comment_id, vote_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->delete_moderation_vote_with_http_info: #{e}" end @@ -101,11 +103,13 @@ end | ---- | ---- | ----------- | ----- | | **comment_id** | **String** | | | | **vote_id** | **String** | | | +| **broadcast_id** | **String** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**VoteDeleteResponse**](VoteDeleteResponse.md) +[**DeleteModerationVoteResponse**](DeleteModerationVoteResponse.md) ### Authorization @@ -119,7 +123,7 @@ No authorization required ## get_api_comments -> get_api_comments(opts) +> get_api_comments(opts) @@ -139,6 +143,7 @@ opts = { search_filters: 'search_filters_example', # String | sorts: 'sorts_example', # String | demo: true, # Boolean | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -155,7 +160,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_api_comments_with_http_info(opts) +> , Integer, Hash)> get_api_comments_with_http_info(opts) ```ruby begin @@ -163,7 +168,7 @@ begin data, status_code, headers = api_instance.get_api_comments_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_api_comments_with_http_info: #{e}" end @@ -181,11 +186,12 @@ end | **search_filters** | **String** | | [optional] | | **sorts** | **String** | | [optional] | | **demo** | **Boolean** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**ModerationAPIGetCommentsResponse**](ModerationAPIGetCommentsResponse.md) +[**GetApiCommentsResponse**](GetApiCommentsResponse.md) ### Authorization @@ -199,7 +205,7 @@ No authorization required ## get_api_export_status -> get_api_export_status(opts) +> get_api_export_status(opts) @@ -212,6 +218,7 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { batch_job_id: 'batch_job_id_example', # String | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -228,7 +235,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_api_export_status_with_http_info(opts) +> , Integer, Hash)> get_api_export_status_with_http_info(opts) ```ruby begin @@ -236,7 +243,7 @@ begin data, status_code, headers = api_instance.get_api_export_status_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_api_export_status_with_http_info: #{e}" end @@ -247,11 +254,12 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **batch_job_id** | **String** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**ModerationExportStatusResponse**](ModerationExportStatusResponse.md) +[**GetApiExportStatusResponse**](GetApiExportStatusResponse.md) ### Authorization @@ -265,7 +273,7 @@ No authorization required ## get_api_ids -> get_api_ids(opts) +> get_api_ids(opts) @@ -283,6 +291,7 @@ opts = { search_filters: 'search_filters_example', # String | after_id: 'after_id_example', # String | demo: true, # Boolean | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -299,7 +308,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_api_ids_with_http_info(opts) +> , Integer, Hash)> get_api_ids_with_http_info(opts) ```ruby begin @@ -307,7 +316,7 @@ begin data, status_code, headers = api_instance.get_api_ids_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_api_ids_with_http_info: #{e}" end @@ -323,11 +332,12 @@ end | **search_filters** | **String** | | [optional] | | **after_id** | **String** | | [optional] | | **demo** | **Boolean** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**ModerationAPIGetCommentIdsResponse**](ModerationAPIGetCommentIdsResponse.md) +[**GetApiIdsResponse**](GetApiIdsResponse.md) ### Authorization @@ -341,7 +351,7 @@ No authorization required ## get_ban_users_from_comment -> get_ban_users_from_comment(comment_id, opts) +> get_ban_users_from_comment(comment_id, opts) @@ -354,6 +364,7 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new comment_id = 'comment_id_example' # String | opts = { + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -370,7 +381,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_ban_users_from_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> get_ban_users_from_comment_with_http_info(comment_id, opts) ```ruby begin @@ -378,7 +389,7 @@ begin data, status_code, headers = api_instance.get_ban_users_from_comment_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_ban_users_from_comment_with_http_info: #{e}" end @@ -389,11 +400,12 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **comment_id** | **String** | | | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**GetBannedUsersFromCommentResponse**](GetBannedUsersFromCommentResponse.md) +[**GetBanUsersFromCommentResponse**](GetBanUsersFromCommentResponse.md) ### Authorization @@ -407,7 +419,7 @@ No authorization required ## get_comment_ban_status -> get_comment_ban_status(comment_id, opts) +> get_comment_ban_status(comment_id, opts) @@ -420,6 +432,7 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new comment_id = 'comment_id_example' # String | opts = { + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -436,7 +449,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comment_ban_status_with_http_info(comment_id, opts) +> , Integer, Hash)> get_comment_ban_status_with_http_info(comment_id, opts) ```ruby begin @@ -444,7 +457,7 @@ begin data, status_code, headers = api_instance.get_comment_ban_status_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_comment_ban_status_with_http_info: #{e}" end @@ -455,11 +468,12 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **comment_id** | **String** | | | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**GetCommentBanStatusResponse**](GetCommentBanStatusResponse.md) +[**GetCommentBanStatusResponse1**](GetCommentBanStatusResponse1.md) ### Authorization @@ -473,7 +487,7 @@ No authorization required ## get_comment_children -> get_comment_children(comment_id, opts) +> get_comment_children(comment_id, opts) @@ -486,6 +500,7 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new comment_id = 'comment_id_example' # String | opts = { + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -502,7 +517,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comment_children_with_http_info(comment_id, opts) +> , Integer, Hash)> get_comment_children_with_http_info(comment_id, opts) ```ruby begin @@ -510,7 +525,7 @@ begin data, status_code, headers = api_instance.get_comment_children_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_comment_children_with_http_info: #{e}" end @@ -521,11 +536,12 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **comment_id** | **String** | | | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**ModerationAPIChildCommentsResponse**](ModerationAPIChildCommentsResponse.md) +[**GetCommentChildrenResponse**](GetCommentChildrenResponse.md) ### Authorization @@ -539,7 +555,7 @@ No authorization required ## get_count -> get_count(opts) +> get_count(opts) @@ -556,6 +572,7 @@ opts = { filter: 'filter_example', # String | search_filters: 'search_filters_example', # String | demo: true, # Boolean | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -572,7 +589,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_count_with_http_info(opts) +> , Integer, Hash)> get_count_with_http_info(opts) ```ruby begin @@ -580,7 +597,7 @@ begin data, status_code, headers = api_instance.get_count_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_count_with_http_info: #{e}" end @@ -595,11 +612,12 @@ end | **filter** | **String** | | [optional] | | **search_filters** | **String** | | [optional] | | **demo** | **Boolean** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**ModerationAPICountCommentsResponse**](ModerationAPICountCommentsResponse.md) +[**GetCountResponse**](GetCountResponse.md) ### Authorization @@ -613,7 +631,7 @@ No authorization required ## get_counts -> get_counts(opts) +> get_counts(opts) @@ -625,6 +643,7 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -641,7 +660,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_counts_with_http_info(opts) +> , Integer, Hash)> get_counts_with_http_info(opts) ```ruby begin @@ -649,7 +668,7 @@ begin data, status_code, headers = api_instance.get_counts_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_counts_with_http_info: #{e}" end @@ -659,11 +678,12 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**GetBannedUsersCountResponse**](GetBannedUsersCountResponse.md) +[**GetCountsResponse**](GetCountsResponse.md) ### Authorization @@ -677,7 +697,7 @@ No authorization required ## get_logs -> get_logs(comment_id, opts) +> get_logs(comment_id, opts) @@ -690,6 +710,7 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new comment_id = 'comment_id_example' # String | opts = { + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -706,7 +727,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_logs_with_http_info(comment_id, opts) +> , Integer, Hash)> get_logs_with_http_info(comment_id, opts) ```ruby begin @@ -714,7 +735,7 @@ begin data, status_code, headers = api_instance.get_logs_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_logs_with_http_info: #{e}" end @@ -725,11 +746,12 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **comment_id** | **String** | | | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**ModerationAPIGetLogsResponse**](ModerationAPIGetLogsResponse.md) +[**GetLogsResponse**](GetLogsResponse.md) ### Authorization @@ -743,7 +765,7 @@ No authorization required ## get_manual_badges -> get_manual_badges(opts) +> get_manual_badges(opts) @@ -755,6 +777,7 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -771,7 +794,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_manual_badges_with_http_info(opts) +> , Integer, Hash)> get_manual_badges_with_http_info(opts) ```ruby begin @@ -779,7 +802,7 @@ begin data, status_code, headers = api_instance.get_manual_badges_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_manual_badges_with_http_info: #{e}" end @@ -789,11 +812,12 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**GetTenantManualBadgesResponse**](GetTenantManualBadgesResponse.md) +[**GetManualBadgesResponse**](GetManualBadgesResponse.md) ### Authorization @@ -807,7 +831,7 @@ No authorization required ## get_manual_badges_for_user -> get_manual_badges_for_user(opts) +> get_manual_badges_for_user(opts) @@ -821,6 +845,7 @@ api_instance = FastCommentsClient::ModerationApi.new opts = { badges_user_id: 'badges_user_id_example', # String | comment_id: 'comment_id_example', # String | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -837,7 +862,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_manual_badges_for_user_with_http_info(opts) +> , Integer, Hash)> get_manual_badges_for_user_with_http_info(opts) ```ruby begin @@ -845,7 +870,7 @@ begin data, status_code, headers = api_instance.get_manual_badges_for_user_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_manual_badges_for_user_with_http_info: #{e}" end @@ -857,11 +882,12 @@ end | ---- | ---- | ----------- | ----- | | **badges_user_id** | **String** | | [optional] | | **comment_id** | **String** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**GetUserManualBadgesResponse**](GetUserManualBadgesResponse.md) +[**GetManualBadgesForUserResponse**](GetManualBadgesForUserResponse.md) ### Authorization @@ -875,7 +901,7 @@ No authorization required ## get_moderation_comment -> get_moderation_comment(comment_id, opts) +> get_moderation_comment(comment_id, opts) @@ -890,6 +916,7 @@ comment_id = 'comment_id_example' # String | opts = { include_email: true, # Boolean | include_ip: true, # Boolean | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -906,7 +933,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_moderation_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> get_moderation_comment_with_http_info(comment_id, opts) ```ruby begin @@ -914,7 +941,7 @@ begin data, status_code, headers = api_instance.get_moderation_comment_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_moderation_comment_with_http_info: #{e}" end @@ -927,11 +954,12 @@ end | **comment_id** | **String** | | | | **include_email** | **Boolean** | | [optional] | | **include_ip** | **Boolean** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**ModerationAPICommentResponse**](ModerationAPICommentResponse.md) +[**GetModerationCommentResponse**](GetModerationCommentResponse.md) ### Authorization @@ -945,7 +973,7 @@ No authorization required ## get_moderation_comment_text -> get_moderation_comment_text(comment_id, opts) +> get_moderation_comment_text(comment_id, opts) @@ -958,6 +986,7 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new comment_id = 'comment_id_example' # String | opts = { + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -974,7 +1003,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_moderation_comment_text_with_http_info(comment_id, opts) +> , Integer, Hash)> get_moderation_comment_text_with_http_info(comment_id, opts) ```ruby begin @@ -982,7 +1011,7 @@ begin data, status_code, headers = api_instance.get_moderation_comment_text_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_moderation_comment_text_with_http_info: #{e}" end @@ -993,11 +1022,12 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **comment_id** | **String** | | | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**GetCommentTextResponse**](GetCommentTextResponse.md) +[**GetModerationCommentTextResponse**](GetModerationCommentTextResponse.md) ### Authorization @@ -1011,7 +1041,7 @@ No authorization required ## get_pre_ban_summary -> get_pre_ban_summary(comment_id, opts) +> get_pre_ban_summary(comment_id, opts) @@ -1027,6 +1057,7 @@ opts = { include_by_user_id_and_email: true, # Boolean | include_by_ip: true, # Boolean | include_by_email_domain: true, # Boolean | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -1043,7 +1074,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_pre_ban_summary_with_http_info(comment_id, opts) +> , Integer, Hash)> get_pre_ban_summary_with_http_info(comment_id, opts) ```ruby begin @@ -1051,7 +1082,7 @@ begin data, status_code, headers = api_instance.get_pre_ban_summary_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_pre_ban_summary_with_http_info: #{e}" end @@ -1065,11 +1096,12 @@ end | **include_by_user_id_and_email** | **Boolean** | | [optional] | | **include_by_ip** | **Boolean** | | [optional] | | **include_by_email_domain** | **Boolean** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**PreBanSummary**](PreBanSummary.md) +[**GetPreBanSummaryResponse**](GetPreBanSummaryResponse.md) ### Authorization @@ -1083,7 +1115,7 @@ No authorization required ## get_search_comments_summary -> get_search_comments_summary(opts) +> get_search_comments_summary(opts) @@ -1098,6 +1130,7 @@ opts = { value: 'value_example', # String | filters: 'filters_example', # String | search_filters: 'search_filters_example', # String | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -1114,7 +1147,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_search_comments_summary_with_http_info(opts) +> , Integer, Hash)> get_search_comments_summary_with_http_info(opts) ```ruby begin @@ -1122,7 +1155,7 @@ begin data, status_code, headers = api_instance.get_search_comments_summary_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_search_comments_summary_with_http_info: #{e}" end @@ -1135,11 +1168,12 @@ end | **value** | **String** | | [optional] | | **filters** | **String** | | [optional] | | **search_filters** | **String** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**ModerationCommentSearchResponse**](ModerationCommentSearchResponse.md) +[**GetSearchCommentsSummaryResponse**](GetSearchCommentsSummaryResponse.md) ### Authorization @@ -1153,7 +1187,7 @@ No authorization required ## get_search_pages -> get_search_pages(opts) +> get_search_pages(opts) @@ -1166,6 +1200,7 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { value: 'value_example', # String | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -1182,7 +1217,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_search_pages_with_http_info(opts) +> , Integer, Hash)> get_search_pages_with_http_info(opts) ```ruby begin @@ -1190,7 +1225,7 @@ begin data, status_code, headers = api_instance.get_search_pages_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_search_pages_with_http_info: #{e}" end @@ -1201,11 +1236,12 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **value** | **String** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**ModerationPageSearchResponse**](ModerationPageSearchResponse.md) +[**GetSearchPagesResponse**](GetSearchPagesResponse.md) ### Authorization @@ -1219,7 +1255,7 @@ No authorization required ## get_search_sites -> get_search_sites(opts) +> get_search_sites(opts) @@ -1232,6 +1268,7 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { value: 'value_example', # String | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -1248,7 +1285,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_search_sites_with_http_info(opts) +> , Integer, Hash)> get_search_sites_with_http_info(opts) ```ruby begin @@ -1256,7 +1293,7 @@ begin data, status_code, headers = api_instance.get_search_sites_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_search_sites_with_http_info: #{e}" end @@ -1267,11 +1304,12 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **value** | **String** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**ModerationSiteSearchResponse**](ModerationSiteSearchResponse.md) +[**GetSearchSitesResponse**](GetSearchSitesResponse.md) ### Authorization @@ -1285,7 +1323,7 @@ No authorization required ## get_search_suggest -> get_search_suggest(opts) +> get_search_suggest(opts) @@ -1298,6 +1336,7 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { text_search: 'text_search_example', # String | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -1314,7 +1353,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_search_suggest_with_http_info(opts) +> , Integer, Hash)> get_search_suggest_with_http_info(opts) ```ruby begin @@ -1322,7 +1361,7 @@ begin data, status_code, headers = api_instance.get_search_suggest_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_search_suggest_with_http_info: #{e}" end @@ -1333,11 +1372,12 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **text_search** | **String** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**ModerationSuggestResponse**](ModerationSuggestResponse.md) +[**GetSearchSuggestResponse**](GetSearchSuggestResponse.md) ### Authorization @@ -1351,7 +1391,7 @@ No authorization required ## get_search_users -> get_search_users(opts) +> get_search_users(opts) @@ -1364,6 +1404,7 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { value: 'value_example', # String | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -1380,7 +1421,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_search_users_with_http_info(opts) +> , Integer, Hash)> get_search_users_with_http_info(opts) ```ruby begin @@ -1388,7 +1429,7 @@ begin data, status_code, headers = api_instance.get_search_users_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_search_users_with_http_info: #{e}" end @@ -1399,11 +1440,12 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **value** | **String** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**ModerationUserSearchResponse**](ModerationUserSearchResponse.md) +[**GetSearchUsersResponse**](GetSearchUsersResponse.md) ### Authorization @@ -1417,7 +1459,7 @@ No authorization required ## get_trust_factor -> get_trust_factor(opts) +> get_trust_factor(opts) @@ -1430,6 +1472,7 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { user_id: 'user_id_example', # String | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -1446,7 +1489,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_trust_factor_with_http_info(opts) +> , Integer, Hash)> get_trust_factor_with_http_info(opts) ```ruby begin @@ -1454,7 +1497,7 @@ begin data, status_code, headers = api_instance.get_trust_factor_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_trust_factor_with_http_info: #{e}" end @@ -1465,11 +1508,12 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **user_id** | **String** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**GetUserTrustFactorResponse**](GetUserTrustFactorResponse.md) +[**GetTrustFactorResponse**](GetTrustFactorResponse.md) ### Authorization @@ -1483,7 +1527,7 @@ No authorization required ## get_user_ban_preference -> get_user_ban_preference(opts) +> get_user_ban_preference(opts) @@ -1495,6 +1539,7 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -1511,7 +1556,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_ban_preference_with_http_info(opts) +> , Integer, Hash)> get_user_ban_preference_with_http_info(opts) ```ruby begin @@ -1519,7 +1564,7 @@ begin data, status_code, headers = api_instance.get_user_ban_preference_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_user_ban_preference_with_http_info: #{e}" end @@ -1529,11 +1574,12 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**APIModerateGetUserBanPreferencesResponse**](APIModerateGetUserBanPreferencesResponse.md) +[**GetUserBanPreferenceResponse**](GetUserBanPreferenceResponse.md) ### Authorization @@ -1547,7 +1593,7 @@ No authorization required ## get_user_internal_profile -> get_user_internal_profile(opts) +> get_user_internal_profile(opts) @@ -1560,6 +1606,7 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { comment_id: 'comment_id_example', # String | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -1576,7 +1623,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_internal_profile_with_http_info(opts) +> , Integer, Hash)> get_user_internal_profile_with_http_info(opts) ```ruby begin @@ -1584,7 +1631,7 @@ begin data, status_code, headers = api_instance.get_user_internal_profile_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_user_internal_profile_with_http_info: #{e}" end @@ -1595,11 +1642,12 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **comment_id** | **String** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**GetUserInternalProfileResponse**](GetUserInternalProfileResponse.md) +[**GetUserInternalProfileResponse1**](GetUserInternalProfileResponse1.md) ### Authorization @@ -1613,7 +1661,7 @@ No authorization required ## post_adjust_comment_votes -> post_adjust_comment_votes(comment_id, adjust_comment_votes_params, opts) +> post_adjust_comment_votes(comment_id, adjust_comment_votes_params, opts) @@ -1627,6 +1675,8 @@ api_instance = FastCommentsClient::ModerationApi.new comment_id = 'comment_id_example' # String | adjust_comment_votes_params = FastCommentsClient::AdjustCommentVotesParams.new({adjust_vote_amount: 3.56}) # AdjustCommentVotesParams | opts = { + broadcast_id: 'broadcast_id_example', # String | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -1643,7 +1693,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts) +> , Integer, Hash)> post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts) ```ruby begin @@ -1651,7 +1701,7 @@ begin data, status_code, headers = api_instance.post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_adjust_comment_votes_with_http_info: #{e}" end @@ -1663,11 +1713,13 @@ end | ---- | ---- | ----------- | ----- | | **comment_id** | **String** | | | | **adjust_comment_votes_params** | [**AdjustCommentVotesParams**](AdjustCommentVotesParams.md) | | | +| **broadcast_id** | **String** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**AdjustVotesResponse**](AdjustVotesResponse.md) +[**PostAdjustCommentVotesResponse**](PostAdjustCommentVotesResponse.md) ### Authorization @@ -1681,7 +1733,7 @@ No authorization required ## post_api_export -> post_api_export(opts) +> post_api_export(opts) @@ -1698,6 +1750,7 @@ opts = { filters: 'filters_example', # String | search_filters: 'search_filters_example', # String | sorts: 'sorts_example', # String | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -1714,7 +1767,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_api_export_with_http_info(opts) +> , Integer, Hash)> post_api_export_with_http_info(opts) ```ruby begin @@ -1722,7 +1775,7 @@ begin data, status_code, headers = api_instance.post_api_export_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_api_export_with_http_info: #{e}" end @@ -1737,11 +1790,12 @@ end | **filters** | **String** | | [optional] | | **search_filters** | **String** | | [optional] | | **sorts** | **String** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**ModerationExportResponse**](ModerationExportResponse.md) +[**PostApiExportResponse**](PostApiExportResponse.md) ### Authorization @@ -1755,7 +1809,7 @@ No authorization required ## post_ban_user_from_comment -> post_ban_user_from_comment(comment_id, opts) +> post_ban_user_from_comment(comment_id, opts) @@ -1776,6 +1830,7 @@ opts = { is_shadow_ban: true, # Boolean | update_id: 'update_id_example', # String | ban_reason: 'ban_reason_example', # String | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -1792,7 +1847,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_ban_user_from_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> post_ban_user_from_comment_with_http_info(comment_id, opts) ```ruby begin @@ -1800,7 +1855,7 @@ begin data, status_code, headers = api_instance.post_ban_user_from_comment_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_ban_user_from_comment_with_http_info: #{e}" end @@ -1819,11 +1874,12 @@ end | **is_shadow_ban** | **Boolean** | | [optional] | | **update_id** | **String** | | [optional] | | **ban_reason** | **String** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**BanUserFromCommentResult**](BanUserFromCommentResult.md) +[**PostBanUserFromCommentResponse**](PostBanUserFromCommentResponse.md) ### Authorization @@ -1837,7 +1893,7 @@ No authorization required ## post_ban_user_undo -> post_ban_user_undo(ban_user_undo_params, opts) +> post_ban_user_undo(ban_user_undo_params, opts) @@ -1850,6 +1906,7 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new ban_user_undo_params = FastCommentsClient::BanUserUndoParams.new({changelog: FastCommentsClient::APIBanUserChangeLog.new}) # BanUserUndoParams | opts = { + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -1866,7 +1923,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_ban_user_undo_with_http_info(ban_user_undo_params, opts) +> , Integer, Hash)> post_ban_user_undo_with_http_info(ban_user_undo_params, opts) ```ruby begin @@ -1874,7 +1931,7 @@ begin data, status_code, headers = api_instance.post_ban_user_undo_with_http_info(ban_user_undo_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_ban_user_undo_with_http_info: #{e}" end @@ -1885,11 +1942,12 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **ban_user_undo_params** | [**BanUserUndoParams**](BanUserUndoParams.md) | | | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**PostBanUserUndoResponse**](PostBanUserUndoResponse.md) ### Authorization @@ -1903,7 +1961,7 @@ No authorization required ## post_bulk_pre_ban_summary -> post_bulk_pre_ban_summary(bulk_pre_ban_params, opts) +> post_bulk_pre_ban_summary(bulk_pre_ban_params, opts) @@ -1919,6 +1977,7 @@ opts = { include_by_user_id_and_email: true, # Boolean | include_by_ip: true, # Boolean | include_by_email_domain: true, # Boolean | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -1935,7 +1994,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts) +> , Integer, Hash)> post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts) ```ruby begin @@ -1943,7 +2002,7 @@ begin data, status_code, headers = api_instance.post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_bulk_pre_ban_summary_with_http_info: #{e}" end @@ -1957,11 +2016,12 @@ end | **include_by_user_id_and_email** | **Boolean** | | [optional] | | **include_by_ip** | **Boolean** | | [optional] | | **include_by_email_domain** | **Boolean** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**BulkPreBanSummary**](BulkPreBanSummary.md) +[**PostBulkPreBanSummaryResponse**](PostBulkPreBanSummaryResponse.md) ### Authorization @@ -1975,7 +2035,7 @@ No authorization required ## post_comments_by_ids -> post_comments_by_ids(comments_by_ids_params, opts) +> post_comments_by_ids(comments_by_ids_params, opts) @@ -1988,6 +2048,7 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new comments_by_ids_params = FastCommentsClient::CommentsByIdsParams.new({ids: ['ids_example']}) # CommentsByIdsParams | opts = { + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -2004,7 +2065,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_comments_by_ids_with_http_info(comments_by_ids_params, opts) +> , Integer, Hash)> post_comments_by_ids_with_http_info(comments_by_ids_params, opts) ```ruby begin @@ -2012,7 +2073,7 @@ begin data, status_code, headers = api_instance.post_comments_by_ids_with_http_info(comments_by_ids_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_comments_by_ids_with_http_info: #{e}" end @@ -2023,11 +2084,12 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **comments_by_ids_params** | [**CommentsByIdsParams**](CommentsByIdsParams.md) | | | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**ModerationAPIChildCommentsResponse**](ModerationAPIChildCommentsResponse.md) +[**PostCommentsByIdsResponse**](PostCommentsByIdsResponse.md) ### Authorization @@ -2041,7 +2103,7 @@ No authorization required ## post_flag_comment -> post_flag_comment(comment_id, opts) +> post_flag_comment(comment_id, opts) @@ -2054,6 +2116,8 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new comment_id = 'comment_id_example' # String | opts = { + broadcast_id: 'broadcast_id_example', # String | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -2070,7 +2134,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_flag_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> post_flag_comment_with_http_info(comment_id, opts) ```ruby begin @@ -2078,7 +2142,7 @@ begin data, status_code, headers = api_instance.post_flag_comment_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_flag_comment_with_http_info: #{e}" end @@ -2089,11 +2153,13 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **comment_id** | **String** | | | +| **broadcast_id** | **String** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**PostFlagCommentResponse**](PostFlagCommentResponse.md) ### Authorization @@ -2120,6 +2186,8 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new comment_id = 'comment_id_example' # String | opts = { + broadcast_id: 'broadcast_id_example', # String | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -2155,6 +2223,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **comment_id** | **String** | | | +| **broadcast_id** | **String** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -2173,7 +2243,7 @@ No authorization required ## post_restore_deleted_comment -> post_restore_deleted_comment(comment_id, opts) +> post_restore_deleted_comment(comment_id, opts) @@ -2186,6 +2256,8 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new comment_id = 'comment_id_example' # String | opts = { + broadcast_id: 'broadcast_id_example', # String | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -2202,7 +2274,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_restore_deleted_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> post_restore_deleted_comment_with_http_info(comment_id, opts) ```ruby begin @@ -2210,7 +2282,7 @@ begin data, status_code, headers = api_instance.post_restore_deleted_comment_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_restore_deleted_comment_with_http_info: #{e}" end @@ -2221,11 +2293,13 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **comment_id** | **String** | | | +| **broadcast_id** | **String** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**PostRestoreDeletedCommentResponse**](PostRestoreDeletedCommentResponse.md) ### Authorization @@ -2239,7 +2313,7 @@ No authorization required ## post_set_comment_approval_status -> post_set_comment_approval_status(comment_id, opts) +> post_set_comment_approval_status(comment_id, opts) @@ -2253,6 +2327,8 @@ api_instance = FastCommentsClient::ModerationApi.new comment_id = 'comment_id_example' # String | opts = { approved: true, # Boolean | + broadcast_id: 'broadcast_id_example', # String | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -2269,7 +2345,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_set_comment_approval_status_with_http_info(comment_id, opts) +> , Integer, Hash)> post_set_comment_approval_status_with_http_info(comment_id, opts) ```ruby begin @@ -2277,7 +2353,7 @@ begin data, status_code, headers = api_instance.post_set_comment_approval_status_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_set_comment_approval_status_with_http_info: #{e}" end @@ -2289,11 +2365,13 @@ end | ---- | ---- | ----------- | ----- | | **comment_id** | **String** | | | | **approved** | **Boolean** | | [optional] | +| **broadcast_id** | **String** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**SetCommentApprovedResponse**](SetCommentApprovedResponse.md) +[**PostSetCommentApprovalStatusResponse**](PostSetCommentApprovalStatusResponse.md) ### Authorization @@ -2307,7 +2385,7 @@ No authorization required ## post_set_comment_review_status -> post_set_comment_review_status(comment_id, opts) +> post_set_comment_review_status(comment_id, opts) @@ -2321,6 +2399,8 @@ api_instance = FastCommentsClient::ModerationApi.new comment_id = 'comment_id_example' # String | opts = { reviewed: true, # Boolean | + broadcast_id: 'broadcast_id_example', # String | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -2337,7 +2417,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_set_comment_review_status_with_http_info(comment_id, opts) +> , Integer, Hash)> post_set_comment_review_status_with_http_info(comment_id, opts) ```ruby begin @@ -2345,7 +2425,7 @@ begin data, status_code, headers = api_instance.post_set_comment_review_status_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_set_comment_review_status_with_http_info: #{e}" end @@ -2357,11 +2437,13 @@ end | ---- | ---- | ----------- | ----- | | **comment_id** | **String** | | | | **reviewed** | **Boolean** | | [optional] | +| **broadcast_id** | **String** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**PostSetCommentReviewStatusResponse**](PostSetCommentReviewStatusResponse.md) ### Authorization @@ -2375,7 +2457,7 @@ No authorization required ## post_set_comment_spam_status -> post_set_comment_spam_status(comment_id, opts) +> post_set_comment_spam_status(comment_id, opts) @@ -2390,6 +2472,8 @@ comment_id = 'comment_id_example' # String | opts = { spam: true, # Boolean | perm_not_spam: true, # Boolean | + broadcast_id: 'broadcast_id_example', # String | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -2406,7 +2490,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_set_comment_spam_status_with_http_info(comment_id, opts) +> , Integer, Hash)> post_set_comment_spam_status_with_http_info(comment_id, opts) ```ruby begin @@ -2414,7 +2498,7 @@ begin data, status_code, headers = api_instance.post_set_comment_spam_status_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_set_comment_spam_status_with_http_info: #{e}" end @@ -2427,11 +2511,13 @@ end | **comment_id** | **String** | | | | **spam** | **Boolean** | | [optional] | | **perm_not_spam** | **Boolean** | | [optional] | +| **broadcast_id** | **String** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**PostSetCommentSpamStatusResponse**](PostSetCommentSpamStatusResponse.md) ### Authorization @@ -2445,7 +2531,7 @@ No authorization required ## post_set_comment_text -> post_set_comment_text(comment_id, set_comment_text_params, opts) +> post_set_comment_text(comment_id, set_comment_text_params, opts) @@ -2459,6 +2545,8 @@ api_instance = FastCommentsClient::ModerationApi.new comment_id = 'comment_id_example' # String | set_comment_text_params = FastCommentsClient::SetCommentTextParams.new({comment: 'comment_example'}) # SetCommentTextParams | opts = { + broadcast_id: 'broadcast_id_example', # String | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -2475,7 +2563,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts) +> , Integer, Hash)> post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts) ```ruby begin @@ -2483,7 +2571,7 @@ begin data, status_code, headers = api_instance.post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_set_comment_text_with_http_info: #{e}" end @@ -2495,11 +2583,13 @@ end | ---- | ---- | ----------- | ----- | | **comment_id** | **String** | | | | **set_comment_text_params** | [**SetCommentTextParams**](SetCommentTextParams.md) | | | +| **broadcast_id** | **String** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**SetCommentTextResponse**](SetCommentTextResponse.md) +[**PostSetCommentTextResponse**](PostSetCommentTextResponse.md) ### Authorization @@ -2513,7 +2603,7 @@ No authorization required ## post_un_flag_comment -> post_un_flag_comment(comment_id, opts) +> post_un_flag_comment(comment_id, opts) @@ -2526,6 +2616,8 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new comment_id = 'comment_id_example' # String | opts = { + broadcast_id: 'broadcast_id_example', # String | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -2542,7 +2634,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_un_flag_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> post_un_flag_comment_with_http_info(comment_id, opts) ```ruby begin @@ -2550,7 +2642,7 @@ begin data, status_code, headers = api_instance.post_un_flag_comment_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_un_flag_comment_with_http_info: #{e}" end @@ -2561,11 +2653,13 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **comment_id** | **String** | | | +| **broadcast_id** | **String** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**PostUnFlagCommentResponse**](PostUnFlagCommentResponse.md) ### Authorization @@ -2579,7 +2673,7 @@ No authorization required ## post_vote -> post_vote(comment_id, opts) +> post_vote(comment_id, opts) @@ -2593,6 +2687,8 @@ api_instance = FastCommentsClient::ModerationApi.new comment_id = 'comment_id_example' # String | opts = { direction: 'direction_example', # String | + broadcast_id: 'broadcast_id_example', # String | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -2609,7 +2705,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_vote_with_http_info(comment_id, opts) +> , Integer, Hash)> post_vote_with_http_info(comment_id, opts) ```ruby begin @@ -2617,7 +2713,7 @@ begin data, status_code, headers = api_instance.post_vote_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_vote_with_http_info: #{e}" end @@ -2629,11 +2725,13 @@ end | ---- | ---- | ----------- | ----- | | **comment_id** | **String** | | | | **direction** | **String** | | [optional] | +| **broadcast_id** | **String** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**VoteResponse**](VoteResponse.md) +[**PostVoteResponse**](PostVoteResponse.md) ### Authorization @@ -2647,7 +2745,7 @@ No authorization required ## put_award_badge -> put_award_badge(badge_id, opts) +> put_award_badge(badge_id, opts) @@ -2663,6 +2761,7 @@ opts = { user_id: 'user_id_example', # String | comment_id: 'comment_id_example', # String | broadcast_id: 'broadcast_id_example', # String | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -2679,7 +2778,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_award_badge_with_http_info(badge_id, opts) +> , Integer, Hash)> put_award_badge_with_http_info(badge_id, opts) ```ruby begin @@ -2687,7 +2786,7 @@ begin data, status_code, headers = api_instance.put_award_badge_with_http_info(badge_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->put_award_badge_with_http_info: #{e}" end @@ -2701,11 +2800,12 @@ end | **user_id** | **String** | | [optional] | | **comment_id** | **String** | | [optional] | | **broadcast_id** | **String** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**AwardUserBadgeResponse**](AwardUserBadgeResponse.md) +[**PutAwardBadgeResponse**](PutAwardBadgeResponse.md) ### Authorization @@ -2719,7 +2819,7 @@ No authorization required ## put_close_thread -> put_close_thread(url_id, opts) +> put_close_thread(url_id, opts) @@ -2732,6 +2832,7 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new url_id = 'url_id_example' # String | opts = { + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -2748,7 +2849,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_close_thread_with_http_info(url_id, opts) +> , Integer, Hash)> put_close_thread_with_http_info(url_id, opts) ```ruby begin @@ -2756,7 +2857,7 @@ begin data, status_code, headers = api_instance.put_close_thread_with_http_info(url_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->put_close_thread_with_http_info: #{e}" end @@ -2767,11 +2868,12 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **url_id** | **String** | | | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**PutCloseThreadResponse**](PutCloseThreadResponse.md) ### Authorization @@ -2785,7 +2887,7 @@ No authorization required ## put_remove_badge -> put_remove_badge(badge_id, opts) +> put_remove_badge(badge_id, opts) @@ -2801,6 +2903,7 @@ opts = { user_id: 'user_id_example', # String | comment_id: 'comment_id_example', # String | broadcast_id: 'broadcast_id_example', # String | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -2817,7 +2920,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_remove_badge_with_http_info(badge_id, opts) +> , Integer, Hash)> put_remove_badge_with_http_info(badge_id, opts) ```ruby begin @@ -2825,7 +2928,7 @@ begin data, status_code, headers = api_instance.put_remove_badge_with_http_info(badge_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->put_remove_badge_with_http_info: #{e}" end @@ -2839,11 +2942,12 @@ end | **user_id** | **String** | | [optional] | | **comment_id** | **String** | | [optional] | | **broadcast_id** | **String** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**RemoveUserBadgeResponse**](RemoveUserBadgeResponse.md) +[**PutRemoveBadgeResponse**](PutRemoveBadgeResponse.md) ### Authorization @@ -2857,7 +2961,7 @@ No authorization required ## put_reopen_thread -> put_reopen_thread(url_id, opts) +> put_reopen_thread(url_id, opts) @@ -2870,6 +2974,7 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new url_id = 'url_id_example' # String | opts = { + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -2886,7 +2991,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_reopen_thread_with_http_info(url_id, opts) +> , Integer, Hash)> put_reopen_thread_with_http_info(url_id, opts) ```ruby begin @@ -2894,7 +2999,7 @@ begin data, status_code, headers = api_instance.put_reopen_thread_with_http_info(url_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->put_reopen_thread_with_http_info: #{e}" end @@ -2905,11 +3010,12 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **url_id** | **String** | | | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**PutReopenThreadResponse**](PutReopenThreadResponse.md) ### Authorization @@ -2923,7 +3029,7 @@ No authorization required ## set_trust_factor -> set_trust_factor(opts) +> set_trust_factor(opts) @@ -2937,6 +3043,7 @@ api_instance = FastCommentsClient::ModerationApi.new opts = { user_id: 'user_id_example', # String | trust_factor: 'trust_factor_example', # String | + tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } @@ -2953,7 +3060,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> set_trust_factor_with_http_info(opts) +> , Integer, Hash)> set_trust_factor_with_http_info(opts) ```ruby begin @@ -2961,7 +3068,7 @@ begin data, status_code, headers = api_instance.set_trust_factor_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->set_trust_factor_with_http_info: #{e}" end @@ -2973,11 +3080,12 @@ end | ---- | ---- | ----------- | ----- | | **user_id** | **String** | | [optional] | | **trust_factor** | **String** | | [optional] | +| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**SetUserTrustFactorResponse**](SetUserTrustFactorResponse.md) +[**SetTrustFactorResponse**](SetTrustFactorResponse.md) ### Authorization diff --git a/client/docs/PatchDomainConfigResponse.md b/client/docs/PatchDomainConfigResponse.md index 23ac8eb..bbe7825 100644 --- a/client/docs/PatchDomainConfigResponse.md +++ b/client/docs/PatchDomainConfigResponse.md @@ -4,10 +4,10 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **configuration** | **Object** | | | +| **configuration** | **Object** | | [optional] | | **status** | **Object** | | | -| **reason** | **String** | | | -| **code** | **String** | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | ## Example diff --git a/client/docs/PatchHashTagResponse.md b/client/docs/PatchHashTagResponse.md new file mode 100644 index 0000000..44f309a --- /dev/null +++ b/client/docs/PatchHashTagResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::PatchHashTagResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **hash_tag** | [**TenantHashTag**](TenantHashTag.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::PatchHashTagResponse.new( + status: null, + hash_tag: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/PinCommentResponse.md b/client/docs/PinCommentResponse.md new file mode 100644 index 0000000..7933126 --- /dev/null +++ b/client/docs/PinCommentResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::PinCommentResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **comment_positions** | [**Hash<String, RecordStringBeforeStringOrNullAfterStringOrNullValue>**](RecordStringBeforeStringOrNullAfterStringOrNullValue.md) | Construct a type with a set of properties K of type T | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::PinCommentResponse.new( + comment_positions: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/PostAdjustCommentVotesResponse.md b/client/docs/PostAdjustCommentVotesResponse.md new file mode 100644 index 0000000..baff8d2 --- /dev/null +++ b/client/docs/PostAdjustCommentVotesResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::PostAdjustCommentVotesResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **new_comment_votes** | **Integer** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::PostAdjustCommentVotesResponse.new( + status: null, + new_comment_votes: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/PostApiExportResponse.md b/client/docs/PostApiExportResponse.md new file mode 100644 index 0000000..5ddd585 --- /dev/null +++ b/client/docs/PostApiExportResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::PostApiExportResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **batch_job_id** | **String** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::PostApiExportResponse.new( + status: null, + batch_job_id: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/PostBanUserFromCommentResponse.md b/client/docs/PostBanUserFromCommentResponse.md new file mode 100644 index 0000000..5a0238f --- /dev/null +++ b/client/docs/PostBanUserFromCommentResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::PostBanUserFromCommentResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **changelog** | [**APIBanUserChangeLog**](APIBanUserChangeLog.md) | | [optional] | +| **code** | **String** | | [optional] | +| **reason** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::PostBanUserFromCommentResponse.new( + status: null, + changelog: null, + code: null, + reason: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/PostBanUserUndoResponse.md b/client/docs/PostBanUserUndoResponse.md new file mode 100644 index 0000000..b3d44a5 --- /dev/null +++ b/client/docs/PostBanUserUndoResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::PostBanUserUndoResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::PostBanUserUndoResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/PostBulkPreBanSummaryResponse.md b/client/docs/PostBulkPreBanSummaryResponse.md new file mode 100644 index 0000000..6e82b07 --- /dev/null +++ b/client/docs/PostBulkPreBanSummaryResponse.md @@ -0,0 +1,42 @@ +# FastCommentsClient::PostBulkPreBanSummaryResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **total_related_comment_count** | **Integer** | | [optional] | +| **email_domains** | **Array<String>** | | [optional] | +| **emails** | **Array<String>** | | [optional] | +| **user_ids** | **Array<String>** | | [optional] | +| **ip_hashes** | **Array<String>** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::PostBulkPreBanSummaryResponse.new( + status: null, + total_related_comment_count: null, + email_domains: null, + emails: null, + user_ids: null, + ip_hashes: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/PostCommentsByIdsResponse.md b/client/docs/PostCommentsByIdsResponse.md new file mode 100644 index 0000000..60b5a3f --- /dev/null +++ b/client/docs/PostCommentsByIdsResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::PostCommentsByIdsResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **comments** | [**Array<ModerationAPIComment>**](ModerationAPIComment.md) | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::PostCommentsByIdsResponse.new( + comments: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/PostFlagCommentResponse.md b/client/docs/PostFlagCommentResponse.md new file mode 100644 index 0000000..8327412 --- /dev/null +++ b/client/docs/PostFlagCommentResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::PostFlagCommentResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::PostFlagCommentResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/PostRemoveCommentResponse.md b/client/docs/PostRemoveCommentResponse.md index 2c1425c..5184f02 100644 --- a/client/docs/PostRemoveCommentResponse.md +++ b/client/docs/PostRemoveCommentResponse.md @@ -4,8 +4,15 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **action** | **String** | | | -| **status** | **String** | | | +| **action** | **String** | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | ## Example @@ -14,7 +21,14 @@ require 'fastcomments-client' instance = FastCommentsClient::PostRemoveCommentResponse.new( action: null, - status: null + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null ) ``` diff --git a/client/docs/PostRestoreDeletedCommentResponse.md b/client/docs/PostRestoreDeletedCommentResponse.md new file mode 100644 index 0000000..df0c6c7 --- /dev/null +++ b/client/docs/PostRestoreDeletedCommentResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::PostRestoreDeletedCommentResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::PostRestoreDeletedCommentResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/PostSetCommentApprovalStatusResponse.md b/client/docs/PostSetCommentApprovalStatusResponse.md new file mode 100644 index 0000000..b1c99aa --- /dev/null +++ b/client/docs/PostSetCommentApprovalStatusResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::PostSetCommentApprovalStatusResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **did_reset_flagged_count** | **Boolean** | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::PostSetCommentApprovalStatusResponse.new( + did_reset_flagged_count: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/PostSetCommentReviewStatusResponse.md b/client/docs/PostSetCommentReviewStatusResponse.md new file mode 100644 index 0000000..05640d9 --- /dev/null +++ b/client/docs/PostSetCommentReviewStatusResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::PostSetCommentReviewStatusResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::PostSetCommentReviewStatusResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/PostSetCommentSpamStatusResponse.md b/client/docs/PostSetCommentSpamStatusResponse.md new file mode 100644 index 0000000..0a4eca2 --- /dev/null +++ b/client/docs/PostSetCommentSpamStatusResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::PostSetCommentSpamStatusResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::PostSetCommentSpamStatusResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/PostSetCommentTextResponse.md b/client/docs/PostSetCommentTextResponse.md new file mode 100644 index 0000000..94f343e --- /dev/null +++ b/client/docs/PostSetCommentTextResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::PostSetCommentTextResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **new_comment_text_html** | **String** | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::PostSetCommentTextResponse.new( + new_comment_text_html: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/PostUnFlagCommentResponse.md b/client/docs/PostUnFlagCommentResponse.md new file mode 100644 index 0000000..5999949 --- /dev/null +++ b/client/docs/PostUnFlagCommentResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::PostUnFlagCommentResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::PostUnFlagCommentResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/PostVoteResponse.md b/client/docs/PostVoteResponse.md new file mode 100644 index 0000000..f284879 --- /dev/null +++ b/client/docs/PostVoteResponse.md @@ -0,0 +1,40 @@ +# FastCommentsClient::PostVoteResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **vote_id** | **String** | | [optional] | +| **is_verified** | **Boolean** | | [optional] | +| **user** | [**VoteResponseUser**](VoteResponseUser.md) | | [optional] | +| **edit_key** | **String** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::PostVoteResponse.new( + status: null, + vote_id: null, + is_verified: null, + user: null, + edit_key: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/PublicApi.md b/client/docs/PublicApi.md index 0a55969..f313f59 100644 --- a/client/docs/PublicApi.md +++ b/client/docs/PublicApi.md @@ -60,7 +60,7 @@ All URIs are relative to *https://fastcomments.com* ## block_from_comment_public -> block_from_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts) +> block_from_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts) @@ -91,7 +91,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> block_from_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) +> , Integer, Hash)> block_from_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) ```ruby begin @@ -99,7 +99,7 @@ begin data, status_code, headers = api_instance.block_from_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->block_from_comment_public_with_http_info: #{e}" end @@ -116,7 +116,7 @@ end ### Return type -[**BlockSuccess**](BlockSuccess.md) +[**BlockFromCommentPublicResponse**](BlockFromCommentPublicResponse.md) ### Authorization @@ -130,7 +130,7 @@ No authorization required ## checked_comments_for_blocked -> checked_comments_for_blocked(tenant_id, comment_ids, opts) +> checked_comments_for_blocked(tenant_id, comment_ids, opts) @@ -160,7 +160,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> checked_comments_for_blocked_with_http_info(tenant_id, comment_ids, opts) +> , Integer, Hash)> checked_comments_for_blocked_with_http_info(tenant_id, comment_ids, opts) ```ruby begin @@ -168,7 +168,7 @@ begin data, status_code, headers = api_instance.checked_comments_for_blocked_with_http_info(tenant_id, comment_ids, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->checked_comments_for_blocked_with_http_info: #{e}" end @@ -184,7 +184,7 @@ end ### Return type -[**CheckBlockedCommentsResponse**](CheckBlockedCommentsResponse.md) +[**CheckedCommentsForBlockedResponse**](CheckedCommentsForBlockedResponse.md) ### Authorization @@ -198,7 +198,7 @@ No authorization required ## create_comment_public -> create_comment_public(tenant_id, url_id, broadcast_id, comment_data, opts) +> create_comment_public(tenant_id, url_id, broadcast_id, comment_data, opts) @@ -231,7 +231,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, comment_data, opts) +> , Integer, Hash)> create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, comment_data, opts) ```ruby begin @@ -239,7 +239,7 @@ begin data, status_code, headers = api_instance.create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, comment_data, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->create_comment_public_with_http_info: #{e}" end @@ -258,7 +258,7 @@ end ### Return type -[**SaveCommentsResponseWithPresence**](SaveCommentsResponseWithPresence.md) +[**CreateCommentPublicResponse**](CreateCommentPublicResponse.md) ### Authorization @@ -272,7 +272,7 @@ No authorization required ## create_feed_post_public -> create_feed_post_public(tenant_id, create_feed_post_params, opts) +> create_feed_post_public(tenant_id, create_feed_post_params, opts) @@ -303,7 +303,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, opts) +> , Integer, Hash)> create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, opts) ```ruby begin @@ -311,7 +311,7 @@ begin data, status_code, headers = api_instance.create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->create_feed_post_public_with_http_info: #{e}" end @@ -328,7 +328,7 @@ end ### Return type -[**CreateFeedPostResponse**](CreateFeedPostResponse.md) +[**CreateFeedPostPublicResponse**](CreateFeedPostPublicResponse.md) ### Authorization @@ -342,7 +342,7 @@ No authorization required ## create_v1_page_react -> create_v1_page_react(tenant_id, url_id, opts) +> create_v1_page_react(tenant_id, url_id, opts) @@ -372,7 +372,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_v1_page_react_with_http_info(tenant_id, url_id, opts) +> , Integer, Hash)> create_v1_page_react_with_http_info(tenant_id, url_id, opts) ```ruby begin @@ -380,7 +380,7 @@ begin data, status_code, headers = api_instance.create_v1_page_react_with_http_info(tenant_id, url_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->create_v1_page_react_with_http_info: #{e}" end @@ -396,7 +396,7 @@ end ### Return type -[**CreateV1PageReact**](CreateV1PageReact.md) +[**CreateV1PageReactResponse**](CreateV1PageReactResponse.md) ### Authorization @@ -410,7 +410,7 @@ No authorization required ## create_v2_page_react -> create_v2_page_react(tenant_id, url_id, id, opts) +> create_v2_page_react(tenant_id, url_id, id, opts) @@ -441,7 +441,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_v2_page_react_with_http_info(tenant_id, url_id, id, opts) +> , Integer, Hash)> create_v2_page_react_with_http_info(tenant_id, url_id, id, opts) ```ruby begin @@ -449,7 +449,7 @@ begin data, status_code, headers = api_instance.create_v2_page_react_with_http_info(tenant_id, url_id, id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->create_v2_page_react_with_http_info: #{e}" end @@ -466,7 +466,7 @@ end ### Return type -[**CreateV1PageReact**](CreateV1PageReact.md) +[**CreateV2PageReactResponse**](CreateV2PageReactResponse.md) ### Authorization @@ -480,7 +480,7 @@ No authorization required ## delete_comment_public -> delete_comment_public(tenant_id, comment_id, broadcast_id, opts) +> delete_comment_public(tenant_id, comment_id, broadcast_id, opts) @@ -512,7 +512,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, opts) +> , Integer, Hash)> delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, opts) ```ruby begin @@ -520,7 +520,7 @@ begin data, status_code, headers = api_instance.delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->delete_comment_public_with_http_info: #{e}" end @@ -538,7 +538,7 @@ end ### Return type -[**PublicAPIDeleteCommentResponse**](PublicAPIDeleteCommentResponse.md) +[**DeleteCommentPublicResponse**](DeleteCommentPublicResponse.md) ### Authorization @@ -552,7 +552,7 @@ No authorization required ## delete_comment_vote -> delete_comment_vote(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts) +> delete_comment_vote(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts) @@ -586,7 +586,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_comment_vote_with_http_info(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts) +> , Integer, Hash)> delete_comment_vote_with_http_info(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts) ```ruby begin @@ -594,7 +594,7 @@ begin data, status_code, headers = api_instance.delete_comment_vote_with_http_info(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->delete_comment_vote_with_http_info: #{e}" end @@ -614,7 +614,7 @@ end ### Return type -[**VoteDeleteResponse**](VoteDeleteResponse.md) +[**DeleteCommentVoteResponse**](DeleteCommentVoteResponse.md) ### Authorization @@ -698,7 +698,7 @@ No authorization required ## delete_v1_page_react -> delete_v1_page_react(tenant_id, url_id) +> delete_v1_page_react(tenant_id, url_id) @@ -725,7 +725,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_v1_page_react_with_http_info(tenant_id, url_id) +> , Integer, Hash)> delete_v1_page_react_with_http_info(tenant_id, url_id) ```ruby begin @@ -733,7 +733,7 @@ begin data, status_code, headers = api_instance.delete_v1_page_react_with_http_info(tenant_id, url_id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->delete_v1_page_react_with_http_info: #{e}" end @@ -748,7 +748,7 @@ end ### Return type -[**CreateV1PageReact**](CreateV1PageReact.md) +[**DeleteV1PageReactResponse**](DeleteV1PageReactResponse.md) ### Authorization @@ -762,7 +762,7 @@ No authorization required ## delete_v2_page_react -> delete_v2_page_react(tenant_id, url_id, id) +> delete_v2_page_react(tenant_id, url_id, id) @@ -790,7 +790,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_v2_page_react_with_http_info(tenant_id, url_id, id) +> , Integer, Hash)> delete_v2_page_react_with_http_info(tenant_id, url_id, id) ```ruby begin @@ -798,7 +798,7 @@ begin data, status_code, headers = api_instance.delete_v2_page_react_with_http_info(tenant_id, url_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->delete_v2_page_react_with_http_info: #{e}" end @@ -814,7 +814,7 @@ end ### Return type -[**CreateV1PageReact**](CreateV1PageReact.md) +[**DeleteV2PageReactResponse**](DeleteV2PageReactResponse.md) ### Authorization @@ -828,7 +828,7 @@ No authorization required ## flag_comment_public -> flag_comment_public(tenant_id, comment_id, is_flagged, opts) +> flag_comment_public(tenant_id, comment_id, is_flagged, opts) @@ -859,7 +859,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts) +> , Integer, Hash)> flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts) ```ruby begin @@ -867,7 +867,7 @@ begin data, status_code, headers = api_instance.flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->flag_comment_public_with_http_info: #{e}" end @@ -884,7 +884,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**FlagCommentPublicResponse**](FlagCommentPublicResponse.md) ### Authorization @@ -898,7 +898,7 @@ No authorization required ## get_comment_text -> get_comment_text(tenant_id, comment_id, opts) +> get_comment_text(tenant_id, comment_id, opts) @@ -929,7 +929,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comment_text_with_http_info(tenant_id, comment_id, opts) +> , Integer, Hash)> get_comment_text_with_http_info(tenant_id, comment_id, opts) ```ruby begin @@ -937,7 +937,7 @@ begin data, status_code, headers = api_instance.get_comment_text_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_comment_text_with_http_info: #{e}" end @@ -954,7 +954,7 @@ end ### Return type -[**PublicAPIGetCommentTextResponse**](PublicAPIGetCommentTextResponse.md) +[**GetCommentTextResponse1**](GetCommentTextResponse1.md) ### Authorization @@ -968,7 +968,7 @@ No authorization required ## get_comment_vote_user_names -> get_comment_vote_user_names(tenant_id, comment_id, dir, opts) +> get_comment_vote_user_names(tenant_id, comment_id, dir, opts) @@ -999,7 +999,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts) +> , Integer, Hash)> get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts) ```ruby begin @@ -1007,7 +1007,7 @@ begin data, status_code, headers = api_instance.get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_comment_vote_user_names_with_http_info: #{e}" end @@ -1024,7 +1024,7 @@ end ### Return type -[**GetCommentVoteUserNamesSuccessResponse**](GetCommentVoteUserNamesSuccessResponse.md) +[**GetCommentVoteUserNamesResponse**](GetCommentVoteUserNamesResponse.md) ### Authorization @@ -1038,7 +1038,7 @@ No authorization required ## get_comments_for_user -> get_comments_for_user(opts) +> get_comments_for_user(opts) @@ -1072,7 +1072,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comments_for_user_with_http_info(opts) +> , Integer, Hash)> get_comments_for_user_with_http_info(opts) ```ruby begin @@ -1080,7 +1080,7 @@ begin data, status_code, headers = api_instance.get_comments_for_user_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_comments_for_user_with_http_info: #{e}" end @@ -1100,7 +1100,7 @@ end ### Return type -[**GetCommentsForUserResponse**](GetCommentsForUserResponse.md) +[**GetCommentsForUserResponse1**](GetCommentsForUserResponse1.md) ### Authorization @@ -1114,7 +1114,7 @@ No authorization required ## get_comments_public -> get_comments_public(tenant_id, url_id, opts) +> get_comments_public(tenant_id, url_id, opts) @@ -1171,7 +1171,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comments_public_with_http_info(tenant_id, url_id, opts) +> , Integer, Hash)> get_comments_public_with_http_info(tenant_id, url_id, opts) ```ruby begin @@ -1179,7 +1179,7 @@ begin data, status_code, headers = api_instance.get_comments_public_with_http_info(tenant_id, url_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_comments_public_with_http_info: #{e}" end @@ -1220,7 +1220,7 @@ end ### Return type -[**GetCommentsResponseWithPresencePublicComment**](GetCommentsResponseWithPresencePublicComment.md) +[**GetCommentsPublicResponse**](GetCommentsPublicResponse.md) ### Authorization @@ -1234,7 +1234,7 @@ No authorization required ## get_event_log -> get_event_log(tenant_id, url_id, user_id_ws, start_time, opts) +> get_event_log(tenant_id, url_id, user_id_ws, start_time, opts) @@ -1268,7 +1268,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) +> , Integer, Hash)> get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) ```ruby begin @@ -1276,7 +1276,7 @@ begin data, status_code, headers = api_instance.get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_event_log_with_http_info: #{e}" end @@ -1294,7 +1294,7 @@ end ### Return type -[**GetEventLogResponse**](GetEventLogResponse.md) +[**GetEventLogResponse1**](GetEventLogResponse1.md) ### Authorization @@ -1308,7 +1308,7 @@ No authorization required ## get_feed_posts_public -> get_feed_posts_public(tenant_id, opts) +> get_feed_posts_public(tenant_id, opts) @@ -1344,7 +1344,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_feed_posts_public_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_feed_posts_public_with_http_info(tenant_id, opts) ```ruby begin @@ -1352,7 +1352,7 @@ begin data, status_code, headers = api_instance.get_feed_posts_public_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_feed_posts_public_with_http_info: #{e}" end @@ -1372,7 +1372,7 @@ end ### Return type -[**PublicFeedPostsResponse**](PublicFeedPostsResponse.md) +[**GetFeedPostsPublicResponse**](GetFeedPostsPublicResponse.md) ### Authorization @@ -1386,7 +1386,7 @@ No authorization required ## get_feed_posts_stats -> get_feed_posts_stats(tenant_id, post_ids, opts) +> get_feed_posts_stats(tenant_id, post_ids, opts) @@ -1416,7 +1416,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts) +> , Integer, Hash)> get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts) ```ruby begin @@ -1424,7 +1424,7 @@ begin data, status_code, headers = api_instance.get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_feed_posts_stats_with_http_info: #{e}" end @@ -1440,7 +1440,7 @@ end ### Return type -[**FeedPostsStatsResponse**](FeedPostsStatsResponse.md) +[**GetFeedPostsStatsResponse**](GetFeedPostsStatsResponse.md) ### Authorization @@ -1454,7 +1454,7 @@ No authorization required ## get_gif_large -> get_gif_large(tenant_id, large_internal_url_sanitized) +> get_gif_large(tenant_id, large_internal_url_sanitized) @@ -1481,7 +1481,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_gif_large_with_http_info(tenant_id, large_internal_url_sanitized) +> , Integer, Hash)> get_gif_large_with_http_info(tenant_id, large_internal_url_sanitized) ```ruby begin @@ -1489,7 +1489,7 @@ begin data, status_code, headers = api_instance.get_gif_large_with_http_info(tenant_id, large_internal_url_sanitized) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_gif_large_with_http_info: #{e}" end @@ -1504,7 +1504,7 @@ end ### Return type -[**GifGetLargeResponse**](GifGetLargeResponse.md) +[**GetGifLargeResponse**](GetGifLargeResponse.md) ### Authorization @@ -1660,7 +1660,7 @@ No authorization required ## get_global_event_log -> get_global_event_log(tenant_id, url_id, user_id_ws, start_time, opts) +> get_global_event_log(tenant_id, url_id, user_id_ws, start_time, opts) @@ -1694,7 +1694,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) +> , Integer, Hash)> get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) ```ruby begin @@ -1702,7 +1702,7 @@ begin data, status_code, headers = api_instance.get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_global_event_log_with_http_info: #{e}" end @@ -1720,7 +1720,7 @@ end ### Return type -[**GetEventLogResponse**](GetEventLogResponse.md) +[**GetGlobalEventLogResponse**](GetGlobalEventLogResponse.md) ### Authorization @@ -1734,7 +1734,7 @@ No authorization required ## get_offline_users -> get_offline_users(tenant_id, url_id, opts) +> get_offline_users(tenant_id, url_id, opts) @@ -1767,7 +1767,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_offline_users_with_http_info(tenant_id, url_id, opts) +> , Integer, Hash)> get_offline_users_with_http_info(tenant_id, url_id, opts) ```ruby begin @@ -1775,7 +1775,7 @@ begin data, status_code, headers = api_instance.get_offline_users_with_http_info(tenant_id, url_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_offline_users_with_http_info: #{e}" end @@ -1792,7 +1792,7 @@ end ### Return type -[**PageUsersOfflineResponse**](PageUsersOfflineResponse.md) +[**GetOfflineUsersResponse**](GetOfflineUsersResponse.md) ### Authorization @@ -1806,7 +1806,7 @@ No authorization required ## get_online_users -> get_online_users(tenant_id, url_id, opts) +> get_online_users(tenant_id, url_id, opts) @@ -1839,7 +1839,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_online_users_with_http_info(tenant_id, url_id, opts) +> , Integer, Hash)> get_online_users_with_http_info(tenant_id, url_id, opts) ```ruby begin @@ -1847,7 +1847,7 @@ begin data, status_code, headers = api_instance.get_online_users_with_http_info(tenant_id, url_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_online_users_with_http_info: #{e}" end @@ -1864,7 +1864,7 @@ end ### Return type -[**PageUsersOnlineResponse**](PageUsersOnlineResponse.md) +[**GetOnlineUsersResponse**](GetOnlineUsersResponse.md) ### Authorization @@ -1878,7 +1878,7 @@ No authorization required ## get_pages_public -> get_pages_public(tenant_id, opts) +> get_pages_public(tenant_id, opts) @@ -1913,7 +1913,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_pages_public_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_pages_public_with_http_info(tenant_id, opts) ```ruby begin @@ -1921,7 +1921,7 @@ begin data, status_code, headers = api_instance.get_pages_public_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_pages_public_with_http_info: #{e}" end @@ -1940,7 +1940,7 @@ end ### Return type -[**GetPublicPagesResponse**](GetPublicPagesResponse.md) +[**GetPagesPublicResponse**](GetPagesPublicResponse.md) ### Authorization @@ -1954,7 +1954,7 @@ No authorization required ## get_translations -> get_translations(namespace, component, opts) +> get_translations(namespace, component, opts) @@ -1985,7 +1985,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_translations_with_http_info(namespace, component, opts) +> , Integer, Hash)> get_translations_with_http_info(namespace, component, opts) ```ruby begin @@ -1993,7 +1993,7 @@ begin data, status_code, headers = api_instance.get_translations_with_http_info(namespace, component, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_translations_with_http_info: #{e}" end @@ -2010,7 +2010,7 @@ end ### Return type -[**GetTranslationsResponse**](GetTranslationsResponse.md) +[**GetTranslationsResponse1**](GetTranslationsResponse1.md) ### Authorization @@ -2024,7 +2024,7 @@ No authorization required ## get_user_notification_count -> get_user_notification_count(tenant_id, opts) +> get_user_notification_count(tenant_id, opts) @@ -2053,7 +2053,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_notification_count_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_user_notification_count_with_http_info(tenant_id, opts) ```ruby begin @@ -2061,7 +2061,7 @@ begin data, status_code, headers = api_instance.get_user_notification_count_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_user_notification_count_with_http_info: #{e}" end @@ -2076,7 +2076,7 @@ end ### Return type -[**GetUserNotificationCountResponse**](GetUserNotificationCountResponse.md) +[**GetUserNotificationCountResponse1**](GetUserNotificationCountResponse1.md) ### Authorization @@ -2090,7 +2090,7 @@ No authorization required ## get_user_notifications -> get_user_notifications(tenant_id, opts) +> get_user_notifications(tenant_id, opts) @@ -2129,7 +2129,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_notifications_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_user_notifications_with_http_info(tenant_id, opts) ```ruby begin @@ -2137,7 +2137,7 @@ begin data, status_code, headers = api_instance.get_user_notifications_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_user_notifications_with_http_info: #{e}" end @@ -2162,7 +2162,7 @@ end ### Return type -[**GetMyNotificationsResponse**](GetMyNotificationsResponse.md) +[**GetUserNotificationsResponse**](GetUserNotificationsResponse.md) ### Authorization @@ -2176,7 +2176,7 @@ No authorization required ## get_user_presence_statuses -> get_user_presence_statuses(tenant_id, url_id_ws, user_ids) +> get_user_presence_statuses(tenant_id, url_id_ws, user_ids) @@ -2204,7 +2204,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids) +> , Integer, Hash)> get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids) ```ruby begin @@ -2212,7 +2212,7 @@ begin data, status_code, headers = api_instance.get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_user_presence_statuses_with_http_info: #{e}" end @@ -2228,7 +2228,7 @@ end ### Return type -[**GetUserPresenceStatusesResponse**](GetUserPresenceStatusesResponse.md) +[**GetUserPresenceStatusesResponse1**](GetUserPresenceStatusesResponse1.md) ### Authorization @@ -2242,7 +2242,7 @@ No authorization required ## get_user_reacts_public -> get_user_reacts_public(tenant_id, opts) +> get_user_reacts_public(tenant_id, opts) @@ -2272,7 +2272,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_reacts_public_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_user_reacts_public_with_http_info(tenant_id, opts) ```ruby begin @@ -2280,7 +2280,7 @@ begin data, status_code, headers = api_instance.get_user_reacts_public_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_user_reacts_public_with_http_info: #{e}" end @@ -2296,7 +2296,7 @@ end ### Return type -[**UserReactsResponse**](UserReactsResponse.md) +[**GetUserReactsPublicResponse**](GetUserReactsPublicResponse.md) ### Authorization @@ -2310,7 +2310,7 @@ No authorization required ## get_users_info -> get_users_info(tenant_id, ids) +> get_users_info(tenant_id, ids) @@ -2339,7 +2339,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_users_info_with_http_info(tenant_id, ids) +> , Integer, Hash)> get_users_info_with_http_info(tenant_id, ids) ```ruby begin @@ -2347,7 +2347,7 @@ begin data, status_code, headers = api_instance.get_users_info_with_http_info(tenant_id, ids) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_users_info_with_http_info: #{e}" end @@ -2362,7 +2362,7 @@ end ### Return type -[**PageUsersInfoResponse**](PageUsersInfoResponse.md) +[**GetUsersInfoResponse**](GetUsersInfoResponse.md) ### Authorization @@ -2376,7 +2376,7 @@ No authorization required ## get_v1_page_likes -> get_v1_page_likes(tenant_id, url_id) +> get_v1_page_likes(tenant_id, url_id) @@ -2403,7 +2403,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_v1_page_likes_with_http_info(tenant_id, url_id) +> , Integer, Hash)> get_v1_page_likes_with_http_info(tenant_id, url_id) ```ruby begin @@ -2411,7 +2411,7 @@ begin data, status_code, headers = api_instance.get_v1_page_likes_with_http_info(tenant_id, url_id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_v1_page_likes_with_http_info: #{e}" end @@ -2426,7 +2426,7 @@ end ### Return type -[**GetV1PageLikes**](GetV1PageLikes.md) +[**GetV1PageLikesResponse**](GetV1PageLikesResponse.md) ### Authorization @@ -2440,7 +2440,7 @@ No authorization required ## get_v2_page_react_users -> get_v2_page_react_users(tenant_id, url_id, id) +> get_v2_page_react_users(tenant_id, url_id, id) @@ -2468,7 +2468,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_v2_page_react_users_with_http_info(tenant_id, url_id, id) +> , Integer, Hash)> get_v2_page_react_users_with_http_info(tenant_id, url_id, id) ```ruby begin @@ -2476,7 +2476,7 @@ begin data, status_code, headers = api_instance.get_v2_page_react_users_with_http_info(tenant_id, url_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_v2_page_react_users_with_http_info: #{e}" end @@ -2492,7 +2492,7 @@ end ### Return type -[**GetV2PageReactUsersResponse**](GetV2PageReactUsersResponse.md) +[**GetV2PageReactUsersResponse1**](GetV2PageReactUsersResponse1.md) ### Authorization @@ -2506,7 +2506,7 @@ No authorization required ## get_v2_page_reacts -> get_v2_page_reacts(tenant_id, url_id) +> get_v2_page_reacts(tenant_id, url_id) @@ -2533,7 +2533,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_v2_page_reacts_with_http_info(tenant_id, url_id) +> , Integer, Hash)> get_v2_page_reacts_with_http_info(tenant_id, url_id) ```ruby begin @@ -2541,7 +2541,7 @@ begin data, status_code, headers = api_instance.get_v2_page_reacts_with_http_info(tenant_id, url_id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_v2_page_reacts_with_http_info: #{e}" end @@ -2556,7 +2556,7 @@ end ### Return type -[**GetV2PageReacts**](GetV2PageReacts.md) +[**GetV2PageReactsResponse**](GetV2PageReactsResponse.md) ### Authorization @@ -2570,7 +2570,7 @@ No authorization required ## lock_comment -> lock_comment(tenant_id, comment_id, broadcast_id, opts) +> lock_comment(tenant_id, comment_id, broadcast_id, opts) @@ -2601,7 +2601,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) +> , Integer, Hash)> lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) ```ruby begin @@ -2609,7 +2609,7 @@ begin data, status_code, headers = api_instance.lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->lock_comment_with_http_info: #{e}" end @@ -2626,7 +2626,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**LockCommentResponse**](LockCommentResponse.md) ### Authorization @@ -2699,7 +2699,7 @@ No authorization required ## pin_comment -> pin_comment(tenant_id, comment_id, broadcast_id, opts) +> pin_comment(tenant_id, comment_id, broadcast_id, opts) @@ -2730,7 +2730,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) +> , Integer, Hash)> pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) ```ruby begin @@ -2738,7 +2738,7 @@ begin data, status_code, headers = api_instance.pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->pin_comment_with_http_info: #{e}" end @@ -2755,7 +2755,7 @@ end ### Return type -[**ChangeCommentPinStatusResponse**](ChangeCommentPinStatusResponse.md) +[**PinCommentResponse**](PinCommentResponse.md) ### Authorization @@ -2769,7 +2769,7 @@ No authorization required ## react_feed_post_public -> react_feed_post_public(tenant_id, post_id, react_body_params, opts) +> react_feed_post_public(tenant_id, post_id, react_body_params, opts) @@ -2802,7 +2802,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, opts) +> , Integer, Hash)> react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, opts) ```ruby begin @@ -2810,7 +2810,7 @@ begin data, status_code, headers = api_instance.react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->react_feed_post_public_with_http_info: #{e}" end @@ -2829,7 +2829,7 @@ end ### Return type -[**ReactFeedPostResponse**](ReactFeedPostResponse.md) +[**ReactFeedPostPublicResponse**](ReactFeedPostPublicResponse.md) ### Authorization @@ -2843,7 +2843,7 @@ No authorization required ## reset_user_notification_count -> reset_user_notification_count(tenant_id, opts) +> reset_user_notification_count(tenant_id, opts) @@ -2872,7 +2872,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> reset_user_notification_count_with_http_info(tenant_id, opts) +> , Integer, Hash)> reset_user_notification_count_with_http_info(tenant_id, opts) ```ruby begin @@ -2880,7 +2880,7 @@ begin data, status_code, headers = api_instance.reset_user_notification_count_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->reset_user_notification_count_with_http_info: #{e}" end @@ -2895,7 +2895,7 @@ end ### Return type -[**ResetUserNotificationsResponse**](ResetUserNotificationsResponse.md) +[**ResetUserNotificationCountResponse**](ResetUserNotificationCountResponse.md) ### Authorization @@ -2909,7 +2909,7 @@ No authorization required ## reset_user_notifications -> reset_user_notifications(tenant_id, opts) +> reset_user_notifications(tenant_id, opts) @@ -2943,7 +2943,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> reset_user_notifications_with_http_info(tenant_id, opts) +> , Integer, Hash)> reset_user_notifications_with_http_info(tenant_id, opts) ```ruby begin @@ -2951,7 +2951,7 @@ begin data, status_code, headers = api_instance.reset_user_notifications_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->reset_user_notifications_with_http_info: #{e}" end @@ -2971,7 +2971,7 @@ end ### Return type -[**ResetUserNotificationsResponse**](ResetUserNotificationsResponse.md) +[**ResetUserNotificationsResponse1**](ResetUserNotificationsResponse1.md) ### Authorization @@ -2985,7 +2985,7 @@ No authorization required ## search_users -> search_users(tenant_id, url_id, opts) +> search_users(tenant_id, url_id, opts) @@ -3018,7 +3018,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> search_users_with_http_info(tenant_id, url_id, opts) +> , Integer, Hash)> search_users_with_http_info(tenant_id, url_id, opts) ```ruby begin @@ -3026,7 +3026,7 @@ begin data, status_code, headers = api_instance.search_users_with_http_info(tenant_id, url_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->search_users_with_http_info: #{e}" end @@ -3045,7 +3045,7 @@ end ### Return type -[**SearchUsersResult**](SearchUsersResult.md) +[**SearchUsersResponse1**](SearchUsersResponse1.md) ### Authorization @@ -3059,7 +3059,7 @@ No authorization required ## set_comment_text -> set_comment_text(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts) +> set_comment_text(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts) @@ -3092,7 +3092,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts) +> , Integer, Hash)> set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts) ```ruby begin @@ -3100,7 +3100,7 @@ begin data, status_code, headers = api_instance.set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->set_comment_text_with_http_info: #{e}" end @@ -3119,7 +3119,7 @@ end ### Return type -[**PublicAPISetCommentTextResponse**](PublicAPISetCommentTextResponse.md) +[**SetCommentTextResponse1**](SetCommentTextResponse1.md) ### Authorization @@ -3133,7 +3133,7 @@ No authorization required ## un_block_comment_public -> un_block_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts) +> un_block_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts) @@ -3164,7 +3164,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) +> , Integer, Hash)> un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) ```ruby begin @@ -3172,7 +3172,7 @@ begin data, status_code, headers = api_instance.un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->un_block_comment_public_with_http_info: #{e}" end @@ -3189,7 +3189,7 @@ end ### Return type -[**UnblockSuccess**](UnblockSuccess.md) +[**UnBlockCommentPublicResponse**](UnBlockCommentPublicResponse.md) ### Authorization @@ -3203,7 +3203,7 @@ No authorization required ## un_lock_comment -> un_lock_comment(tenant_id, comment_id, broadcast_id, opts) +> un_lock_comment(tenant_id, comment_id, broadcast_id, opts) @@ -3234,7 +3234,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) +> , Integer, Hash)> un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) ```ruby begin @@ -3242,7 +3242,7 @@ begin data, status_code, headers = api_instance.un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->un_lock_comment_with_http_info: #{e}" end @@ -3259,7 +3259,7 @@ end ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**UnLockCommentResponse**](UnLockCommentResponse.md) ### Authorization @@ -3273,7 +3273,7 @@ No authorization required ## un_pin_comment -> un_pin_comment(tenant_id, comment_id, broadcast_id, opts) +> un_pin_comment(tenant_id, comment_id, broadcast_id, opts) @@ -3304,7 +3304,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) +> , Integer, Hash)> un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) ```ruby begin @@ -3312,7 +3312,7 @@ begin data, status_code, headers = api_instance.un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->un_pin_comment_with_http_info: #{e}" end @@ -3329,7 +3329,7 @@ end ### Return type -[**ChangeCommentPinStatusResponse**](ChangeCommentPinStatusResponse.md) +[**UnPinCommentResponse**](UnPinCommentResponse.md) ### Authorization @@ -3343,7 +3343,7 @@ No authorization required ## update_feed_post_public -> update_feed_post_public(tenant_id, post_id, update_feed_post_params, opts) +> update_feed_post_public(tenant_id, post_id, update_feed_post_params, opts) @@ -3375,7 +3375,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_feed_post_public_with_http_info(tenant_id, post_id, update_feed_post_params, opts) +> , Integer, Hash)> update_feed_post_public_with_http_info(tenant_id, post_id, update_feed_post_params, opts) ```ruby begin @@ -3383,7 +3383,7 @@ begin data, status_code, headers = api_instance.update_feed_post_public_with_http_info(tenant_id, post_id, update_feed_post_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->update_feed_post_public_with_http_info: #{e}" end @@ -3401,7 +3401,7 @@ end ### Return type -[**CreateFeedPostResponse**](CreateFeedPostResponse.md) +[**UpdateFeedPostPublicResponse**](UpdateFeedPostPublicResponse.md) ### Authorization @@ -3707,7 +3707,7 @@ No authorization required ## vote_comment -> vote_comment(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts) +> vote_comment(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts) @@ -3741,7 +3741,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> vote_comment_with_http_info(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts) +> , Integer, Hash)> vote_comment_with_http_info(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts) ```ruby begin @@ -3749,7 +3749,7 @@ begin data, status_code, headers = api_instance.vote_comment_with_http_info(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->vote_comment_with_http_info: #{e}" end @@ -3769,7 +3769,7 @@ end ### Return type -[**VoteResponse**](VoteResponse.md) +[**VoteCommentResponse**](VoteCommentResponse.md) ### Authorization diff --git a/client/docs/PutAwardBadgeResponse.md b/client/docs/PutAwardBadgeResponse.md new file mode 100644 index 0000000..7270467 --- /dev/null +++ b/client/docs/PutAwardBadgeResponse.md @@ -0,0 +1,36 @@ +# FastCommentsClient::PutAwardBadgeResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **notes** | **Array<String>** | | [optional] | +| **badges** | [**Array<CommentUserBadgeInfo>**](CommentUserBadgeInfo.md) | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::PutAwardBadgeResponse.new( + notes: null, + badges: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/PutCloseThreadResponse.md b/client/docs/PutCloseThreadResponse.md new file mode 100644 index 0000000..343516e --- /dev/null +++ b/client/docs/PutCloseThreadResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::PutCloseThreadResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::PutCloseThreadResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/PutDomainConfigResponse.md b/client/docs/PutDomainConfigResponse.md index 3e582eb..e0d0fa3 100644 --- a/client/docs/PutDomainConfigResponse.md +++ b/client/docs/PutDomainConfigResponse.md @@ -4,10 +4,10 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **configuration** | **Object** | | | +| **configuration** | **Object** | | [optional] | | **status** | **Object** | | | -| **reason** | **String** | | | -| **code** | **String** | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | ## Example diff --git a/client/docs/PutRemoveBadgeResponse.md b/client/docs/PutRemoveBadgeResponse.md new file mode 100644 index 0000000..5697122 --- /dev/null +++ b/client/docs/PutRemoveBadgeResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::PutRemoveBadgeResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **badges** | [**Array<CommentUserBadgeInfo>**](CommentUserBadgeInfo.md) | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::PutRemoveBadgeResponse.new( + badges: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/PutReopenThreadResponse.md b/client/docs/PutReopenThreadResponse.md new file mode 100644 index 0000000..a59c4c6 --- /dev/null +++ b/client/docs/PutReopenThreadResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::PutReopenThreadResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::PutReopenThreadResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/ReactFeedPostPublicResponse.md b/client/docs/ReactFeedPostPublicResponse.md new file mode 100644 index 0000000..e82dbd9 --- /dev/null +++ b/client/docs/ReactFeedPostPublicResponse.md @@ -0,0 +1,36 @@ +# FastCommentsClient::ReactFeedPostPublicResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **react_type** | **String** | | [optional] | +| **is_undo** | **Boolean** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::ReactFeedPostPublicResponse.new( + status: null, + react_type: null, + is_undo: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/RenderEmailTemplateResponse1.md b/client/docs/RenderEmailTemplateResponse1.md new file mode 100644 index 0000000..2db7565 --- /dev/null +++ b/client/docs/RenderEmailTemplateResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::RenderEmailTemplateResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **html** | **String** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::RenderEmailTemplateResponse1.new( + status: null, + html: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/ReplaceTenantPackageResponse.md b/client/docs/ReplaceTenantPackageResponse.md new file mode 100644 index 0000000..a391b41 --- /dev/null +++ b/client/docs/ReplaceTenantPackageResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::ReplaceTenantPackageResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::ReplaceTenantPackageResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/ReplaceTenantUserResponse.md b/client/docs/ReplaceTenantUserResponse.md new file mode 100644 index 0000000..2ebd5b0 --- /dev/null +++ b/client/docs/ReplaceTenantUserResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::ReplaceTenantUserResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::ReplaceTenantUserResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/ResetUserNotificationCountResponse.md b/client/docs/ResetUserNotificationCountResponse.md new file mode 100644 index 0000000..db3cee0 --- /dev/null +++ b/client/docs/ResetUserNotificationCountResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::ResetUserNotificationCountResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **code** | **String** | | [optional] | +| **reason** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::ResetUserNotificationCountResponse.new( + status: null, + code: null, + reason: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/ResetUserNotificationsResponse1.md b/client/docs/ResetUserNotificationsResponse1.md new file mode 100644 index 0000000..f6c6178 --- /dev/null +++ b/client/docs/ResetUserNotificationsResponse1.md @@ -0,0 +1,32 @@ +# FastCommentsClient::ResetUserNotificationsResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **code** | **String** | | [optional] | +| **reason** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::ResetUserNotificationsResponse1.new( + status: null, + code: null, + reason: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/SaveCommentResponse.md b/client/docs/SaveCommentResponse.md new file mode 100644 index 0000000..29a2b96 --- /dev/null +++ b/client/docs/SaveCommentResponse.md @@ -0,0 +1,38 @@ +# FastCommentsClient::SaveCommentResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **comment** | [**APIComment**](APIComment.md) | | [optional] | +| **user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] | +| **module_data** | **Hash<String, Object>** | Construct a type with a set of properties K of type T | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::SaveCommentResponse.new( + status: null, + comment: null, + user: null, + module_data: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/SaveCommentsBulkResponse.md b/client/docs/SaveCommentsBulkResponse.md index 0c1fae0..c8cb46f 100644 --- a/client/docs/SaveCommentsBulkResponse.md +++ b/client/docs/SaveCommentsBulkResponse.md @@ -5,11 +5,11 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **status** | [**APIStatus**](APIStatus.md) | | | -| **comment** | [**APIComment**](APIComment.md) | | | -| **user** | [**UserSessionInfo**](UserSessionInfo.md) | | | +| **comment** | [**APIComment**](APIComment.md) | | [optional] | +| **user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] | | **module_data** | **Hash<String, Object>** | Construct a type with a set of properties K of type T | [optional] | -| **reason** | **String** | | | -| **code** | **String** | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | | **secondary_code** | **String** | | [optional] | | **banned_until** | **Integer** | | [optional] | | **max_character_length** | **Integer** | | [optional] | diff --git a/client/docs/SearchUsersResponse1.md b/client/docs/SearchUsersResponse1.md new file mode 100644 index 0000000..ffa56da --- /dev/null +++ b/client/docs/SearchUsersResponse1.md @@ -0,0 +1,36 @@ +# FastCommentsClient::SearchUsersResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **sections** | [**Array<UserSearchSectionResult>**](UserSearchSectionResult.md) | | [optional] | +| **users** | [**Array<UserSearchResult>**](UserSearchResult.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::SearchUsersResponse1.new( + status: null, + sections: null, + users: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/SearchUsersResult.md b/client/docs/SearchUsersResult.md index 13bb5f7..339866d 100644 --- a/client/docs/SearchUsersResult.md +++ b/client/docs/SearchUsersResult.md @@ -5,8 +5,8 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **status** | [**APIStatus**](APIStatus.md) | | | -| **sections** | [**Array<UserSearchSectionResult>**](UserSearchSectionResult.md) | | | -| **users** | [**Array<UserSearchResult>**](UserSearchResult.md) | | | +| **sections** | [**Array<UserSearchSectionResult>**](UserSearchSectionResult.md) | | [optional] | +| **users** | [**Array<UserSearchResult>**](UserSearchResult.md) | | [optional] | ## Example diff --git a/client/docs/SendInviteResponse.md b/client/docs/SendInviteResponse.md new file mode 100644 index 0000000..decbb7b --- /dev/null +++ b/client/docs/SendInviteResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::SendInviteResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::SendInviteResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/SendLoginLinkResponse.md b/client/docs/SendLoginLinkResponse.md new file mode 100644 index 0000000..2e4d108 --- /dev/null +++ b/client/docs/SendLoginLinkResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::SendLoginLinkResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::SendLoginLinkResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/SetCommentTextResponse1.md b/client/docs/SetCommentTextResponse1.md new file mode 100644 index 0000000..448411e --- /dev/null +++ b/client/docs/SetCommentTextResponse1.md @@ -0,0 +1,34 @@ +# FastCommentsClient::SetCommentTextResponse1 + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **comment** | [**SetCommentTextResult**](SetCommentTextResult.md) | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::SetCommentTextResponse1.new( + comment: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/SetTrustFactorResponse.md b/client/docs/SetTrustFactorResponse.md new file mode 100644 index 0000000..bc276c2 --- /dev/null +++ b/client/docs/SetTrustFactorResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::SetTrustFactorResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **previous_manual_trust_factor** | **Float** | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::SetTrustFactorResponse.new( + previous_manual_trust_factor: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/UnBlockCommentPublicResponse.md b/client/docs/UnBlockCommentPublicResponse.md new file mode 100644 index 0000000..2e05295 --- /dev/null +++ b/client/docs/UnBlockCommentPublicResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::UnBlockCommentPublicResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **comment_statuses** | **Hash<String, Boolean>** | Construct a type with a set of properties K of type T | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UnBlockCommentPublicResponse.new( + status: null, + comment_statuses: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/UnBlockUserFromCommentResponse.md b/client/docs/UnBlockUserFromCommentResponse.md new file mode 100644 index 0000000..48cf4a8 --- /dev/null +++ b/client/docs/UnBlockUserFromCommentResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::UnBlockUserFromCommentResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **comment_statuses** | **Hash<String, Boolean>** | Construct a type with a set of properties K of type T | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UnBlockUserFromCommentResponse.new( + status: null, + comment_statuses: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/UnFlagCommentResponse.md b/client/docs/UnFlagCommentResponse.md new file mode 100644 index 0000000..a59a598 --- /dev/null +++ b/client/docs/UnFlagCommentResponse.md @@ -0,0 +1,36 @@ +# FastCommentsClient::UnFlagCommentResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status_code** | **Integer** | | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **code** | **String** | | [optional] | +| **reason** | **String** | | [optional] | +| **was_unapproved** | **Boolean** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UnFlagCommentResponse.new( + status_code: null, + status: null, + code: null, + reason: null, + was_unapproved: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/UnLockCommentResponse.md b/client/docs/UnLockCommentResponse.md new file mode 100644 index 0000000..65f085d --- /dev/null +++ b/client/docs/UnLockCommentResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::UnLockCommentResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UnLockCommentResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/UnPinCommentResponse.md b/client/docs/UnPinCommentResponse.md new file mode 100644 index 0000000..186205c --- /dev/null +++ b/client/docs/UnPinCommentResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::UnPinCommentResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **comment_positions** | [**Hash<String, RecordStringBeforeStringOrNullAfterStringOrNullValue>**](RecordStringBeforeStringOrNullAfterStringOrNullValue.md) | Construct a type with a set of properties K of type T | [optional] | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UnPinCommentResponse.new( + comment_positions: null, + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/UpdateCommentResponse.md b/client/docs/UpdateCommentResponse.md new file mode 100644 index 0000000..da45d7c --- /dev/null +++ b/client/docs/UpdateCommentResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::UpdateCommentResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UpdateCommentResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/UpdateEmailTemplateResponse.md b/client/docs/UpdateEmailTemplateResponse.md new file mode 100644 index 0000000..cdd4b63 --- /dev/null +++ b/client/docs/UpdateEmailTemplateResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::UpdateEmailTemplateResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UpdateEmailTemplateResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/UpdateFeedPostPublicResponse.md b/client/docs/UpdateFeedPostPublicResponse.md new file mode 100644 index 0000000..ebc6eaa --- /dev/null +++ b/client/docs/UpdateFeedPostPublicResponse.md @@ -0,0 +1,34 @@ +# FastCommentsClient::UpdateFeedPostPublicResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **feed_post** | [**FeedPost**](FeedPost.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UpdateFeedPostPublicResponse.new( + status: null, + feed_post: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/UpdateFeedPostResponse.md b/client/docs/UpdateFeedPostResponse.md new file mode 100644 index 0000000..ead6b7e --- /dev/null +++ b/client/docs/UpdateFeedPostResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::UpdateFeedPostResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UpdateFeedPostResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/UpdateModeratorResponse.md b/client/docs/UpdateModeratorResponse.md new file mode 100644 index 0000000..47ce88c --- /dev/null +++ b/client/docs/UpdateModeratorResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::UpdateModeratorResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UpdateModeratorResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/UpdateNotificationResponse.md b/client/docs/UpdateNotificationResponse.md new file mode 100644 index 0000000..0455ed1 --- /dev/null +++ b/client/docs/UpdateNotificationResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::UpdateNotificationResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UpdateNotificationResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/UpdateQuestionConfigResponse.md b/client/docs/UpdateQuestionConfigResponse.md new file mode 100644 index 0000000..a6bc38f --- /dev/null +++ b/client/docs/UpdateQuestionConfigResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::UpdateQuestionConfigResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UpdateQuestionConfigResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/UpdateQuestionResultResponse.md b/client/docs/UpdateQuestionResultResponse.md new file mode 100644 index 0000000..2cc0831 --- /dev/null +++ b/client/docs/UpdateQuestionResultResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::UpdateQuestionResultResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UpdateQuestionResultResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/UpdateTenantPackageResponse.md b/client/docs/UpdateTenantPackageResponse.md new file mode 100644 index 0000000..a996def --- /dev/null +++ b/client/docs/UpdateTenantPackageResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::UpdateTenantPackageResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UpdateTenantPackageResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/UpdateTenantResponse.md b/client/docs/UpdateTenantResponse.md new file mode 100644 index 0000000..23bdc78 --- /dev/null +++ b/client/docs/UpdateTenantResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::UpdateTenantResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UpdateTenantResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/UpdateTenantUserResponse.md b/client/docs/UpdateTenantUserResponse.md new file mode 100644 index 0000000..0185720 --- /dev/null +++ b/client/docs/UpdateTenantUserResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::UpdateTenantUserResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UpdateTenantUserResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/UpdateUserBadgeResponse.md b/client/docs/UpdateUserBadgeResponse.md new file mode 100644 index 0000000..9736757 --- /dev/null +++ b/client/docs/UpdateUserBadgeResponse.md @@ -0,0 +1,32 @@ +# FastCommentsClient::UpdateUserBadgeResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UpdateUserBadgeResponse.new( + status: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md b/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md index 88166a5..c0e3ed9 100644 --- a/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md +++ b/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md @@ -5,9 +5,16 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **status** | [**APIStatus**](APIStatus.md) | | | -| **matched_count** | **Integer** | | | -| **modified_count** | **Integer** | | | -| **note** | **String** | | | +| **matched_count** | **Integer** | | [optional] | +| **modified_count** | **Integer** | | [optional] | +| **note** | **String** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | ## Example @@ -18,7 +25,14 @@ instance = FastCommentsClient::UpdateUserNotificationCommentSubscriptionStatusRe status: null, matched_count: null, modified_count: null, - note: null + note: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null ) ``` diff --git a/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md b/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md index f256bb9..3b675a3 100644 --- a/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md +++ b/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md @@ -5,9 +5,16 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **status** | [**APIStatus**](APIStatus.md) | | | -| **matched_count** | **Integer** | | | -| **modified_count** | **Integer** | | | -| **note** | **String** | | | +| **matched_count** | **Integer** | | [optional] | +| **modified_count** | **Integer** | | [optional] | +| **note** | **String** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | ## Example @@ -18,7 +25,14 @@ instance = FastCommentsClient::UpdateUserNotificationPageSubscriptionStatusRespo status: null, matched_count: null, modified_count: null, - note: null + note: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null ) ``` diff --git a/client/docs/UpdateUserNotificationStatusResponse.md b/client/docs/UpdateUserNotificationStatusResponse.md index 892bf84..79e4c8e 100644 --- a/client/docs/UpdateUserNotificationStatusResponse.md +++ b/client/docs/UpdateUserNotificationStatusResponse.md @@ -5,9 +5,16 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **status** | [**APIStatus**](APIStatus.md) | | | -| **matched_count** | **Integer** | | | -| **modified_count** | **Integer** | | | -| **note** | **String** | | | +| **matched_count** | **Integer** | | [optional] | +| **modified_count** | **Integer** | | [optional] | +| **note** | **String** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | ## Example @@ -18,7 +25,14 @@ instance = FastCommentsClient::UpdateUserNotificationStatusResponse.new( status: null, matched_count: null, modified_count: null, - note: null + note: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null ) ``` diff --git a/client/docs/VoteCommentResponse.md b/client/docs/VoteCommentResponse.md new file mode 100644 index 0000000..78f80ae --- /dev/null +++ b/client/docs/VoteCommentResponse.md @@ -0,0 +1,40 @@ +# FastCommentsClient::VoteCommentResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **vote_id** | **String** | | [optional] | +| **is_verified** | **Boolean** | | [optional] | +| **user** | [**VoteResponseUser**](VoteResponseUser.md) | | [optional] | +| **edit_key** | **String** | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::VoteCommentResponse.new( + status: null, + vote_id: null, + is_verified: null, + user: null, + edit_key: null, + reason: null, + code: null, + secondary_code: null, + banned_until: null, + max_character_length: null, + translated_error: null, + custom_config: null +) +``` + diff --git a/client/docs/VoteResponse.md b/client/docs/VoteResponse.md index a83ce95..511bacc 100644 --- a/client/docs/VoteResponse.md +++ b/client/docs/VoteResponse.md @@ -4,7 +4,7 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **status** | [**VoteResponseStatus**](VoteResponseStatus.md) | | | +| **status** | **String** | | | | **vote_id** | **String** | | [optional] | | **is_verified** | **Boolean** | | [optional] | | **user** | [**VoteResponseUser**](VoteResponseUser.md) | | [optional] | diff --git a/client/docs/VoteResponseStatus.md b/client/docs/VoteResponseStatus.md deleted file mode 100644 index b6ab642..0000000 --- a/client/docs/VoteResponseStatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# FastCommentsClient::VoteResponseStatus - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::VoteResponseStatus.new() -``` - diff --git a/client/fastcomments-client.gemspec b/client/fastcomments-client.gemspec index 0639b13..4cf5b37 100644 --- a/client/fastcomments-client.gemspec +++ b/client/fastcomments-client.gemspec @@ -8,7 +8,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client.rb b/client/lib/fastcomments-client.rb index 155489e..d21446a 100644 --- a/client/lib/fastcomments-client.rb +++ b/client/lib/fastcomments-client.rb @@ -6,13 +6,14 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end # Common files require 'fastcomments-client/api_client' require 'fastcomments-client/api_error' +require 'fastcomments-client/api_model_base' require 'fastcomments-client/version' require 'fastcomments-client/configuration' @@ -52,11 +53,14 @@ require 'fastcomments-client/models/add_domain_config_params' require 'fastcomments-client/models/add_domain_config_response' require 'fastcomments-client/models/add_domain_config_response_any_of' +require 'fastcomments-client/models/add_hash_tag_response' +require 'fastcomments-client/models/add_hash_tags_bulk_response' require 'fastcomments-client/models/add_page_api_response' require 'fastcomments-client/models/add_sso_user_api_response' require 'fastcomments-client/models/adjust_comment_votes_params' require 'fastcomments-client/models/adjust_votes_response' require 'fastcomments-client/models/aggregate_question_results_response' +require 'fastcomments-client/models/aggregate_question_results_response1' require 'fastcomments-client/models/aggregate_response' require 'fastcomments-client/models/aggregate_time_bucket' require 'fastcomments-client/models/aggregation_api_error' @@ -76,12 +80,15 @@ require 'fastcomments-client/models/banned_user_match_type' require 'fastcomments-client/models/billing_info' require 'fastcomments-client/models/block_from_comment_params' +require 'fastcomments-client/models/block_from_comment_public_response' require 'fastcomments-client/models/block_success' +require 'fastcomments-client/models/block_user_from_comment_response' require 'fastcomments-client/models/build_moderation_filter_params' require 'fastcomments-client/models/build_moderation_filter_response' require 'fastcomments-client/models/bulk_aggregate_question_item' require 'fastcomments-client/models/bulk_aggregate_question_results_request' require 'fastcomments-client/models/bulk_aggregate_question_results_response' +require 'fastcomments-client/models/bulk_aggregate_question_results_response1' require 'fastcomments-client/models/bulk_create_hash_tags_body' require 'fastcomments-client/models/bulk_create_hash_tags_body_tags_inner' require 'fastcomments-client/models/bulk_create_hash_tags_response' @@ -91,7 +98,10 @@ require 'fastcomments-client/models/change_comment_pin_status_response' require 'fastcomments-client/models/change_ticket_state_body' require 'fastcomments-client/models/change_ticket_state_response' +require 'fastcomments-client/models/change_ticket_state_response1' require 'fastcomments-client/models/check_blocked_comments_response' +require 'fastcomments-client/models/checked_comments_for_blocked_response' +require 'fastcomments-client/models/combine_comments_with_question_results_response' require 'fastcomments-client/models/combine_question_results_with_comments_response' require 'fastcomments-client/models/comment_data' require 'fastcomments-client/models/comment_html_rendering_mode' @@ -111,40 +121,75 @@ require 'fastcomments-client/models/create_apisso_user_data' require 'fastcomments-client/models/create_api_user_subscription_data' require 'fastcomments-client/models/create_comment_params' +require 'fastcomments-client/models/create_comment_public_response' require 'fastcomments-client/models/create_email_template_body' require 'fastcomments-client/models/create_email_template_response' +require 'fastcomments-client/models/create_email_template_response1' require 'fastcomments-client/models/create_feed_post_params' +require 'fastcomments-client/models/create_feed_post_public_response' require 'fastcomments-client/models/create_feed_post_response' +require 'fastcomments-client/models/create_feed_post_response1' require 'fastcomments-client/models/create_feed_posts_response' require 'fastcomments-client/models/create_hash_tag_body' require 'fastcomments-client/models/create_hash_tag_response' require 'fastcomments-client/models/create_moderator_body' require 'fastcomments-client/models/create_moderator_response' +require 'fastcomments-client/models/create_moderator_response1' require 'fastcomments-client/models/create_question_config_body' require 'fastcomments-client/models/create_question_config_response' +require 'fastcomments-client/models/create_question_config_response1' require 'fastcomments-client/models/create_question_result_body' require 'fastcomments-client/models/create_question_result_response' +require 'fastcomments-client/models/create_question_result_response1' require 'fastcomments-client/models/create_subscription_api_response' require 'fastcomments-client/models/create_tenant_body' require 'fastcomments-client/models/create_tenant_package_body' require 'fastcomments-client/models/create_tenant_package_response' +require 'fastcomments-client/models/create_tenant_package_response1' require 'fastcomments-client/models/create_tenant_response' +require 'fastcomments-client/models/create_tenant_response1' require 'fastcomments-client/models/create_tenant_user_body' require 'fastcomments-client/models/create_tenant_user_response' +require 'fastcomments-client/models/create_tenant_user_response1' require 'fastcomments-client/models/create_ticket_body' require 'fastcomments-client/models/create_ticket_response' +require 'fastcomments-client/models/create_ticket_response1' require 'fastcomments-client/models/create_user_badge_params' +require 'fastcomments-client/models/create_user_badge_response' require 'fastcomments-client/models/create_v1_page_react' +require 'fastcomments-client/models/create_v1_page_react_response' +require 'fastcomments-client/models/create_v2_page_react_response' +require 'fastcomments-client/models/create_vote_response' require 'fastcomments-client/models/custom_config_parameters' require 'fastcomments-client/models/custom_email_template' require 'fastcomments-client/models/delete_comment_action' +require 'fastcomments-client/models/delete_comment_public_response' +require 'fastcomments-client/models/delete_comment_response' require 'fastcomments-client/models/delete_comment_result' +require 'fastcomments-client/models/delete_comment_vote_response' require 'fastcomments-client/models/delete_domain_config_response' +require 'fastcomments-client/models/delete_email_template_render_error_response' +require 'fastcomments-client/models/delete_email_template_response' require 'fastcomments-client/models/delete_feed_post_public_response' +require 'fastcomments-client/models/delete_feed_post_public_response_any_of' require 'fastcomments-client/models/delete_hash_tag_request_body' +require 'fastcomments-client/models/delete_hash_tag_response' +require 'fastcomments-client/models/delete_moderation_vote_response' +require 'fastcomments-client/models/delete_moderator_response' +require 'fastcomments-client/models/delete_notification_count_response' require 'fastcomments-client/models/delete_page_api_response' +require 'fastcomments-client/models/delete_pending_webhook_event_response' +require 'fastcomments-client/models/delete_question_config_response' +require 'fastcomments-client/models/delete_question_result_response' require 'fastcomments-client/models/delete_sso_user_api_response' require 'fastcomments-client/models/delete_subscription_api_response' +require 'fastcomments-client/models/delete_tenant_package_response' +require 'fastcomments-client/models/delete_tenant_response' +require 'fastcomments-client/models/delete_tenant_user_response' +require 'fastcomments-client/models/delete_user_badge_response' +require 'fastcomments-client/models/delete_v1_page_react_response' +require 'fastcomments-client/models/delete_v2_page_react_response' +require 'fastcomments-client/models/delete_vote_response' require 'fastcomments-client/models/deleted_comment_result_comment' require 'fastcomments-client/models/digest_email_frequency' require 'fastcomments-client/models/email_template_definition' @@ -160,72 +205,154 @@ require 'fastcomments-client/models/feed_posts_stats_response' require 'fastcomments-client/models/find_comments_by_range_item' require 'fastcomments-client/models/find_comments_by_range_response' +require 'fastcomments-client/models/flag_comment_public_response' require 'fastcomments-client/models/flag_comment_response' +require 'fastcomments-client/models/flag_comment_response1' +require 'fastcomments-client/models/get_api_comments_response' +require 'fastcomments-client/models/get_api_export_status_response' +require 'fastcomments-client/models/get_api_ids_response' require 'fastcomments-client/models/get_audit_logs_response' +require 'fastcomments-client/models/get_audit_logs_response1' +require 'fastcomments-client/models/get_ban_users_from_comment_response' require 'fastcomments-client/models/get_banned_users_count_response' require 'fastcomments-client/models/get_banned_users_from_comment_response' require 'fastcomments-client/models/get_cached_notification_count_response' +require 'fastcomments-client/models/get_cached_notification_count_response1' require 'fastcomments-client/models/get_comment_ban_status_response' +require 'fastcomments-client/models/get_comment_ban_status_response1' +require 'fastcomments-client/models/get_comment_children_response' +require 'fastcomments-client/models/get_comment_response' require 'fastcomments-client/models/get_comment_text_response' +require 'fastcomments-client/models/get_comment_text_response1' +require 'fastcomments-client/models/get_comment_vote_user_names_response' require 'fastcomments-client/models/get_comment_vote_user_names_success_response' require 'fastcomments-client/models/get_comments_for_user_response' +require 'fastcomments-client/models/get_comments_for_user_response1' +require 'fastcomments-client/models/get_comments_public_response' +require 'fastcomments-client/models/get_comments_response' require 'fastcomments-client/models/get_comments_response_public_comment' require 'fastcomments-client/models/get_comments_response_with_presence_public_comment' +require 'fastcomments-client/models/get_count_response' +require 'fastcomments-client/models/get_counts_response' require 'fastcomments-client/models/get_domain_config_response' require 'fastcomments-client/models/get_domain_configs_response' require 'fastcomments-client/models/get_domain_configs_response_any_of' require 'fastcomments-client/models/get_domain_configs_response_any_of1' require 'fastcomments-client/models/get_email_template_definitions_response' +require 'fastcomments-client/models/get_email_template_definitions_response1' require 'fastcomments-client/models/get_email_template_render_errors_response' +require 'fastcomments-client/models/get_email_template_render_errors_response1' require 'fastcomments-client/models/get_email_template_response' +require 'fastcomments-client/models/get_email_template_response1' require 'fastcomments-client/models/get_email_templates_response' +require 'fastcomments-client/models/get_email_templates_response1' require 'fastcomments-client/models/get_event_log_response' +require 'fastcomments-client/models/get_event_log_response1' +require 'fastcomments-client/models/get_feed_posts_public_response' require 'fastcomments-client/models/get_feed_posts_response' +require 'fastcomments-client/models/get_feed_posts_response1' +require 'fastcomments-client/models/get_feed_posts_stats_response' +require 'fastcomments-client/models/get_gif_large_response' require 'fastcomments-client/models/get_gifs_search_response' require 'fastcomments-client/models/get_gifs_trending_response' +require 'fastcomments-client/models/get_global_event_log_response' require 'fastcomments-client/models/get_hash_tags_response' +require 'fastcomments-client/models/get_hash_tags_response1' +require 'fastcomments-client/models/get_logs_response' +require 'fastcomments-client/models/get_manual_badges_for_user_response' +require 'fastcomments-client/models/get_manual_badges_response' +require 'fastcomments-client/models/get_moderation_comment_response' +require 'fastcomments-client/models/get_moderation_comment_text_response' require 'fastcomments-client/models/get_moderator_response' +require 'fastcomments-client/models/get_moderator_response1' require 'fastcomments-client/models/get_moderators_response' +require 'fastcomments-client/models/get_moderators_response1' require 'fastcomments-client/models/get_my_notifications_response' require 'fastcomments-client/models/get_notification_count_response' +require 'fastcomments-client/models/get_notification_count_response1' require 'fastcomments-client/models/get_notifications_response' +require 'fastcomments-client/models/get_notifications_response1' +require 'fastcomments-client/models/get_offline_users_response' +require 'fastcomments-client/models/get_online_users_response' require 'fastcomments-client/models/get_page_by_urlid_api_response' require 'fastcomments-client/models/get_pages_api_response' +require 'fastcomments-client/models/get_pages_public_response' require 'fastcomments-client/models/get_pending_webhook_event_count_response' +require 'fastcomments-client/models/get_pending_webhook_event_count_response1' require 'fastcomments-client/models/get_pending_webhook_events_response' +require 'fastcomments-client/models/get_pending_webhook_events_response1' +require 'fastcomments-client/models/get_pre_ban_summary_response' require 'fastcomments-client/models/get_public_feed_posts_response' require 'fastcomments-client/models/get_public_pages_response' require 'fastcomments-client/models/get_question_config_response' +require 'fastcomments-client/models/get_question_config_response1' require 'fastcomments-client/models/get_question_configs_response' +require 'fastcomments-client/models/get_question_configs_response1' require 'fastcomments-client/models/get_question_result_response' +require 'fastcomments-client/models/get_question_result_response1' require 'fastcomments-client/models/get_question_results_response' +require 'fastcomments-client/models/get_question_results_response1' require 'fastcomments-client/models/get_sso_user_by_email_api_response' require 'fastcomments-client/models/get_sso_user_by_id_api_response' require 'fastcomments-client/models/get_sso_users_response' +require 'fastcomments-client/models/get_search_comments_summary_response' +require 'fastcomments-client/models/get_search_pages_response' +require 'fastcomments-client/models/get_search_sites_response' +require 'fastcomments-client/models/get_search_suggest_response' +require 'fastcomments-client/models/get_search_users_response' require 'fastcomments-client/models/get_subscriptions_api_response' require 'fastcomments-client/models/get_tenant_daily_usages_response' +require 'fastcomments-client/models/get_tenant_daily_usages_response1' require 'fastcomments-client/models/get_tenant_manual_badges_response' require 'fastcomments-client/models/get_tenant_package_response' +require 'fastcomments-client/models/get_tenant_package_response1' require 'fastcomments-client/models/get_tenant_packages_response' +require 'fastcomments-client/models/get_tenant_packages_response1' require 'fastcomments-client/models/get_tenant_response' +require 'fastcomments-client/models/get_tenant_response1' require 'fastcomments-client/models/get_tenant_user_response' +require 'fastcomments-client/models/get_tenant_user_response1' require 'fastcomments-client/models/get_tenant_users_response' +require 'fastcomments-client/models/get_tenant_users_response1' require 'fastcomments-client/models/get_tenants_response' +require 'fastcomments-client/models/get_tenants_response1' require 'fastcomments-client/models/get_ticket_response' +require 'fastcomments-client/models/get_ticket_response1' require 'fastcomments-client/models/get_tickets_response' +require 'fastcomments-client/models/get_tickets_response1' require 'fastcomments-client/models/get_translations_response' +require 'fastcomments-client/models/get_translations_response1' +require 'fastcomments-client/models/get_trust_factor_response' +require 'fastcomments-client/models/get_user_badge_progress_by_id_response' +require 'fastcomments-client/models/get_user_badge_progress_by_user_id_response' +require 'fastcomments-client/models/get_user_badge_progress_list_response' +require 'fastcomments-client/models/get_user_badge_response' +require 'fastcomments-client/models/get_user_badges_response' +require 'fastcomments-client/models/get_user_ban_preference_response' require 'fastcomments-client/models/get_user_internal_profile_response' +require 'fastcomments-client/models/get_user_internal_profile_response1' require 'fastcomments-client/models/get_user_internal_profile_response_profile' require 'fastcomments-client/models/get_user_manual_badges_response' require 'fastcomments-client/models/get_user_notification_count_response' +require 'fastcomments-client/models/get_user_notification_count_response1' +require 'fastcomments-client/models/get_user_notifications_response' require 'fastcomments-client/models/get_user_presence_statuses_response' +require 'fastcomments-client/models/get_user_presence_statuses_response1' +require 'fastcomments-client/models/get_user_reacts_public_response' require 'fastcomments-client/models/get_user_response' +require 'fastcomments-client/models/get_user_response1' require 'fastcomments-client/models/get_user_trust_factor_response' +require 'fastcomments-client/models/get_users_info_response' require 'fastcomments-client/models/get_v1_page_likes' +require 'fastcomments-client/models/get_v1_page_likes_response' require 'fastcomments-client/models/get_v2_page_react_users_response' +require 'fastcomments-client/models/get_v2_page_react_users_response1' require 'fastcomments-client/models/get_v2_page_reacts' +require 'fastcomments-client/models/get_v2_page_reacts_response' require 'fastcomments-client/models/get_votes_for_user_response' +require 'fastcomments-client/models/get_votes_for_user_response1' require 'fastcomments-client/models/get_votes_response' +require 'fastcomments-client/models/get_votes_response1' require 'fastcomments-client/models/gif_get_large_response' require 'fastcomments-client/models/gif_rating' require 'fastcomments-client/models/gif_search_internal_error' @@ -240,6 +367,7 @@ require 'fastcomments-client/models/live_event' require 'fastcomments-client/models/live_event_extra_info' require 'fastcomments-client/models/live_event_type' +require 'fastcomments-client/models/lock_comment_response' require 'fastcomments-client/models/media_asset' require 'fastcomments-client/models/mention_auto_complete_mode' require 'fastcomments-client/models/meta_item' @@ -273,10 +401,26 @@ require 'fastcomments-client/models/pages_sort_by' require 'fastcomments-client/models/patch_domain_config_params' require 'fastcomments-client/models/patch_domain_config_response' +require 'fastcomments-client/models/patch_hash_tag_response' require 'fastcomments-client/models/patch_page_api_response' require 'fastcomments-client/models/patch_sso_user_api_response' require 'fastcomments-client/models/pending_comment_to_sync_outbound' +require 'fastcomments-client/models/pin_comment_response' +require 'fastcomments-client/models/post_adjust_comment_votes_response' +require 'fastcomments-client/models/post_api_export_response' +require 'fastcomments-client/models/post_ban_user_from_comment_response' +require 'fastcomments-client/models/post_ban_user_undo_response' +require 'fastcomments-client/models/post_bulk_pre_ban_summary_response' +require 'fastcomments-client/models/post_comments_by_ids_response' +require 'fastcomments-client/models/post_flag_comment_response' require 'fastcomments-client/models/post_remove_comment_response' +require 'fastcomments-client/models/post_restore_deleted_comment_response' +require 'fastcomments-client/models/post_set_comment_approval_status_response' +require 'fastcomments-client/models/post_set_comment_review_status_response' +require 'fastcomments-client/models/post_set_comment_spam_status_response' +require 'fastcomments-client/models/post_set_comment_text_response' +require 'fastcomments-client/models/post_un_flag_comment_response' +require 'fastcomments-client/models/post_vote_response' require 'fastcomments-client/models/pre_ban_summary' require 'fastcomments-client/models/pub_sub_comment' require 'fastcomments-client/models/pub_sub_comment_base' @@ -290,7 +434,11 @@ require 'fastcomments-client/models/public_feed_posts_response' require 'fastcomments-client/models/public_page' require 'fastcomments-client/models/public_vote' +require 'fastcomments-client/models/put_award_badge_response' +require 'fastcomments-client/models/put_close_thread_response' require 'fastcomments-client/models/put_domain_config_response' +require 'fastcomments-client/models/put_remove_badge_response' +require 'fastcomments-client/models/put_reopen_thread_response' require 'fastcomments-client/models/put_sso_user_api_response' require 'fastcomments-client/models/query_predicate' require 'fastcomments-client/models/query_predicate_value' @@ -303,30 +451,42 @@ require 'fastcomments-client/models/question_sub_question_visibility' require 'fastcomments-client/models/question_when_save' require 'fastcomments-client/models/react_body_params' +require 'fastcomments-client/models/react_feed_post_public_response' require 'fastcomments-client/models/react_feed_post_response' require 'fastcomments-client/models/record_string_before_string_or_null_after_string_or_null_value' require 'fastcomments-client/models/remove_comment_action_response' require 'fastcomments-client/models/remove_user_badge_response' require 'fastcomments-client/models/render_email_template_body' require 'fastcomments-client/models/render_email_template_response' +require 'fastcomments-client/models/render_email_template_response1' require 'fastcomments-client/models/renderable_user_notification' require 'fastcomments-client/models/repeat_comment_check_ignored_reason' require 'fastcomments-client/models/repeat_comment_handling_action' require 'fastcomments-client/models/replace_tenant_package_body' +require 'fastcomments-client/models/replace_tenant_package_response' require 'fastcomments-client/models/replace_tenant_user_body' +require 'fastcomments-client/models/replace_tenant_user_response' +require 'fastcomments-client/models/reset_user_notification_count_response' require 'fastcomments-client/models/reset_user_notifications_response' +require 'fastcomments-client/models/reset_user_notifications_response1' require 'fastcomments-client/models/sortdir' require 'fastcomments-client/models/sso_security_level' +require 'fastcomments-client/models/save_comment_response' require 'fastcomments-client/models/save_comment_response_optimized' require 'fastcomments-client/models/save_comments_bulk_response' require 'fastcomments-client/models/save_comments_response_with_presence' require 'fastcomments-client/models/search_users_response' +require 'fastcomments-client/models/search_users_response1' require 'fastcomments-client/models/search_users_result' require 'fastcomments-client/models/search_users_sectioned_response' +require 'fastcomments-client/models/send_invite_response' +require 'fastcomments-client/models/send_login_link_response' require 'fastcomments-client/models/set_comment_approved_response' require 'fastcomments-client/models/set_comment_text_params' require 'fastcomments-client/models/set_comment_text_response' +require 'fastcomments-client/models/set_comment_text_response1' require 'fastcomments-client/models/set_comment_text_result' +require 'fastcomments-client/models/set_trust_factor_response' require 'fastcomments-client/models/set_user_trust_factor_response' require 'fastcomments-client/models/size_preset' require 'fastcomments-client/models/sort_directions' @@ -335,26 +495,43 @@ require 'fastcomments-client/models/tenant_badge' require 'fastcomments-client/models/tenant_hash_tag' require 'fastcomments-client/models/tenant_package' +require 'fastcomments-client/models/un_block_comment_public_response' require 'fastcomments-client/models/un_block_from_comment_params' +require 'fastcomments-client/models/un_block_user_from_comment_response' +require 'fastcomments-client/models/un_flag_comment_response' +require 'fastcomments-client/models/un_lock_comment_response' +require 'fastcomments-client/models/un_pin_comment_response' require 'fastcomments-client/models/unblock_success' require 'fastcomments-client/models/updatable_comment_params' require 'fastcomments-client/models/update_api_page_data' require 'fastcomments-client/models/update_apisso_user_data' require 'fastcomments-client/models/update_api_user_subscription_data' +require 'fastcomments-client/models/update_comment_response' require 'fastcomments-client/models/update_domain_config_params' require 'fastcomments-client/models/update_email_template_body' +require 'fastcomments-client/models/update_email_template_response' require 'fastcomments-client/models/update_feed_post_params' +require 'fastcomments-client/models/update_feed_post_public_response' +require 'fastcomments-client/models/update_feed_post_response' require 'fastcomments-client/models/update_hash_tag_body' require 'fastcomments-client/models/update_hash_tag_response' require 'fastcomments-client/models/update_moderator_body' +require 'fastcomments-client/models/update_moderator_response' require 'fastcomments-client/models/update_notification_body' +require 'fastcomments-client/models/update_notification_response' require 'fastcomments-client/models/update_question_config_body' +require 'fastcomments-client/models/update_question_config_response' require 'fastcomments-client/models/update_question_result_body' +require 'fastcomments-client/models/update_question_result_response' require 'fastcomments-client/models/update_subscription_api_response' require 'fastcomments-client/models/update_tenant_body' require 'fastcomments-client/models/update_tenant_package_body' +require 'fastcomments-client/models/update_tenant_package_response' +require 'fastcomments-client/models/update_tenant_response' require 'fastcomments-client/models/update_tenant_user_body' +require 'fastcomments-client/models/update_tenant_user_response' require 'fastcomments-client/models/update_user_badge_params' +require 'fastcomments-client/models/update_user_badge_response' require 'fastcomments-client/models/update_user_notification_comment_subscription_status_response' require 'fastcomments-client/models/update_user_notification_page_subscription_status_response' require 'fastcomments-client/models/update_user_notification_status_response' @@ -373,9 +550,9 @@ require 'fastcomments-client/models/user_session_info' require 'fastcomments-client/models/users_list_location' require 'fastcomments-client/models/vote_body_params' +require 'fastcomments-client/models/vote_comment_response' require 'fastcomments-client/models/vote_delete_response' require 'fastcomments-client/models/vote_response' -require 'fastcomments-client/models/vote_response_status' require 'fastcomments-client/models/vote_response_user' require 'fastcomments-client/models/vote_style' diff --git a/client/lib/fastcomments-client/api/default_api.rb b/client/lib/fastcomments-client/api/default_api.rb index 2b3ce3c..0d1fa87 100644 --- a/client/lib/fastcomments-client/api/default_api.rb +++ b/client/lib/fastcomments-client/api/default_api.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -93,7 +93,7 @@ def add_domain_config_with_http_info(tenant_id, add_domain_config_params, opts = # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [CreateHashTagBody] :create_hash_tag_body - # @return [CreateHashTagResponse] + # @return [AddHashTagResponse] def add_hash_tag(opts = {}) data, _status_code, _headers = add_hash_tag_with_http_info(opts) data @@ -102,7 +102,7 @@ def add_hash_tag(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [CreateHashTagBody] :create_hash_tag_body - # @return [Array<(CreateHashTagResponse, Integer, Hash)>] CreateHashTagResponse data, response status code and response headers + # @return [Array<(AddHashTagResponse, Integer, Hash)>] AddHashTagResponse data, response status code and response headers def add_hash_tag_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.add_hash_tag ...' @@ -131,7 +131,7 @@ def add_hash_tag_with_http_info(opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_hash_tag_body']) # return_type - return_type = opts[:debug_return_type] || 'CreateHashTagResponse' + return_type = opts[:debug_return_type] || 'AddHashTagResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -156,7 +156,7 @@ def add_hash_tag_with_http_info(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [BulkCreateHashTagsBody] :bulk_create_hash_tags_body - # @return [BulkCreateHashTagsResponse] + # @return [AddHashTagsBulkResponse] def add_hash_tags_bulk(opts = {}) data, _status_code, _headers = add_hash_tags_bulk_with_http_info(opts) data @@ -165,7 +165,7 @@ def add_hash_tags_bulk(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [BulkCreateHashTagsBody] :bulk_create_hash_tags_body - # @return [Array<(BulkCreateHashTagsResponse, Integer, Hash)>] BulkCreateHashTagsResponse data, response status code and response headers + # @return [Array<(AddHashTagsBulkResponse, Integer, Hash)>] AddHashTagsBulkResponse data, response status code and response headers def add_hash_tags_bulk_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.add_hash_tags_bulk ...' @@ -194,7 +194,7 @@ def add_hash_tags_bulk_with_http_info(opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'bulk_create_hash_tags_body']) # return_type - return_type = opts[:debug_return_type] || 'BulkCreateHashTagsResponse' + return_type = opts[:debug_return_type] || 'AddHashTagsBulkResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -445,7 +445,7 @@ def aggregate_with_http_info(tenant_id, aggregation_request, opts = {}) # @option opts [AggregateTimeBucket] :time_bucket # @option opts [Time] :start_date # @option opts [Boolean] :force_recalculate - # @return [AggregateQuestionResultsResponse] + # @return [AggregateQuestionResultsResponse1] def aggregate_question_results(tenant_id, opts = {}) data, _status_code, _headers = aggregate_question_results_with_http_info(tenant_id, opts) data @@ -459,7 +459,7 @@ def aggregate_question_results(tenant_id, opts = {}) # @option opts [AggregateTimeBucket] :time_bucket # @option opts [Time] :start_date # @option opts [Boolean] :force_recalculate - # @return [Array<(AggregateQuestionResultsResponse, Integer, Hash)>] AggregateQuestionResultsResponse data, response status code and response headers + # @return [Array<(AggregateQuestionResultsResponse1, Integer, Hash)>] AggregateQuestionResultsResponse1 data, response status code and response headers def aggregate_question_results_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.aggregate_question_results ...' @@ -493,7 +493,7 @@ def aggregate_question_results_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'AggregateQuestionResultsResponse' + return_type = opts[:debug_return_type] || 'AggregateQuestionResultsResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -521,7 +521,7 @@ def aggregate_question_results_with_http_info(tenant_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [BlockSuccess] + # @return [BlockUserFromCommentResponse] def block_user_from_comment(tenant_id, id, block_from_comment_params, opts = {}) data, _status_code, _headers = block_user_from_comment_with_http_info(tenant_id, id, block_from_comment_params, opts) data @@ -533,7 +533,7 @@ def block_user_from_comment(tenant_id, id, block_from_comment_params, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [Array<(BlockSuccess, Integer, Hash)>] BlockSuccess data, response status code and response headers + # @return [Array<(BlockUserFromCommentResponse, Integer, Hash)>] BlockUserFromCommentResponse data, response status code and response headers def block_user_from_comment_with_http_info(tenant_id, id, block_from_comment_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.block_user_from_comment ...' @@ -551,7 +551,7 @@ def block_user_from_comment_with_http_info(tenant_id, id, block_from_comment_par fail ArgumentError, "Missing the required parameter 'block_from_comment_params' when calling DefaultApi.block_user_from_comment" end # resource path - local_var_path = '/api/v1/comments/{id}/block'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/comments/{id}/block'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -576,7 +576,7 @@ def block_user_from_comment_with_http_info(tenant_id, id, block_from_comment_par post_body = opts[:debug_body] || @api_client.object_to_http_body(block_from_comment_params) # return_type - return_type = opts[:debug_return_type] || 'BlockSuccess' + return_type = opts[:debug_return_type] || 'BlockUserFromCommentResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -602,7 +602,7 @@ def block_user_from_comment_with_http_info(tenant_id, id, block_from_comment_par # @param bulk_aggregate_question_results_request [BulkAggregateQuestionResultsRequest] # @param [Hash] opts the optional parameters # @option opts [Boolean] :force_recalculate - # @return [BulkAggregateQuestionResultsResponse] + # @return [BulkAggregateQuestionResultsResponse1] def bulk_aggregate_question_results(tenant_id, bulk_aggregate_question_results_request, opts = {}) data, _status_code, _headers = bulk_aggregate_question_results_with_http_info(tenant_id, bulk_aggregate_question_results_request, opts) data @@ -612,7 +612,7 @@ def bulk_aggregate_question_results(tenant_id, bulk_aggregate_question_results_r # @param bulk_aggregate_question_results_request [BulkAggregateQuestionResultsRequest] # @param [Hash] opts the optional parameters # @option opts [Boolean] :force_recalculate - # @return [Array<(BulkAggregateQuestionResultsResponse, Integer, Hash)>] BulkAggregateQuestionResultsResponse data, response status code and response headers + # @return [Array<(BulkAggregateQuestionResultsResponse1, Integer, Hash)>] BulkAggregateQuestionResultsResponse1 data, response status code and response headers def bulk_aggregate_question_results_with_http_info(tenant_id, bulk_aggregate_question_results_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.bulk_aggregate_question_results ...' @@ -650,7 +650,7 @@ def bulk_aggregate_question_results_with_http_info(tenant_id, bulk_aggregate_que post_body = opts[:debug_body] || @api_client.object_to_http_body(bulk_aggregate_question_results_request) # return_type - return_type = opts[:debug_return_type] || 'BulkAggregateQuestionResultsResponse' + return_type = opts[:debug_return_type] || 'BulkAggregateQuestionResultsResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -677,7 +677,7 @@ def bulk_aggregate_question_results_with_http_info(tenant_id, bulk_aggregate_que # @param id [String] # @param change_ticket_state_body [ChangeTicketStateBody] # @param [Hash] opts the optional parameters - # @return [ChangeTicketStateResponse] + # @return [ChangeTicketStateResponse1] def change_ticket_state(tenant_id, user_id, id, change_ticket_state_body, opts = {}) data, _status_code, _headers = change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_state_body, opts) data @@ -688,7 +688,7 @@ def change_ticket_state(tenant_id, user_id, id, change_ticket_state_body, opts = # @param id [String] # @param change_ticket_state_body [ChangeTicketStateBody] # @param [Hash] opts the optional parameters - # @return [Array<(ChangeTicketStateResponse, Integer, Hash)>] ChangeTicketStateResponse data, response status code and response headers + # @return [Array<(ChangeTicketStateResponse1, Integer, Hash)>] ChangeTicketStateResponse1 data, response status code and response headers def change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_state_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.change_ticket_state ...' @@ -710,7 +710,7 @@ def change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_sta fail ArgumentError, "Missing the required parameter 'change_ticket_state_body' when calling DefaultApi.change_ticket_state" end # resource path - local_var_path = '/api/v1/tickets/{id}/state'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tickets/{id}/state'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -734,7 +734,7 @@ def change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_sta post_body = opts[:debug_body] || @api_client.object_to_http_body(change_ticket_state_body) # return_type - return_type = opts[:debug_return_type] || 'ChangeTicketStateResponse' + return_type = opts[:debug_return_type] || 'ChangeTicketStateResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -766,7 +766,7 @@ def change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_sta # @option opts [Float] :min_value # @option opts [Float] :max_value # @option opts [Float] :limit - # @return [CombineQuestionResultsWithCommentsResponse] + # @return [CombineCommentsWithQuestionResultsResponse] def combine_comments_with_question_results(tenant_id, opts = {}) data, _status_code, _headers = combine_comments_with_question_results_with_http_info(tenant_id, opts) data @@ -782,7 +782,7 @@ def combine_comments_with_question_results(tenant_id, opts = {}) # @option opts [Float] :min_value # @option opts [Float] :max_value # @option opts [Float] :limit - # @return [Array<(CombineQuestionResultsWithCommentsResponse, Integer, Hash)>] CombineQuestionResultsWithCommentsResponse data, response status code and response headers + # @return [Array<(CombineCommentsWithQuestionResultsResponse, Integer, Hash)>] CombineCommentsWithQuestionResultsResponse data, response status code and response headers def combine_comments_with_question_results_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.combine_comments_with_question_results ...' @@ -818,7 +818,7 @@ def combine_comments_with_question_results_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'CombineQuestionResultsWithCommentsResponse' + return_type = opts[:debug_return_type] || 'CombineCommentsWithQuestionResultsResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -843,7 +843,7 @@ def combine_comments_with_question_results_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param create_email_template_body [CreateEmailTemplateBody] # @param [Hash] opts the optional parameters - # @return [CreateEmailTemplateResponse] + # @return [CreateEmailTemplateResponse1] def create_email_template(tenant_id, create_email_template_body, opts = {}) data, _status_code, _headers = create_email_template_with_http_info(tenant_id, create_email_template_body, opts) data @@ -852,7 +852,7 @@ def create_email_template(tenant_id, create_email_template_body, opts = {}) # @param tenant_id [String] # @param create_email_template_body [CreateEmailTemplateBody] # @param [Hash] opts the optional parameters - # @return [Array<(CreateEmailTemplateResponse, Integer, Hash)>] CreateEmailTemplateResponse data, response status code and response headers + # @return [Array<(CreateEmailTemplateResponse1, Integer, Hash)>] CreateEmailTemplateResponse1 data, response status code and response headers def create_email_template_with_http_info(tenant_id, create_email_template_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_email_template ...' @@ -889,7 +889,7 @@ def create_email_template_with_http_info(tenant_id, create_email_template_body, post_body = opts[:debug_body] || @api_client.object_to_http_body(create_email_template_body) # return_type - return_type = opts[:debug_return_type] || 'CreateEmailTemplateResponse' + return_type = opts[:debug_return_type] || 'CreateEmailTemplateResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -918,7 +918,7 @@ def create_email_template_with_http_info(tenant_id, create_email_template_body, # @option opts [Boolean] :is_live # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :skip_dup_check - # @return [CreateFeedPostsResponse] + # @return [CreateFeedPostResponse1] def create_feed_post(tenant_id, create_feed_post_params, opts = {}) data, _status_code, _headers = create_feed_post_with_http_info(tenant_id, create_feed_post_params, opts) data @@ -931,7 +931,7 @@ def create_feed_post(tenant_id, create_feed_post_params, opts = {}) # @option opts [Boolean] :is_live # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :skip_dup_check - # @return [Array<(CreateFeedPostsResponse, Integer, Hash)>] CreateFeedPostsResponse data, response status code and response headers + # @return [Array<(CreateFeedPostResponse1, Integer, Hash)>] CreateFeedPostResponse1 data, response status code and response headers def create_feed_post_with_http_info(tenant_id, create_feed_post_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_feed_post ...' @@ -972,7 +972,7 @@ def create_feed_post_with_http_info(tenant_id, create_feed_post_params, opts = { post_body = opts[:debug_body] || @api_client.object_to_http_body(create_feed_post_params) # return_type - return_type = opts[:debug_return_type] || 'CreateFeedPostsResponse' + return_type = opts[:debug_return_type] || 'CreateFeedPostResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -997,7 +997,7 @@ def create_feed_post_with_http_info(tenant_id, create_feed_post_params, opts = { # @param tenant_id [String] # @param create_moderator_body [CreateModeratorBody] # @param [Hash] opts the optional parameters - # @return [CreateModeratorResponse] + # @return [CreateModeratorResponse1] def create_moderator(tenant_id, create_moderator_body, opts = {}) data, _status_code, _headers = create_moderator_with_http_info(tenant_id, create_moderator_body, opts) data @@ -1006,7 +1006,7 @@ def create_moderator(tenant_id, create_moderator_body, opts = {}) # @param tenant_id [String] # @param create_moderator_body [CreateModeratorBody] # @param [Hash] opts the optional parameters - # @return [Array<(CreateModeratorResponse, Integer, Hash)>] CreateModeratorResponse data, response status code and response headers + # @return [Array<(CreateModeratorResponse1, Integer, Hash)>] CreateModeratorResponse1 data, response status code and response headers def create_moderator_with_http_info(tenant_id, create_moderator_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_moderator ...' @@ -1043,7 +1043,7 @@ def create_moderator_with_http_info(tenant_id, create_moderator_body, opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(create_moderator_body) # return_type - return_type = opts[:debug_return_type] || 'CreateModeratorResponse' + return_type = opts[:debug_return_type] || 'CreateModeratorResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -1068,7 +1068,7 @@ def create_moderator_with_http_info(tenant_id, create_moderator_body, opts = {}) # @param tenant_id [String] # @param create_question_config_body [CreateQuestionConfigBody] # @param [Hash] opts the optional parameters - # @return [CreateQuestionConfigResponse] + # @return [CreateQuestionConfigResponse1] def create_question_config(tenant_id, create_question_config_body, opts = {}) data, _status_code, _headers = create_question_config_with_http_info(tenant_id, create_question_config_body, opts) data @@ -1077,7 +1077,7 @@ def create_question_config(tenant_id, create_question_config_body, opts = {}) # @param tenant_id [String] # @param create_question_config_body [CreateQuestionConfigBody] # @param [Hash] opts the optional parameters - # @return [Array<(CreateQuestionConfigResponse, Integer, Hash)>] CreateQuestionConfigResponse data, response status code and response headers + # @return [Array<(CreateQuestionConfigResponse1, Integer, Hash)>] CreateQuestionConfigResponse1 data, response status code and response headers def create_question_config_with_http_info(tenant_id, create_question_config_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_question_config ...' @@ -1114,7 +1114,7 @@ def create_question_config_with_http_info(tenant_id, create_question_config_body post_body = opts[:debug_body] || @api_client.object_to_http_body(create_question_config_body) # return_type - return_type = opts[:debug_return_type] || 'CreateQuestionConfigResponse' + return_type = opts[:debug_return_type] || 'CreateQuestionConfigResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -1139,7 +1139,7 @@ def create_question_config_with_http_info(tenant_id, create_question_config_body # @param tenant_id [String] # @param create_question_result_body [CreateQuestionResultBody] # @param [Hash] opts the optional parameters - # @return [CreateQuestionResultResponse] + # @return [CreateQuestionResultResponse1] def create_question_result(tenant_id, create_question_result_body, opts = {}) data, _status_code, _headers = create_question_result_with_http_info(tenant_id, create_question_result_body, opts) data @@ -1148,7 +1148,7 @@ def create_question_result(tenant_id, create_question_result_body, opts = {}) # @param tenant_id [String] # @param create_question_result_body [CreateQuestionResultBody] # @param [Hash] opts the optional parameters - # @return [Array<(CreateQuestionResultResponse, Integer, Hash)>] CreateQuestionResultResponse data, response status code and response headers + # @return [Array<(CreateQuestionResultResponse1, Integer, Hash)>] CreateQuestionResultResponse1 data, response status code and response headers def create_question_result_with_http_info(tenant_id, create_question_result_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_question_result ...' @@ -1185,7 +1185,7 @@ def create_question_result_with_http_info(tenant_id, create_question_result_body post_body = opts[:debug_body] || @api_client.object_to_http_body(create_question_result_body) # return_type - return_type = opts[:debug_return_type] || 'CreateQuestionResultResponse' + return_type = opts[:debug_return_type] || 'CreateQuestionResultResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -1281,7 +1281,7 @@ def create_subscription_with_http_info(tenant_id, create_api_user_subscription_d # @param tenant_id [String] # @param create_tenant_body [CreateTenantBody] # @param [Hash] opts the optional parameters - # @return [CreateTenantResponse] + # @return [CreateTenantResponse1] def create_tenant(tenant_id, create_tenant_body, opts = {}) data, _status_code, _headers = create_tenant_with_http_info(tenant_id, create_tenant_body, opts) data @@ -1290,7 +1290,7 @@ def create_tenant(tenant_id, create_tenant_body, opts = {}) # @param tenant_id [String] # @param create_tenant_body [CreateTenantBody] # @param [Hash] opts the optional parameters - # @return [Array<(CreateTenantResponse, Integer, Hash)>] CreateTenantResponse data, response status code and response headers + # @return [Array<(CreateTenantResponse1, Integer, Hash)>] CreateTenantResponse1 data, response status code and response headers def create_tenant_with_http_info(tenant_id, create_tenant_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_tenant ...' @@ -1327,7 +1327,7 @@ def create_tenant_with_http_info(tenant_id, create_tenant_body, opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(create_tenant_body) # return_type - return_type = opts[:debug_return_type] || 'CreateTenantResponse' + return_type = opts[:debug_return_type] || 'CreateTenantResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -1352,7 +1352,7 @@ def create_tenant_with_http_info(tenant_id, create_tenant_body, opts = {}) # @param tenant_id [String] # @param create_tenant_package_body [CreateTenantPackageBody] # @param [Hash] opts the optional parameters - # @return [CreateTenantPackageResponse] + # @return [CreateTenantPackageResponse1] def create_tenant_package(tenant_id, create_tenant_package_body, opts = {}) data, _status_code, _headers = create_tenant_package_with_http_info(tenant_id, create_tenant_package_body, opts) data @@ -1361,7 +1361,7 @@ def create_tenant_package(tenant_id, create_tenant_package_body, opts = {}) # @param tenant_id [String] # @param create_tenant_package_body [CreateTenantPackageBody] # @param [Hash] opts the optional parameters - # @return [Array<(CreateTenantPackageResponse, Integer, Hash)>] CreateTenantPackageResponse data, response status code and response headers + # @return [Array<(CreateTenantPackageResponse1, Integer, Hash)>] CreateTenantPackageResponse1 data, response status code and response headers def create_tenant_package_with_http_info(tenant_id, create_tenant_package_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_tenant_package ...' @@ -1398,7 +1398,7 @@ def create_tenant_package_with_http_info(tenant_id, create_tenant_package_body, post_body = opts[:debug_body] || @api_client.object_to_http_body(create_tenant_package_body) # return_type - return_type = opts[:debug_return_type] || 'CreateTenantPackageResponse' + return_type = opts[:debug_return_type] || 'CreateTenantPackageResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -1423,7 +1423,7 @@ def create_tenant_package_with_http_info(tenant_id, create_tenant_package_body, # @param tenant_id [String] # @param create_tenant_user_body [CreateTenantUserBody] # @param [Hash] opts the optional parameters - # @return [CreateTenantUserResponse] + # @return [CreateTenantUserResponse1] def create_tenant_user(tenant_id, create_tenant_user_body, opts = {}) data, _status_code, _headers = create_tenant_user_with_http_info(tenant_id, create_tenant_user_body, opts) data @@ -1432,7 +1432,7 @@ def create_tenant_user(tenant_id, create_tenant_user_body, opts = {}) # @param tenant_id [String] # @param create_tenant_user_body [CreateTenantUserBody] # @param [Hash] opts the optional parameters - # @return [Array<(CreateTenantUserResponse, Integer, Hash)>] CreateTenantUserResponse data, response status code and response headers + # @return [Array<(CreateTenantUserResponse1, Integer, Hash)>] CreateTenantUserResponse1 data, response status code and response headers def create_tenant_user_with_http_info(tenant_id, create_tenant_user_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_tenant_user ...' @@ -1469,7 +1469,7 @@ def create_tenant_user_with_http_info(tenant_id, create_tenant_user_body, opts = post_body = opts[:debug_body] || @api_client.object_to_http_body(create_tenant_user_body) # return_type - return_type = opts[:debug_return_type] || 'CreateTenantUserResponse' + return_type = opts[:debug_return_type] || 'CreateTenantUserResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -1495,7 +1495,7 @@ def create_tenant_user_with_http_info(tenant_id, create_tenant_user_body, opts = # @param user_id [String] # @param create_ticket_body [CreateTicketBody] # @param [Hash] opts the optional parameters - # @return [CreateTicketResponse] + # @return [CreateTicketResponse1] def create_ticket(tenant_id, user_id, create_ticket_body, opts = {}) data, _status_code, _headers = create_ticket_with_http_info(tenant_id, user_id, create_ticket_body, opts) data @@ -1505,7 +1505,7 @@ def create_ticket(tenant_id, user_id, create_ticket_body, opts = {}) # @param user_id [String] # @param create_ticket_body [CreateTicketBody] # @param [Hash] opts the optional parameters - # @return [Array<(CreateTicketResponse, Integer, Hash)>] CreateTicketResponse data, response status code and response headers + # @return [Array<(CreateTicketResponse1, Integer, Hash)>] CreateTicketResponse1 data, response status code and response headers def create_ticket_with_http_info(tenant_id, user_id, create_ticket_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_ticket ...' @@ -1547,7 +1547,7 @@ def create_ticket_with_http_info(tenant_id, user_id, create_ticket_body, opts = post_body = opts[:debug_body] || @api_client.object_to_http_body(create_ticket_body) # return_type - return_type = opts[:debug_return_type] || 'CreateTicketResponse' + return_type = opts[:debug_return_type] || 'CreateTicketResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -1572,7 +1572,7 @@ def create_ticket_with_http_info(tenant_id, user_id, create_ticket_body, opts = # @param tenant_id [String] # @param create_user_badge_params [CreateUserBadgeParams] # @param [Hash] opts the optional parameters - # @return [APICreateUserBadgeResponse] + # @return [CreateUserBadgeResponse] def create_user_badge(tenant_id, create_user_badge_params, opts = {}) data, _status_code, _headers = create_user_badge_with_http_info(tenant_id, create_user_badge_params, opts) data @@ -1581,7 +1581,7 @@ def create_user_badge(tenant_id, create_user_badge_params, opts = {}) # @param tenant_id [String] # @param create_user_badge_params [CreateUserBadgeParams] # @param [Hash] opts the optional parameters - # @return [Array<(APICreateUserBadgeResponse, Integer, Hash)>] APICreateUserBadgeResponse data, response status code and response headers + # @return [Array<(CreateUserBadgeResponse, Integer, Hash)>] CreateUserBadgeResponse data, response status code and response headers def create_user_badge_with_http_info(tenant_id, create_user_badge_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_user_badge ...' @@ -1618,7 +1618,7 @@ def create_user_badge_with_http_info(tenant_id, create_user_badge_params, opts = post_body = opts[:debug_body] || @api_client.object_to_http_body(create_user_badge_params) # return_type - return_type = opts[:debug_return_type] || 'APICreateUserBadgeResponse' + return_type = opts[:debug_return_type] || 'CreateUserBadgeResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -1646,7 +1646,7 @@ def create_user_badge_with_http_info(tenant_id, create_user_badge_params, opts = # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [VoteResponse] + # @return [CreateVoteResponse] def create_vote(tenant_id, comment_id, direction, opts = {}) data, _status_code, _headers = create_vote_with_http_info(tenant_id, comment_id, direction, opts) data @@ -1658,7 +1658,7 @@ def create_vote(tenant_id, comment_id, direction, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [Array<(VoteResponse, Integer, Hash)>] VoteResponse data, response status code and response headers + # @return [Array<(CreateVoteResponse, Integer, Hash)>] CreateVoteResponse data, response status code and response headers def create_vote_with_http_info(tenant_id, comment_id, direction, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_vote ...' @@ -1703,7 +1703,7 @@ def create_vote_with_http_info(tenant_id, comment_id, direction, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'VoteResponse' + return_type = opts[:debug_return_type] || 'CreateVoteResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -1730,7 +1730,7 @@ def create_vote_with_http_info(tenant_id, comment_id, direction, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :context_user_id # @option opts [Boolean] :is_live - # @return [DeleteCommentResult] + # @return [DeleteCommentResponse] def delete_comment(tenant_id, id, opts = {}) data, _status_code, _headers = delete_comment_with_http_info(tenant_id, id, opts) data @@ -1741,7 +1741,7 @@ def delete_comment(tenant_id, id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :context_user_id # @option opts [Boolean] :is_live - # @return [Array<(DeleteCommentResult, Integer, Hash)>] DeleteCommentResult data, response status code and response headers + # @return [Array<(DeleteCommentResponse, Integer, Hash)>] DeleteCommentResponse data, response status code and response headers def delete_comment_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_comment ...' @@ -1755,7 +1755,7 @@ def delete_comment_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_comment" end # resource path - local_var_path = '/api/v1/comments/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/comments/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1775,7 +1775,7 @@ def delete_comment_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'DeleteCommentResult' + return_type = opts[:debug_return_type] || 'DeleteCommentResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -1823,7 +1823,7 @@ def delete_domain_config_with_http_info(tenant_id, domain, opts = {}) fail ArgumentError, "Missing the required parameter 'domain' when calling DefaultApi.delete_domain_config" end # resource path - local_var_path = '/api/v1/domain-configs/{domain}'.sub('{' + 'domain' + '}', CGI.escape(domain.to_s)) + local_var_path = '/api/v1/domain-configs/{domain}'.sub('{domain}', CGI.escape(domain.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1866,7 +1866,7 @@ def delete_domain_config_with_http_info(tenant_id, domain, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [DeleteEmailTemplateResponse] def delete_email_template(tenant_id, id, opts = {}) data, _status_code, _headers = delete_email_template_with_http_info(tenant_id, id, opts) data @@ -1875,7 +1875,7 @@ def delete_email_template(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(DeleteEmailTemplateResponse, Integer, Hash)>] DeleteEmailTemplateResponse data, response status code and response headers def delete_email_template_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_email_template ...' @@ -1889,7 +1889,7 @@ def delete_email_template_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_email_template" end # resource path - local_var_path = '/api/v1/email-templates/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/email-templates/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1907,7 +1907,7 @@ def delete_email_template_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'DeleteEmailTemplateResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -1933,7 +1933,7 @@ def delete_email_template_with_http_info(tenant_id, id, opts = {}) # @param id [String] # @param error_id [String] # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [DeleteEmailTemplateRenderErrorResponse] def delete_email_template_render_error(tenant_id, id, error_id, opts = {}) data, _status_code, _headers = delete_email_template_render_error_with_http_info(tenant_id, id, error_id, opts) data @@ -1943,7 +1943,7 @@ def delete_email_template_render_error(tenant_id, id, error_id, opts = {}) # @param id [String] # @param error_id [String] # @param [Hash] opts the optional parameters - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(DeleteEmailTemplateRenderErrorResponse, Integer, Hash)>] DeleteEmailTemplateRenderErrorResponse data, response status code and response headers def delete_email_template_render_error_with_http_info(tenant_id, id, error_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_email_template_render_error ...' @@ -1961,7 +1961,7 @@ def delete_email_template_render_error_with_http_info(tenant_id, id, error_id, o fail ArgumentError, "Missing the required parameter 'error_id' when calling DefaultApi.delete_email_template_render_error" end # resource path - local_var_path = '/api/v1/email-templates/{id}/render-errors/{errorId}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'errorId' + '}', CGI.escape(error_id.to_s)) + local_var_path = '/api/v1/email-templates/{id}/render-errors/{errorId}'.sub('{id}', CGI.escape(id.to_s)).sub('{errorId}', CGI.escape(error_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1979,7 +1979,7 @@ def delete_email_template_render_error_with_http_info(tenant_id, id, error_id, o post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'DeleteEmailTemplateRenderErrorResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -2005,7 +2005,7 @@ def delete_email_template_render_error_with_http_info(tenant_id, id, error_id, o # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [DeleteHashTagRequestBody] :delete_hash_tag_request_body - # @return [APIEmptyResponse] + # @return [DeleteHashTagResponse] def delete_hash_tag(tag, opts = {}) data, _status_code, _headers = delete_hash_tag_with_http_info(tag, opts) data @@ -2015,7 +2015,7 @@ def delete_hash_tag(tag, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [DeleteHashTagRequestBody] :delete_hash_tag_request_body - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(DeleteHashTagResponse, Integer, Hash)>] DeleteHashTagResponse data, response status code and response headers def delete_hash_tag_with_http_info(tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_hash_tag ...' @@ -2025,7 +2025,7 @@ def delete_hash_tag_with_http_info(tag, opts = {}) fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.delete_hash_tag" end # resource path - local_var_path = '/api/v1/hash-tags/{tag}'.sub('{' + 'tag' + '}', CGI.escape(tag.to_s)) + local_var_path = '/api/v1/hash-tags/{tag}'.sub('{tag}', CGI.escape(tag.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2048,7 +2048,7 @@ def delete_hash_tag_with_http_info(tag, opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'delete_hash_tag_request_body']) # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'DeleteHashTagResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -2074,7 +2074,7 @@ def delete_hash_tag_with_http_info(tag, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [String] :send_email - # @return [APIEmptyResponse] + # @return [DeleteModeratorResponse] def delete_moderator(tenant_id, id, opts = {}) data, _status_code, _headers = delete_moderator_with_http_info(tenant_id, id, opts) data @@ -2084,7 +2084,7 @@ def delete_moderator(tenant_id, id, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [String] :send_email - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(DeleteModeratorResponse, Integer, Hash)>] DeleteModeratorResponse data, response status code and response headers def delete_moderator_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_moderator ...' @@ -2098,7 +2098,7 @@ def delete_moderator_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_moderator" end # resource path - local_var_path = '/api/v1/moderators/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/moderators/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2117,7 +2117,7 @@ def delete_moderator_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'DeleteModeratorResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -2142,7 +2142,7 @@ def delete_moderator_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [DeleteNotificationCountResponse] def delete_notification_count(tenant_id, id, opts = {}) data, _status_code, _headers = delete_notification_count_with_http_info(tenant_id, id, opts) data @@ -2151,7 +2151,7 @@ def delete_notification_count(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(DeleteNotificationCountResponse, Integer, Hash)>] DeleteNotificationCountResponse data, response status code and response headers def delete_notification_count_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_notification_count ...' @@ -2165,7 +2165,7 @@ def delete_notification_count_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_notification_count" end # resource path - local_var_path = '/api/v1/notification-count/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/notification-count/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2183,7 +2183,7 @@ def delete_notification_count_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'DeleteNotificationCountResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -2231,7 +2231,7 @@ def delete_page_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_page" end # resource path - local_var_path = '/api/v1/pages/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/pages/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2274,7 +2274,7 @@ def delete_page_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [DeletePendingWebhookEventResponse] def delete_pending_webhook_event(tenant_id, id, opts = {}) data, _status_code, _headers = delete_pending_webhook_event_with_http_info(tenant_id, id, opts) data @@ -2283,7 +2283,7 @@ def delete_pending_webhook_event(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(DeletePendingWebhookEventResponse, Integer, Hash)>] DeletePendingWebhookEventResponse data, response status code and response headers def delete_pending_webhook_event_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_pending_webhook_event ...' @@ -2297,7 +2297,7 @@ def delete_pending_webhook_event_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_pending_webhook_event" end # resource path - local_var_path = '/api/v1/pending-webhook-events/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/pending-webhook-events/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2315,7 +2315,7 @@ def delete_pending_webhook_event_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'DeletePendingWebhookEventResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -2340,7 +2340,7 @@ def delete_pending_webhook_event_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [DeleteQuestionConfigResponse] def delete_question_config(tenant_id, id, opts = {}) data, _status_code, _headers = delete_question_config_with_http_info(tenant_id, id, opts) data @@ -2349,7 +2349,7 @@ def delete_question_config(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(DeleteQuestionConfigResponse, Integer, Hash)>] DeleteQuestionConfigResponse data, response status code and response headers def delete_question_config_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_question_config ...' @@ -2363,7 +2363,7 @@ def delete_question_config_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_question_config" end # resource path - local_var_path = '/api/v1/question-configs/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/question-configs/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2381,7 +2381,7 @@ def delete_question_config_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'DeleteQuestionConfigResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -2406,7 +2406,7 @@ def delete_question_config_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [DeleteQuestionResultResponse] def delete_question_result(tenant_id, id, opts = {}) data, _status_code, _headers = delete_question_result_with_http_info(tenant_id, id, opts) data @@ -2415,7 +2415,7 @@ def delete_question_result(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(DeleteQuestionResultResponse, Integer, Hash)>] DeleteQuestionResultResponse data, response status code and response headers def delete_question_result_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_question_result ...' @@ -2429,7 +2429,7 @@ def delete_question_result_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_question_result" end # resource path - local_var_path = '/api/v1/question-results/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/question-results/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2447,7 +2447,7 @@ def delete_question_result_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'DeleteQuestionResultResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -2499,7 +2499,7 @@ def delete_sso_user_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_sso_user" end # resource path - local_var_path = '/api/v1/sso-users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/sso-users/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2569,7 +2569,7 @@ def delete_subscription_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_subscription" end # resource path - local_var_path = '/api/v1/subscriptions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/subscriptions/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2614,7 +2614,7 @@ def delete_subscription_with_http_info(tenant_id, id, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sure - # @return [APIEmptyResponse] + # @return [DeleteTenantResponse] def delete_tenant(tenant_id, id, opts = {}) data, _status_code, _headers = delete_tenant_with_http_info(tenant_id, id, opts) data @@ -2624,7 +2624,7 @@ def delete_tenant(tenant_id, id, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sure - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(DeleteTenantResponse, Integer, Hash)>] DeleteTenantResponse data, response status code and response headers def delete_tenant_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_tenant ...' @@ -2638,7 +2638,7 @@ def delete_tenant_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_tenant" end # resource path - local_var_path = '/api/v1/tenants/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tenants/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2657,7 +2657,7 @@ def delete_tenant_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'DeleteTenantResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -2682,7 +2682,7 @@ def delete_tenant_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [DeleteTenantPackageResponse] def delete_tenant_package(tenant_id, id, opts = {}) data, _status_code, _headers = delete_tenant_package_with_http_info(tenant_id, id, opts) data @@ -2691,7 +2691,7 @@ def delete_tenant_package(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(DeleteTenantPackageResponse, Integer, Hash)>] DeleteTenantPackageResponse data, response status code and response headers def delete_tenant_package_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_tenant_package ...' @@ -2705,7 +2705,7 @@ def delete_tenant_package_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_tenant_package" end # resource path - local_var_path = '/api/v1/tenant-packages/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tenant-packages/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2723,7 +2723,7 @@ def delete_tenant_package_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'DeleteTenantPackageResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -2750,7 +2750,7 @@ def delete_tenant_package_with_http_info(tenant_id, id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :delete_comments # @option opts [String] :comment_delete_mode - # @return [APIEmptyResponse] + # @return [DeleteTenantUserResponse] def delete_tenant_user(tenant_id, id, opts = {}) data, _status_code, _headers = delete_tenant_user_with_http_info(tenant_id, id, opts) data @@ -2761,7 +2761,7 @@ def delete_tenant_user(tenant_id, id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :delete_comments # @option opts [String] :comment_delete_mode - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(DeleteTenantUserResponse, Integer, Hash)>] DeleteTenantUserResponse data, response status code and response headers def delete_tenant_user_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_tenant_user ...' @@ -2775,7 +2775,7 @@ def delete_tenant_user_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_tenant_user" end # resource path - local_var_path = '/api/v1/tenant-users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tenant-users/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2795,7 +2795,7 @@ def delete_tenant_user_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'DeleteTenantUserResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -2820,7 +2820,7 @@ def delete_tenant_user_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [APIEmptySuccessResponse] + # @return [DeleteUserBadgeResponse] def delete_user_badge(tenant_id, id, opts = {}) data, _status_code, _headers = delete_user_badge_with_http_info(tenant_id, id, opts) data @@ -2829,7 +2829,7 @@ def delete_user_badge(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(APIEmptySuccessResponse, Integer, Hash)>] APIEmptySuccessResponse data, response status code and response headers + # @return [Array<(DeleteUserBadgeResponse, Integer, Hash)>] DeleteUserBadgeResponse data, response status code and response headers def delete_user_badge_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_user_badge ...' @@ -2843,7 +2843,7 @@ def delete_user_badge_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_user_badge" end # resource path - local_var_path = '/api/v1/user-badges/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/user-badges/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2861,7 +2861,7 @@ def delete_user_badge_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIEmptySuccessResponse' + return_type = opts[:debug_return_type] || 'DeleteUserBadgeResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -2887,7 +2887,7 @@ def delete_user_badge_with_http_info(tenant_id, id, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [String] :edit_key - # @return [VoteDeleteResponse] + # @return [DeleteVoteResponse] def delete_vote(tenant_id, id, opts = {}) data, _status_code, _headers = delete_vote_with_http_info(tenant_id, id, opts) data @@ -2897,7 +2897,7 @@ def delete_vote(tenant_id, id, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [String] :edit_key - # @return [Array<(VoteDeleteResponse, Integer, Hash)>] VoteDeleteResponse data, response status code and response headers + # @return [Array<(DeleteVoteResponse, Integer, Hash)>] DeleteVoteResponse data, response status code and response headers def delete_vote_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_vote ...' @@ -2911,7 +2911,7 @@ def delete_vote_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_vote" end # resource path - local_var_path = '/api/v1/votes/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/votes/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2930,7 +2930,7 @@ def delete_vote_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'VoteDeleteResponse' + return_type = opts[:debug_return_type] || 'DeleteVoteResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -2957,7 +2957,7 @@ def delete_vote_with_http_info(tenant_id, id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [FlagCommentResponse] + # @return [FlagCommentResponse1] def flag_comment(tenant_id, id, opts = {}) data, _status_code, _headers = flag_comment_with_http_info(tenant_id, id, opts) data @@ -2968,7 +2968,7 @@ def flag_comment(tenant_id, id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [Array<(FlagCommentResponse, Integer, Hash)>] FlagCommentResponse data, response status code and response headers + # @return [Array<(FlagCommentResponse1, Integer, Hash)>] FlagCommentResponse1 data, response status code and response headers def flag_comment_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.flag_comment ...' @@ -2982,7 +2982,7 @@ def flag_comment_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.flag_comment" end # resource path - local_var_path = '/api/v1/comments/{id}/flag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/comments/{id}/flag'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3002,7 +3002,7 @@ def flag_comment_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'FlagCommentResponse' + return_type = opts[:debug_return_type] || 'FlagCommentResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -3031,7 +3031,7 @@ def flag_comment_with_http_info(tenant_id, id, opts = {}) # @option opts [SORTDIR] :order # @option opts [Float] :after # @option opts [Float] :before - # @return [GetAuditLogsResponse] + # @return [GetAuditLogsResponse1] def get_audit_logs(tenant_id, opts = {}) data, _status_code, _headers = get_audit_logs_with_http_info(tenant_id, opts) data @@ -3044,7 +3044,7 @@ def get_audit_logs(tenant_id, opts = {}) # @option opts [SORTDIR] :order # @option opts [Float] :after # @option opts [Float] :before - # @return [Array<(GetAuditLogsResponse, Integer, Hash)>] GetAuditLogsResponse data, response status code and response headers + # @return [Array<(GetAuditLogsResponse1, Integer, Hash)>] GetAuditLogsResponse1 data, response status code and response headers def get_audit_logs_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_audit_logs ...' @@ -3077,7 +3077,7 @@ def get_audit_logs_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetAuditLogsResponse' + return_type = opts[:debug_return_type] || 'GetAuditLogsResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -3102,7 +3102,7 @@ def get_audit_logs_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [GetCachedNotificationCountResponse] + # @return [GetCachedNotificationCountResponse1] def get_cached_notification_count(tenant_id, id, opts = {}) data, _status_code, _headers = get_cached_notification_count_with_http_info(tenant_id, id, opts) data @@ -3111,7 +3111,7 @@ def get_cached_notification_count(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetCachedNotificationCountResponse, Integer, Hash)>] GetCachedNotificationCountResponse data, response status code and response headers + # @return [Array<(GetCachedNotificationCountResponse1, Integer, Hash)>] GetCachedNotificationCountResponse1 data, response status code and response headers def get_cached_notification_count_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_cached_notification_count ...' @@ -3125,7 +3125,7 @@ def get_cached_notification_count_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_cached_notification_count" end # resource path - local_var_path = '/api/v1/notification-count/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/notification-count/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3143,7 +3143,7 @@ def get_cached_notification_count_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetCachedNotificationCountResponse' + return_type = opts[:debug_return_type] || 'GetCachedNotificationCountResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -3168,7 +3168,7 @@ def get_cached_notification_count_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [APIGetCommentResponse] + # @return [GetCommentResponse] def get_comment(tenant_id, id, opts = {}) data, _status_code, _headers = get_comment_with_http_info(tenant_id, id, opts) data @@ -3177,7 +3177,7 @@ def get_comment(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(APIGetCommentResponse, Integer, Hash)>] APIGetCommentResponse data, response status code and response headers + # @return [Array<(GetCommentResponse, Integer, Hash)>] GetCommentResponse data, response status code and response headers def get_comment_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_comment ...' @@ -3191,7 +3191,7 @@ def get_comment_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_comment" end # resource path - local_var_path = '/api/v1/comments/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/comments/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3209,7 +3209,7 @@ def get_comment_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIGetCommentResponse' + return_type = opts[:debug_return_type] || 'GetCommentResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -3249,7 +3249,7 @@ def get_comment_with_http_info(tenant_id, id, opts = {}) # @option opts [SortDirections] :direction # @option opts [Integer] :from_date # @option opts [Integer] :to_date - # @return [APIGetCommentsResponse] + # @return [GetCommentsResponse] def get_comments(tenant_id, opts = {}) data, _status_code, _headers = get_comments_with_http_info(tenant_id, opts) data @@ -3273,7 +3273,7 @@ def get_comments(tenant_id, opts = {}) # @option opts [SortDirections] :direction # @option opts [Integer] :from_date # @option opts [Integer] :to_date - # @return [Array<(APIGetCommentsResponse, Integer, Hash)>] APIGetCommentsResponse data, response status code and response headers + # @return [Array<(GetCommentsResponse, Integer, Hash)>] GetCommentsResponse data, response status code and response headers def get_comments_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_comments ...' @@ -3317,7 +3317,7 @@ def get_comments_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIGetCommentsResponse' + return_type = opts[:debug_return_type] || 'GetCommentsResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -3365,7 +3365,7 @@ def get_domain_config_with_http_info(tenant_id, domain, opts = {}) fail ArgumentError, "Missing the required parameter 'domain' when calling DefaultApi.get_domain_config" end # resource path - local_var_path = '/api/v1/domain-configs/{domain}'.sub('{' + 'domain' + '}', CGI.escape(domain.to_s)) + local_var_path = '/api/v1/domain-configs/{domain}'.sub('{domain}', CGI.escape(domain.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3468,7 +3468,7 @@ def get_domain_configs_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [GetEmailTemplateResponse] + # @return [GetEmailTemplateResponse1] def get_email_template(tenant_id, id, opts = {}) data, _status_code, _headers = get_email_template_with_http_info(tenant_id, id, opts) data @@ -3477,7 +3477,7 @@ def get_email_template(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetEmailTemplateResponse, Integer, Hash)>] GetEmailTemplateResponse data, response status code and response headers + # @return [Array<(GetEmailTemplateResponse1, Integer, Hash)>] GetEmailTemplateResponse1 data, response status code and response headers def get_email_template_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_email_template ...' @@ -3491,7 +3491,7 @@ def get_email_template_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_email_template" end # resource path - local_var_path = '/api/v1/email-templates/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/email-templates/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3509,7 +3509,7 @@ def get_email_template_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetEmailTemplateResponse' + return_type = opts[:debug_return_type] || 'GetEmailTemplateResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -3533,7 +3533,7 @@ def get_email_template_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters - # @return [GetEmailTemplateDefinitionsResponse] + # @return [GetEmailTemplateDefinitionsResponse1] def get_email_template_definitions(tenant_id, opts = {}) data, _status_code, _headers = get_email_template_definitions_with_http_info(tenant_id, opts) data @@ -3541,7 +3541,7 @@ def get_email_template_definitions(tenant_id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetEmailTemplateDefinitionsResponse, Integer, Hash)>] GetEmailTemplateDefinitionsResponse data, response status code and response headers + # @return [Array<(GetEmailTemplateDefinitionsResponse1, Integer, Hash)>] GetEmailTemplateDefinitionsResponse1 data, response status code and response headers def get_email_template_definitions_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_email_template_definitions ...' @@ -3569,7 +3569,7 @@ def get_email_template_definitions_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetEmailTemplateDefinitionsResponse' + return_type = opts[:debug_return_type] || 'GetEmailTemplateDefinitionsResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -3595,7 +3595,7 @@ def get_email_template_definitions_with_http_info(tenant_id, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [GetEmailTemplateRenderErrorsResponse] + # @return [GetEmailTemplateRenderErrorsResponse1] def get_email_template_render_errors(tenant_id, id, opts = {}) data, _status_code, _headers = get_email_template_render_errors_with_http_info(tenant_id, id, opts) data @@ -3605,7 +3605,7 @@ def get_email_template_render_errors(tenant_id, id, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [Array<(GetEmailTemplateRenderErrorsResponse, Integer, Hash)>] GetEmailTemplateRenderErrorsResponse data, response status code and response headers + # @return [Array<(GetEmailTemplateRenderErrorsResponse1, Integer, Hash)>] GetEmailTemplateRenderErrorsResponse1 data, response status code and response headers def get_email_template_render_errors_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_email_template_render_errors ...' @@ -3619,7 +3619,7 @@ def get_email_template_render_errors_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_email_template_render_errors" end # resource path - local_var_path = '/api/v1/email-templates/{id}/render-errors'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/email-templates/{id}/render-errors'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3638,7 +3638,7 @@ def get_email_template_render_errors_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetEmailTemplateRenderErrorsResponse' + return_type = opts[:debug_return_type] || 'GetEmailTemplateRenderErrorsResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -3663,7 +3663,7 @@ def get_email_template_render_errors_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [GetEmailTemplatesResponse] + # @return [GetEmailTemplatesResponse1] def get_email_templates(tenant_id, opts = {}) data, _status_code, _headers = get_email_templates_with_http_info(tenant_id, opts) data @@ -3672,7 +3672,7 @@ def get_email_templates(tenant_id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [Array<(GetEmailTemplatesResponse, Integer, Hash)>] GetEmailTemplatesResponse data, response status code and response headers + # @return [Array<(GetEmailTemplatesResponse1, Integer, Hash)>] GetEmailTemplatesResponse1 data, response status code and response headers def get_email_templates_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_email_templates ...' @@ -3701,7 +3701,7 @@ def get_email_templates_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetEmailTemplatesResponse' + return_type = opts[:debug_return_type] || 'GetEmailTemplatesResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -3729,7 +3729,7 @@ def get_email_templates_with_http_info(tenant_id, opts = {}) # @option opts [String] :after_id # @option opts [Integer] :limit # @option opts [Array] :tags - # @return [GetFeedPostsResponse] + # @return [GetFeedPostsResponse1] def get_feed_posts(tenant_id, opts = {}) data, _status_code, _headers = get_feed_posts_with_http_info(tenant_id, opts) data @@ -3741,7 +3741,7 @@ def get_feed_posts(tenant_id, opts = {}) # @option opts [String] :after_id # @option opts [Integer] :limit # @option opts [Array] :tags - # @return [Array<(GetFeedPostsResponse, Integer, Hash)>] GetFeedPostsResponse data, response status code and response headers + # @return [Array<(GetFeedPostsResponse1, Integer, Hash)>] GetFeedPostsResponse1 data, response status code and response headers def get_feed_posts_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_feed_posts ...' @@ -3772,7 +3772,7 @@ def get_feed_posts_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetFeedPostsResponse' + return_type = opts[:debug_return_type] || 'GetFeedPostsResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -3797,7 +3797,7 @@ def get_feed_posts_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :page - # @return [GetHashTagsResponse] + # @return [GetHashTagsResponse1] def get_hash_tags(tenant_id, opts = {}) data, _status_code, _headers = get_hash_tags_with_http_info(tenant_id, opts) data @@ -3806,7 +3806,7 @@ def get_hash_tags(tenant_id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :page - # @return [Array<(GetHashTagsResponse, Integer, Hash)>] GetHashTagsResponse data, response status code and response headers + # @return [Array<(GetHashTagsResponse1, Integer, Hash)>] GetHashTagsResponse1 data, response status code and response headers def get_hash_tags_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_hash_tags ...' @@ -3835,7 +3835,7 @@ def get_hash_tags_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetHashTagsResponse' + return_type = opts[:debug_return_type] || 'GetHashTagsResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -3860,7 +3860,7 @@ def get_hash_tags_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [GetModeratorResponse] + # @return [GetModeratorResponse1] def get_moderator(tenant_id, id, opts = {}) data, _status_code, _headers = get_moderator_with_http_info(tenant_id, id, opts) data @@ -3869,7 +3869,7 @@ def get_moderator(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetModeratorResponse, Integer, Hash)>] GetModeratorResponse data, response status code and response headers + # @return [Array<(GetModeratorResponse1, Integer, Hash)>] GetModeratorResponse1 data, response status code and response headers def get_moderator_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_moderator ...' @@ -3883,7 +3883,7 @@ def get_moderator_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_moderator" end # resource path - local_var_path = '/api/v1/moderators/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/moderators/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3901,7 +3901,7 @@ def get_moderator_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetModeratorResponse' + return_type = opts[:debug_return_type] || 'GetModeratorResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -3926,7 +3926,7 @@ def get_moderator_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [GetModeratorsResponse] + # @return [GetModeratorsResponse1] def get_moderators(tenant_id, opts = {}) data, _status_code, _headers = get_moderators_with_http_info(tenant_id, opts) data @@ -3935,7 +3935,7 @@ def get_moderators(tenant_id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [Array<(GetModeratorsResponse, Integer, Hash)>] GetModeratorsResponse data, response status code and response headers + # @return [Array<(GetModeratorsResponse1, Integer, Hash)>] GetModeratorsResponse1 data, response status code and response headers def get_moderators_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_moderators ...' @@ -3964,7 +3964,7 @@ def get_moderators_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetModeratorsResponse' + return_type = opts[:debug_return_type] || 'GetModeratorsResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -3993,7 +3993,7 @@ def get_moderators_with_http_info(tenant_id, opts = {}) # @option opts [String] :from_comment_id # @option opts [Boolean] :viewed # @option opts [String] :type - # @return [GetNotificationCountResponse] + # @return [GetNotificationCountResponse1] def get_notification_count(tenant_id, opts = {}) data, _status_code, _headers = get_notification_count_with_http_info(tenant_id, opts) data @@ -4006,7 +4006,7 @@ def get_notification_count(tenant_id, opts = {}) # @option opts [String] :from_comment_id # @option opts [Boolean] :viewed # @option opts [String] :type - # @return [Array<(GetNotificationCountResponse, Integer, Hash)>] GetNotificationCountResponse data, response status code and response headers + # @return [Array<(GetNotificationCountResponse1, Integer, Hash)>] GetNotificationCountResponse1 data, response status code and response headers def get_notification_count_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_notification_count ...' @@ -4039,7 +4039,7 @@ def get_notification_count_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetNotificationCountResponse' + return_type = opts[:debug_return_type] || 'GetNotificationCountResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -4069,7 +4069,7 @@ def get_notification_count_with_http_info(tenant_id, opts = {}) # @option opts [Boolean] :viewed # @option opts [String] :type # @option opts [Float] :skip - # @return [GetNotificationsResponse] + # @return [GetNotificationsResponse1] def get_notifications(tenant_id, opts = {}) data, _status_code, _headers = get_notifications_with_http_info(tenant_id, opts) data @@ -4083,7 +4083,7 @@ def get_notifications(tenant_id, opts = {}) # @option opts [Boolean] :viewed # @option opts [String] :type # @option opts [Float] :skip - # @return [Array<(GetNotificationsResponse, Integer, Hash)>] GetNotificationsResponse data, response status code and response headers + # @return [Array<(GetNotificationsResponse1, Integer, Hash)>] GetNotificationsResponse1 data, response status code and response headers def get_notifications_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_notifications ...' @@ -4117,7 +4117,7 @@ def get_notifications_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetNotificationsResponse' + return_type = opts[:debug_return_type] || 'GetNotificationsResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -4274,7 +4274,7 @@ def get_pages_with_http_info(tenant_id, opts = {}) # @option opts [String] :type # @option opts [String] :domain # @option opts [Float] :attempt_count_gt - # @return [GetPendingWebhookEventCountResponse] + # @return [GetPendingWebhookEventCountResponse1] def get_pending_webhook_event_count(tenant_id, opts = {}) data, _status_code, _headers = get_pending_webhook_event_count_with_http_info(tenant_id, opts) data @@ -4288,7 +4288,7 @@ def get_pending_webhook_event_count(tenant_id, opts = {}) # @option opts [String] :type # @option opts [String] :domain # @option opts [Float] :attempt_count_gt - # @return [Array<(GetPendingWebhookEventCountResponse, Integer, Hash)>] GetPendingWebhookEventCountResponse data, response status code and response headers + # @return [Array<(GetPendingWebhookEventCountResponse1, Integer, Hash)>] GetPendingWebhookEventCountResponse1 data, response status code and response headers def get_pending_webhook_event_count_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_pending_webhook_event_count ...' @@ -4322,7 +4322,7 @@ def get_pending_webhook_event_count_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetPendingWebhookEventCountResponse' + return_type = opts[:debug_return_type] || 'GetPendingWebhookEventCountResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -4353,7 +4353,7 @@ def get_pending_webhook_event_count_with_http_info(tenant_id, opts = {}) # @option opts [String] :domain # @option opts [Float] :attempt_count_gt # @option opts [Float] :skip - # @return [GetPendingWebhookEventsResponse] + # @return [GetPendingWebhookEventsResponse1] def get_pending_webhook_events(tenant_id, opts = {}) data, _status_code, _headers = get_pending_webhook_events_with_http_info(tenant_id, opts) data @@ -4368,7 +4368,7 @@ def get_pending_webhook_events(tenant_id, opts = {}) # @option opts [String] :domain # @option opts [Float] :attempt_count_gt # @option opts [Float] :skip - # @return [Array<(GetPendingWebhookEventsResponse, Integer, Hash)>] GetPendingWebhookEventsResponse data, response status code and response headers + # @return [Array<(GetPendingWebhookEventsResponse1, Integer, Hash)>] GetPendingWebhookEventsResponse1 data, response status code and response headers def get_pending_webhook_events_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_pending_webhook_events ...' @@ -4403,7 +4403,7 @@ def get_pending_webhook_events_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetPendingWebhookEventsResponse' + return_type = opts[:debug_return_type] || 'GetPendingWebhookEventsResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -4428,7 +4428,7 @@ def get_pending_webhook_events_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [GetQuestionConfigResponse] + # @return [GetQuestionConfigResponse1] def get_question_config(tenant_id, id, opts = {}) data, _status_code, _headers = get_question_config_with_http_info(tenant_id, id, opts) data @@ -4437,7 +4437,7 @@ def get_question_config(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetQuestionConfigResponse, Integer, Hash)>] GetQuestionConfigResponse data, response status code and response headers + # @return [Array<(GetQuestionConfigResponse1, Integer, Hash)>] GetQuestionConfigResponse1 data, response status code and response headers def get_question_config_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_question_config ...' @@ -4451,7 +4451,7 @@ def get_question_config_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_question_config" end # resource path - local_var_path = '/api/v1/question-configs/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/question-configs/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -4469,7 +4469,7 @@ def get_question_config_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetQuestionConfigResponse' + return_type = opts[:debug_return_type] || 'GetQuestionConfigResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -4494,7 +4494,7 @@ def get_question_config_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [GetQuestionConfigsResponse] + # @return [GetQuestionConfigsResponse1] def get_question_configs(tenant_id, opts = {}) data, _status_code, _headers = get_question_configs_with_http_info(tenant_id, opts) data @@ -4503,7 +4503,7 @@ def get_question_configs(tenant_id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [Array<(GetQuestionConfigsResponse, Integer, Hash)>] GetQuestionConfigsResponse data, response status code and response headers + # @return [Array<(GetQuestionConfigsResponse1, Integer, Hash)>] GetQuestionConfigsResponse1 data, response status code and response headers def get_question_configs_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_question_configs ...' @@ -4532,7 +4532,7 @@ def get_question_configs_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetQuestionConfigsResponse' + return_type = opts[:debug_return_type] || 'GetQuestionConfigsResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -4557,7 +4557,7 @@ def get_question_configs_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [GetQuestionResultResponse] + # @return [GetQuestionResultResponse1] def get_question_result(tenant_id, id, opts = {}) data, _status_code, _headers = get_question_result_with_http_info(tenant_id, id, opts) data @@ -4566,7 +4566,7 @@ def get_question_result(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetQuestionResultResponse, Integer, Hash)>] GetQuestionResultResponse data, response status code and response headers + # @return [Array<(GetQuestionResultResponse1, Integer, Hash)>] GetQuestionResultResponse1 data, response status code and response headers def get_question_result_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_question_result ...' @@ -4580,7 +4580,7 @@ def get_question_result_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_question_result" end # resource path - local_var_path = '/api/v1/question-results/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/question-results/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -4598,7 +4598,7 @@ def get_question_result_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetQuestionResultResponse' + return_type = opts[:debug_return_type] || 'GetQuestionResultResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -4628,7 +4628,7 @@ def get_question_result_with_http_info(tenant_id, id, opts = {}) # @option opts [String] :question_id # @option opts [String] :question_ids # @option opts [Float] :skip - # @return [GetQuestionResultsResponse] + # @return [GetQuestionResultsResponse1] def get_question_results(tenant_id, opts = {}) data, _status_code, _headers = get_question_results_with_http_info(tenant_id, opts) data @@ -4642,7 +4642,7 @@ def get_question_results(tenant_id, opts = {}) # @option opts [String] :question_id # @option opts [String] :question_ids # @option opts [Float] :skip - # @return [Array<(GetQuestionResultsResponse, Integer, Hash)>] GetQuestionResultsResponse data, response status code and response headers + # @return [Array<(GetQuestionResultsResponse1, Integer, Hash)>] GetQuestionResultsResponse1 data, response status code and response headers def get_question_results_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_question_results ...' @@ -4676,7 +4676,7 @@ def get_question_results_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetQuestionResultsResponse' + return_type = opts[:debug_return_type] || 'GetQuestionResultsResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -4724,7 +4724,7 @@ def get_sso_user_by_email_with_http_info(tenant_id, email, opts = {}) fail ArgumentError, "Missing the required parameter 'email' when calling DefaultApi.get_sso_user_by_email" end # resource path - local_var_path = '/api/v1/sso-users/by-email/{email}'.sub('{' + 'email' + '}', CGI.escape(email.to_s)) + local_var_path = '/api/v1/sso-users/by-email/{email}'.sub('{email}', CGI.escape(email.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -4790,7 +4790,7 @@ def get_sso_user_by_id_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_sso_user_by_id" end # resource path - local_var_path = '/api/v1/sso-users/by-id/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/sso-users/by-id/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -4959,7 +4959,7 @@ def get_subscriptions_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [GetTenantResponse] + # @return [GetTenantResponse1] def get_tenant(tenant_id, id, opts = {}) data, _status_code, _headers = get_tenant_with_http_info(tenant_id, id, opts) data @@ -4968,7 +4968,7 @@ def get_tenant(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetTenantResponse, Integer, Hash)>] GetTenantResponse data, response status code and response headers + # @return [Array<(GetTenantResponse1, Integer, Hash)>] GetTenantResponse1 data, response status code and response headers def get_tenant_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenant ...' @@ -4982,7 +4982,7 @@ def get_tenant_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_tenant" end # resource path - local_var_path = '/api/v1/tenants/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tenants/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -5000,7 +5000,7 @@ def get_tenant_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetTenantResponse' + return_type = opts[:debug_return_type] || 'GetTenantResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5028,7 +5028,7 @@ def get_tenant_with_http_info(tenant_id, id, opts = {}) # @option opts [Float] :month_number # @option opts [Float] :day_number # @option opts [Float] :skip - # @return [GetTenantDailyUsagesResponse] + # @return [GetTenantDailyUsagesResponse1] def get_tenant_daily_usages(tenant_id, opts = {}) data, _status_code, _headers = get_tenant_daily_usages_with_http_info(tenant_id, opts) data @@ -5040,7 +5040,7 @@ def get_tenant_daily_usages(tenant_id, opts = {}) # @option opts [Float] :month_number # @option opts [Float] :day_number # @option opts [Float] :skip - # @return [Array<(GetTenantDailyUsagesResponse, Integer, Hash)>] GetTenantDailyUsagesResponse data, response status code and response headers + # @return [Array<(GetTenantDailyUsagesResponse1, Integer, Hash)>] GetTenantDailyUsagesResponse1 data, response status code and response headers def get_tenant_daily_usages_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenant_daily_usages ...' @@ -5072,7 +5072,7 @@ def get_tenant_daily_usages_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetTenantDailyUsagesResponse' + return_type = opts[:debug_return_type] || 'GetTenantDailyUsagesResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5097,7 +5097,7 @@ def get_tenant_daily_usages_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [GetTenantPackageResponse] + # @return [GetTenantPackageResponse1] def get_tenant_package(tenant_id, id, opts = {}) data, _status_code, _headers = get_tenant_package_with_http_info(tenant_id, id, opts) data @@ -5106,7 +5106,7 @@ def get_tenant_package(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetTenantPackageResponse, Integer, Hash)>] GetTenantPackageResponse data, response status code and response headers + # @return [Array<(GetTenantPackageResponse1, Integer, Hash)>] GetTenantPackageResponse1 data, response status code and response headers def get_tenant_package_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenant_package ...' @@ -5120,7 +5120,7 @@ def get_tenant_package_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_tenant_package" end # resource path - local_var_path = '/api/v1/tenant-packages/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tenant-packages/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -5138,7 +5138,7 @@ def get_tenant_package_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetTenantPackageResponse' + return_type = opts[:debug_return_type] || 'GetTenantPackageResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5163,7 +5163,7 @@ def get_tenant_package_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [GetTenantPackagesResponse] + # @return [GetTenantPackagesResponse1] def get_tenant_packages(tenant_id, opts = {}) data, _status_code, _headers = get_tenant_packages_with_http_info(tenant_id, opts) data @@ -5172,7 +5172,7 @@ def get_tenant_packages(tenant_id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [Array<(GetTenantPackagesResponse, Integer, Hash)>] GetTenantPackagesResponse data, response status code and response headers + # @return [Array<(GetTenantPackagesResponse1, Integer, Hash)>] GetTenantPackagesResponse1 data, response status code and response headers def get_tenant_packages_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenant_packages ...' @@ -5201,7 +5201,7 @@ def get_tenant_packages_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetTenantPackagesResponse' + return_type = opts[:debug_return_type] || 'GetTenantPackagesResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5226,7 +5226,7 @@ def get_tenant_packages_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [GetTenantUserResponse] + # @return [GetTenantUserResponse1] def get_tenant_user(tenant_id, id, opts = {}) data, _status_code, _headers = get_tenant_user_with_http_info(tenant_id, id, opts) data @@ -5235,7 +5235,7 @@ def get_tenant_user(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetTenantUserResponse, Integer, Hash)>] GetTenantUserResponse data, response status code and response headers + # @return [Array<(GetTenantUserResponse1, Integer, Hash)>] GetTenantUserResponse1 data, response status code and response headers def get_tenant_user_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenant_user ...' @@ -5249,7 +5249,7 @@ def get_tenant_user_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_tenant_user" end # resource path - local_var_path = '/api/v1/tenant-users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tenant-users/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -5267,7 +5267,7 @@ def get_tenant_user_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetTenantUserResponse' + return_type = opts[:debug_return_type] || 'GetTenantUserResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5292,7 +5292,7 @@ def get_tenant_user_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [GetTenantUsersResponse] + # @return [GetTenantUsersResponse1] def get_tenant_users(tenant_id, opts = {}) data, _status_code, _headers = get_tenant_users_with_http_info(tenant_id, opts) data @@ -5301,7 +5301,7 @@ def get_tenant_users(tenant_id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [Array<(GetTenantUsersResponse, Integer, Hash)>] GetTenantUsersResponse data, response status code and response headers + # @return [Array<(GetTenantUsersResponse1, Integer, Hash)>] GetTenantUsersResponse1 data, response status code and response headers def get_tenant_users_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenant_users ...' @@ -5330,7 +5330,7 @@ def get_tenant_users_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetTenantUsersResponse' + return_type = opts[:debug_return_type] || 'GetTenantUsersResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5356,7 +5356,7 @@ def get_tenant_users_with_http_info(tenant_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :meta # @option opts [Float] :skip - # @return [GetTenantsResponse] + # @return [GetTenantsResponse1] def get_tenants(tenant_id, opts = {}) data, _status_code, _headers = get_tenants_with_http_info(tenant_id, opts) data @@ -5366,7 +5366,7 @@ def get_tenants(tenant_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :meta # @option opts [Float] :skip - # @return [Array<(GetTenantsResponse, Integer, Hash)>] GetTenantsResponse data, response status code and response headers + # @return [Array<(GetTenantsResponse1, Integer, Hash)>] GetTenantsResponse1 data, response status code and response headers def get_tenants_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenants ...' @@ -5396,7 +5396,7 @@ def get_tenants_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetTenantsResponse' + return_type = opts[:debug_return_type] || 'GetTenantsResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5422,7 +5422,7 @@ def get_tenants_with_http_info(tenant_id, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [String] :user_id - # @return [GetTicketResponse] + # @return [GetTicketResponse1] def get_ticket(tenant_id, id, opts = {}) data, _status_code, _headers = get_ticket_with_http_info(tenant_id, id, opts) data @@ -5432,7 +5432,7 @@ def get_ticket(tenant_id, id, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [String] :user_id - # @return [Array<(GetTicketResponse, Integer, Hash)>] GetTicketResponse data, response status code and response headers + # @return [Array<(GetTicketResponse1, Integer, Hash)>] GetTicketResponse1 data, response status code and response headers def get_ticket_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_ticket ...' @@ -5446,7 +5446,7 @@ def get_ticket_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_ticket" end # resource path - local_var_path = '/api/v1/tickets/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tickets/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -5465,7 +5465,7 @@ def get_ticket_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetTicketResponse' + return_type = opts[:debug_return_type] || 'GetTicketResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5493,7 +5493,7 @@ def get_ticket_with_http_info(tenant_id, id, opts = {}) # @option opts [Float] :state # @option opts [Float] :skip # @option opts [Float] :limit - # @return [GetTicketsResponse] + # @return [GetTicketsResponse1] def get_tickets(tenant_id, opts = {}) data, _status_code, _headers = get_tickets_with_http_info(tenant_id, opts) data @@ -5505,7 +5505,7 @@ def get_tickets(tenant_id, opts = {}) # @option opts [Float] :state # @option opts [Float] :skip # @option opts [Float] :limit - # @return [Array<(GetTicketsResponse, Integer, Hash)>] GetTicketsResponse data, response status code and response headers + # @return [Array<(GetTicketsResponse1, Integer, Hash)>] GetTicketsResponse1 data, response status code and response headers def get_tickets_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tickets ...' @@ -5537,7 +5537,7 @@ def get_tickets_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetTicketsResponse' + return_type = opts[:debug_return_type] || 'GetTicketsResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5562,7 +5562,7 @@ def get_tickets_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [GetUserResponse] + # @return [GetUserResponse1] def get_user(tenant_id, id, opts = {}) data, _status_code, _headers = get_user_with_http_info(tenant_id, id, opts) data @@ -5571,7 +5571,7 @@ def get_user(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetUserResponse, Integer, Hash)>] GetUserResponse data, response status code and response headers + # @return [Array<(GetUserResponse1, Integer, Hash)>] GetUserResponse1 data, response status code and response headers def get_user_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_user ...' @@ -5585,7 +5585,7 @@ def get_user_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_user" end # resource path - local_var_path = '/api/v1/users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/users/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -5603,7 +5603,7 @@ def get_user_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetUserResponse' + return_type = opts[:debug_return_type] || 'GetUserResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5628,7 +5628,7 @@ def get_user_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [APIGetUserBadgeResponse] + # @return [GetUserBadgeResponse] def get_user_badge(tenant_id, id, opts = {}) data, _status_code, _headers = get_user_badge_with_http_info(tenant_id, id, opts) data @@ -5637,7 +5637,7 @@ def get_user_badge(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(APIGetUserBadgeResponse, Integer, Hash)>] APIGetUserBadgeResponse data, response status code and response headers + # @return [Array<(GetUserBadgeResponse, Integer, Hash)>] GetUserBadgeResponse data, response status code and response headers def get_user_badge_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_user_badge ...' @@ -5651,7 +5651,7 @@ def get_user_badge_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_user_badge" end # resource path - local_var_path = '/api/v1/user-badges/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/user-badges/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -5669,7 +5669,7 @@ def get_user_badge_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIGetUserBadgeResponse' + return_type = opts[:debug_return_type] || 'GetUserBadgeResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5694,7 +5694,7 @@ def get_user_badge_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [APIGetUserBadgeProgressResponse] + # @return [GetUserBadgeProgressByIdResponse] def get_user_badge_progress_by_id(tenant_id, id, opts = {}) data, _status_code, _headers = get_user_badge_progress_by_id_with_http_info(tenant_id, id, opts) data @@ -5703,7 +5703,7 @@ def get_user_badge_progress_by_id(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(APIGetUserBadgeProgressResponse, Integer, Hash)>] APIGetUserBadgeProgressResponse data, response status code and response headers + # @return [Array<(GetUserBadgeProgressByIdResponse, Integer, Hash)>] GetUserBadgeProgressByIdResponse data, response status code and response headers def get_user_badge_progress_by_id_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_user_badge_progress_by_id ...' @@ -5717,7 +5717,7 @@ def get_user_badge_progress_by_id_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_user_badge_progress_by_id" end # resource path - local_var_path = '/api/v1/user-badge-progress/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/user-badge-progress/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -5735,7 +5735,7 @@ def get_user_badge_progress_by_id_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIGetUserBadgeProgressResponse' + return_type = opts[:debug_return_type] || 'GetUserBadgeProgressByIdResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5760,7 +5760,7 @@ def get_user_badge_progress_by_id_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param user_id [String] # @param [Hash] opts the optional parameters - # @return [APIGetUserBadgeProgressResponse] + # @return [GetUserBadgeProgressByUserIdResponse] def get_user_badge_progress_by_user_id(tenant_id, user_id, opts = {}) data, _status_code, _headers = get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id, opts) data @@ -5769,7 +5769,7 @@ def get_user_badge_progress_by_user_id(tenant_id, user_id, opts = {}) # @param tenant_id [String] # @param user_id [String] # @param [Hash] opts the optional parameters - # @return [Array<(APIGetUserBadgeProgressResponse, Integer, Hash)>] APIGetUserBadgeProgressResponse data, response status code and response headers + # @return [Array<(GetUserBadgeProgressByUserIdResponse, Integer, Hash)>] GetUserBadgeProgressByUserIdResponse data, response status code and response headers def get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_user_badge_progress_by_user_id ...' @@ -5783,7 +5783,7 @@ def get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id, opts = fail ArgumentError, "Missing the required parameter 'user_id' when calling DefaultApi.get_user_badge_progress_by_user_id" end # resource path - local_var_path = '/api/v1/user-badge-progress/user/{userId}'.sub('{' + 'userId' + '}', CGI.escape(user_id.to_s)) + local_var_path = '/api/v1/user-badge-progress/user/{userId}'.sub('{userId}', CGI.escape(user_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -5801,7 +5801,7 @@ def get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id, opts = post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIGetUserBadgeProgressResponse' + return_type = opts[:debug_return_type] || 'GetUserBadgeProgressByUserIdResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5828,7 +5828,7 @@ def get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id, opts = # @option opts [String] :user_id # @option opts [Float] :limit # @option opts [Float] :skip - # @return [APIGetUserBadgeProgressListResponse] + # @return [GetUserBadgeProgressListResponse] def get_user_badge_progress_list(tenant_id, opts = {}) data, _status_code, _headers = get_user_badge_progress_list_with_http_info(tenant_id, opts) data @@ -5839,7 +5839,7 @@ def get_user_badge_progress_list(tenant_id, opts = {}) # @option opts [String] :user_id # @option opts [Float] :limit # @option opts [Float] :skip - # @return [Array<(APIGetUserBadgeProgressListResponse, Integer, Hash)>] APIGetUserBadgeProgressListResponse data, response status code and response headers + # @return [Array<(GetUserBadgeProgressListResponse, Integer, Hash)>] GetUserBadgeProgressListResponse data, response status code and response headers def get_user_badge_progress_list_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_user_badge_progress_list ...' @@ -5870,7 +5870,7 @@ def get_user_badge_progress_list_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIGetUserBadgeProgressListResponse' + return_type = opts[:debug_return_type] || 'GetUserBadgeProgressListResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5900,7 +5900,7 @@ def get_user_badge_progress_list_with_http_info(tenant_id, opts = {}) # @option opts [Boolean] :displayed_on_comments # @option opts [Float] :limit # @option opts [Float] :skip - # @return [APIGetUserBadgesResponse] + # @return [GetUserBadgesResponse] def get_user_badges(tenant_id, opts = {}) data, _status_code, _headers = get_user_badges_with_http_info(tenant_id, opts) data @@ -5914,7 +5914,7 @@ def get_user_badges(tenant_id, opts = {}) # @option opts [Boolean] :displayed_on_comments # @option opts [Float] :limit # @option opts [Float] :skip - # @return [Array<(APIGetUserBadgesResponse, Integer, Hash)>] APIGetUserBadgesResponse data, response status code and response headers + # @return [Array<(GetUserBadgesResponse, Integer, Hash)>] GetUserBadgesResponse data, response status code and response headers def get_user_badges_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_user_badges ...' @@ -5948,7 +5948,7 @@ def get_user_badges_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIGetUserBadgesResponse' + return_type = opts[:debug_return_type] || 'GetUserBadgesResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5973,7 +5973,7 @@ def get_user_badges_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param url_id [String] # @param [Hash] opts the optional parameters - # @return [GetVotesResponse] + # @return [GetVotesResponse1] def get_votes(tenant_id, url_id, opts = {}) data, _status_code, _headers = get_votes_with_http_info(tenant_id, url_id, opts) data @@ -5982,7 +5982,7 @@ def get_votes(tenant_id, url_id, opts = {}) # @param tenant_id [String] # @param url_id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetVotesResponse, Integer, Hash)>] GetVotesResponse data, response status code and response headers + # @return [Array<(GetVotesResponse1, Integer, Hash)>] GetVotesResponse1 data, response status code and response headers def get_votes_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_votes ...' @@ -6015,7 +6015,7 @@ def get_votes_with_http_info(tenant_id, url_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetVotesResponse' + return_type = opts[:debug_return_type] || 'GetVotesResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -6042,7 +6042,7 @@ def get_votes_with_http_info(tenant_id, url_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [GetVotesForUserResponse] + # @return [GetVotesForUserResponse1] def get_votes_for_user(tenant_id, url_id, opts = {}) data, _status_code, _headers = get_votes_for_user_with_http_info(tenant_id, url_id, opts) data @@ -6053,7 +6053,7 @@ def get_votes_for_user(tenant_id, url_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [Array<(GetVotesForUserResponse, Integer, Hash)>] GetVotesForUserResponse data, response status code and response headers + # @return [Array<(GetVotesForUserResponse1, Integer, Hash)>] GetVotesForUserResponse1 data, response status code and response headers def get_votes_for_user_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_votes_for_user ...' @@ -6088,7 +6088,7 @@ def get_votes_for_user_with_http_info(tenant_id, url_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetVotesForUserResponse' + return_type = opts[:debug_return_type] || 'GetVotesForUserResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -6142,7 +6142,7 @@ def patch_domain_config_with_http_info(tenant_id, domain_to_update, patch_domain fail ArgumentError, "Missing the required parameter 'patch_domain_config_params' when calling DefaultApi.patch_domain_config" end # resource path - local_var_path = '/api/v1/domain-configs/{domainToUpdate}'.sub('{' + 'domainToUpdate' + '}', CGI.escape(domain_to_update.to_s)) + local_var_path = '/api/v1/domain-configs/{domainToUpdate}'.sub('{domainToUpdate}', CGI.escape(domain_to_update.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6191,7 +6191,7 @@ def patch_domain_config_with_http_info(tenant_id, domain_to_update, patch_domain # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [UpdateHashTagBody] :update_hash_tag_body - # @return [UpdateHashTagResponse] + # @return [PatchHashTagResponse] def patch_hash_tag(tag, opts = {}) data, _status_code, _headers = patch_hash_tag_with_http_info(tag, opts) data @@ -6201,7 +6201,7 @@ def patch_hash_tag(tag, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [UpdateHashTagBody] :update_hash_tag_body - # @return [Array<(UpdateHashTagResponse, Integer, Hash)>] UpdateHashTagResponse data, response status code and response headers + # @return [Array<(PatchHashTagResponse, Integer, Hash)>] PatchHashTagResponse data, response status code and response headers def patch_hash_tag_with_http_info(tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.patch_hash_tag ...' @@ -6211,7 +6211,7 @@ def patch_hash_tag_with_http_info(tag, opts = {}) fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.patch_hash_tag" end # resource path - local_var_path = '/api/v1/hash-tags/{tag}'.sub('{' + 'tag' + '}', CGI.escape(tag.to_s)) + local_var_path = '/api/v1/hash-tags/{tag}'.sub('{tag}', CGI.escape(tag.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6234,7 +6234,7 @@ def patch_hash_tag_with_http_info(tag, opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_hash_tag_body']) # return_type - return_type = opts[:debug_return_type] || 'UpdateHashTagResponse' + return_type = opts[:debug_return_type] || 'PatchHashTagResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -6288,7 +6288,7 @@ def patch_page_with_http_info(tenant_id, id, update_api_page_data, opts = {}) fail ArgumentError, "Missing the required parameter 'update_api_page_data' when calling DefaultApi.patch_page" end # resource path - local_var_path = '/api/v1/pages/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/pages/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6367,7 +6367,7 @@ def patch_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts = fail ArgumentError, "Missing the required parameter 'update_apisso_user_data' when calling DefaultApi.patch_sso_user" end # resource path - local_var_path = '/api/v1/sso-users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/sso-users/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6445,7 +6445,7 @@ def put_domain_config_with_http_info(tenant_id, domain_to_update, update_domain_ fail ArgumentError, "Missing the required parameter 'update_domain_config_params' when calling DefaultApi.put_domain_config" end # resource path - local_var_path = '/api/v1/domain-configs/{domainToUpdate}'.sub('{' + 'domainToUpdate' + '}', CGI.escape(domain_to_update.to_s)) + local_var_path = '/api/v1/domain-configs/{domainToUpdate}'.sub('{domainToUpdate}', CGI.escape(domain_to_update.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6524,7 +6524,7 @@ def put_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts = { fail ArgumentError, "Missing the required parameter 'update_apisso_user_data' when calling DefaultApi.put_sso_user" end # resource path - local_var_path = '/api/v1/sso-users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/sso-users/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6574,7 +6574,7 @@ def put_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts = { # @param render_email_template_body [RenderEmailTemplateBody] # @param [Hash] opts the optional parameters # @option opts [String] :locale - # @return [RenderEmailTemplateResponse] + # @return [RenderEmailTemplateResponse1] def render_email_template(tenant_id, render_email_template_body, opts = {}) data, _status_code, _headers = render_email_template_with_http_info(tenant_id, render_email_template_body, opts) data @@ -6584,7 +6584,7 @@ def render_email_template(tenant_id, render_email_template_body, opts = {}) # @param render_email_template_body [RenderEmailTemplateBody] # @param [Hash] opts the optional parameters # @option opts [String] :locale - # @return [Array<(RenderEmailTemplateResponse, Integer, Hash)>] RenderEmailTemplateResponse data, response status code and response headers + # @return [Array<(RenderEmailTemplateResponse1, Integer, Hash)>] RenderEmailTemplateResponse1 data, response status code and response headers def render_email_template_with_http_info(tenant_id, render_email_template_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.render_email_template ...' @@ -6622,7 +6622,7 @@ def render_email_template_with_http_info(tenant_id, render_email_template_body, post_body = opts[:debug_body] || @api_client.object_to_http_body(render_email_template_body) # return_type - return_type = opts[:debug_return_type] || 'RenderEmailTemplateResponse' + return_type = opts[:debug_return_type] || 'RenderEmailTemplateResponse1' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -6648,7 +6648,7 @@ def render_email_template_with_http_info(tenant_id, render_email_template_body, # @param id [String] # @param replace_tenant_package_body [ReplaceTenantPackageBody] # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [ReplaceTenantPackageResponse] def replace_tenant_package(tenant_id, id, replace_tenant_package_body, opts = {}) data, _status_code, _headers = replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_body, opts) data @@ -6658,7 +6658,7 @@ def replace_tenant_package(tenant_id, id, replace_tenant_package_body, opts = {} # @param id [String] # @param replace_tenant_package_body [ReplaceTenantPackageBody] # @param [Hash] opts the optional parameters - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(ReplaceTenantPackageResponse, Integer, Hash)>] ReplaceTenantPackageResponse data, response status code and response headers def replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.replace_tenant_package ...' @@ -6676,7 +6676,7 @@ def replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_ fail ArgumentError, "Missing the required parameter 'replace_tenant_package_body' when calling DefaultApi.replace_tenant_package" end # resource path - local_var_path = '/api/v1/tenant-packages/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tenant-packages/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6699,7 +6699,7 @@ def replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_ post_body = opts[:debug_body] || @api_client.object_to_http_body(replace_tenant_package_body) # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'ReplaceTenantPackageResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -6726,7 +6726,7 @@ def replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_ # @param replace_tenant_user_body [ReplaceTenantUserBody] # @param [Hash] opts the optional parameters # @option opts [String] :update_comments - # @return [APIEmptyResponse] + # @return [ReplaceTenantUserResponse] def replace_tenant_user(tenant_id, id, replace_tenant_user_body, opts = {}) data, _status_code, _headers = replace_tenant_user_with_http_info(tenant_id, id, replace_tenant_user_body, opts) data @@ -6737,7 +6737,7 @@ def replace_tenant_user(tenant_id, id, replace_tenant_user_body, opts = {}) # @param replace_tenant_user_body [ReplaceTenantUserBody] # @param [Hash] opts the optional parameters # @option opts [String] :update_comments - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(ReplaceTenantUserResponse, Integer, Hash)>] ReplaceTenantUserResponse data, response status code and response headers def replace_tenant_user_with_http_info(tenant_id, id, replace_tenant_user_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.replace_tenant_user ...' @@ -6755,7 +6755,7 @@ def replace_tenant_user_with_http_info(tenant_id, id, replace_tenant_user_body, fail ArgumentError, "Missing the required parameter 'replace_tenant_user_body' when calling DefaultApi.replace_tenant_user" end # resource path - local_var_path = '/api/v1/tenant-users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tenant-users/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6779,7 +6779,7 @@ def replace_tenant_user_with_http_info(tenant_id, id, replace_tenant_user_body, post_body = opts[:debug_body] || @api_client.object_to_http_body(replace_tenant_user_body) # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'ReplaceTenantUserResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -6808,7 +6808,7 @@ def replace_tenant_user_with_http_info(tenant_id, id, replace_tenant_user_body, # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :send_emails # @option opts [Boolean] :populate_notifications - # @return [APISaveCommentResponse] + # @return [SaveCommentResponse] def save_comment(tenant_id, create_comment_params, opts = {}) data, _status_code, _headers = save_comment_with_http_info(tenant_id, create_comment_params, opts) data @@ -6821,7 +6821,7 @@ def save_comment(tenant_id, create_comment_params, opts = {}) # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :send_emails # @option opts [Boolean] :populate_notifications - # @return [Array<(APISaveCommentResponse, Integer, Hash)>] APISaveCommentResponse data, response status code and response headers + # @return [Array<(SaveCommentResponse, Integer, Hash)>] SaveCommentResponse data, response status code and response headers def save_comment_with_http_info(tenant_id, create_comment_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.save_comment ...' @@ -6862,7 +6862,7 @@ def save_comment_with_http_info(tenant_id, create_comment_params, opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(create_comment_params) # return_type - return_type = opts[:debug_return_type] || 'APISaveCommentResponse' + return_type = opts[:debug_return_type] || 'SaveCommentResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -6971,7 +6971,7 @@ def save_comments_bulk_with_http_info(tenant_id, create_comment_params, opts = { # @param id [String] # @param from_name [String] # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [SendInviteResponse] def send_invite(tenant_id, id, from_name, opts = {}) data, _status_code, _headers = send_invite_with_http_info(tenant_id, id, from_name, opts) data @@ -6981,7 +6981,7 @@ def send_invite(tenant_id, id, from_name, opts = {}) # @param id [String] # @param from_name [String] # @param [Hash] opts the optional parameters - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(SendInviteResponse, Integer, Hash)>] SendInviteResponse data, response status code and response headers def send_invite_with_http_info(tenant_id, id, from_name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.send_invite ...' @@ -6999,7 +6999,7 @@ def send_invite_with_http_info(tenant_id, id, from_name, opts = {}) fail ArgumentError, "Missing the required parameter 'from_name' when calling DefaultApi.send_invite" end # resource path - local_var_path = '/api/v1/moderators/{id}/send-invite'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/moderators/{id}/send-invite'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7018,7 +7018,7 @@ def send_invite_with_http_info(tenant_id, id, from_name, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'SendInviteResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -7044,7 +7044,7 @@ def send_invite_with_http_info(tenant_id, id, from_name, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [String] :redirect_url - # @return [APIEmptyResponse] + # @return [SendLoginLinkResponse] def send_login_link(tenant_id, id, opts = {}) data, _status_code, _headers = send_login_link_with_http_info(tenant_id, id, opts) data @@ -7054,7 +7054,7 @@ def send_login_link(tenant_id, id, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [String] :redirect_url - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(SendLoginLinkResponse, Integer, Hash)>] SendLoginLinkResponse data, response status code and response headers def send_login_link_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.send_login_link ...' @@ -7068,7 +7068,7 @@ def send_login_link_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.send_login_link" end # resource path - local_var_path = '/api/v1/tenant-users/{id}/send-login-link'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tenant-users/{id}/send-login-link'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7087,7 +7087,7 @@ def send_login_link_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'SendLoginLinkResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -7115,7 +7115,7 @@ def send_login_link_with_http_info(tenant_id, id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [UnblockSuccess] + # @return [UnBlockUserFromCommentResponse] def un_block_user_from_comment(tenant_id, id, un_block_from_comment_params, opts = {}) data, _status_code, _headers = un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comment_params, opts) data @@ -7127,7 +7127,7 @@ def un_block_user_from_comment(tenant_id, id, un_block_from_comment_params, opts # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [Array<(UnblockSuccess, Integer, Hash)>] UnblockSuccess data, response status code and response headers + # @return [Array<(UnBlockUserFromCommentResponse, Integer, Hash)>] UnBlockUserFromCommentResponse data, response status code and response headers def un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comment_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.un_block_user_from_comment ...' @@ -7145,7 +7145,7 @@ def un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comme fail ArgumentError, "Missing the required parameter 'un_block_from_comment_params' when calling DefaultApi.un_block_user_from_comment" end # resource path - local_var_path = '/api/v1/comments/{id}/un-block'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/comments/{id}/un-block'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7170,7 +7170,7 @@ def un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comme post_body = opts[:debug_body] || @api_client.object_to_http_body(un_block_from_comment_params) # return_type - return_type = opts[:debug_return_type] || 'UnblockSuccess' + return_type = opts[:debug_return_type] || 'UnBlockUserFromCommentResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -7197,7 +7197,7 @@ def un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comme # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [FlagCommentResponse] + # @return [UnFlagCommentResponse] def un_flag_comment(tenant_id, id, opts = {}) data, _status_code, _headers = un_flag_comment_with_http_info(tenant_id, id, opts) data @@ -7208,7 +7208,7 @@ def un_flag_comment(tenant_id, id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [Array<(FlagCommentResponse, Integer, Hash)>] FlagCommentResponse data, response status code and response headers + # @return [Array<(UnFlagCommentResponse, Integer, Hash)>] UnFlagCommentResponse data, response status code and response headers def un_flag_comment_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.un_flag_comment ...' @@ -7222,7 +7222,7 @@ def un_flag_comment_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.un_flag_comment" end # resource path - local_var_path = '/api/v1/comments/{id}/un-flag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/comments/{id}/un-flag'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7242,7 +7242,7 @@ def un_flag_comment_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'FlagCommentResponse' + return_type = opts[:debug_return_type] || 'UnFlagCommentResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -7271,7 +7271,7 @@ def un_flag_comment_with_http_info(tenant_id, id, opts = {}) # @option opts [String] :context_user_id # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :is_live - # @return [APIEmptyResponse] + # @return [UpdateCommentResponse] def update_comment(tenant_id, id, updatable_comment_params, opts = {}) data, _status_code, _headers = update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts) data @@ -7284,7 +7284,7 @@ def update_comment(tenant_id, id, updatable_comment_params, opts = {}) # @option opts [String] :context_user_id # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :is_live - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(UpdateCommentResponse, Integer, Hash)>] UpdateCommentResponse data, response status code and response headers def update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_comment ...' @@ -7302,7 +7302,7 @@ def update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts fail ArgumentError, "Missing the required parameter 'updatable_comment_params' when calling DefaultApi.update_comment" end # resource path - local_var_path = '/api/v1/comments/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/comments/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7328,7 +7328,7 @@ def update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts post_body = opts[:debug_body] || @api_client.object_to_http_body(updatable_comment_params) # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'UpdateCommentResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -7354,7 +7354,7 @@ def update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts # @param id [String] # @param update_email_template_body [UpdateEmailTemplateBody] # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [UpdateEmailTemplateResponse] def update_email_template(tenant_id, id, update_email_template_body, opts = {}) data, _status_code, _headers = update_email_template_with_http_info(tenant_id, id, update_email_template_body, opts) data @@ -7364,7 +7364,7 @@ def update_email_template(tenant_id, id, update_email_template_body, opts = {}) # @param id [String] # @param update_email_template_body [UpdateEmailTemplateBody] # @param [Hash] opts the optional parameters - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(UpdateEmailTemplateResponse, Integer, Hash)>] UpdateEmailTemplateResponse data, response status code and response headers def update_email_template_with_http_info(tenant_id, id, update_email_template_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_email_template ...' @@ -7382,7 +7382,7 @@ def update_email_template_with_http_info(tenant_id, id, update_email_template_bo fail ArgumentError, "Missing the required parameter 'update_email_template_body' when calling DefaultApi.update_email_template" end # resource path - local_var_path = '/api/v1/email-templates/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/email-templates/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7405,7 +7405,7 @@ def update_email_template_with_http_info(tenant_id, id, update_email_template_bo post_body = opts[:debug_body] || @api_client.object_to_http_body(update_email_template_body) # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'UpdateEmailTemplateResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -7431,7 +7431,7 @@ def update_email_template_with_http_info(tenant_id, id, update_email_template_bo # @param id [String] # @param feed_post [FeedPost] # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [UpdateFeedPostResponse] def update_feed_post(tenant_id, id, feed_post, opts = {}) data, _status_code, _headers = update_feed_post_with_http_info(tenant_id, id, feed_post, opts) data @@ -7441,7 +7441,7 @@ def update_feed_post(tenant_id, id, feed_post, opts = {}) # @param id [String] # @param feed_post [FeedPost] # @param [Hash] opts the optional parameters - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(UpdateFeedPostResponse, Integer, Hash)>] UpdateFeedPostResponse data, response status code and response headers def update_feed_post_with_http_info(tenant_id, id, feed_post, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_feed_post ...' @@ -7459,7 +7459,7 @@ def update_feed_post_with_http_info(tenant_id, id, feed_post, opts = {}) fail ArgumentError, "Missing the required parameter 'feed_post' when calling DefaultApi.update_feed_post" end # resource path - local_var_path = '/api/v1/feed-posts/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/feed-posts/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7482,7 +7482,7 @@ def update_feed_post_with_http_info(tenant_id, id, feed_post, opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(feed_post) # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'UpdateFeedPostResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -7508,7 +7508,7 @@ def update_feed_post_with_http_info(tenant_id, id, feed_post, opts = {}) # @param id [String] # @param update_moderator_body [UpdateModeratorBody] # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [UpdateModeratorResponse] def update_moderator(tenant_id, id, update_moderator_body, opts = {}) data, _status_code, _headers = update_moderator_with_http_info(tenant_id, id, update_moderator_body, opts) data @@ -7518,7 +7518,7 @@ def update_moderator(tenant_id, id, update_moderator_body, opts = {}) # @param id [String] # @param update_moderator_body [UpdateModeratorBody] # @param [Hash] opts the optional parameters - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(UpdateModeratorResponse, Integer, Hash)>] UpdateModeratorResponse data, response status code and response headers def update_moderator_with_http_info(tenant_id, id, update_moderator_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_moderator ...' @@ -7536,7 +7536,7 @@ def update_moderator_with_http_info(tenant_id, id, update_moderator_body, opts = fail ArgumentError, "Missing the required parameter 'update_moderator_body' when calling DefaultApi.update_moderator" end # resource path - local_var_path = '/api/v1/moderators/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/moderators/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7559,7 +7559,7 @@ def update_moderator_with_http_info(tenant_id, id, update_moderator_body, opts = post_body = opts[:debug_body] || @api_client.object_to_http_body(update_moderator_body) # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'UpdateModeratorResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -7586,7 +7586,7 @@ def update_moderator_with_http_info(tenant_id, id, update_moderator_body, opts = # @param update_notification_body [UpdateNotificationBody] # @param [Hash] opts the optional parameters # @option opts [String] :user_id - # @return [APIEmptyResponse] + # @return [UpdateNotificationResponse] def update_notification(tenant_id, id, update_notification_body, opts = {}) data, _status_code, _headers = update_notification_with_http_info(tenant_id, id, update_notification_body, opts) data @@ -7597,7 +7597,7 @@ def update_notification(tenant_id, id, update_notification_body, opts = {}) # @param update_notification_body [UpdateNotificationBody] # @param [Hash] opts the optional parameters # @option opts [String] :user_id - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(UpdateNotificationResponse, Integer, Hash)>] UpdateNotificationResponse data, response status code and response headers def update_notification_with_http_info(tenant_id, id, update_notification_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_notification ...' @@ -7615,7 +7615,7 @@ def update_notification_with_http_info(tenant_id, id, update_notification_body, fail ArgumentError, "Missing the required parameter 'update_notification_body' when calling DefaultApi.update_notification" end # resource path - local_var_path = '/api/v1/notifications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/notifications/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7639,7 +7639,7 @@ def update_notification_with_http_info(tenant_id, id, update_notification_body, post_body = opts[:debug_body] || @api_client.object_to_http_body(update_notification_body) # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'UpdateNotificationResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -7665,7 +7665,7 @@ def update_notification_with_http_info(tenant_id, id, update_notification_body, # @param id [String] # @param update_question_config_body [UpdateQuestionConfigBody] # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [UpdateQuestionConfigResponse] def update_question_config(tenant_id, id, update_question_config_body, opts = {}) data, _status_code, _headers = update_question_config_with_http_info(tenant_id, id, update_question_config_body, opts) data @@ -7675,7 +7675,7 @@ def update_question_config(tenant_id, id, update_question_config_body, opts = {} # @param id [String] # @param update_question_config_body [UpdateQuestionConfigBody] # @param [Hash] opts the optional parameters - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(UpdateQuestionConfigResponse, Integer, Hash)>] UpdateQuestionConfigResponse data, response status code and response headers def update_question_config_with_http_info(tenant_id, id, update_question_config_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_question_config ...' @@ -7693,7 +7693,7 @@ def update_question_config_with_http_info(tenant_id, id, update_question_config_ fail ArgumentError, "Missing the required parameter 'update_question_config_body' when calling DefaultApi.update_question_config" end # resource path - local_var_path = '/api/v1/question-configs/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/question-configs/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7716,7 +7716,7 @@ def update_question_config_with_http_info(tenant_id, id, update_question_config_ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_question_config_body) # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'UpdateQuestionConfigResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -7742,7 +7742,7 @@ def update_question_config_with_http_info(tenant_id, id, update_question_config_ # @param id [String] # @param update_question_result_body [UpdateQuestionResultBody] # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [UpdateQuestionResultResponse] def update_question_result(tenant_id, id, update_question_result_body, opts = {}) data, _status_code, _headers = update_question_result_with_http_info(tenant_id, id, update_question_result_body, opts) data @@ -7752,7 +7752,7 @@ def update_question_result(tenant_id, id, update_question_result_body, opts = {} # @param id [String] # @param update_question_result_body [UpdateQuestionResultBody] # @param [Hash] opts the optional parameters - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(UpdateQuestionResultResponse, Integer, Hash)>] UpdateQuestionResultResponse data, response status code and response headers def update_question_result_with_http_info(tenant_id, id, update_question_result_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_question_result ...' @@ -7770,7 +7770,7 @@ def update_question_result_with_http_info(tenant_id, id, update_question_result_ fail ArgumentError, "Missing the required parameter 'update_question_result_body' when calling DefaultApi.update_question_result" end # resource path - local_var_path = '/api/v1/question-results/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/question-results/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7793,7 +7793,7 @@ def update_question_result_with_http_info(tenant_id, id, update_question_result_ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_question_result_body) # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'UpdateQuestionResultResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -7849,7 +7849,7 @@ def update_subscription_with_http_info(tenant_id, id, update_api_user_subscripti fail ArgumentError, "Missing the required parameter 'update_api_user_subscription_data' when calling DefaultApi.update_subscription" end # resource path - local_var_path = '/api/v1/subscriptions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/subscriptions/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7899,7 +7899,7 @@ def update_subscription_with_http_info(tenant_id, id, update_api_user_subscripti # @param id [String] # @param update_tenant_body [UpdateTenantBody] # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [UpdateTenantResponse] def update_tenant(tenant_id, id, update_tenant_body, opts = {}) data, _status_code, _headers = update_tenant_with_http_info(tenant_id, id, update_tenant_body, opts) data @@ -7909,7 +7909,7 @@ def update_tenant(tenant_id, id, update_tenant_body, opts = {}) # @param id [String] # @param update_tenant_body [UpdateTenantBody] # @param [Hash] opts the optional parameters - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(UpdateTenantResponse, Integer, Hash)>] UpdateTenantResponse data, response status code and response headers def update_tenant_with_http_info(tenant_id, id, update_tenant_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_tenant ...' @@ -7927,7 +7927,7 @@ def update_tenant_with_http_info(tenant_id, id, update_tenant_body, opts = {}) fail ArgumentError, "Missing the required parameter 'update_tenant_body' when calling DefaultApi.update_tenant" end # resource path - local_var_path = '/api/v1/tenants/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tenants/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7950,7 +7950,7 @@ def update_tenant_with_http_info(tenant_id, id, update_tenant_body, opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(update_tenant_body) # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'UpdateTenantResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -7976,7 +7976,7 @@ def update_tenant_with_http_info(tenant_id, id, update_tenant_body, opts = {}) # @param id [String] # @param update_tenant_package_body [UpdateTenantPackageBody] # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [UpdateTenantPackageResponse] def update_tenant_package(tenant_id, id, update_tenant_package_body, opts = {}) data, _status_code, _headers = update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_body, opts) data @@ -7986,7 +7986,7 @@ def update_tenant_package(tenant_id, id, update_tenant_package_body, opts = {}) # @param id [String] # @param update_tenant_package_body [UpdateTenantPackageBody] # @param [Hash] opts the optional parameters - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(UpdateTenantPackageResponse, Integer, Hash)>] UpdateTenantPackageResponse data, response status code and response headers def update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_tenant_package ...' @@ -8004,7 +8004,7 @@ def update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_bo fail ArgumentError, "Missing the required parameter 'update_tenant_package_body' when calling DefaultApi.update_tenant_package" end # resource path - local_var_path = '/api/v1/tenant-packages/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tenant-packages/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -8027,7 +8027,7 @@ def update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_bo post_body = opts[:debug_body] || @api_client.object_to_http_body(update_tenant_package_body) # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'UpdateTenantPackageResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -8054,7 +8054,7 @@ def update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_bo # @param update_tenant_user_body [UpdateTenantUserBody] # @param [Hash] opts the optional parameters # @option opts [String] :update_comments - # @return [APIEmptyResponse] + # @return [UpdateTenantUserResponse] def update_tenant_user(tenant_id, id, update_tenant_user_body, opts = {}) data, _status_code, _headers = update_tenant_user_with_http_info(tenant_id, id, update_tenant_user_body, opts) data @@ -8065,7 +8065,7 @@ def update_tenant_user(tenant_id, id, update_tenant_user_body, opts = {}) # @param update_tenant_user_body [UpdateTenantUserBody] # @param [Hash] opts the optional parameters # @option opts [String] :update_comments - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(UpdateTenantUserResponse, Integer, Hash)>] UpdateTenantUserResponse data, response status code and response headers def update_tenant_user_with_http_info(tenant_id, id, update_tenant_user_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_tenant_user ...' @@ -8083,7 +8083,7 @@ def update_tenant_user_with_http_info(tenant_id, id, update_tenant_user_body, op fail ArgumentError, "Missing the required parameter 'update_tenant_user_body' when calling DefaultApi.update_tenant_user" end # resource path - local_var_path = '/api/v1/tenant-users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tenant-users/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -8107,7 +8107,7 @@ def update_tenant_user_with_http_info(tenant_id, id, update_tenant_user_body, op post_body = opts[:debug_body] || @api_client.object_to_http_body(update_tenant_user_body) # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'UpdateTenantUserResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -8133,7 +8133,7 @@ def update_tenant_user_with_http_info(tenant_id, id, update_tenant_user_body, op # @param id [String] # @param update_user_badge_params [UpdateUserBadgeParams] # @param [Hash] opts the optional parameters - # @return [APIEmptySuccessResponse] + # @return [UpdateUserBadgeResponse] def update_user_badge(tenant_id, id, update_user_badge_params, opts = {}) data, _status_code, _headers = update_user_badge_with_http_info(tenant_id, id, update_user_badge_params, opts) data @@ -8143,7 +8143,7 @@ def update_user_badge(tenant_id, id, update_user_badge_params, opts = {}) # @param id [String] # @param update_user_badge_params [UpdateUserBadgeParams] # @param [Hash] opts the optional parameters - # @return [Array<(APIEmptySuccessResponse, Integer, Hash)>] APIEmptySuccessResponse data, response status code and response headers + # @return [Array<(UpdateUserBadgeResponse, Integer, Hash)>] UpdateUserBadgeResponse data, response status code and response headers def update_user_badge_with_http_info(tenant_id, id, update_user_badge_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_user_badge ...' @@ -8161,7 +8161,7 @@ def update_user_badge_with_http_info(tenant_id, id, update_user_badge_params, op fail ArgumentError, "Missing the required parameter 'update_user_badge_params' when calling DefaultApi.update_user_badge" end # resource path - local_var_path = '/api/v1/user-badges/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/user-badges/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -8184,7 +8184,7 @@ def update_user_badge_with_http_info(tenant_id, id, update_user_badge_params, op post_body = opts[:debug_body] || @api_client.object_to_http_body(update_user_badge_params) # return_type - return_type = opts[:debug_return_type] || 'APIEmptySuccessResponse' + return_type = opts[:debug_return_type] || 'UpdateUserBadgeResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] diff --git a/client/lib/fastcomments-client/api/moderation_api.rb b/client/lib/fastcomments-client/api/moderation_api.rb index 0c0126d..af6d702 100644 --- a/client/lib/fastcomments-client/api/moderation_api.rb +++ b/client/lib/fastcomments-client/api/moderation_api.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -22,8 +22,10 @@ def initialize(api_client = ApiClient.default) # @param comment_id [String] # @param vote_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [VoteDeleteResponse] + # @return [DeleteModerationVoteResponse] def delete_moderation_vote(comment_id, vote_id, opts = {}) data, _status_code, _headers = delete_moderation_vote_with_http_info(comment_id, vote_id, opts) data @@ -32,8 +34,10 @@ def delete_moderation_vote(comment_id, vote_id, opts = {}) # @param comment_id [String] # @param vote_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(VoteDeleteResponse, Integer, Hash)>] VoteDeleteResponse data, response status code and response headers + # @return [Array<(DeleteModerationVoteResponse, Integer, Hash)>] DeleteModerationVoteResponse data, response status code and response headers def delete_moderation_vote_with_http_info(comment_id, vote_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.delete_moderation_vote ...' @@ -47,10 +51,12 @@ def delete_moderation_vote_with_http_info(comment_id, vote_id, opts = {}) fail ArgumentError, "Missing the required parameter 'vote_id' when calling ModerationApi.delete_moderation_vote" end # resource path - local_var_path = '/auth/my-account/moderate-comments/vote/{commentId}/{voteId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)).sub('{' + 'voteId' + '}', CGI.escape(vote_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/vote/{commentId}/{voteId}'.sub('{commentId}', CGI.escape(comment_id.to_s)).sub('{voteId}', CGI.escape(vote_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -65,7 +71,7 @@ def delete_moderation_vote_with_http_info(comment_id, vote_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'VoteDeleteResponse' + return_type = opts[:debug_return_type] || 'DeleteModerationVoteResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -96,8 +102,9 @@ def delete_moderation_vote_with_http_info(comment_id, vote_id, opts = {}) # @option opts [String] :search_filters # @option opts [String] :sorts # @option opts [Boolean] :demo + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationAPIGetCommentsResponse] + # @return [GetApiCommentsResponse] def get_api_comments(opts = {}) data, _status_code, _headers = get_api_comments_with_http_info(opts) data @@ -112,8 +119,9 @@ def get_api_comments(opts = {}) # @option opts [String] :search_filters # @option opts [String] :sorts # @option opts [Boolean] :demo + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(ModerationAPIGetCommentsResponse, Integer, Hash)>] ModerationAPIGetCommentsResponse data, response status code and response headers + # @return [Array<(GetApiCommentsResponse, Integer, Hash)>] GetApiCommentsResponse data, response status code and response headers def get_api_comments_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_api_comments ...' @@ -131,6 +139,7 @@ def get_api_comments_with_http_info(opts = {}) query_params[:'searchFilters'] = opts[:'search_filters'] if !opts[:'search_filters'].nil? query_params[:'sorts'] = opts[:'sorts'] if !opts[:'sorts'].nil? query_params[:'demo'] = opts[:'demo'] if !opts[:'demo'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -145,7 +154,7 @@ def get_api_comments_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'ModerationAPIGetCommentsResponse' + return_type = opts[:debug_return_type] || 'GetApiCommentsResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -169,8 +178,9 @@ def get_api_comments_with_http_info(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :batch_job_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationExportStatusResponse] + # @return [GetApiExportStatusResponse] def get_api_export_status(opts = {}) data, _status_code, _headers = get_api_export_status_with_http_info(opts) data @@ -178,8 +188,9 @@ def get_api_export_status(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :batch_job_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(ModerationExportStatusResponse, Integer, Hash)>] ModerationExportStatusResponse data, response status code and response headers + # @return [Array<(GetApiExportStatusResponse, Integer, Hash)>] GetApiExportStatusResponse data, response status code and response headers def get_api_export_status_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_api_export_status ...' @@ -190,6 +201,7 @@ def get_api_export_status_with_http_info(opts = {}) # query parameters query_params = opts[:query_params] || {} query_params[:'batchJobId'] = opts[:'batch_job_id'] if !opts[:'batch_job_id'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -204,7 +216,7 @@ def get_api_export_status_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'ModerationExportStatusResponse' + return_type = opts[:debug_return_type] || 'GetApiExportStatusResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -233,8 +245,9 @@ def get_api_export_status_with_http_info(opts = {}) # @option opts [String] :search_filters # @option opts [String] :after_id # @option opts [Boolean] :demo + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationAPIGetCommentIdsResponse] + # @return [GetApiIdsResponse] def get_api_ids(opts = {}) data, _status_code, _headers = get_api_ids_with_http_info(opts) data @@ -247,8 +260,9 @@ def get_api_ids(opts = {}) # @option opts [String] :search_filters # @option opts [String] :after_id # @option opts [Boolean] :demo + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(ModerationAPIGetCommentIdsResponse, Integer, Hash)>] ModerationAPIGetCommentIdsResponse data, response status code and response headers + # @return [Array<(GetApiIdsResponse, Integer, Hash)>] GetApiIdsResponse data, response status code and response headers def get_api_ids_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_api_ids ...' @@ -264,6 +278,7 @@ def get_api_ids_with_http_info(opts = {}) query_params[:'searchFilters'] = opts[:'search_filters'] if !opts[:'search_filters'].nil? query_params[:'afterId'] = opts[:'after_id'] if !opts[:'after_id'].nil? query_params[:'demo'] = opts[:'demo'] if !opts[:'demo'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -278,7 +293,7 @@ def get_api_ids_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'ModerationAPIGetCommentIdsResponse' + return_type = opts[:debug_return_type] || 'GetApiIdsResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -302,8 +317,9 @@ def get_api_ids_with_http_info(opts = {}) # @param comment_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetBannedUsersFromCommentResponse] + # @return [GetBanUsersFromCommentResponse] def get_ban_users_from_comment(comment_id, opts = {}) data, _status_code, _headers = get_ban_users_from_comment_with_http_info(comment_id, opts) data @@ -311,8 +327,9 @@ def get_ban_users_from_comment(comment_id, opts = {}) # @param comment_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetBannedUsersFromCommentResponse, Integer, Hash)>] GetBannedUsersFromCommentResponse data, response status code and response headers + # @return [Array<(GetBanUsersFromCommentResponse, Integer, Hash)>] GetBanUsersFromCommentResponse data, response status code and response headers def get_ban_users_from_comment_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_ban_users_from_comment ...' @@ -322,10 +339,11 @@ def get_ban_users_from_comment_with_http_info(comment_id, opts = {}) fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_ban_users_from_comment" end # resource path - local_var_path = '/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -340,7 +358,7 @@ def get_ban_users_from_comment_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetBannedUsersFromCommentResponse' + return_type = opts[:debug_return_type] || 'GetBanUsersFromCommentResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -364,8 +382,9 @@ def get_ban_users_from_comment_with_http_info(comment_id, opts = {}) # @param comment_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetCommentBanStatusResponse] + # @return [GetCommentBanStatusResponse1] def get_comment_ban_status(comment_id, opts = {}) data, _status_code, _headers = get_comment_ban_status_with_http_info(comment_id, opts) data @@ -373,8 +392,9 @@ def get_comment_ban_status(comment_id, opts = {}) # @param comment_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetCommentBanStatusResponse, Integer, Hash)>] GetCommentBanStatusResponse data, response status code and response headers + # @return [Array<(GetCommentBanStatusResponse1, Integer, Hash)>] GetCommentBanStatusResponse1 data, response status code and response headers def get_comment_ban_status_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_comment_ban_status ...' @@ -384,10 +404,11 @@ def get_comment_ban_status_with_http_info(comment_id, opts = {}) fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_comment_ban_status" end # resource path - local_var_path = '/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -402,7 +423,7 @@ def get_comment_ban_status_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetCommentBanStatusResponse' + return_type = opts[:debug_return_type] || 'GetCommentBanStatusResponse1' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -426,8 +447,9 @@ def get_comment_ban_status_with_http_info(comment_id, opts = {}) # @param comment_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationAPIChildCommentsResponse] + # @return [GetCommentChildrenResponse] def get_comment_children(comment_id, opts = {}) data, _status_code, _headers = get_comment_children_with_http_info(comment_id, opts) data @@ -435,8 +457,9 @@ def get_comment_children(comment_id, opts = {}) # @param comment_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(ModerationAPIChildCommentsResponse, Integer, Hash)>] ModerationAPIChildCommentsResponse data, response status code and response headers + # @return [Array<(GetCommentChildrenResponse, Integer, Hash)>] GetCommentChildrenResponse data, response status code and response headers def get_comment_children_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_comment_children ...' @@ -446,10 +469,11 @@ def get_comment_children_with_http_info(comment_id, opts = {}) fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_comment_children" end # resource path - local_var_path = '/auth/my-account/moderate-comments/comment-children/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/comment-children/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -464,7 +488,7 @@ def get_comment_children_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'ModerationAPIChildCommentsResponse' + return_type = opts[:debug_return_type] || 'GetCommentChildrenResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -492,8 +516,9 @@ def get_comment_children_with_http_info(comment_id, opts = {}) # @option opts [String] :filter # @option opts [String] :search_filters # @option opts [Boolean] :demo + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationAPICountCommentsResponse] + # @return [GetCountResponse] def get_count(opts = {}) data, _status_code, _headers = get_count_with_http_info(opts) data @@ -505,8 +530,9 @@ def get_count(opts = {}) # @option opts [String] :filter # @option opts [String] :search_filters # @option opts [Boolean] :demo + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(ModerationAPICountCommentsResponse, Integer, Hash)>] ModerationAPICountCommentsResponse data, response status code and response headers + # @return [Array<(GetCountResponse, Integer, Hash)>] GetCountResponse data, response status code and response headers def get_count_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_count ...' @@ -521,6 +547,7 @@ def get_count_with_http_info(opts = {}) query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'searchFilters'] = opts[:'search_filters'] if !opts[:'search_filters'].nil? query_params[:'demo'] = opts[:'demo'] if !opts[:'demo'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -535,7 +562,7 @@ def get_count_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'ModerationAPICountCommentsResponse' + return_type = opts[:debug_return_type] || 'GetCountResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -558,16 +585,18 @@ def get_count_with_http_info(opts = {}) end # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetBannedUsersCountResponse] + # @return [GetCountsResponse] def get_counts(opts = {}) data, _status_code, _headers = get_counts_with_http_info(opts) data end # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetBannedUsersCountResponse, Integer, Hash)>] GetBannedUsersCountResponse data, response status code and response headers + # @return [Array<(GetCountsResponse, Integer, Hash)>] GetCountsResponse data, response status code and response headers def get_counts_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_counts ...' @@ -577,6 +606,7 @@ def get_counts_with_http_info(opts = {}) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -591,7 +621,7 @@ def get_counts_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetBannedUsersCountResponse' + return_type = opts[:debug_return_type] || 'GetCountsResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -615,8 +645,9 @@ def get_counts_with_http_info(opts = {}) # @param comment_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationAPIGetLogsResponse] + # @return [GetLogsResponse] def get_logs(comment_id, opts = {}) data, _status_code, _headers = get_logs_with_http_info(comment_id, opts) data @@ -624,8 +655,9 @@ def get_logs(comment_id, opts = {}) # @param comment_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(ModerationAPIGetLogsResponse, Integer, Hash)>] ModerationAPIGetLogsResponse data, response status code and response headers + # @return [Array<(GetLogsResponse, Integer, Hash)>] GetLogsResponse data, response status code and response headers def get_logs_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_logs ...' @@ -635,10 +667,11 @@ def get_logs_with_http_info(comment_id, opts = {}) fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_logs" end # resource path - local_var_path = '/auth/my-account/moderate-comments/logs/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/logs/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -653,7 +686,7 @@ def get_logs_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'ModerationAPIGetLogsResponse' + return_type = opts[:debug_return_type] || 'GetLogsResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -676,16 +709,18 @@ def get_logs_with_http_info(comment_id, opts = {}) end # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetTenantManualBadgesResponse] + # @return [GetManualBadgesResponse] def get_manual_badges(opts = {}) data, _status_code, _headers = get_manual_badges_with_http_info(opts) data end # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetTenantManualBadgesResponse, Integer, Hash)>] GetTenantManualBadgesResponse data, response status code and response headers + # @return [Array<(GetManualBadgesResponse, Integer, Hash)>] GetManualBadgesResponse data, response status code and response headers def get_manual_badges_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_manual_badges ...' @@ -695,6 +730,7 @@ def get_manual_badges_with_http_info(opts = {}) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -709,7 +745,7 @@ def get_manual_badges_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetTenantManualBadgesResponse' + return_type = opts[:debug_return_type] || 'GetManualBadgesResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -734,8 +770,9 @@ def get_manual_badges_with_http_info(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :badges_user_id # @option opts [String] :comment_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetUserManualBadgesResponse] + # @return [GetManualBadgesForUserResponse] def get_manual_badges_for_user(opts = {}) data, _status_code, _headers = get_manual_badges_for_user_with_http_info(opts) data @@ -744,8 +781,9 @@ def get_manual_badges_for_user(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :badges_user_id # @option opts [String] :comment_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetUserManualBadgesResponse, Integer, Hash)>] GetUserManualBadgesResponse data, response status code and response headers + # @return [Array<(GetManualBadgesForUserResponse, Integer, Hash)>] GetManualBadgesForUserResponse data, response status code and response headers def get_manual_badges_for_user_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_manual_badges_for_user ...' @@ -757,6 +795,7 @@ def get_manual_badges_for_user_with_http_info(opts = {}) query_params = opts[:query_params] || {} query_params[:'badgesUserId'] = opts[:'badges_user_id'] if !opts[:'badges_user_id'].nil? query_params[:'commentId'] = opts[:'comment_id'] if !opts[:'comment_id'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -771,7 +810,7 @@ def get_manual_badges_for_user_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetUserManualBadgesResponse' + return_type = opts[:debug_return_type] || 'GetManualBadgesForUserResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -797,8 +836,9 @@ def get_manual_badges_for_user_with_http_info(opts = {}) # @param [Hash] opts the optional parameters # @option opts [Boolean] :include_email # @option opts [Boolean] :include_ip + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationAPICommentResponse] + # @return [GetModerationCommentResponse] def get_moderation_comment(comment_id, opts = {}) data, _status_code, _headers = get_moderation_comment_with_http_info(comment_id, opts) data @@ -808,8 +848,9 @@ def get_moderation_comment(comment_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [Boolean] :include_email # @option opts [Boolean] :include_ip + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(ModerationAPICommentResponse, Integer, Hash)>] ModerationAPICommentResponse data, response status code and response headers + # @return [Array<(GetModerationCommentResponse, Integer, Hash)>] GetModerationCommentResponse data, response status code and response headers def get_moderation_comment_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_moderation_comment ...' @@ -819,12 +860,13 @@ def get_moderation_comment_with_http_info(comment_id, opts = {}) fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_moderation_comment" end # resource path - local_var_path = '/auth/my-account/moderate-comments/comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'includeEmail'] = opts[:'include_email'] if !opts[:'include_email'].nil? query_params[:'includeIP'] = opts[:'include_ip'] if !opts[:'include_ip'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -839,7 +881,7 @@ def get_moderation_comment_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'ModerationAPICommentResponse' + return_type = opts[:debug_return_type] || 'GetModerationCommentResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -863,8 +905,9 @@ def get_moderation_comment_with_http_info(comment_id, opts = {}) # @param comment_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetCommentTextResponse] + # @return [GetModerationCommentTextResponse] def get_moderation_comment_text(comment_id, opts = {}) data, _status_code, _headers = get_moderation_comment_text_with_http_info(comment_id, opts) data @@ -872,8 +915,9 @@ def get_moderation_comment_text(comment_id, opts = {}) # @param comment_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetCommentTextResponse, Integer, Hash)>] GetCommentTextResponse data, response status code and response headers + # @return [Array<(GetModerationCommentTextResponse, Integer, Hash)>] GetModerationCommentTextResponse data, response status code and response headers def get_moderation_comment_text_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_moderation_comment_text ...' @@ -883,10 +927,11 @@ def get_moderation_comment_text_with_http_info(comment_id, opts = {}) fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_moderation_comment_text" end # resource path - local_var_path = '/auth/my-account/moderate-comments/get-comment-text/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/get-comment-text/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -901,7 +946,7 @@ def get_moderation_comment_text_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetCommentTextResponse' + return_type = opts[:debug_return_type] || 'GetModerationCommentTextResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -928,8 +973,9 @@ def get_moderation_comment_text_with_http_info(comment_id, opts = {}) # @option opts [Boolean] :include_by_user_id_and_email # @option opts [Boolean] :include_by_ip # @option opts [Boolean] :include_by_email_domain + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PreBanSummary] + # @return [GetPreBanSummaryResponse] def get_pre_ban_summary(comment_id, opts = {}) data, _status_code, _headers = get_pre_ban_summary_with_http_info(comment_id, opts) data @@ -940,8 +986,9 @@ def get_pre_ban_summary(comment_id, opts = {}) # @option opts [Boolean] :include_by_user_id_and_email # @option opts [Boolean] :include_by_ip # @option opts [Boolean] :include_by_email_domain + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(PreBanSummary, Integer, Hash)>] PreBanSummary data, response status code and response headers + # @return [Array<(GetPreBanSummaryResponse, Integer, Hash)>] GetPreBanSummaryResponse data, response status code and response headers def get_pre_ban_summary_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_pre_ban_summary ...' @@ -951,13 +998,14 @@ def get_pre_ban_summary_with_http_info(comment_id, opts = {}) fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_pre_ban_summary" end # resource path - local_var_path = '/auth/my-account/moderate-comments/pre-ban-summary/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/pre-ban-summary/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'includeByUserIdAndEmail'] = opts[:'include_by_user_id_and_email'] if !opts[:'include_by_user_id_and_email'].nil? query_params[:'includeByIP'] = opts[:'include_by_ip'] if !opts[:'include_by_ip'].nil? query_params[:'includeByEmailDomain'] = opts[:'include_by_email_domain'] if !opts[:'include_by_email_domain'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -972,7 +1020,7 @@ def get_pre_ban_summary_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'PreBanSummary' + return_type = opts[:debug_return_type] || 'GetPreBanSummaryResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -998,8 +1046,9 @@ def get_pre_ban_summary_with_http_info(comment_id, opts = {}) # @option opts [String] :value # @option opts [String] :filters # @option opts [String] :search_filters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationCommentSearchResponse] + # @return [GetSearchCommentsSummaryResponse] def get_search_comments_summary(opts = {}) data, _status_code, _headers = get_search_comments_summary_with_http_info(opts) data @@ -1009,8 +1058,9 @@ def get_search_comments_summary(opts = {}) # @option opts [String] :value # @option opts [String] :filters # @option opts [String] :search_filters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(ModerationCommentSearchResponse, Integer, Hash)>] ModerationCommentSearchResponse data, response status code and response headers + # @return [Array<(GetSearchCommentsSummaryResponse, Integer, Hash)>] GetSearchCommentsSummaryResponse data, response status code and response headers def get_search_comments_summary_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_comments_summary ...' @@ -1023,6 +1073,7 @@ def get_search_comments_summary_with_http_info(opts = {}) query_params[:'value'] = opts[:'value'] if !opts[:'value'].nil? query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil? query_params[:'searchFilters'] = opts[:'search_filters'] if !opts[:'search_filters'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1037,7 +1088,7 @@ def get_search_comments_summary_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'ModerationCommentSearchResponse' + return_type = opts[:debug_return_type] || 'GetSearchCommentsSummaryResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1061,8 +1112,9 @@ def get_search_comments_summary_with_http_info(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :value + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationPageSearchResponse] + # @return [GetSearchPagesResponse] def get_search_pages(opts = {}) data, _status_code, _headers = get_search_pages_with_http_info(opts) data @@ -1070,8 +1122,9 @@ def get_search_pages(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :value + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(ModerationPageSearchResponse, Integer, Hash)>] ModerationPageSearchResponse data, response status code and response headers + # @return [Array<(GetSearchPagesResponse, Integer, Hash)>] GetSearchPagesResponse data, response status code and response headers def get_search_pages_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_pages ...' @@ -1082,6 +1135,7 @@ def get_search_pages_with_http_info(opts = {}) # query parameters query_params = opts[:query_params] || {} query_params[:'value'] = opts[:'value'] if !opts[:'value'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1096,7 +1150,7 @@ def get_search_pages_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'ModerationPageSearchResponse' + return_type = opts[:debug_return_type] || 'GetSearchPagesResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1120,8 +1174,9 @@ def get_search_pages_with_http_info(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :value + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationSiteSearchResponse] + # @return [GetSearchSitesResponse] def get_search_sites(opts = {}) data, _status_code, _headers = get_search_sites_with_http_info(opts) data @@ -1129,8 +1184,9 @@ def get_search_sites(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :value + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(ModerationSiteSearchResponse, Integer, Hash)>] ModerationSiteSearchResponse data, response status code and response headers + # @return [Array<(GetSearchSitesResponse, Integer, Hash)>] GetSearchSitesResponse data, response status code and response headers def get_search_sites_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_sites ...' @@ -1141,6 +1197,7 @@ def get_search_sites_with_http_info(opts = {}) # query parameters query_params = opts[:query_params] || {} query_params[:'value'] = opts[:'value'] if !opts[:'value'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1155,7 +1212,7 @@ def get_search_sites_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'ModerationSiteSearchResponse' + return_type = opts[:debug_return_type] || 'GetSearchSitesResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1179,8 +1236,9 @@ def get_search_sites_with_http_info(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :text_search + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationSuggestResponse] + # @return [GetSearchSuggestResponse] def get_search_suggest(opts = {}) data, _status_code, _headers = get_search_suggest_with_http_info(opts) data @@ -1188,8 +1246,9 @@ def get_search_suggest(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :text_search + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(ModerationSuggestResponse, Integer, Hash)>] ModerationSuggestResponse data, response status code and response headers + # @return [Array<(GetSearchSuggestResponse, Integer, Hash)>] GetSearchSuggestResponse data, response status code and response headers def get_search_suggest_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_suggest ...' @@ -1200,6 +1259,7 @@ def get_search_suggest_with_http_info(opts = {}) # query parameters query_params = opts[:query_params] || {} query_params[:'text-search'] = opts[:'text_search'] if !opts[:'text_search'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1214,7 +1274,7 @@ def get_search_suggest_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'ModerationSuggestResponse' + return_type = opts[:debug_return_type] || 'GetSearchSuggestResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1238,8 +1298,9 @@ def get_search_suggest_with_http_info(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :value + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationUserSearchResponse] + # @return [GetSearchUsersResponse] def get_search_users(opts = {}) data, _status_code, _headers = get_search_users_with_http_info(opts) data @@ -1247,8 +1308,9 @@ def get_search_users(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :value + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(ModerationUserSearchResponse, Integer, Hash)>] ModerationUserSearchResponse data, response status code and response headers + # @return [Array<(GetSearchUsersResponse, Integer, Hash)>] GetSearchUsersResponse data, response status code and response headers def get_search_users_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_users ...' @@ -1259,6 +1321,7 @@ def get_search_users_with_http_info(opts = {}) # query parameters query_params = opts[:query_params] || {} query_params[:'value'] = opts[:'value'] if !opts[:'value'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1273,7 +1336,7 @@ def get_search_users_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'ModerationUserSearchResponse' + return_type = opts[:debug_return_type] || 'GetSearchUsersResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1297,8 +1360,9 @@ def get_search_users_with_http_info(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :user_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetUserTrustFactorResponse] + # @return [GetTrustFactorResponse] def get_trust_factor(opts = {}) data, _status_code, _headers = get_trust_factor_with_http_info(opts) data @@ -1306,8 +1370,9 @@ def get_trust_factor(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :user_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetUserTrustFactorResponse, Integer, Hash)>] GetUserTrustFactorResponse data, response status code and response headers + # @return [Array<(GetTrustFactorResponse, Integer, Hash)>] GetTrustFactorResponse data, response status code and response headers def get_trust_factor_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_trust_factor ...' @@ -1318,6 +1383,7 @@ def get_trust_factor_with_http_info(opts = {}) # query parameters query_params = opts[:query_params] || {} query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1332,7 +1398,7 @@ def get_trust_factor_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetUserTrustFactorResponse' + return_type = opts[:debug_return_type] || 'GetTrustFactorResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1355,16 +1421,18 @@ def get_trust_factor_with_http_info(opts = {}) end # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [APIModerateGetUserBanPreferencesResponse] + # @return [GetUserBanPreferenceResponse] def get_user_ban_preference(opts = {}) data, _status_code, _headers = get_user_ban_preference_with_http_info(opts) data end # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(APIModerateGetUserBanPreferencesResponse, Integer, Hash)>] APIModerateGetUserBanPreferencesResponse data, response status code and response headers + # @return [Array<(GetUserBanPreferenceResponse, Integer, Hash)>] GetUserBanPreferenceResponse data, response status code and response headers def get_user_ban_preference_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_user_ban_preference ...' @@ -1374,6 +1442,7 @@ def get_user_ban_preference_with_http_info(opts = {}) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1388,7 +1457,7 @@ def get_user_ban_preference_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIModerateGetUserBanPreferencesResponse' + return_type = opts[:debug_return_type] || 'GetUserBanPreferenceResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1412,8 +1481,9 @@ def get_user_ban_preference_with_http_info(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :comment_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetUserInternalProfileResponse] + # @return [GetUserInternalProfileResponse1] def get_user_internal_profile(opts = {}) data, _status_code, _headers = get_user_internal_profile_with_http_info(opts) data @@ -1421,8 +1491,9 @@ def get_user_internal_profile(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :comment_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetUserInternalProfileResponse, Integer, Hash)>] GetUserInternalProfileResponse data, response status code and response headers + # @return [Array<(GetUserInternalProfileResponse1, Integer, Hash)>] GetUserInternalProfileResponse1 data, response status code and response headers def get_user_internal_profile_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_user_internal_profile ...' @@ -1433,6 +1504,7 @@ def get_user_internal_profile_with_http_info(opts = {}) # query parameters query_params = opts[:query_params] || {} query_params[:'commentId'] = opts[:'comment_id'] if !opts[:'comment_id'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1447,7 +1519,7 @@ def get_user_internal_profile_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetUserInternalProfileResponse' + return_type = opts[:debug_return_type] || 'GetUserInternalProfileResponse1' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1472,8 +1544,10 @@ def get_user_internal_profile_with_http_info(opts = {}) # @param comment_id [String] # @param adjust_comment_votes_params [AdjustCommentVotesParams] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [AdjustVotesResponse] + # @return [PostAdjustCommentVotesResponse] def post_adjust_comment_votes(comment_id, adjust_comment_votes_params, opts = {}) data, _status_code, _headers = post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts) data @@ -1482,8 +1556,10 @@ def post_adjust_comment_votes(comment_id, adjust_comment_votes_params, opts = {} # @param comment_id [String] # @param adjust_comment_votes_params [AdjustCommentVotesParams] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(AdjustVotesResponse, Integer, Hash)>] AdjustVotesResponse data, response status code and response headers + # @return [Array<(PostAdjustCommentVotesResponse, Integer, Hash)>] PostAdjustCommentVotesResponse data, response status code and response headers def post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_adjust_comment_votes ...' @@ -1497,10 +1573,12 @@ def post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_pa fail ArgumentError, "Missing the required parameter 'adjust_comment_votes_params' when calling ModerationApi.post_adjust_comment_votes" end # resource path - local_var_path = '/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1520,7 +1598,7 @@ def post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_pa post_body = opts[:debug_body] || @api_client.object_to_http_body(adjust_comment_votes_params) # return_type - return_type = opts[:debug_return_type] || 'AdjustVotesResponse' + return_type = opts[:debug_return_type] || 'PostAdjustCommentVotesResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1548,8 +1626,9 @@ def post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_pa # @option opts [String] :filters # @option opts [String] :search_filters # @option opts [String] :sorts + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationExportResponse] + # @return [PostApiExportResponse] def post_api_export(opts = {}) data, _status_code, _headers = post_api_export_with_http_info(opts) data @@ -1561,8 +1640,9 @@ def post_api_export(opts = {}) # @option opts [String] :filters # @option opts [String] :search_filters # @option opts [String] :sorts + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(ModerationExportResponse, Integer, Hash)>] ModerationExportResponse data, response status code and response headers + # @return [Array<(PostApiExportResponse, Integer, Hash)>] PostApiExportResponse data, response status code and response headers def post_api_export_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_api_export ...' @@ -1577,6 +1657,7 @@ def post_api_export_with_http_info(opts = {}) query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil? query_params[:'searchFilters'] = opts[:'search_filters'] if !opts[:'search_filters'].nil? query_params[:'sorts'] = opts[:'sorts'] if !opts[:'sorts'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1591,7 +1672,7 @@ def post_api_export_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'ModerationExportResponse' + return_type = opts[:debug_return_type] || 'PostApiExportResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1623,8 +1704,9 @@ def post_api_export_with_http_info(opts = {}) # @option opts [Boolean] :is_shadow_ban # @option opts [String] :update_id # @option opts [String] :ban_reason + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [BanUserFromCommentResult] + # @return [PostBanUserFromCommentResponse] def post_ban_user_from_comment(comment_id, opts = {}) data, _status_code, _headers = post_ban_user_from_comment_with_http_info(comment_id, opts) data @@ -1640,8 +1722,9 @@ def post_ban_user_from_comment(comment_id, opts = {}) # @option opts [Boolean] :is_shadow_ban # @option opts [String] :update_id # @option opts [String] :ban_reason + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(BanUserFromCommentResult, Integer, Hash)>] BanUserFromCommentResult data, response status code and response headers + # @return [Array<(PostBanUserFromCommentResponse, Integer, Hash)>] PostBanUserFromCommentResponse data, response status code and response headers def post_ban_user_from_comment_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_ban_user_from_comment ...' @@ -1651,7 +1734,7 @@ def post_ban_user_from_comment_with_http_info(comment_id, opts = {}) fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_ban_user_from_comment" end # resource path - local_var_path = '/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1663,6 +1746,7 @@ def post_ban_user_from_comment_with_http_info(comment_id, opts = {}) query_params[:'isShadowBan'] = opts[:'is_shadow_ban'] if !opts[:'is_shadow_ban'].nil? query_params[:'updateId'] = opts[:'update_id'] if !opts[:'update_id'].nil? query_params[:'banReason'] = opts[:'ban_reason'] if !opts[:'ban_reason'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1677,7 +1761,7 @@ def post_ban_user_from_comment_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'BanUserFromCommentResult' + return_type = opts[:debug_return_type] || 'PostBanUserFromCommentResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1701,8 +1785,9 @@ def post_ban_user_from_comment_with_http_info(comment_id, opts = {}) # @param ban_user_undo_params [BanUserUndoParams] # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [APIEmptyResponse] + # @return [PostBanUserUndoResponse] def post_ban_user_undo(ban_user_undo_params, opts = {}) data, _status_code, _headers = post_ban_user_undo_with_http_info(ban_user_undo_params, opts) data @@ -1710,8 +1795,9 @@ def post_ban_user_undo(ban_user_undo_params, opts = {}) # @param ban_user_undo_params [BanUserUndoParams] # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(PostBanUserUndoResponse, Integer, Hash)>] PostBanUserUndoResponse data, response status code and response headers def post_ban_user_undo_with_http_info(ban_user_undo_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_ban_user_undo ...' @@ -1725,6 +1811,7 @@ def post_ban_user_undo_with_http_info(ban_user_undo_params, opts = {}) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1744,7 +1831,7 @@ def post_ban_user_undo_with_http_info(ban_user_undo_params, opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(ban_user_undo_params) # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'PostBanUserUndoResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1771,8 +1858,9 @@ def post_ban_user_undo_with_http_info(ban_user_undo_params, opts = {}) # @option opts [Boolean] :include_by_user_id_and_email # @option opts [Boolean] :include_by_ip # @option opts [Boolean] :include_by_email_domain + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [BulkPreBanSummary] + # @return [PostBulkPreBanSummaryResponse] def post_bulk_pre_ban_summary(bulk_pre_ban_params, opts = {}) data, _status_code, _headers = post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts) data @@ -1783,8 +1871,9 @@ def post_bulk_pre_ban_summary(bulk_pre_ban_params, opts = {}) # @option opts [Boolean] :include_by_user_id_and_email # @option opts [Boolean] :include_by_ip # @option opts [Boolean] :include_by_email_domain + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(BulkPreBanSummary, Integer, Hash)>] BulkPreBanSummary data, response status code and response headers + # @return [Array<(PostBulkPreBanSummaryResponse, Integer, Hash)>] PostBulkPreBanSummaryResponse data, response status code and response headers def post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_bulk_pre_ban_summary ...' @@ -1801,6 +1890,7 @@ def post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts = {}) query_params[:'includeByUserIdAndEmail'] = opts[:'include_by_user_id_and_email'] if !opts[:'include_by_user_id_and_email'].nil? query_params[:'includeByIP'] = opts[:'include_by_ip'] if !opts[:'include_by_ip'].nil? query_params[:'includeByEmailDomain'] = opts[:'include_by_email_domain'] if !opts[:'include_by_email_domain'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1820,7 +1910,7 @@ def post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(bulk_pre_ban_params) # return_type - return_type = opts[:debug_return_type] || 'BulkPreBanSummary' + return_type = opts[:debug_return_type] || 'PostBulkPreBanSummaryResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1844,8 +1934,9 @@ def post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts = {}) # @param comments_by_ids_params [CommentsByIdsParams] # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationAPIChildCommentsResponse] + # @return [PostCommentsByIdsResponse] def post_comments_by_ids(comments_by_ids_params, opts = {}) data, _status_code, _headers = post_comments_by_ids_with_http_info(comments_by_ids_params, opts) data @@ -1853,8 +1944,9 @@ def post_comments_by_ids(comments_by_ids_params, opts = {}) # @param comments_by_ids_params [CommentsByIdsParams] # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(ModerationAPIChildCommentsResponse, Integer, Hash)>] ModerationAPIChildCommentsResponse data, response status code and response headers + # @return [Array<(PostCommentsByIdsResponse, Integer, Hash)>] PostCommentsByIdsResponse data, response status code and response headers def post_comments_by_ids_with_http_info(comments_by_ids_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_comments_by_ids ...' @@ -1868,6 +1960,7 @@ def post_comments_by_ids_with_http_info(comments_by_ids_params, opts = {}) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1887,7 +1980,7 @@ def post_comments_by_ids_with_http_info(comments_by_ids_params, opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(comments_by_ids_params) # return_type - return_type = opts[:debug_return_type] || 'ModerationAPIChildCommentsResponse' + return_type = opts[:debug_return_type] || 'PostCommentsByIdsResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1911,8 +2004,10 @@ def post_comments_by_ids_with_http_info(comments_by_ids_params, opts = {}) # @param comment_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [APIEmptyResponse] + # @return [PostFlagCommentResponse] def post_flag_comment(comment_id, opts = {}) data, _status_code, _headers = post_flag_comment_with_http_info(comment_id, opts) data @@ -1920,8 +2015,10 @@ def post_flag_comment(comment_id, opts = {}) # @param comment_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(PostFlagCommentResponse, Integer, Hash)>] PostFlagCommentResponse data, response status code and response headers def post_flag_comment_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_flag_comment ...' @@ -1931,10 +2028,12 @@ def post_flag_comment_with_http_info(comment_id, opts = {}) fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_flag_comment" end # resource path - local_var_path = '/auth/my-account/moderate-comments/flag-comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/flag-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1949,7 +2048,7 @@ def post_flag_comment_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'PostFlagCommentResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1973,6 +2072,8 @@ def post_flag_comment_with_http_info(comment_id, opts = {}) # @param comment_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso # @return [PostRemoveCommentResponse] def post_remove_comment(comment_id, opts = {}) @@ -1982,6 +2083,8 @@ def post_remove_comment(comment_id, opts = {}) # @param comment_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(PostRemoveCommentResponse, Integer, Hash)>] PostRemoveCommentResponse data, response status code and response headers def post_remove_comment_with_http_info(comment_id, opts = {}) @@ -1993,10 +2096,12 @@ def post_remove_comment_with_http_info(comment_id, opts = {}) fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_remove_comment" end # resource path - local_var_path = '/auth/my-account/moderate-comments/remove-comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/remove-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2035,8 +2140,10 @@ def post_remove_comment_with_http_info(comment_id, opts = {}) # @param comment_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [APIEmptyResponse] + # @return [PostRestoreDeletedCommentResponse] def post_restore_deleted_comment(comment_id, opts = {}) data, _status_code, _headers = post_restore_deleted_comment_with_http_info(comment_id, opts) data @@ -2044,8 +2151,10 @@ def post_restore_deleted_comment(comment_id, opts = {}) # @param comment_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(PostRestoreDeletedCommentResponse, Integer, Hash)>] PostRestoreDeletedCommentResponse data, response status code and response headers def post_restore_deleted_comment_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_restore_deleted_comment ...' @@ -2055,10 +2164,12 @@ def post_restore_deleted_comment_with_http_info(comment_id, opts = {}) fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_restore_deleted_comment" end # resource path - local_var_path = '/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2073,7 +2184,7 @@ def post_restore_deleted_comment_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'PostRestoreDeletedCommentResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2098,8 +2209,10 @@ def post_restore_deleted_comment_with_http_info(comment_id, opts = {}) # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :approved + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [SetCommentApprovedResponse] + # @return [PostSetCommentApprovalStatusResponse] def post_set_comment_approval_status(comment_id, opts = {}) data, _status_code, _headers = post_set_comment_approval_status_with_http_info(comment_id, opts) data @@ -2108,8 +2221,10 @@ def post_set_comment_approval_status(comment_id, opts = {}) # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :approved + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(SetCommentApprovedResponse, Integer, Hash)>] SetCommentApprovedResponse data, response status code and response headers + # @return [Array<(PostSetCommentApprovalStatusResponse, Integer, Hash)>] PostSetCommentApprovalStatusResponse data, response status code and response headers def post_set_comment_approval_status_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_approval_status ...' @@ -2119,11 +2234,13 @@ def post_set_comment_approval_status_with_http_info(comment_id, opts = {}) fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_set_comment_approval_status" end # resource path - local_var_path = '/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'approved'] = opts[:'approved'] if !opts[:'approved'].nil? + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2138,7 +2255,7 @@ def post_set_comment_approval_status_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'SetCommentApprovedResponse' + return_type = opts[:debug_return_type] || 'PostSetCommentApprovalStatusResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2163,8 +2280,10 @@ def post_set_comment_approval_status_with_http_info(comment_id, opts = {}) # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :reviewed + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [APIEmptyResponse] + # @return [PostSetCommentReviewStatusResponse] def post_set_comment_review_status(comment_id, opts = {}) data, _status_code, _headers = post_set_comment_review_status_with_http_info(comment_id, opts) data @@ -2173,8 +2292,10 @@ def post_set_comment_review_status(comment_id, opts = {}) # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :reviewed + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(PostSetCommentReviewStatusResponse, Integer, Hash)>] PostSetCommentReviewStatusResponse data, response status code and response headers def post_set_comment_review_status_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_review_status ...' @@ -2184,11 +2305,13 @@ def post_set_comment_review_status_with_http_info(comment_id, opts = {}) fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_set_comment_review_status" end # resource path - local_var_path = '/auth/my-account/moderate-comments/set-comment-review-status/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/set-comment-review-status/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'reviewed'] = opts[:'reviewed'] if !opts[:'reviewed'].nil? + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2203,7 +2326,7 @@ def post_set_comment_review_status_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'PostSetCommentReviewStatusResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2229,8 +2352,10 @@ def post_set_comment_review_status_with_http_info(comment_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [Boolean] :spam # @option opts [Boolean] :perm_not_spam + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [APIEmptyResponse] + # @return [PostSetCommentSpamStatusResponse] def post_set_comment_spam_status(comment_id, opts = {}) data, _status_code, _headers = post_set_comment_spam_status_with_http_info(comment_id, opts) data @@ -2240,8 +2365,10 @@ def post_set_comment_spam_status(comment_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [Boolean] :spam # @option opts [Boolean] :perm_not_spam + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(PostSetCommentSpamStatusResponse, Integer, Hash)>] PostSetCommentSpamStatusResponse data, response status code and response headers def post_set_comment_spam_status_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_spam_status ...' @@ -2251,12 +2378,14 @@ def post_set_comment_spam_status_with_http_info(comment_id, opts = {}) fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_set_comment_spam_status" end # resource path - local_var_path = '/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'spam'] = opts[:'spam'] if !opts[:'spam'].nil? query_params[:'permNotSpam'] = opts[:'perm_not_spam'] if !opts[:'perm_not_spam'].nil? + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2271,7 +2400,7 @@ def post_set_comment_spam_status_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'PostSetCommentSpamStatusResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2296,8 +2425,10 @@ def post_set_comment_spam_status_with_http_info(comment_id, opts = {}) # @param comment_id [String] # @param set_comment_text_params [SetCommentTextParams] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [SetCommentTextResponse] + # @return [PostSetCommentTextResponse] def post_set_comment_text(comment_id, set_comment_text_params, opts = {}) data, _status_code, _headers = post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts) data @@ -2306,8 +2437,10 @@ def post_set_comment_text(comment_id, set_comment_text_params, opts = {}) # @param comment_id [String] # @param set_comment_text_params [SetCommentTextParams] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(SetCommentTextResponse, Integer, Hash)>] SetCommentTextResponse data, response status code and response headers + # @return [Array<(PostSetCommentTextResponse, Integer, Hash)>] PostSetCommentTextResponse data, response status code and response headers def post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_text ...' @@ -2321,10 +2454,12 @@ def post_set_comment_text_with_http_info(comment_id, set_comment_text_params, op fail ArgumentError, "Missing the required parameter 'set_comment_text_params' when calling ModerationApi.post_set_comment_text" end # resource path - local_var_path = '/auth/my-account/moderate-comments/set-comment-text/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/set-comment-text/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2344,7 +2479,7 @@ def post_set_comment_text_with_http_info(comment_id, set_comment_text_params, op post_body = opts[:debug_body] || @api_client.object_to_http_body(set_comment_text_params) # return_type - return_type = opts[:debug_return_type] || 'SetCommentTextResponse' + return_type = opts[:debug_return_type] || 'PostSetCommentTextResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2368,8 +2503,10 @@ def post_set_comment_text_with_http_info(comment_id, set_comment_text_params, op # @param comment_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [APIEmptyResponse] + # @return [PostUnFlagCommentResponse] def post_un_flag_comment(comment_id, opts = {}) data, _status_code, _headers = post_un_flag_comment_with_http_info(comment_id, opts) data @@ -2377,8 +2514,10 @@ def post_un_flag_comment(comment_id, opts = {}) # @param comment_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(PostUnFlagCommentResponse, Integer, Hash)>] PostUnFlagCommentResponse data, response status code and response headers def post_un_flag_comment_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_un_flag_comment ...' @@ -2388,10 +2527,12 @@ def post_un_flag_comment_with_http_info(comment_id, opts = {}) fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_un_flag_comment" end # resource path - local_var_path = '/auth/my-account/moderate-comments/un-flag-comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/un-flag-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2406,7 +2547,7 @@ def post_un_flag_comment_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'PostUnFlagCommentResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2431,8 +2572,10 @@ def post_un_flag_comment_with_http_info(comment_id, opts = {}) # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :direction + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [VoteResponse] + # @return [PostVoteResponse] def post_vote(comment_id, opts = {}) data, _status_code, _headers = post_vote_with_http_info(comment_id, opts) data @@ -2441,8 +2584,10 @@ def post_vote(comment_id, opts = {}) # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :direction + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(VoteResponse, Integer, Hash)>] VoteResponse data, response status code and response headers + # @return [Array<(PostVoteResponse, Integer, Hash)>] PostVoteResponse data, response status code and response headers def post_vote_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_vote ...' @@ -2452,11 +2597,13 @@ def post_vote_with_http_info(comment_id, opts = {}) fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_vote" end # resource path - local_var_path = '/auth/my-account/moderate-comments/vote/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/vote/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil? + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2471,7 +2618,7 @@ def post_vote_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'VoteResponse' + return_type = opts[:debug_return_type] || 'PostVoteResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2498,8 +2645,9 @@ def post_vote_with_http_info(comment_id, opts = {}) # @option opts [String] :user_id # @option opts [String] :comment_id # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [AwardUserBadgeResponse] + # @return [PutAwardBadgeResponse] def put_award_badge(badge_id, opts = {}) data, _status_code, _headers = put_award_badge_with_http_info(badge_id, opts) data @@ -2510,8 +2658,9 @@ def put_award_badge(badge_id, opts = {}) # @option opts [String] :user_id # @option opts [String] :comment_id # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(AwardUserBadgeResponse, Integer, Hash)>] AwardUserBadgeResponse data, response status code and response headers + # @return [Array<(PutAwardBadgeResponse, Integer, Hash)>] PutAwardBadgeResponse data, response status code and response headers def put_award_badge_with_http_info(badge_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.put_award_badge ...' @@ -2529,6 +2678,7 @@ def put_award_badge_with_http_info(badge_id, opts = {}) query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? query_params[:'commentId'] = opts[:'comment_id'] if !opts[:'comment_id'].nil? query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2543,7 +2693,7 @@ def put_award_badge_with_http_info(badge_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'AwardUserBadgeResponse' + return_type = opts[:debug_return_type] || 'PutAwardBadgeResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2567,8 +2717,9 @@ def put_award_badge_with_http_info(badge_id, opts = {}) # @param url_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [APIEmptyResponse] + # @return [PutCloseThreadResponse] def put_close_thread(url_id, opts = {}) data, _status_code, _headers = put_close_thread_with_http_info(url_id, opts) data @@ -2576,8 +2727,9 @@ def put_close_thread(url_id, opts = {}) # @param url_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(PutCloseThreadResponse, Integer, Hash)>] PutCloseThreadResponse data, response status code and response headers def put_close_thread_with_http_info(url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.put_close_thread ...' @@ -2592,6 +2744,7 @@ def put_close_thread_with_http_info(url_id, opts = {}) # query parameters query_params = opts[:query_params] || {} query_params[:'urlId'] = url_id + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2606,7 +2759,7 @@ def put_close_thread_with_http_info(url_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'PutCloseThreadResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2633,8 +2786,9 @@ def put_close_thread_with_http_info(url_id, opts = {}) # @option opts [String] :user_id # @option opts [String] :comment_id # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [RemoveUserBadgeResponse] + # @return [PutRemoveBadgeResponse] def put_remove_badge(badge_id, opts = {}) data, _status_code, _headers = put_remove_badge_with_http_info(badge_id, opts) data @@ -2645,8 +2799,9 @@ def put_remove_badge(badge_id, opts = {}) # @option opts [String] :user_id # @option opts [String] :comment_id # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(RemoveUserBadgeResponse, Integer, Hash)>] RemoveUserBadgeResponse data, response status code and response headers + # @return [Array<(PutRemoveBadgeResponse, Integer, Hash)>] PutRemoveBadgeResponse data, response status code and response headers def put_remove_badge_with_http_info(badge_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.put_remove_badge ...' @@ -2664,6 +2819,7 @@ def put_remove_badge_with_http_info(badge_id, opts = {}) query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? query_params[:'commentId'] = opts[:'comment_id'] if !opts[:'comment_id'].nil? query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2678,7 +2834,7 @@ def put_remove_badge_with_http_info(badge_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'RemoveUserBadgeResponse' + return_type = opts[:debug_return_type] || 'PutRemoveBadgeResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2702,8 +2858,9 @@ def put_remove_badge_with_http_info(badge_id, opts = {}) # @param url_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [APIEmptyResponse] + # @return [PutReopenThreadResponse] def put_reopen_thread(url_id, opts = {}) data, _status_code, _headers = put_reopen_thread_with_http_info(url_id, opts) data @@ -2711,8 +2868,9 @@ def put_reopen_thread(url_id, opts = {}) # @param url_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(PutReopenThreadResponse, Integer, Hash)>] PutReopenThreadResponse data, response status code and response headers def put_reopen_thread_with_http_info(url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.put_reopen_thread ...' @@ -2727,6 +2885,7 @@ def put_reopen_thread_with_http_info(url_id, opts = {}) # query parameters query_params = opts[:query_params] || {} query_params[:'urlId'] = url_id + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2741,7 +2900,7 @@ def put_reopen_thread_with_http_info(url_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'PutReopenThreadResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2766,8 +2925,9 @@ def put_reopen_thread_with_http_info(url_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :trust_factor + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [SetUserTrustFactorResponse] + # @return [SetTrustFactorResponse] def set_trust_factor(opts = {}) data, _status_code, _headers = set_trust_factor_with_http_info(opts) data @@ -2776,8 +2936,9 @@ def set_trust_factor(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :trust_factor + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(SetUserTrustFactorResponse, Integer, Hash)>] SetUserTrustFactorResponse data, response status code and response headers + # @return [Array<(SetTrustFactorResponse, Integer, Hash)>] SetTrustFactorResponse data, response status code and response headers def set_trust_factor_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.set_trust_factor ...' @@ -2789,6 +2950,7 @@ def set_trust_factor_with_http_info(opts = {}) query_params = opts[:query_params] || {} query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? query_params[:'trustFactor'] = opts[:'trust_factor'] if !opts[:'trust_factor'].nil? + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2803,7 +2965,7 @@ def set_trust_factor_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'SetUserTrustFactorResponse' + return_type = opts[:debug_return_type] || 'SetTrustFactorResponse' # auth_names auth_names = opts[:debug_auth_names] || [] diff --git a/client/lib/fastcomments-client/api/public_api.rb b/client/lib/fastcomments-client/api/public_api.rb index 0a863cb..d738966 100644 --- a/client/lib/fastcomments-client/api/public_api.rb +++ b/client/lib/fastcomments-client/api/public_api.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -24,7 +24,7 @@ def initialize(api_client = ApiClient.default) # @param public_block_from_comment_params [PublicBlockFromCommentParams] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [BlockSuccess] + # @return [BlockFromCommentPublicResponse] def block_from_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts = {}) data, _status_code, _headers = block_from_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) data @@ -35,7 +35,7 @@ def block_from_comment_public(tenant_id, comment_id, public_block_from_comment_p # @param public_block_from_comment_params [PublicBlockFromCommentParams] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [Array<(BlockSuccess, Integer, Hash)>] BlockSuccess data, response status code and response headers + # @return [Array<(BlockFromCommentPublicResponse, Integer, Hash)>] BlockFromCommentPublicResponse data, response status code and response headers def block_from_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.block_from_comment_public ...' @@ -53,7 +53,7 @@ def block_from_comment_public_with_http_info(tenant_id, comment_id, public_block fail ArgumentError, "Missing the required parameter 'public_block_from_comment_params' when calling PublicApi.block_from_comment_public" end # resource path - local_var_path = '/block-from-comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/block-from-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -77,7 +77,7 @@ def block_from_comment_public_with_http_info(tenant_id, comment_id, public_block post_body = opts[:debug_body] || @api_client.object_to_http_body(public_block_from_comment_params) # return_type - return_type = opts[:debug_return_type] || 'BlockSuccess' + return_type = opts[:debug_return_type] || 'BlockFromCommentPublicResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -103,7 +103,7 @@ def block_from_comment_public_with_http_info(tenant_id, comment_id, public_block # @param comment_ids [String] A comma separated list of comment ids. # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [CheckBlockedCommentsResponse] + # @return [CheckedCommentsForBlockedResponse] def checked_comments_for_blocked(tenant_id, comment_ids, opts = {}) data, _status_code, _headers = checked_comments_for_blocked_with_http_info(tenant_id, comment_ids, opts) data @@ -113,7 +113,7 @@ def checked_comments_for_blocked(tenant_id, comment_ids, opts = {}) # @param comment_ids [String] A comma separated list of comment ids. # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [Array<(CheckBlockedCommentsResponse, Integer, Hash)>] CheckBlockedCommentsResponse data, response status code and response headers + # @return [Array<(CheckedCommentsForBlockedResponse, Integer, Hash)>] CheckedCommentsForBlockedResponse data, response status code and response headers def checked_comments_for_blocked_with_http_info(tenant_id, comment_ids, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.checked_comments_for_blocked ...' @@ -147,7 +147,7 @@ def checked_comments_for_blocked_with_http_info(tenant_id, comment_ids, opts = { post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'CheckBlockedCommentsResponse' + return_type = opts[:debug_return_type] || 'CheckedCommentsForBlockedResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -176,7 +176,7 @@ def checked_comments_for_blocked_with_http_info(tenant_id, comment_ids, opts = { # @param [Hash] opts the optional parameters # @option opts [String] :session_id # @option opts [String] :sso - # @return [SaveCommentsResponseWithPresence] + # @return [CreateCommentPublicResponse] def create_comment_public(tenant_id, url_id, broadcast_id, comment_data, opts = {}) data, _status_code, _headers = create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, comment_data, opts) data @@ -189,7 +189,7 @@ def create_comment_public(tenant_id, url_id, broadcast_id, comment_data, opts = # @param [Hash] opts the optional parameters # @option opts [String] :session_id # @option opts [String] :sso - # @return [Array<(SaveCommentsResponseWithPresence, Integer, Hash)>] SaveCommentsResponseWithPresence data, response status code and response headers + # @return [Array<(CreateCommentPublicResponse, Integer, Hash)>] CreateCommentPublicResponse data, response status code and response headers def create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, comment_data, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.create_comment_public ...' @@ -211,7 +211,7 @@ def create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, commen fail ArgumentError, "Missing the required parameter 'comment_data' when calling PublicApi.create_comment_public" end # resource path - local_var_path = '/comments/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/comments/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -237,7 +237,7 @@ def create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, commen post_body = opts[:debug_body] || @api_client.object_to_http_body(comment_data) # return_type - return_type = opts[:debug_return_type] || 'SaveCommentsResponseWithPresence' + return_type = opts[:debug_return_type] || 'CreateCommentPublicResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -264,7 +264,7 @@ def create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, commen # @param [Hash] opts the optional parameters # @option opts [String] :broadcast_id # @option opts [String] :sso - # @return [CreateFeedPostResponse] + # @return [CreateFeedPostPublicResponse] def create_feed_post_public(tenant_id, create_feed_post_params, opts = {}) data, _status_code, _headers = create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, opts) data @@ -275,7 +275,7 @@ def create_feed_post_public(tenant_id, create_feed_post_params, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :broadcast_id # @option opts [String] :sso - # @return [Array<(CreateFeedPostResponse, Integer, Hash)>] CreateFeedPostResponse data, response status code and response headers + # @return [Array<(CreateFeedPostPublicResponse, Integer, Hash)>] CreateFeedPostPublicResponse data, response status code and response headers def create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.create_feed_post_public ...' @@ -289,7 +289,7 @@ def create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, o fail ArgumentError, "Missing the required parameter 'create_feed_post_params' when calling PublicApi.create_feed_post_public" end # resource path - local_var_path = '/feed-posts/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/feed-posts/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -313,7 +313,7 @@ def create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, o post_body = opts[:debug_body] || @api_client.object_to_http_body(create_feed_post_params) # return_type - return_type = opts[:debug_return_type] || 'CreateFeedPostResponse' + return_type = opts[:debug_return_type] || 'CreateFeedPostPublicResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -339,7 +339,7 @@ def create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, o # @param url_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :title - # @return [CreateV1PageReact] + # @return [CreateV1PageReactResponse] def create_v1_page_react(tenant_id, url_id, opts = {}) data, _status_code, _headers = create_v1_page_react_with_http_info(tenant_id, url_id, opts) data @@ -349,7 +349,7 @@ def create_v1_page_react(tenant_id, url_id, opts = {}) # @param url_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :title - # @return [Array<(CreateV1PageReact, Integer, Hash)>] CreateV1PageReact data, response status code and response headers + # @return [Array<(CreateV1PageReactResponse, Integer, Hash)>] CreateV1PageReactResponse data, response status code and response headers def create_v1_page_react_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.create_v1_page_react ...' @@ -363,7 +363,7 @@ def create_v1_page_react_with_http_info(tenant_id, url_id, opts = {}) fail ArgumentError, "Missing the required parameter 'url_id' when calling PublicApi.create_v1_page_react" end # resource path - local_var_path = '/page-reacts/v1/likes/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/page-reacts/v1/likes/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -382,7 +382,7 @@ def create_v1_page_react_with_http_info(tenant_id, url_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'CreateV1PageReact' + return_type = opts[:debug_return_type] || 'CreateV1PageReactResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -409,7 +409,7 @@ def create_v1_page_react_with_http_info(tenant_id, url_id, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [String] :title - # @return [CreateV1PageReact] + # @return [CreateV2PageReactResponse] def create_v2_page_react(tenant_id, url_id, id, opts = {}) data, _status_code, _headers = create_v2_page_react_with_http_info(tenant_id, url_id, id, opts) data @@ -420,7 +420,7 @@ def create_v2_page_react(tenant_id, url_id, id, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [String] :title - # @return [Array<(CreateV1PageReact, Integer, Hash)>] CreateV1PageReact data, response status code and response headers + # @return [Array<(CreateV2PageReactResponse, Integer, Hash)>] CreateV2PageReactResponse data, response status code and response headers def create_v2_page_react_with_http_info(tenant_id, url_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.create_v2_page_react ...' @@ -438,7 +438,7 @@ def create_v2_page_react_with_http_info(tenant_id, url_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling PublicApi.create_v2_page_react" end # resource path - local_var_path = '/page-reacts/v2/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/page-reacts/v2/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -458,7 +458,7 @@ def create_v2_page_react_with_http_info(tenant_id, url_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'CreateV1PageReact' + return_type = opts[:debug_return_type] || 'CreateV2PageReactResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -486,7 +486,7 @@ def create_v2_page_react_with_http_info(tenant_id, url_id, id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso - # @return [PublicAPIDeleteCommentResponse] + # @return [DeleteCommentPublicResponse] def delete_comment_public(tenant_id, comment_id, broadcast_id, opts = {}) data, _status_code, _headers = delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, opts) data @@ -498,7 +498,7 @@ def delete_comment_public(tenant_id, comment_id, broadcast_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso - # @return [Array<(PublicAPIDeleteCommentResponse, Integer, Hash)>] PublicAPIDeleteCommentResponse data, response status code and response headers + # @return [Array<(DeleteCommentPublicResponse, Integer, Hash)>] DeleteCommentPublicResponse data, response status code and response headers def delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.delete_comment_public ...' @@ -516,7 +516,7 @@ def delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, op fail ArgumentError, "Missing the required parameter 'broadcast_id' when calling PublicApi.delete_comment_public" end # resource path - local_var_path = '/comments/{tenantId}/{commentId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/comments/{tenantId}/{commentId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)).sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -536,7 +536,7 @@ def delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, op post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'PublicAPIDeleteCommentResponse' + return_type = opts[:debug_return_type] || 'DeleteCommentPublicResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -566,7 +566,7 @@ def delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, op # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso - # @return [VoteDeleteResponse] + # @return [DeleteCommentVoteResponse] def delete_comment_vote(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts = {}) data, _status_code, _headers = delete_comment_vote_with_http_info(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts) data @@ -580,7 +580,7 @@ def delete_comment_vote(tenant_id, comment_id, vote_id, url_id, broadcast_id, op # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso - # @return [Array<(VoteDeleteResponse, Integer, Hash)>] VoteDeleteResponse data, response status code and response headers + # @return [Array<(DeleteCommentVoteResponse, Integer, Hash)>] DeleteCommentVoteResponse data, response status code and response headers def delete_comment_vote_with_http_info(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.delete_comment_vote ...' @@ -606,7 +606,7 @@ def delete_comment_vote_with_http_info(tenant_id, comment_id, vote_id, url_id, b fail ArgumentError, "Missing the required parameter 'broadcast_id' when calling PublicApi.delete_comment_vote" end # resource path - local_var_path = '/comments/{tenantId}/{commentId}/vote/{voteId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)).sub('{' + 'voteId' + '}', CGI.escape(vote_id.to_s)) + local_var_path = '/comments/{tenantId}/{commentId}/vote/{voteId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)).sub('{commentId}', CGI.escape(comment_id.to_s)).sub('{voteId}', CGI.escape(vote_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -627,7 +627,7 @@ def delete_comment_vote_with_http_info(tenant_id, comment_id, vote_id, url_id, b post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'VoteDeleteResponse' + return_type = opts[:debug_return_type] || 'DeleteCommentVoteResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -679,7 +679,7 @@ def delete_feed_post_public_with_http_info(tenant_id, post_id, opts = {}) fail ArgumentError, "Missing the required parameter 'post_id' when calling PublicApi.delete_feed_post_public" end # resource path - local_var_path = '/feed-posts/{tenantId}/{postId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'postId' + '}', CGI.escape(post_id.to_s)) + local_var_path = '/feed-posts/{tenantId}/{postId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)).sub('{postId}', CGI.escape(post_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -723,7 +723,7 @@ def delete_feed_post_public_with_http_info(tenant_id, post_id, opts = {}) # @param tenant_id [String] # @param url_id [String] # @param [Hash] opts the optional parameters - # @return [CreateV1PageReact] + # @return [DeleteV1PageReactResponse] def delete_v1_page_react(tenant_id, url_id, opts = {}) data, _status_code, _headers = delete_v1_page_react_with_http_info(tenant_id, url_id, opts) data @@ -732,7 +732,7 @@ def delete_v1_page_react(tenant_id, url_id, opts = {}) # @param tenant_id [String] # @param url_id [String] # @param [Hash] opts the optional parameters - # @return [Array<(CreateV1PageReact, Integer, Hash)>] CreateV1PageReact data, response status code and response headers + # @return [Array<(DeleteV1PageReactResponse, Integer, Hash)>] DeleteV1PageReactResponse data, response status code and response headers def delete_v1_page_react_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.delete_v1_page_react ...' @@ -746,7 +746,7 @@ def delete_v1_page_react_with_http_info(tenant_id, url_id, opts = {}) fail ArgumentError, "Missing the required parameter 'url_id' when calling PublicApi.delete_v1_page_react" end # resource path - local_var_path = '/page-reacts/v1/likes/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/page-reacts/v1/likes/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -764,7 +764,7 @@ def delete_v1_page_react_with_http_info(tenant_id, url_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'CreateV1PageReact' + return_type = opts[:debug_return_type] || 'DeleteV1PageReactResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -790,7 +790,7 @@ def delete_v1_page_react_with_http_info(tenant_id, url_id, opts = {}) # @param url_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [CreateV1PageReact] + # @return [DeleteV2PageReactResponse] def delete_v2_page_react(tenant_id, url_id, id, opts = {}) data, _status_code, _headers = delete_v2_page_react_with_http_info(tenant_id, url_id, id, opts) data @@ -800,7 +800,7 @@ def delete_v2_page_react(tenant_id, url_id, id, opts = {}) # @param url_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(CreateV1PageReact, Integer, Hash)>] CreateV1PageReact data, response status code and response headers + # @return [Array<(DeleteV2PageReactResponse, Integer, Hash)>] DeleteV2PageReactResponse data, response status code and response headers def delete_v2_page_react_with_http_info(tenant_id, url_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.delete_v2_page_react ...' @@ -818,7 +818,7 @@ def delete_v2_page_react_with_http_info(tenant_id, url_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling PublicApi.delete_v2_page_react" end # resource path - local_var_path = '/page-reacts/v2/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/page-reacts/v2/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -837,7 +837,7 @@ def delete_v2_page_react_with_http_info(tenant_id, url_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'CreateV1PageReact' + return_type = opts[:debug_return_type] || 'DeleteV2PageReactResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -864,7 +864,7 @@ def delete_v2_page_react_with_http_info(tenant_id, url_id, id, opts = {}) # @param is_flagged [Boolean] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [APIEmptyResponse] + # @return [FlagCommentPublicResponse] def flag_comment_public(tenant_id, comment_id, is_flagged, opts = {}) data, _status_code, _headers = flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts) data @@ -875,7 +875,7 @@ def flag_comment_public(tenant_id, comment_id, is_flagged, opts = {}) # @param is_flagged [Boolean] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(FlagCommentPublicResponse, Integer, Hash)>] FlagCommentPublicResponse data, response status code and response headers def flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.flag_comment_public ...' @@ -893,7 +893,7 @@ def flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts = fail ArgumentError, "Missing the required parameter 'is_flagged' when calling PublicApi.flag_comment_public" end # resource path - local_var_path = '/flag-comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/flag-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -913,7 +913,7 @@ def flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts = post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'FlagCommentPublicResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -940,7 +940,7 @@ def flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts = # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso - # @return [PublicAPIGetCommentTextResponse] + # @return [GetCommentTextResponse1] def get_comment_text(tenant_id, comment_id, opts = {}) data, _status_code, _headers = get_comment_text_with_http_info(tenant_id, comment_id, opts) data @@ -951,7 +951,7 @@ def get_comment_text(tenant_id, comment_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso - # @return [Array<(PublicAPIGetCommentTextResponse, Integer, Hash)>] PublicAPIGetCommentTextResponse data, response status code and response headers + # @return [Array<(GetCommentTextResponse1, Integer, Hash)>] GetCommentTextResponse1 data, response status code and response headers def get_comment_text_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_comment_text ...' @@ -965,7 +965,7 @@ def get_comment_text_with_http_info(tenant_id, comment_id, opts = {}) fail ArgumentError, "Missing the required parameter 'comment_id' when calling PublicApi.get_comment_text" end # resource path - local_var_path = '/comments/{tenantId}/{commentId}/text'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/comments/{tenantId}/{commentId}/text'.sub('{tenantId}', CGI.escape(tenant_id.to_s)).sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -984,7 +984,7 @@ def get_comment_text_with_http_info(tenant_id, comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'PublicAPIGetCommentTextResponse' + return_type = opts[:debug_return_type] || 'GetCommentTextResponse1' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1011,7 +1011,7 @@ def get_comment_text_with_http_info(tenant_id, comment_id, opts = {}) # @param dir [Integer] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [GetCommentVoteUserNamesSuccessResponse] + # @return [GetCommentVoteUserNamesResponse] def get_comment_vote_user_names(tenant_id, comment_id, dir, opts = {}) data, _status_code, _headers = get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts) data @@ -1022,7 +1022,7 @@ def get_comment_vote_user_names(tenant_id, comment_id, dir, opts = {}) # @param dir [Integer] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [Array<(GetCommentVoteUserNamesSuccessResponse, Integer, Hash)>] GetCommentVoteUserNamesSuccessResponse data, response status code and response headers + # @return [Array<(GetCommentVoteUserNamesResponse, Integer, Hash)>] GetCommentVoteUserNamesResponse data, response status code and response headers def get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_comment_vote_user_names ...' @@ -1040,7 +1040,7 @@ def get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts fail ArgumentError, "Missing the required parameter 'dir' when calling PublicApi.get_comment_vote_user_names" end # resource path - local_var_path = '/comments/{tenantId}/{commentId}/votes'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/comments/{tenantId}/{commentId}/votes'.sub('{tenantId}', CGI.escape(tenant_id.to_s)).sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1059,7 +1059,7 @@ def get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetCommentVoteUserNamesSuccessResponse' + return_type = opts[:debug_return_type] || 'GetCommentVoteUserNamesResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1089,7 +1089,7 @@ def get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts # @option opts [Boolean] :includei10n # @option opts [String] :locale # @option opts [Boolean] :is_crawler - # @return [GetCommentsForUserResponse] + # @return [GetCommentsForUserResponse1] def get_comments_for_user(opts = {}) data, _status_code, _headers = get_comments_for_user_with_http_info(opts) data @@ -1103,7 +1103,7 @@ def get_comments_for_user(opts = {}) # @option opts [Boolean] :includei10n # @option opts [String] :locale # @option opts [Boolean] :is_crawler - # @return [Array<(GetCommentsForUserResponse, Integer, Hash)>] GetCommentsForUserResponse data, response status code and response headers + # @return [Array<(GetCommentsForUserResponse1, Integer, Hash)>] GetCommentsForUserResponse1 data, response status code and response headers def get_comments_for_user_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_comments_for_user ...' @@ -1133,7 +1133,7 @@ def get_comments_for_user_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetCommentsForUserResponse' + return_type = opts[:debug_return_type] || 'GetCommentsForUserResponse1' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1185,7 +1185,7 @@ def get_comments_for_user_with_http_info(opts = {}) # @option opts [String] :custom_config_str # @option opts [String] :after_comment_id # @option opts [String] :before_comment_id - # @return [GetCommentsResponseWithPresencePublicComment] + # @return [GetCommentsPublicResponse] def get_comments_public(tenant_id, url_id, opts = {}) data, _status_code, _headers = get_comments_public_with_http_info(tenant_id, url_id, opts) data @@ -1221,7 +1221,7 @@ def get_comments_public(tenant_id, url_id, opts = {}) # @option opts [String] :custom_config_str # @option opts [String] :after_comment_id # @option opts [String] :before_comment_id - # @return [Array<(GetCommentsResponseWithPresencePublicComment, Integer, Hash)>] GetCommentsResponseWithPresencePublicComment data, response status code and response headers + # @return [Array<(GetCommentsPublicResponse, Integer, Hash)>] GetCommentsPublicResponse data, response status code and response headers def get_comments_public_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_comments_public ...' @@ -1235,7 +1235,7 @@ def get_comments_public_with_http_info(tenant_id, url_id, opts = {}) fail ArgumentError, "Missing the required parameter 'url_id' when calling PublicApi.get_comments_public" end # resource path - local_var_path = '/comments/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/comments/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1279,7 +1279,7 @@ def get_comments_public_with_http_info(tenant_id, url_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetCommentsResponseWithPresencePublicComment' + return_type = opts[:debug_return_type] || 'GetCommentsPublicResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1308,7 +1308,7 @@ def get_comments_public_with_http_info(tenant_id, url_id, opts = {}) # @param start_time [Integer] # @param [Hash] opts the optional parameters # @option opts [Integer] :end_time - # @return [GetEventLogResponse] + # @return [GetEventLogResponse1] def get_event_log(tenant_id, url_id, user_id_ws, start_time, opts = {}) data, _status_code, _headers = get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) data @@ -1321,7 +1321,7 @@ def get_event_log(tenant_id, url_id, user_id_ws, start_time, opts = {}) # @param start_time [Integer] # @param [Hash] opts the optional parameters # @option opts [Integer] :end_time - # @return [Array<(GetEventLogResponse, Integer, Hash)>] GetEventLogResponse data, response status code and response headers + # @return [Array<(GetEventLogResponse1, Integer, Hash)>] GetEventLogResponse1 data, response status code and response headers def get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_event_log ...' @@ -1343,7 +1343,7 @@ def get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts fail ArgumentError, "Missing the required parameter 'start_time' when calling PublicApi.get_event_log" end # resource path - local_var_path = '/event-log/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/event-log/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1364,7 +1364,7 @@ def get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetEventLogResponse' + return_type = opts[:debug_return_type] || 'GetEventLogResponse1' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1395,7 +1395,7 @@ def get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts # @option opts [String] :sso # @option opts [Boolean] :is_crawler # @option opts [Boolean] :include_user_info - # @return [PublicFeedPostsResponse] + # @return [GetFeedPostsPublicResponse] def get_feed_posts_public(tenant_id, opts = {}) data, _status_code, _headers = get_feed_posts_public_with_http_info(tenant_id, opts) data @@ -1410,7 +1410,7 @@ def get_feed_posts_public(tenant_id, opts = {}) # @option opts [String] :sso # @option opts [Boolean] :is_crawler # @option opts [Boolean] :include_user_info - # @return [Array<(PublicFeedPostsResponse, Integer, Hash)>] PublicFeedPostsResponse data, response status code and response headers + # @return [Array<(GetFeedPostsPublicResponse, Integer, Hash)>] GetFeedPostsPublicResponse data, response status code and response headers def get_feed_posts_public_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_feed_posts_public ...' @@ -1420,7 +1420,7 @@ def get_feed_posts_public_with_http_info(tenant_id, opts = {}) fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_feed_posts_public" end # resource path - local_var_path = '/feed-posts/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/feed-posts/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1443,7 +1443,7 @@ def get_feed_posts_public_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'PublicFeedPostsResponse' + return_type = opts[:debug_return_type] || 'GetFeedPostsPublicResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1469,7 +1469,7 @@ def get_feed_posts_public_with_http_info(tenant_id, opts = {}) # @param post_ids [Array] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [FeedPostsStatsResponse] + # @return [GetFeedPostsStatsResponse] def get_feed_posts_stats(tenant_id, post_ids, opts = {}) data, _status_code, _headers = get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts) data @@ -1479,7 +1479,7 @@ def get_feed_posts_stats(tenant_id, post_ids, opts = {}) # @param post_ids [Array] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [Array<(FeedPostsStatsResponse, Integer, Hash)>] FeedPostsStatsResponse data, response status code and response headers + # @return [Array<(GetFeedPostsStatsResponse, Integer, Hash)>] GetFeedPostsStatsResponse data, response status code and response headers def get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_feed_posts_stats ...' @@ -1493,7 +1493,7 @@ def get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts = {}) fail ArgumentError, "Missing the required parameter 'post_ids' when calling PublicApi.get_feed_posts_stats" end # resource path - local_var_path = '/feed-posts/{tenantId}/stats'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/feed-posts/{tenantId}/stats'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1512,7 +1512,7 @@ def get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'FeedPostsStatsResponse' + return_type = opts[:debug_return_type] || 'GetFeedPostsStatsResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1537,7 +1537,7 @@ def get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts = {}) # @param tenant_id [String] # @param large_internal_url_sanitized [String] # @param [Hash] opts the optional parameters - # @return [GifGetLargeResponse] + # @return [GetGifLargeResponse] def get_gif_large(tenant_id, large_internal_url_sanitized, opts = {}) data, _status_code, _headers = get_gif_large_with_http_info(tenant_id, large_internal_url_sanitized, opts) data @@ -1546,7 +1546,7 @@ def get_gif_large(tenant_id, large_internal_url_sanitized, opts = {}) # @param tenant_id [String] # @param large_internal_url_sanitized [String] # @param [Hash] opts the optional parameters - # @return [Array<(GifGetLargeResponse, Integer, Hash)>] GifGetLargeResponse data, response status code and response headers + # @return [Array<(GetGifLargeResponse, Integer, Hash)>] GetGifLargeResponse data, response status code and response headers def get_gif_large_with_http_info(tenant_id, large_internal_url_sanitized, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_gif_large ...' @@ -1560,7 +1560,7 @@ def get_gif_large_with_http_info(tenant_id, large_internal_url_sanitized, opts = fail ArgumentError, "Missing the required parameter 'large_internal_url_sanitized' when calling PublicApi.get_gif_large" end # resource path - local_var_path = '/gifs/get-large/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/gifs/get-large/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1578,7 +1578,7 @@ def get_gif_large_with_http_info(tenant_id, large_internal_url_sanitized, opts = post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GifGetLargeResponse' + return_type = opts[:debug_return_type] || 'GetGifLargeResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1632,7 +1632,7 @@ def get_gifs_search_with_http_info(tenant_id, search, opts = {}) fail ArgumentError, "Missing the required parameter 'search' when calling PublicApi.get_gifs_search" end # resource path - local_var_path = '/gifs/search/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/gifs/search/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1701,7 +1701,7 @@ def get_gifs_trending_with_http_info(tenant_id, opts = {}) fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_gifs_trending" end # resource path - local_var_path = '/gifs/trending/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/gifs/trending/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1750,7 +1750,7 @@ def get_gifs_trending_with_http_info(tenant_id, opts = {}) # @param start_time [Integer] # @param [Hash] opts the optional parameters # @option opts [Integer] :end_time - # @return [GetEventLogResponse] + # @return [GetGlobalEventLogResponse] def get_global_event_log(tenant_id, url_id, user_id_ws, start_time, opts = {}) data, _status_code, _headers = get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) data @@ -1763,7 +1763,7 @@ def get_global_event_log(tenant_id, url_id, user_id_ws, start_time, opts = {}) # @param start_time [Integer] # @param [Hash] opts the optional parameters # @option opts [Integer] :end_time - # @return [Array<(GetEventLogResponse, Integer, Hash)>] GetEventLogResponse data, response status code and response headers + # @return [Array<(GetGlobalEventLogResponse, Integer, Hash)>] GetGlobalEventLogResponse data, response status code and response headers def get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_global_event_log ...' @@ -1785,7 +1785,7 @@ def get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_tim fail ArgumentError, "Missing the required parameter 'start_time' when calling PublicApi.get_global_event_log" end # resource path - local_var_path = '/event-log/global/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/event-log/global/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1806,7 +1806,7 @@ def get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_tim post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetEventLogResponse' + return_type = opts[:debug_return_type] || 'GetGlobalEventLogResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1834,7 +1834,7 @@ def get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_tim # @param [Hash] opts the optional parameters # @option opts [String] :after_name Cursor: pass nextAfterName from the previous response. # @option opts [String] :after_user_id Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. - # @return [PageUsersOfflineResponse] + # @return [GetOfflineUsersResponse] def get_offline_users(tenant_id, url_id, opts = {}) data, _status_code, _headers = get_offline_users_with_http_info(tenant_id, url_id, opts) data @@ -1846,7 +1846,7 @@ def get_offline_users(tenant_id, url_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :after_name Cursor: pass nextAfterName from the previous response. # @option opts [String] :after_user_id Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. - # @return [Array<(PageUsersOfflineResponse, Integer, Hash)>] PageUsersOfflineResponse data, response status code and response headers + # @return [Array<(GetOfflineUsersResponse, Integer, Hash)>] GetOfflineUsersResponse data, response status code and response headers def get_offline_users_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_offline_users ...' @@ -1860,7 +1860,7 @@ def get_offline_users_with_http_info(tenant_id, url_id, opts = {}) fail ArgumentError, "Missing the required parameter 'url_id' when calling PublicApi.get_offline_users" end # resource path - local_var_path = '/pages/{tenantId}/users/offline'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/pages/{tenantId}/users/offline'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1880,7 +1880,7 @@ def get_offline_users_with_http_info(tenant_id, url_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'PageUsersOfflineResponse' + return_type = opts[:debug_return_type] || 'GetOfflineUsersResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1908,7 +1908,7 @@ def get_offline_users_with_http_info(tenant_id, url_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :after_name Cursor: pass nextAfterName from the previous response. # @option opts [String] :after_user_id Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. - # @return [PageUsersOnlineResponse] + # @return [GetOnlineUsersResponse] def get_online_users(tenant_id, url_id, opts = {}) data, _status_code, _headers = get_online_users_with_http_info(tenant_id, url_id, opts) data @@ -1920,7 +1920,7 @@ def get_online_users(tenant_id, url_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :after_name Cursor: pass nextAfterName from the previous response. # @option opts [String] :after_user_id Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. - # @return [Array<(PageUsersOnlineResponse, Integer, Hash)>] PageUsersOnlineResponse data, response status code and response headers + # @return [Array<(GetOnlineUsersResponse, Integer, Hash)>] GetOnlineUsersResponse data, response status code and response headers def get_online_users_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_online_users ...' @@ -1934,7 +1934,7 @@ def get_online_users_with_http_info(tenant_id, url_id, opts = {}) fail ArgumentError, "Missing the required parameter 'url_id' when calling PublicApi.get_online_users" end # resource path - local_var_path = '/pages/{tenantId}/users/online'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/pages/{tenantId}/users/online'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1954,7 +1954,7 @@ def get_online_users_with_http_info(tenant_id, url_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'PageUsersOnlineResponse' + return_type = opts[:debug_return_type] || 'GetOnlineUsersResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1984,7 +1984,7 @@ def get_online_users_with_http_info(tenant_id, url_id, opts = {}) # @option opts [String] :q Optional case-insensitive title prefix filter. # @option opts [PagesSortBy] :sort_by Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). # @option opts [Boolean] :has_comments If true, only return pages with at least one comment. - # @return [GetPublicPagesResponse] + # @return [GetPagesPublicResponse] def get_pages_public(tenant_id, opts = {}) data, _status_code, _headers = get_pages_public_with_http_info(tenant_id, opts) data @@ -1998,7 +1998,7 @@ def get_pages_public(tenant_id, opts = {}) # @option opts [String] :q Optional case-insensitive title prefix filter. # @option opts [PagesSortBy] :sort_by Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). # @option opts [Boolean] :has_comments If true, only return pages with at least one comment. - # @return [Array<(GetPublicPagesResponse, Integer, Hash)>] GetPublicPagesResponse data, response status code and response headers + # @return [Array<(GetPagesPublicResponse, Integer, Hash)>] GetPagesPublicResponse data, response status code and response headers def get_pages_public_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_pages_public ...' @@ -2008,7 +2008,7 @@ def get_pages_public_with_http_info(tenant_id, opts = {}) fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_pages_public" end # resource path - local_var_path = '/pages/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/pages/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2030,7 +2030,7 @@ def get_pages_public_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetPublicPagesResponse' + return_type = opts[:debug_return_type] || 'GetPagesPublicResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2057,7 +2057,7 @@ def get_pages_public_with_http_info(tenant_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :locale # @option opts [Boolean] :use_full_translation_ids - # @return [GetTranslationsResponse] + # @return [GetTranslationsResponse1] def get_translations(namespace, component, opts = {}) data, _status_code, _headers = get_translations_with_http_info(namespace, component, opts) data @@ -2068,7 +2068,7 @@ def get_translations(namespace, component, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :locale # @option opts [Boolean] :use_full_translation_ids - # @return [Array<(GetTranslationsResponse, Integer, Hash)>] GetTranslationsResponse data, response status code and response headers + # @return [Array<(GetTranslationsResponse1, Integer, Hash)>] GetTranslationsResponse1 data, response status code and response headers def get_translations_with_http_info(namespace, component, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_translations ...' @@ -2082,7 +2082,7 @@ def get_translations_with_http_info(namespace, component, opts = {}) fail ArgumentError, "Missing the required parameter 'component' when calling PublicApi.get_translations" end # resource path - local_var_path = '/translations/{namespace}/{component}'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)).sub('{' + 'component' + '}', CGI.escape(component.to_s)) + local_var_path = '/translations/{namespace}/{component}'.sub('{namespace}', CGI.escape(namespace.to_s)).sub('{component}', CGI.escape(component.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2101,7 +2101,7 @@ def get_translations_with_http_info(namespace, component, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetTranslationsResponse' + return_type = opts[:debug_return_type] || 'GetTranslationsResponse1' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2126,7 +2126,7 @@ def get_translations_with_http_info(namespace, component, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [GetUserNotificationCountResponse] + # @return [GetUserNotificationCountResponse1] def get_user_notification_count(tenant_id, opts = {}) data, _status_code, _headers = get_user_notification_count_with_http_info(tenant_id, opts) data @@ -2135,7 +2135,7 @@ def get_user_notification_count(tenant_id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [Array<(GetUserNotificationCountResponse, Integer, Hash)>] GetUserNotificationCountResponse data, response status code and response headers + # @return [Array<(GetUserNotificationCountResponse1, Integer, Hash)>] GetUserNotificationCountResponse1 data, response status code and response headers def get_user_notification_count_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_user_notification_count ...' @@ -2164,7 +2164,7 @@ def get_user_notification_count_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetUserNotificationCountResponse' + return_type = opts[:debug_return_type] || 'GetUserNotificationCountResponse1' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2199,7 +2199,7 @@ def get_user_notification_count_with_http_info(tenant_id, opts = {}) # @option opts [Boolean] :include_translations # @option opts [Boolean] :include_tenant_notifications # @option opts [String] :sso - # @return [GetMyNotificationsResponse] + # @return [GetUserNotificationsResponse] def get_user_notifications(tenant_id, opts = {}) data, _status_code, _headers = get_user_notifications_with_http_info(tenant_id, opts) data @@ -2218,7 +2218,7 @@ def get_user_notifications(tenant_id, opts = {}) # @option opts [Boolean] :include_translations # @option opts [Boolean] :include_tenant_notifications # @option opts [String] :sso - # @return [Array<(GetMyNotificationsResponse, Integer, Hash)>] GetMyNotificationsResponse data, response status code and response headers + # @return [Array<(GetUserNotificationsResponse, Integer, Hash)>] GetUserNotificationsResponse data, response status code and response headers def get_user_notifications_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_user_notifications ...' @@ -2257,7 +2257,7 @@ def get_user_notifications_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetMyNotificationsResponse' + return_type = opts[:debug_return_type] || 'GetUserNotificationsResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2283,7 +2283,7 @@ def get_user_notifications_with_http_info(tenant_id, opts = {}) # @param url_id_ws [String] # @param user_ids [String] # @param [Hash] opts the optional parameters - # @return [GetUserPresenceStatusesResponse] + # @return [GetUserPresenceStatusesResponse1] def get_user_presence_statuses(tenant_id, url_id_ws, user_ids, opts = {}) data, _status_code, _headers = get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids, opts) data @@ -2293,7 +2293,7 @@ def get_user_presence_statuses(tenant_id, url_id_ws, user_ids, opts = {}) # @param url_id_ws [String] # @param user_ids [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetUserPresenceStatusesResponse, Integer, Hash)>] GetUserPresenceStatusesResponse data, response status code and response headers + # @return [Array<(GetUserPresenceStatusesResponse1, Integer, Hash)>] GetUserPresenceStatusesResponse1 data, response status code and response headers def get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_user_presence_statuses ...' @@ -2331,7 +2331,7 @@ def get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids, op post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetUserPresenceStatusesResponse' + return_type = opts[:debug_return_type] || 'GetUserPresenceStatusesResponse1' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2357,7 +2357,7 @@ def get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids, op # @param [Hash] opts the optional parameters # @option opts [Array] :post_ids # @option opts [String] :sso - # @return [UserReactsResponse] + # @return [GetUserReactsPublicResponse] def get_user_reacts_public(tenant_id, opts = {}) data, _status_code, _headers = get_user_reacts_public_with_http_info(tenant_id, opts) data @@ -2367,7 +2367,7 @@ def get_user_reacts_public(tenant_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [Array] :post_ids # @option opts [String] :sso - # @return [Array<(UserReactsResponse, Integer, Hash)>] UserReactsResponse data, response status code and response headers + # @return [Array<(GetUserReactsPublicResponse, Integer, Hash)>] GetUserReactsPublicResponse data, response status code and response headers def get_user_reacts_public_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_user_reacts_public ...' @@ -2377,7 +2377,7 @@ def get_user_reacts_public_with_http_info(tenant_id, opts = {}) fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_user_reacts_public" end # resource path - local_var_path = '/feed-posts/{tenantId}/user-reacts'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/feed-posts/{tenantId}/user-reacts'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2396,7 +2396,7 @@ def get_user_reacts_public_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'UserReactsResponse' + return_type = opts[:debug_return_type] || 'GetUserReactsPublicResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2422,7 +2422,7 @@ def get_user_reacts_public_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param ids [String] Comma-delimited userIds. # @param [Hash] opts the optional parameters - # @return [PageUsersInfoResponse] + # @return [GetUsersInfoResponse] def get_users_info(tenant_id, ids, opts = {}) data, _status_code, _headers = get_users_info_with_http_info(tenant_id, ids, opts) data @@ -2432,7 +2432,7 @@ def get_users_info(tenant_id, ids, opts = {}) # @param tenant_id [String] # @param ids [String] Comma-delimited userIds. # @param [Hash] opts the optional parameters - # @return [Array<(PageUsersInfoResponse, Integer, Hash)>] PageUsersInfoResponse data, response status code and response headers + # @return [Array<(GetUsersInfoResponse, Integer, Hash)>] GetUsersInfoResponse data, response status code and response headers def get_users_info_with_http_info(tenant_id, ids, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_users_info ...' @@ -2446,7 +2446,7 @@ def get_users_info_with_http_info(tenant_id, ids, opts = {}) fail ArgumentError, "Missing the required parameter 'ids' when calling PublicApi.get_users_info" end # resource path - local_var_path = '/pages/{tenantId}/users/info'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/pages/{tenantId}/users/info'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2464,7 +2464,7 @@ def get_users_info_with_http_info(tenant_id, ids, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'PageUsersInfoResponse' + return_type = opts[:debug_return_type] || 'GetUsersInfoResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2489,7 +2489,7 @@ def get_users_info_with_http_info(tenant_id, ids, opts = {}) # @param tenant_id [String] # @param url_id [String] # @param [Hash] opts the optional parameters - # @return [GetV1PageLikes] + # @return [GetV1PageLikesResponse] def get_v1_page_likes(tenant_id, url_id, opts = {}) data, _status_code, _headers = get_v1_page_likes_with_http_info(tenant_id, url_id, opts) data @@ -2498,7 +2498,7 @@ def get_v1_page_likes(tenant_id, url_id, opts = {}) # @param tenant_id [String] # @param url_id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetV1PageLikes, Integer, Hash)>] GetV1PageLikes data, response status code and response headers + # @return [Array<(GetV1PageLikesResponse, Integer, Hash)>] GetV1PageLikesResponse data, response status code and response headers def get_v1_page_likes_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_v1_page_likes ...' @@ -2512,7 +2512,7 @@ def get_v1_page_likes_with_http_info(tenant_id, url_id, opts = {}) fail ArgumentError, "Missing the required parameter 'url_id' when calling PublicApi.get_v1_page_likes" end # resource path - local_var_path = '/page-reacts/v1/likes/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/page-reacts/v1/likes/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2530,7 +2530,7 @@ def get_v1_page_likes_with_http_info(tenant_id, url_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetV1PageLikes' + return_type = opts[:debug_return_type] || 'GetV1PageLikesResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2556,7 +2556,7 @@ def get_v1_page_likes_with_http_info(tenant_id, url_id, opts = {}) # @param url_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [GetV2PageReactUsersResponse] + # @return [GetV2PageReactUsersResponse1] def get_v2_page_react_users(tenant_id, url_id, id, opts = {}) data, _status_code, _headers = get_v2_page_react_users_with_http_info(tenant_id, url_id, id, opts) data @@ -2566,7 +2566,7 @@ def get_v2_page_react_users(tenant_id, url_id, id, opts = {}) # @param url_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetV2PageReactUsersResponse, Integer, Hash)>] GetV2PageReactUsersResponse data, response status code and response headers + # @return [Array<(GetV2PageReactUsersResponse1, Integer, Hash)>] GetV2PageReactUsersResponse1 data, response status code and response headers def get_v2_page_react_users_with_http_info(tenant_id, url_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_v2_page_react_users ...' @@ -2584,7 +2584,7 @@ def get_v2_page_react_users_with_http_info(tenant_id, url_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling PublicApi.get_v2_page_react_users" end # resource path - local_var_path = '/page-reacts/v2/{tenantId}/list'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/page-reacts/v2/{tenantId}/list'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2603,7 +2603,7 @@ def get_v2_page_react_users_with_http_info(tenant_id, url_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetV2PageReactUsersResponse' + return_type = opts[:debug_return_type] || 'GetV2PageReactUsersResponse1' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2628,7 +2628,7 @@ def get_v2_page_react_users_with_http_info(tenant_id, url_id, id, opts = {}) # @param tenant_id [String] # @param url_id [String] # @param [Hash] opts the optional parameters - # @return [GetV2PageReacts] + # @return [GetV2PageReactsResponse] def get_v2_page_reacts(tenant_id, url_id, opts = {}) data, _status_code, _headers = get_v2_page_reacts_with_http_info(tenant_id, url_id, opts) data @@ -2637,7 +2637,7 @@ def get_v2_page_reacts(tenant_id, url_id, opts = {}) # @param tenant_id [String] # @param url_id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetV2PageReacts, Integer, Hash)>] GetV2PageReacts data, response status code and response headers + # @return [Array<(GetV2PageReactsResponse, Integer, Hash)>] GetV2PageReactsResponse data, response status code and response headers def get_v2_page_reacts_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_v2_page_reacts ...' @@ -2651,7 +2651,7 @@ def get_v2_page_reacts_with_http_info(tenant_id, url_id, opts = {}) fail ArgumentError, "Missing the required parameter 'url_id' when calling PublicApi.get_v2_page_reacts" end # resource path - local_var_path = '/page-reacts/v2/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/page-reacts/v2/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2669,7 +2669,7 @@ def get_v2_page_reacts_with_http_info(tenant_id, url_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetV2PageReacts' + return_type = opts[:debug_return_type] || 'GetV2PageReactsResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2696,7 +2696,7 @@ def get_v2_page_reacts_with_http_info(tenant_id, url_id, opts = {}) # @param broadcast_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [APIEmptyResponse] + # @return [LockCommentResponse] def lock_comment(tenant_id, comment_id, broadcast_id, opts = {}) data, _status_code, _headers = lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) data @@ -2707,7 +2707,7 @@ def lock_comment(tenant_id, comment_id, broadcast_id, opts = {}) # @param broadcast_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(LockCommentResponse, Integer, Hash)>] LockCommentResponse data, response status code and response headers def lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.lock_comment ...' @@ -2725,7 +2725,7 @@ def lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) fail ArgumentError, "Missing the required parameter 'broadcast_id' when calling PublicApi.lock_comment" end # resource path - local_var_path = '/comments/{tenantId}/{commentId}/lock'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/comments/{tenantId}/{commentId}/lock'.sub('{tenantId}', CGI.escape(tenant_id.to_s)).sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2744,7 +2744,7 @@ def lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'LockCommentResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2824,7 +2824,7 @@ def logout_public_with_http_info(opts = {}) # @param broadcast_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [ChangeCommentPinStatusResponse] + # @return [PinCommentResponse] def pin_comment(tenant_id, comment_id, broadcast_id, opts = {}) data, _status_code, _headers = pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) data @@ -2835,7 +2835,7 @@ def pin_comment(tenant_id, comment_id, broadcast_id, opts = {}) # @param broadcast_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [Array<(ChangeCommentPinStatusResponse, Integer, Hash)>] ChangeCommentPinStatusResponse data, response status code and response headers + # @return [Array<(PinCommentResponse, Integer, Hash)>] PinCommentResponse data, response status code and response headers def pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.pin_comment ...' @@ -2853,7 +2853,7 @@ def pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) fail ArgumentError, "Missing the required parameter 'broadcast_id' when calling PublicApi.pin_comment" end # resource path - local_var_path = '/comments/{tenantId}/{commentId}/pin'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/comments/{tenantId}/{commentId}/pin'.sub('{tenantId}', CGI.escape(tenant_id.to_s)).sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2872,7 +2872,7 @@ def pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'ChangeCommentPinStatusResponse' + return_type = opts[:debug_return_type] || 'PinCommentResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2901,7 +2901,7 @@ def pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) # @option opts [Boolean] :is_undo # @option opts [String] :broadcast_id # @option opts [String] :sso - # @return [ReactFeedPostResponse] + # @return [ReactFeedPostPublicResponse] def react_feed_post_public(tenant_id, post_id, react_body_params, opts = {}) data, _status_code, _headers = react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, opts) data @@ -2914,7 +2914,7 @@ def react_feed_post_public(tenant_id, post_id, react_body_params, opts = {}) # @option opts [Boolean] :is_undo # @option opts [String] :broadcast_id # @option opts [String] :sso - # @return [Array<(ReactFeedPostResponse, Integer, Hash)>] ReactFeedPostResponse data, response status code and response headers + # @return [Array<(ReactFeedPostPublicResponse, Integer, Hash)>] ReactFeedPostPublicResponse data, response status code and response headers def react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.react_feed_post_public ...' @@ -2932,7 +2932,7 @@ def react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, fail ArgumentError, "Missing the required parameter 'react_body_params' when calling PublicApi.react_feed_post_public" end # resource path - local_var_path = '/feed-posts/{tenantId}/react/{postId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'postId' + '}', CGI.escape(post_id.to_s)) + local_var_path = '/feed-posts/{tenantId}/react/{postId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)).sub('{postId}', CGI.escape(post_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2957,7 +2957,7 @@ def react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, post_body = opts[:debug_body] || @api_client.object_to_http_body(react_body_params) # return_type - return_type = opts[:debug_return_type] || 'ReactFeedPostResponse' + return_type = opts[:debug_return_type] || 'ReactFeedPostPublicResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2982,7 +2982,7 @@ def react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [ResetUserNotificationsResponse] + # @return [ResetUserNotificationCountResponse] def reset_user_notification_count(tenant_id, opts = {}) data, _status_code, _headers = reset_user_notification_count_with_http_info(tenant_id, opts) data @@ -2991,7 +2991,7 @@ def reset_user_notification_count(tenant_id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [Array<(ResetUserNotificationsResponse, Integer, Hash)>] ResetUserNotificationsResponse data, response status code and response headers + # @return [Array<(ResetUserNotificationCountResponse, Integer, Hash)>] ResetUserNotificationCountResponse data, response status code and response headers def reset_user_notification_count_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.reset_user_notification_count ...' @@ -3020,7 +3020,7 @@ def reset_user_notification_count_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'ResetUserNotificationsResponse' + return_type = opts[:debug_return_type] || 'ResetUserNotificationCountResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -3050,7 +3050,7 @@ def reset_user_notification_count_with_http_info(tenant_id, opts = {}) # @option opts [Boolean] :dm_only # @option opts [Boolean] :no_dm # @option opts [String] :sso - # @return [ResetUserNotificationsResponse] + # @return [ResetUserNotificationsResponse1] def reset_user_notifications(tenant_id, opts = {}) data, _status_code, _headers = reset_user_notifications_with_http_info(tenant_id, opts) data @@ -3064,7 +3064,7 @@ def reset_user_notifications(tenant_id, opts = {}) # @option opts [Boolean] :dm_only # @option opts [Boolean] :no_dm # @option opts [String] :sso - # @return [Array<(ResetUserNotificationsResponse, Integer, Hash)>] ResetUserNotificationsResponse data, response status code and response headers + # @return [Array<(ResetUserNotificationsResponse1, Integer, Hash)>] ResetUserNotificationsResponse1 data, response status code and response headers def reset_user_notifications_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.reset_user_notifications ...' @@ -3098,7 +3098,7 @@ def reset_user_notifications_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'ResetUserNotificationsResponse' + return_type = opts[:debug_return_type] || 'ResetUserNotificationsResponse1' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -3127,7 +3127,7 @@ def reset_user_notifications_with_http_info(tenant_id, opts = {}) # @option opts [Array] :mention_group_ids # @option opts [String] :sso # @option opts [String] :search_section - # @return [SearchUsersResult] + # @return [SearchUsersResponse1] def search_users(tenant_id, url_id, opts = {}) data, _status_code, _headers = search_users_with_http_info(tenant_id, url_id, opts) data @@ -3140,7 +3140,7 @@ def search_users(tenant_id, url_id, opts = {}) # @option opts [Array] :mention_group_ids # @option opts [String] :sso # @option opts [String] :search_section - # @return [Array<(SearchUsersResult, Integer, Hash)>] SearchUsersResult data, response status code and response headers + # @return [Array<(SearchUsersResponse1, Integer, Hash)>] SearchUsersResponse1 data, response status code and response headers def search_users_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.search_users ...' @@ -3158,7 +3158,7 @@ def search_users_with_http_info(tenant_id, url_id, opts = {}) fail ArgumentError, "invalid value for \"search_section\", must be one of #{allowable_values}" end # resource path - local_var_path = '/user-search/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/user-search/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3180,7 +3180,7 @@ def search_users_with_http_info(tenant_id, url_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'SearchUsersResult' + return_type = opts[:debug_return_type] || 'SearchUsersResponse1' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -3209,7 +3209,7 @@ def search_users_with_http_info(tenant_id, url_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso - # @return [PublicAPISetCommentTextResponse] + # @return [SetCommentTextResponse1] def set_comment_text(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts = {}) data, _status_code, _headers = set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts) data @@ -3222,7 +3222,7 @@ def set_comment_text(tenant_id, comment_id, broadcast_id, comment_text_update_re # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso - # @return [Array<(PublicAPISetCommentTextResponse, Integer, Hash)>] PublicAPISetCommentTextResponse data, response status code and response headers + # @return [Array<(SetCommentTextResponse1, Integer, Hash)>] SetCommentTextResponse1 data, response status code and response headers def set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.set_comment_text ...' @@ -3244,7 +3244,7 @@ def set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment fail ArgumentError, "Missing the required parameter 'comment_text_update_request' when calling PublicApi.set_comment_text" end # resource path - local_var_path = '/comments/{tenantId}/{commentId}/update-text'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/comments/{tenantId}/{commentId}/update-text'.sub('{tenantId}', CGI.escape(tenant_id.to_s)).sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3269,7 +3269,7 @@ def set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment post_body = opts[:debug_body] || @api_client.object_to_http_body(comment_text_update_request) # return_type - return_type = opts[:debug_return_type] || 'PublicAPISetCommentTextResponse' + return_type = opts[:debug_return_type] || 'SetCommentTextResponse1' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -3296,7 +3296,7 @@ def set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment # @param public_block_from_comment_params [PublicBlockFromCommentParams] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [UnblockSuccess] + # @return [UnBlockCommentPublicResponse] def un_block_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts = {}) data, _status_code, _headers = un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) data @@ -3307,7 +3307,7 @@ def un_block_comment_public(tenant_id, comment_id, public_block_from_comment_par # @param public_block_from_comment_params [PublicBlockFromCommentParams] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [Array<(UnblockSuccess, Integer, Hash)>] UnblockSuccess data, response status code and response headers + # @return [Array<(UnBlockCommentPublicResponse, Integer, Hash)>] UnBlockCommentPublicResponse data, response status code and response headers def un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.un_block_comment_public ...' @@ -3325,7 +3325,7 @@ def un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_f fail ArgumentError, "Missing the required parameter 'public_block_from_comment_params' when calling PublicApi.un_block_comment_public" end # resource path - local_var_path = '/block-from-comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/block-from-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3349,7 +3349,7 @@ def un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_f post_body = opts[:debug_body] || @api_client.object_to_http_body(public_block_from_comment_params) # return_type - return_type = opts[:debug_return_type] || 'UnblockSuccess' + return_type = opts[:debug_return_type] || 'UnBlockCommentPublicResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -3376,7 +3376,7 @@ def un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_f # @param broadcast_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [APIEmptyResponse] + # @return [UnLockCommentResponse] def un_lock_comment(tenant_id, comment_id, broadcast_id, opts = {}) data, _status_code, _headers = un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) data @@ -3387,7 +3387,7 @@ def un_lock_comment(tenant_id, comment_id, broadcast_id, opts = {}) # @param broadcast_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers + # @return [Array<(UnLockCommentResponse, Integer, Hash)>] UnLockCommentResponse data, response status code and response headers def un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.un_lock_comment ...' @@ -3405,7 +3405,7 @@ def un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = { fail ArgumentError, "Missing the required parameter 'broadcast_id' when calling PublicApi.un_lock_comment" end # resource path - local_var_path = '/comments/{tenantId}/{commentId}/unlock'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/comments/{tenantId}/{commentId}/unlock'.sub('{tenantId}', CGI.escape(tenant_id.to_s)).sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3424,7 +3424,7 @@ def un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = { post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'APIEmptyResponse' + return_type = opts[:debug_return_type] || 'UnLockCommentResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -3451,7 +3451,7 @@ def un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = { # @param broadcast_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [ChangeCommentPinStatusResponse] + # @return [UnPinCommentResponse] def un_pin_comment(tenant_id, comment_id, broadcast_id, opts = {}) data, _status_code, _headers = un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) data @@ -3462,7 +3462,7 @@ def un_pin_comment(tenant_id, comment_id, broadcast_id, opts = {}) # @param broadcast_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [Array<(ChangeCommentPinStatusResponse, Integer, Hash)>] ChangeCommentPinStatusResponse data, response status code and response headers + # @return [Array<(UnPinCommentResponse, Integer, Hash)>] UnPinCommentResponse data, response status code and response headers def un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.un_pin_comment ...' @@ -3480,7 +3480,7 @@ def un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {} fail ArgumentError, "Missing the required parameter 'broadcast_id' when calling PublicApi.un_pin_comment" end # resource path - local_var_path = '/comments/{tenantId}/{commentId}/unpin'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/comments/{tenantId}/{commentId}/unpin'.sub('{tenantId}', CGI.escape(tenant_id.to_s)).sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3499,7 +3499,7 @@ def un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {} post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'ChangeCommentPinStatusResponse' + return_type = opts[:debug_return_type] || 'UnPinCommentResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -3527,7 +3527,7 @@ def un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {} # @param [Hash] opts the optional parameters # @option opts [String] :broadcast_id # @option opts [String] :sso - # @return [CreateFeedPostResponse] + # @return [UpdateFeedPostPublicResponse] def update_feed_post_public(tenant_id, post_id, update_feed_post_params, opts = {}) data, _status_code, _headers = update_feed_post_public_with_http_info(tenant_id, post_id, update_feed_post_params, opts) data @@ -3539,7 +3539,7 @@ def update_feed_post_public(tenant_id, post_id, update_feed_post_params, opts = # @param [Hash] opts the optional parameters # @option opts [String] :broadcast_id # @option opts [String] :sso - # @return [Array<(CreateFeedPostResponse, Integer, Hash)>] CreateFeedPostResponse data, response status code and response headers + # @return [Array<(UpdateFeedPostPublicResponse, Integer, Hash)>] UpdateFeedPostPublicResponse data, response status code and response headers def update_feed_post_public_with_http_info(tenant_id, post_id, update_feed_post_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.update_feed_post_public ...' @@ -3557,7 +3557,7 @@ def update_feed_post_public_with_http_info(tenant_id, post_id, update_feed_post_ fail ArgumentError, "Missing the required parameter 'update_feed_post_params' when calling PublicApi.update_feed_post_public" end # resource path - local_var_path = '/feed-posts/{tenantId}/{postId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'postId' + '}', CGI.escape(post_id.to_s)) + local_var_path = '/feed-posts/{tenantId}/{postId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)).sub('{postId}', CGI.escape(post_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3581,7 +3581,7 @@ def update_feed_post_public_with_http_info(tenant_id, post_id, update_feed_post_ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_feed_post_params) # return_type - return_type = opts[:debug_return_type] || 'CreateFeedPostResponse' + return_type = opts[:debug_return_type] || 'UpdateFeedPostPublicResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -3650,7 +3650,7 @@ def update_user_notification_comment_subscription_status_with_http_info(tenant_i fail ArgumentError, "Missing the required parameter 'comment_id' when calling PublicApi.update_user_notification_comment_subscription_status" end # resource path - local_var_path = '/user-notifications/{notificationId}/mark-opted/{optedInOrOut}'.sub('{' + 'notificationId' + '}', CGI.escape(notification_id.to_s)).sub('{' + 'optedInOrOut' + '}', CGI.escape(opted_in_or_out.to_s)) + local_var_path = '/user-notifications/{notificationId}/mark-opted/{optedInOrOut}'.sub('{notificationId}', CGI.escape(notification_id.to_s)).sub('{optedInOrOut}', CGI.escape(opted_in_or_out.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3745,7 +3745,7 @@ def update_user_notification_page_subscription_status_with_http_info(tenant_id, fail ArgumentError, "invalid value for \"subscribed_or_unsubscribed\", must be one of #{allowable_values}" end # resource path - local_var_path = '/user-notifications/set-subscription-state/{subscribedOrUnsubscribed}'.sub('{' + 'subscribedOrUnsubscribed' + '}', CGI.escape(subscribed_or_unsubscribed.to_s)) + local_var_path = '/user-notifications/set-subscription-state/{subscribedOrUnsubscribed}'.sub('{subscribedOrUnsubscribed}', CGI.escape(subscribed_or_unsubscribed.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3828,7 +3828,7 @@ def update_user_notification_status_with_http_info(tenant_id, notification_id, n fail ArgumentError, "invalid value for \"new_status\", must be one of #{allowable_values}" end # resource path - local_var_path = '/user-notifications/{notificationId}/mark/{newStatus}'.sub('{' + 'notificationId' + '}', CGI.escape(notification_id.to_s)).sub('{' + 'newStatus' + '}', CGI.escape(new_status.to_s)) + local_var_path = '/user-notifications/{notificationId}/mark/{newStatus}'.sub('{notificationId}', CGI.escape(notification_id.to_s)).sub('{newStatus}', CGI.escape(new_status.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3901,7 +3901,7 @@ def upload_image_with_http_info(tenant_id, file, opts = {}) fail ArgumentError, "Missing the required parameter 'file' when calling PublicApi.upload_image" end # resource path - local_var_path = '/upload-image/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/upload-image/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3956,7 +3956,7 @@ def upload_image_with_http_info(tenant_id, file, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :session_id # @option opts [String] :sso - # @return [VoteResponse] + # @return [VoteCommentResponse] def vote_comment(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts = {}) data, _status_code, _headers = vote_comment_with_http_info(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts) data @@ -3970,7 +3970,7 @@ def vote_comment(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, # @param [Hash] opts the optional parameters # @option opts [String] :session_id # @option opts [String] :sso - # @return [Array<(VoteResponse, Integer, Hash)>] VoteResponse data, response status code and response headers + # @return [Array<(VoteCommentResponse, Integer, Hash)>] VoteCommentResponse data, response status code and response headers def vote_comment_with_http_info(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.vote_comment ...' @@ -3996,7 +3996,7 @@ def vote_comment_with_http_info(tenant_id, comment_id, url_id, broadcast_id, vot fail ArgumentError, "Missing the required parameter 'vote_body_params' when calling PublicApi.vote_comment" end # resource path - local_var_path = '/comments/{tenantId}/{commentId}/vote'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/comments/{tenantId}/{commentId}/vote'.sub('{tenantId}', CGI.escape(tenant_id.to_s)).sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -4022,7 +4022,7 @@ def vote_comment_with_http_info(tenant_id, comment_id, url_id, broadcast_id, vot post_body = opts[:debug_body] || @api_client.object_to_http_body(vote_body_params) # return_type - return_type = opts[:debug_return_type] || 'VoteResponse' + return_type = opts[:debug_return_type] || 'VoteCommentResponse' # auth_names auth_names = opts[:debug_auth_names] || [] diff --git a/client/lib/fastcomments-client/api_client.rb b/client/lib/fastcomments-client/api_client.rb index 6edf407..a56359e 100644 --- a/client/lib/fastcomments-client/api_client.rb +++ b/client/lib/fastcomments-client/api_client.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -278,9 +278,13 @@ def convert_to_type(data, return_type) data.each { |k, v| hash[k] = convert_to_type(v, sub_type) } end else - # models (e.g. Pet) or oneOf + # models (e.g. Pet) or oneOf/anyOf klass = FastCommentsClient.const_get(return_type) - klass.respond_to?(:openapi_one_of) ? klass.build(data) : klass.build_from_hash(data) + if klass.respond_to?(:openapi_one_of) || klass.respond_to?(:openapi_any_of) + klass.build(data) + else + klass.build_from_hash(data) + end end end diff --git a/client/lib/fastcomments-client/api_error.rb b/client/lib/fastcomments-client/api_error.rb index fb5d552..84257b2 100644 --- a/client/lib/fastcomments-client/api_error.rb +++ b/client/lib/fastcomments-client/api_error.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/api_model_base.rb b/client/lib/fastcomments-client/api_model_base.rb new file mode 100644 index 0000000..1affa2b --- /dev/null +++ b/client/lib/fastcomments-client/api_model_base.rb @@ -0,0 +1,88 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +module FastCommentsClient + class ApiModelBase + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = FastCommentsClient.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/client/lib/fastcomments-client/configuration.rb b/client/lib/fastcomments-client/configuration.rb index 531c441..bcb0b1d 100644 --- a/client/lib/fastcomments-client/configuration.rb +++ b/client/lib/fastcomments-client/configuration.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/add_domain_config_params.rb b/client/lib/fastcomments-client/models/add_domain_config_params.rb index 5adb578..872d70a 100644 --- a/client/lib/fastcomments-client/models/add_domain_config_params.rb +++ b/client/lib/fastcomments-client/models/add_domain_config_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class AddDomainConfigParams + class AddDomainConfigParams < ApiModelBase attr_accessor :domain attr_accessor :email_from_name @@ -200,61 +200,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -271,24 +216,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/add_domain_config_response.rb b/client/lib/fastcomments-client/models/add_domain_config_response.rb index 5673cba..5b4de85 100644 --- a/client/lib/fastcomments-client/models/add_domain_config_response.rb +++ b/client/lib/fastcomments-client/models/add_domain_config_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/add_domain_config_response_any_of.rb b/client/lib/fastcomments-client/models/add_domain_config_response_any_of.rb index 24ef689..b92109a 100644 --- a/client/lib/fastcomments-client/models/add_domain_config_response_any_of.rb +++ b/client/lib/fastcomments-client/models/add_domain_config_response_any_of.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class AddDomainConfigResponseAnyOf + class AddDomainConfigResponseAnyOf < ApiModelBase attr_accessor :configuration attr_accessor :status @@ -141,61 +141,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -212,24 +157,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/vote_response_status.rb b/client/lib/fastcomments-client/models/add_hash_tag_response.rb similarity index 94% rename from client/lib/fastcomments-client/models/vote_response_status.rb rename to client/lib/fastcomments-client/models/add_hash_tag_response.rb index cd0e54e..194bb19 100644 --- a/client/lib/fastcomments-client/models/vote_response_status.rb +++ b/client/lib/fastcomments-client/models/add_hash_tag_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,13 +14,13 @@ require 'time' module FastCommentsClient - module VoteResponseStatus + module AddHashTagResponse class << self # List of class defined in anyOf (OpenAPI v3) def openapi_any_of [ - :'APIStatus', - :'String' + :'APIError', + :'CreateHashTagResponse' ] end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/add_hash_tags_bulk_response.rb b/client/lib/fastcomments-client/models/add_hash_tags_bulk_response.rb new file mode 100644 index 0000000..051b82b --- /dev/null +++ b/client/lib/fastcomments-client/models/add_hash_tags_bulk_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module AddHashTagsBulkResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'BulkCreateHashTagsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/add_page_api_response.rb b/client/lib/fastcomments-client/models/add_page_api_response.rb index 1450e37..1823fd6 100644 --- a/client/lib/fastcomments-client/models/add_page_api_response.rb +++ b/client/lib/fastcomments-client/models/add_page_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class AddPageAPIResponse + class AddPageAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -170,61 +170,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -241,24 +186,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/add_sso_user_api_response.rb b/client/lib/fastcomments-client/models/add_sso_user_api_response.rb index d29a7de..42cb4c8 100644 --- a/client/lib/fastcomments-client/models/add_sso_user_api_response.rb +++ b/client/lib/fastcomments-client/models/add_sso_user_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class AddSSOUserAPIResponse + class AddSSOUserAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -170,61 +170,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -241,24 +186,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/adjust_comment_votes_params.rb b/client/lib/fastcomments-client/models/adjust_comment_votes_params.rb index f30d550..1a73d2b 100644 --- a/client/lib/fastcomments-client/models/adjust_comment_votes_params.rb +++ b/client/lib/fastcomments-client/models/adjust_comment_votes_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class AdjustCommentVotesParams + class AdjustCommentVotesParams < ApiModelBase attr_accessor :adjust_vote_amount # Attribute mapping from ruby-style variable name to JSON key. @@ -143,61 +143,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -214,24 +159,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/adjust_votes_response.rb b/client/lib/fastcomments-client/models/adjust_votes_response.rb index 8d1985f..42b35c0 100644 --- a/client/lib/fastcomments-client/models/adjust_votes_response.rb +++ b/client/lib/fastcomments-client/models/adjust_votes_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class AdjustVotesResponse + class AdjustVotesResponse < ApiModelBase attr_accessor :status attr_accessor :new_comment_votes @@ -169,61 +169,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -240,24 +185,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/aggregate_question_results_response.rb b/client/lib/fastcomments-client/models/aggregate_question_results_response.rb index 08b80e2..401e838 100644 --- a/client/lib/fastcomments-client/models/aggregate_question_results_response.rb +++ b/client/lib/fastcomments-client/models/aggregate_question_results_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class AggregateQuestionResultsResponse + class AggregateQuestionResultsResponse < ApiModelBase attr_accessor :status attr_accessor :data @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/aggregate_question_results_response1.rb b/client/lib/fastcomments-client/models/aggregate_question_results_response1.rb new file mode 100644 index 0000000..6a77b3a --- /dev/null +++ b/client/lib/fastcomments-client/models/aggregate_question_results_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module AggregateQuestionResultsResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'AggregateQuestionResultsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/aggregate_response.rb b/client/lib/fastcomments-client/models/aggregate_response.rb index 89c69bb..b802916 100644 --- a/client/lib/fastcomments-client/models/aggregate_response.rb +++ b/client/lib/fastcomments-client/models/aggregate_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/aggregate_time_bucket.rb b/client/lib/fastcomments-client/models/aggregate_time_bucket.rb index 0f5854e..fa98b1a 100644 --- a/client/lib/fastcomments-client/models/aggregate_time_bucket.rb +++ b/client/lib/fastcomments-client/models/aggregate_time_bucket.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/aggregation_api_error.rb b/client/lib/fastcomments-client/models/aggregation_api_error.rb index c0115f2..195395b 100644 --- a/client/lib/fastcomments-client/models/aggregation_api_error.rb +++ b/client/lib/fastcomments-client/models/aggregation_api_error.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class AggregationAPIError + class AggregationAPIError < ApiModelBase attr_accessor :status attr_accessor :reason @@ -228,61 +228,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -299,24 +244,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/aggregation_item.rb b/client/lib/fastcomments-client/models/aggregation_item.rb index 746f943..34dc4a5 100644 --- a/client/lib/fastcomments-client/models/aggregation_item.rb +++ b/client/lib/fastcomments-client/models/aggregation_item.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class AggregationItem + class AggregationItem < ApiModelBase # Construct a type with a set of properties K of type T attr_accessor :groups @@ -129,61 +129,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -200,24 +145,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/aggregation_op_type.rb b/client/lib/fastcomments-client/models/aggregation_op_type.rb index fadfdb5..64ef2ec 100644 --- a/client/lib/fastcomments-client/models/aggregation_op_type.rb +++ b/client/lib/fastcomments-client/models/aggregation_op_type.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/aggregation_operation.rb b/client/lib/fastcomments-client/models/aggregation_operation.rb index 5f87916..739e4b3 100644 --- a/client/lib/fastcomments-client/models/aggregation_operation.rb +++ b/client/lib/fastcomments-client/models/aggregation_operation.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -15,7 +15,7 @@ module FastCommentsClient # An operation that will be applied on a field - class AggregationOperation + class AggregationOperation < ApiModelBase # The field to operate on attr_accessor :field @@ -212,61 +212,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -283,24 +228,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/aggregation_request.rb b/client/lib/fastcomments-client/models/aggregation_request.rb index fb9516e..bb336af 100644 --- a/client/lib/fastcomments-client/models/aggregation_request.rb +++ b/client/lib/fastcomments-client/models/aggregation_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -15,7 +15,7 @@ module FastCommentsClient # The aggregation request accepts a resource, optional grouping keys, an array of operations, and an optional sort - class AggregationRequest + class AggregationRequest < ApiModelBase attr_accessor :query attr_accessor :resource_name @@ -203,61 +203,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -274,24 +219,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/aggregation_request_sort.rb b/client/lib/fastcomments-client/models/aggregation_request_sort.rb index f672889..58ad1f2 100644 --- a/client/lib/fastcomments-client/models/aggregation_request_sort.rb +++ b/client/lib/fastcomments-client/models/aggregation_request_sort.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class AggregationRequestSort + class AggregationRequestSort < ApiModelBase attr_accessor :dir attr_accessor :field @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/aggregation_response.rb b/client/lib/fastcomments-client/models/aggregation_response.rb index b41e3d0..31d65d4 100644 --- a/client/lib/fastcomments-client/models/aggregation_response.rb +++ b/client/lib/fastcomments-client/models/aggregation_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -15,7 +15,7 @@ module FastCommentsClient # The API response returns the aggregated data along with simple stats - class AggregationResponse + class AggregationResponse < ApiModelBase attr_accessor :status attr_accessor :data @@ -203,61 +203,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -274,24 +219,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/aggregation_response_stats.rb b/client/lib/fastcomments-client/models/aggregation_response_stats.rb index 2a86e0f..70b1a6c 100644 --- a/client/lib/fastcomments-client/models/aggregation_response_stats.rb +++ b/client/lib/fastcomments-client/models/aggregation_response_stats.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class AggregationResponseStats + class AggregationResponseStats < ApiModelBase attr_accessor :time_ms attr_accessor :scanned @@ -169,61 +169,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -240,24 +185,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/aggregation_value.rb b/client/lib/fastcomments-client/models/aggregation_value.rb index f611301..ba3c77f 100644 --- a/client/lib/fastcomments-client/models/aggregation_value.rb +++ b/client/lib/fastcomments-client/models/aggregation_value.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class AggregationValue + class AggregationValue < ApiModelBase # Construct a type with a set of properties K of type T attr_accessor :groups @@ -168,61 +168,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -239,24 +184,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_audit_log.rb b/client/lib/fastcomments-client/models/api_audit_log.rb index 20ea1d2..ea636df 100644 --- a/client/lib/fastcomments-client/models/api_audit_log.rb +++ b/client/lib/fastcomments-client/models/api_audit_log.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIAuditLog + class APIAuditLog < ApiModelBase attr_accessor :_id attr_accessor :user_id @@ -318,61 +318,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -389,24 +334,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_ban_user_change_log.rb b/client/lib/fastcomments-client/models/api_ban_user_change_log.rb index ee071df..4a68151 100644 --- a/client/lib/fastcomments-client/models/api_ban_user_change_log.rb +++ b/client/lib/fastcomments-client/models/api_ban_user_change_log.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIBanUserChangeLog + class APIBanUserChangeLog < ApiModelBase attr_accessor :created_banned_user_id attr_accessor :updated_banned_user_id @@ -155,61 +155,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -226,24 +171,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_ban_user_changed_values.rb b/client/lib/fastcomments-client/models/api_ban_user_changed_values.rb index 754c0e2..0f6f8dc 100644 --- a/client/lib/fastcomments-client/models/api_ban_user_changed_values.rb +++ b/client/lib/fastcomments-client/models/api_ban_user_changed_values.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIBanUserChangedValues + class APIBanUserChangedValues < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -239,61 +239,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -310,24 +255,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_banned_user.rb b/client/lib/fastcomments-client/models/api_banned_user.rb index 0fc2679..bf303f5 100644 --- a/client/lib/fastcomments-client/models/api_banned_user.rb +++ b/client/lib/fastcomments-client/models/api_banned_user.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIBannedUser + class APIBannedUser < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -360,61 +360,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -431,24 +376,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_banned_user_with_multi_match_info.rb b/client/lib/fastcomments-client/models/api_banned_user_with_multi_match_info.rb index 1f8fecc..3dd3c98 100644 --- a/client/lib/fastcomments-client/models/api_banned_user_with_multi_match_info.rb +++ b/client/lib/fastcomments-client/models/api_banned_user_with_multi_match_info.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIBannedUserWithMultiMatchInfo + class APIBannedUserWithMultiMatchInfo < ApiModelBase attr_accessor :_id attr_accessor :user_id @@ -281,61 +281,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -352,24 +297,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_comment.rb b/client/lib/fastcomments-client/models/api_comment.rb index 7371255..667cf97 100644 --- a/client/lib/fastcomments-client/models/api_comment.rb +++ b/client/lib/fastcomments-client/models/api_comment.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIComment + class APIComment < ApiModelBase attr_accessor :id attr_accessor :ai_determined_spam @@ -794,61 +794,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -865,24 +810,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_comment_base.rb b/client/lib/fastcomments-client/models/api_comment_base.rb index 37b0e79..747914b 100644 --- a/client/lib/fastcomments-client/models/api_comment_base.rb +++ b/client/lib/fastcomments-client/models/api_comment_base.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APICommentBase + class APICommentBase < ApiModelBase attr_accessor :id attr_accessor :ai_determined_spam @@ -787,61 +787,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -858,24 +803,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_comment_base_meta.rb b/client/lib/fastcomments-client/models/api_comment_base_meta.rb index c63aa6f..28f4deb 100644 --- a/client/lib/fastcomments-client/models/api_comment_base_meta.rb +++ b/client/lib/fastcomments-client/models/api_comment_base_meta.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APICommentBaseMeta + class APICommentBaseMeta < ApiModelBase attr_accessor :wp_user_id attr_accessor :wp_post_id @@ -135,61 +135,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -206,24 +151,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_comment_common_banned_user.rb b/client/lib/fastcomments-client/models/api_comment_common_banned_user.rb index b18c65f..38c0b1b 100644 --- a/client/lib/fastcomments-client/models/api_comment_common_banned_user.rb +++ b/client/lib/fastcomments-client/models/api_comment_common_banned_user.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APICommentCommonBannedUser + class APICommentCommonBannedUser < ApiModelBase attr_accessor :_id attr_accessor :user_id @@ -246,61 +246,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -317,24 +262,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_create_user_badge_response.rb b/client/lib/fastcomments-client/models/api_create_user_badge_response.rb index b67732c..e42608b 100644 --- a/client/lib/fastcomments-client/models/api_create_user_badge_response.rb +++ b/client/lib/fastcomments-client/models/api_create_user_badge_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APICreateUserBadgeResponse + class APICreateUserBadgeResponse < ApiModelBase attr_accessor :status attr_accessor :user_badge @@ -202,61 +202,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -273,24 +218,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_domain_configuration.rb b/client/lib/fastcomments-client/models/api_domain_configuration.rb index a90308c..8eaef95 100644 --- a/client/lib/fastcomments-client/models/api_domain_configuration.rb +++ b/client/lib/fastcomments-client/models/api_domain_configuration.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIDomainConfiguration + class APIDomainConfiguration < ApiModelBase attr_accessor :id attr_accessor :domain @@ -334,61 +334,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -405,24 +350,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_empty_response.rb b/client/lib/fastcomments-client/models/api_empty_response.rb index 15e3bb3..41144eb 100644 --- a/client/lib/fastcomments-client/models/api_empty_response.rb +++ b/client/lib/fastcomments-client/models/api_empty_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIEmptyResponse + class APIEmptyResponse < ApiModelBase attr_accessor :status class EnumAttributeValidator @@ -165,61 +165,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -236,24 +181,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_empty_success_response.rb b/client/lib/fastcomments-client/models/api_empty_success_response.rb index 694931e..36fd425 100644 --- a/client/lib/fastcomments-client/models/api_empty_success_response.rb +++ b/client/lib/fastcomments-client/models/api_empty_success_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIEmptySuccessResponse + class APIEmptySuccessResponse < ApiModelBase attr_accessor :status class EnumAttributeValidator @@ -165,61 +165,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -236,24 +181,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_error.rb b/client/lib/fastcomments-client/models/api_error.rb index 025c011..5ce6bb1 100644 --- a/client/lib/fastcomments-client/models/api_error.rb +++ b/client/lib/fastcomments-client/models/api_error.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIError + class APIError < ApiModelBase attr_accessor :status attr_accessor :reason @@ -262,61 +262,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -333,24 +278,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_get_comment_response.rb b/client/lib/fastcomments-client/models/api_get_comment_response.rb index 9a9a9e7..a80d6d6 100644 --- a/client/lib/fastcomments-client/models/api_get_comment_response.rb +++ b/client/lib/fastcomments-client/models/api_get_comment_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIGetCommentResponse + class APIGetCommentResponse < ApiModelBase attr_accessor :status attr_accessor :comment @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_get_comments_response.rb b/client/lib/fastcomments-client/models/api_get_comments_response.rb index 5e15f4c..913801a 100644 --- a/client/lib/fastcomments-client/models/api_get_comments_response.rb +++ b/client/lib/fastcomments-client/models/api_get_comments_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIGetCommentsResponse + class APIGetCommentsResponse < ApiModelBase attr_accessor :status attr_accessor :comments @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_get_user_badge_progress_list_response.rb b/client/lib/fastcomments-client/models/api_get_user_badge_progress_list_response.rb index e7b380a..665130c 100644 --- a/client/lib/fastcomments-client/models/api_get_user_badge_progress_list_response.rb +++ b/client/lib/fastcomments-client/models/api_get_user_badge_progress_list_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIGetUserBadgeProgressListResponse + class APIGetUserBadgeProgressListResponse < ApiModelBase attr_accessor :status attr_accessor :user_badge_progresses @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_get_user_badge_progress_response.rb b/client/lib/fastcomments-client/models/api_get_user_badge_progress_response.rb index 17a7b9f..6818407 100644 --- a/client/lib/fastcomments-client/models/api_get_user_badge_progress_response.rb +++ b/client/lib/fastcomments-client/models/api_get_user_badge_progress_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIGetUserBadgeProgressResponse + class APIGetUserBadgeProgressResponse < ApiModelBase attr_accessor :status attr_accessor :user_badge_progress @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_get_user_badge_response.rb b/client/lib/fastcomments-client/models/api_get_user_badge_response.rb index 30f4404..4a0e343 100644 --- a/client/lib/fastcomments-client/models/api_get_user_badge_response.rb +++ b/client/lib/fastcomments-client/models/api_get_user_badge_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIGetUserBadgeResponse + class APIGetUserBadgeResponse < ApiModelBase attr_accessor :status attr_accessor :user_badge @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_get_user_badges_response.rb b/client/lib/fastcomments-client/models/api_get_user_badges_response.rb index ce20ca9..bfb5714 100644 --- a/client/lib/fastcomments-client/models/api_get_user_badges_response.rb +++ b/client/lib/fastcomments-client/models/api_get_user_badges_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIGetUserBadgesResponse + class APIGetUserBadgesResponse < ApiModelBase attr_accessor :status attr_accessor :user_badges @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_moderate_get_user_ban_preferences_response.rb b/client/lib/fastcomments-client/models/api_moderate_get_user_ban_preferences_response.rb index 02bc065..610eff9 100644 --- a/client/lib/fastcomments-client/models/api_moderate_get_user_ban_preferences_response.rb +++ b/client/lib/fastcomments-client/models/api_moderate_get_user_ban_preferences_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIModerateGetUserBanPreferencesResponse + class APIModerateGetUserBanPreferencesResponse < ApiModelBase attr_accessor :preferences attr_accessor :status @@ -177,61 +177,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -248,24 +193,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_moderate_user_ban_preferences.rb b/client/lib/fastcomments-client/models/api_moderate_user_ban_preferences.rb index b89d3f9..153733b 100644 --- a/client/lib/fastcomments-client/models/api_moderate_user_ban_preferences.rb +++ b/client/lib/fastcomments-client/models/api_moderate_user_ban_preferences.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIModerateUserBanPreferences + class APIModerateUserBanPreferences < ApiModelBase attr_accessor :should_ban_email attr_accessor :should_ban_by_ip @@ -221,61 +221,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -292,24 +237,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_page.rb b/client/lib/fastcomments-client/models/api_page.rb index b3a6f21..f59e539 100644 --- a/client/lib/fastcomments-client/models/api_page.rb +++ b/client/lib/fastcomments-client/models/api_page.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIPage + class APIPage < ApiModelBase attr_accessor :is_closed attr_accessor :accessible_by_group_ids @@ -302,61 +302,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -373,24 +318,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_save_comment_response.rb b/client/lib/fastcomments-client/models/api_save_comment_response.rb index 8c17e75..d03ade7 100644 --- a/client/lib/fastcomments-client/models/api_save_comment_response.rb +++ b/client/lib/fastcomments-client/models/api_save_comment_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APISaveCommentResponse + class APISaveCommentResponse < ApiModelBase attr_accessor :status attr_accessor :comment @@ -215,61 +215,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -286,24 +231,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_status.rb b/client/lib/fastcomments-client/models/api_status.rb index 0612e35..87b4b85 100644 --- a/client/lib/fastcomments-client/models/api_status.rb +++ b/client/lib/fastcomments-client/models/api_status.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/api_tenant.rb b/client/lib/fastcomments-client/models/api_tenant.rb index 2766edc..1704546 100644 --- a/client/lib/fastcomments-client/models/api_tenant.rb +++ b/client/lib/fastcomments-client/models/api_tenant.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APITenant + class APITenant < ApiModelBase attr_accessor :id attr_accessor :name @@ -562,61 +562,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -633,24 +578,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_tenant_daily_usage.rb b/client/lib/fastcomments-client/models/api_tenant_daily_usage.rb index 97b5351..688eac8 100644 --- a/client/lib/fastcomments-client/models/api_tenant_daily_usage.rb +++ b/client/lib/fastcomments-client/models/api_tenant_daily_usage.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APITenantDailyUsage + class APITenantDailyUsage < ApiModelBase attr_accessor :id attr_accessor :tenant_id @@ -611,61 +611,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -682,24 +627,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_ticket.rb b/client/lib/fastcomments-client/models/api_ticket.rb index 83acd63..8a8ec4c 100644 --- a/client/lib/fastcomments-client/models/api_ticket.rb +++ b/client/lib/fastcomments-client/models/api_ticket.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APITicket + class APITicket < ApiModelBase attr_accessor :_id attr_accessor :url_id @@ -353,61 +353,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -424,24 +369,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_ticket_detail.rb b/client/lib/fastcomments-client/models/api_ticket_detail.rb index 8013b4a..df4d7f0 100644 --- a/client/lib/fastcomments-client/models/api_ticket_detail.rb +++ b/client/lib/fastcomments-client/models/api_ticket_detail.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APITicketDetail + class APITicketDetail < ApiModelBase attr_accessor :_id attr_accessor :url_id @@ -411,61 +411,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -482,24 +427,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_ticket_file.rb b/client/lib/fastcomments-client/models/api_ticket_file.rb index f48d2d5..71300ba 100644 --- a/client/lib/fastcomments-client/models/api_ticket_file.rb +++ b/client/lib/fastcomments-client/models/api_ticket_file.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APITicketFile + class APITicketFile < ApiModelBase attr_accessor :id attr_accessor :s3_key @@ -360,61 +360,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -431,24 +376,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_user_subscription.rb b/client/lib/fastcomments-client/models/api_user_subscription.rb index c761e2e..9944349 100644 --- a/client/lib/fastcomments-client/models/api_user_subscription.rb +++ b/client/lib/fastcomments-client/models/api_user_subscription.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIUserSubscription + class APIUserSubscription < ApiModelBase attr_accessor :notification_frequency attr_accessor :created_at @@ -240,61 +240,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -311,24 +256,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/apisso_user.rb b/client/lib/fastcomments-client/models/apisso_user.rb index 878b51b..46bacad 100644 --- a/client/lib/fastcomments-client/models/apisso_user.rb +++ b/client/lib/fastcomments-client/models/apisso_user.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APISSOUser + class APISSOUser < ApiModelBase attr_accessor :id attr_accessor :username @@ -503,61 +503,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -574,24 +519,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/award_user_badge_response.rb b/client/lib/fastcomments-client/models/award_user_badge_response.rb index dc7207e..e470c96 100644 --- a/client/lib/fastcomments-client/models/award_user_badge_response.rb +++ b/client/lib/fastcomments-client/models/award_user_badge_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class AwardUserBadgeResponse + class AwardUserBadgeResponse < ApiModelBase attr_accessor :notes attr_accessor :badges @@ -187,61 +187,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -258,24 +203,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/ban_user_from_comment_result.rb b/client/lib/fastcomments-client/models/ban_user_from_comment_result.rb index 18a6c4d..9b22477 100644 --- a/client/lib/fastcomments-client/models/ban_user_from_comment_result.rb +++ b/client/lib/fastcomments-client/models/ban_user_from_comment_result.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BanUserFromCommentResult + class BanUserFromCommentResult < ApiModelBase attr_accessor :status attr_accessor :changelog @@ -170,61 +170,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -241,24 +186,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/ban_user_undo_params.rb b/client/lib/fastcomments-client/models/ban_user_undo_params.rb index 7b2e2b4..cebe187 100644 --- a/client/lib/fastcomments-client/models/ban_user_undo_params.rb +++ b/client/lib/fastcomments-client/models/ban_user_undo_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BanUserUndoParams + class BanUserUndoParams < ApiModelBase attr_accessor :changelog # Attribute mapping from ruby-style variable name to JSON key. @@ -143,61 +143,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -214,24 +159,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/banned_user_match.rb b/client/lib/fastcomments-client/models/banned_user_match.rb index 99fa09a..886bad2 100644 --- a/client/lib/fastcomments-client/models/banned_user_match.rb +++ b/client/lib/fastcomments-client/models/banned_user_match.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BannedUserMatch + class BannedUserMatch < ApiModelBase attr_accessor :matched_on attr_accessor :matched_on_value @@ -177,61 +177,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -248,24 +193,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/banned_user_match_matched_on_value.rb b/client/lib/fastcomments-client/models/banned_user_match_matched_on_value.rb index 4f4e389..fd2768c 100644 --- a/client/lib/fastcomments-client/models/banned_user_match_matched_on_value.rb +++ b/client/lib/fastcomments-client/models/banned_user_match_matched_on_value.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/banned_user_match_type.rb b/client/lib/fastcomments-client/models/banned_user_match_type.rb index 23e9fac..b54116d 100644 --- a/client/lib/fastcomments-client/models/banned_user_match_type.rb +++ b/client/lib/fastcomments-client/models/banned_user_match_type.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/billing_info.rb b/client/lib/fastcomments-client/models/billing_info.rb index 9e18887..3a568ba 100644 --- a/client/lib/fastcomments-client/models/billing_info.rb +++ b/client/lib/fastcomments-client/models/billing_info.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BillingInfo + class BillingInfo < ApiModelBase attr_accessor :name attr_accessor :address @@ -294,61 +294,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -365,24 +310,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/block_from_comment_params.rb b/client/lib/fastcomments-client/models/block_from_comment_params.rb index 18b4e66..764b3df 100644 --- a/client/lib/fastcomments-client/models/block_from_comment_params.rb +++ b/client/lib/fastcomments-client/models/block_from_comment_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BlockFromCommentParams + class BlockFromCommentParams < ApiModelBase attr_accessor :comment_ids_to_check # Attribute mapping from ruby-style variable name to JSON key. @@ -128,61 +128,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -199,24 +144,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/block_from_comment_public_response.rb b/client/lib/fastcomments-client/models/block_from_comment_public_response.rb new file mode 100644 index 0000000..dcb3346 --- /dev/null +++ b/client/lib/fastcomments-client/models/block_from_comment_public_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module BlockFromCommentPublicResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'BlockSuccess' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/block_success.rb b/client/lib/fastcomments-client/models/block_success.rb index 76d1728..5e06b16 100644 --- a/client/lib/fastcomments-client/models/block_success.rb +++ b/client/lib/fastcomments-client/models/block_success.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BlockSuccess + class BlockSuccess < ApiModelBase attr_accessor :status # Construct a type with a set of properties K of type T @@ -194,61 +194,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -265,24 +210,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/block_user_from_comment_response.rb b/client/lib/fastcomments-client/models/block_user_from_comment_response.rb new file mode 100644 index 0000000..072c0d1 --- /dev/null +++ b/client/lib/fastcomments-client/models/block_user_from_comment_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module BlockUserFromCommentResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'BlockSuccess' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/build_moderation_filter_params.rb b/client/lib/fastcomments-client/models/build_moderation_filter_params.rb index adb0fad..6261174 100644 --- a/client/lib/fastcomments-client/models/build_moderation_filter_params.rb +++ b/client/lib/fastcomments-client/models/build_moderation_filter_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BuildModerationFilterParams + class BuildModerationFilterParams < ApiModelBase attr_accessor :user_id attr_accessor :tenant_id @@ -196,61 +196,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -267,24 +212,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/build_moderation_filter_response.rb b/client/lib/fastcomments-client/models/build_moderation_filter_response.rb index 72384f1..6d03d69 100644 --- a/client/lib/fastcomments-client/models/build_moderation_filter_response.rb +++ b/client/lib/fastcomments-client/models/build_moderation_filter_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BuildModerationFilterResponse + class BuildModerationFilterResponse < ApiModelBase attr_accessor :status attr_accessor :moderation_filter @@ -169,61 +169,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -240,24 +185,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/bulk_aggregate_question_item.rb b/client/lib/fastcomments-client/models/bulk_aggregate_question_item.rb index 464c5a8..f782d27 100644 --- a/client/lib/fastcomments-client/models/bulk_aggregate_question_item.rb +++ b/client/lib/fastcomments-client/models/bulk_aggregate_question_item.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BulkAggregateQuestionItem + class BulkAggregateQuestionItem < ApiModelBase attr_accessor :agg_id attr_accessor :question_id @@ -212,61 +212,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -283,24 +228,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/bulk_aggregate_question_results_request.rb b/client/lib/fastcomments-client/models/bulk_aggregate_question_results_request.rb index c5b48bd..465d85d 100644 --- a/client/lib/fastcomments-client/models/bulk_aggregate_question_results_request.rb +++ b/client/lib/fastcomments-client/models/bulk_aggregate_question_results_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BulkAggregateQuestionResultsRequest + class BulkAggregateQuestionResultsRequest < ApiModelBase attr_accessor :aggregations # Attribute mapping from ruby-style variable name to JSON key. @@ -145,61 +145,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -216,24 +161,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/bulk_aggregate_question_results_response.rb b/client/lib/fastcomments-client/models/bulk_aggregate_question_results_response.rb index ef11934..01530ae 100644 --- a/client/lib/fastcomments-client/models/bulk_aggregate_question_results_response.rb +++ b/client/lib/fastcomments-client/models/bulk_aggregate_question_results_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BulkAggregateQuestionResultsResponse + class BulkAggregateQuestionResultsResponse < ApiModelBase attr_accessor :status # Construct a type with a set of properties K of type T @@ -194,61 +194,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -265,24 +210,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/bulk_aggregate_question_results_response1.rb b/client/lib/fastcomments-client/models/bulk_aggregate_question_results_response1.rb new file mode 100644 index 0000000..3775b46 --- /dev/null +++ b/client/lib/fastcomments-client/models/bulk_aggregate_question_results_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module BulkAggregateQuestionResultsResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'BulkAggregateQuestionResultsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/bulk_create_hash_tags_body.rb b/client/lib/fastcomments-client/models/bulk_create_hash_tags_body.rb index 36ce551..7379205 100644 --- a/client/lib/fastcomments-client/models/bulk_create_hash_tags_body.rb +++ b/client/lib/fastcomments-client/models/bulk_create_hash_tags_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BulkCreateHashTagsBody + class BulkCreateHashTagsBody < ApiModelBase attr_accessor :tenant_id attr_accessor :tags @@ -154,61 +154,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -225,24 +170,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/bulk_create_hash_tags_body_tags_inner.rb b/client/lib/fastcomments-client/models/bulk_create_hash_tags_body_tags_inner.rb index 8b53525..b5cacf5 100644 --- a/client/lib/fastcomments-client/models/bulk_create_hash_tags_body_tags_inner.rb +++ b/client/lib/fastcomments-client/models/bulk_create_hash_tags_body_tags_inner.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BulkCreateHashTagsBodyTagsInner + class BulkCreateHashTagsBodyTagsInner < ApiModelBase attr_accessor :url attr_accessor :tag @@ -152,61 +152,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -223,24 +168,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/bulk_create_hash_tags_response.rb b/client/lib/fastcomments-client/models/bulk_create_hash_tags_response.rb index 49ce957..46d8607 100644 --- a/client/lib/fastcomments-client/models/bulk_create_hash_tags_response.rb +++ b/client/lib/fastcomments-client/models/bulk_create_hash_tags_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BulkCreateHashTagsResponse + class BulkCreateHashTagsResponse < ApiModelBase attr_accessor :status attr_accessor :results @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/bulk_create_hash_tags_response_results_inner.rb b/client/lib/fastcomments-client/models/bulk_create_hash_tags_response_results_inner.rb index be91e63..9de25c7 100644 --- a/client/lib/fastcomments-client/models/bulk_create_hash_tags_response_results_inner.rb +++ b/client/lib/fastcomments-client/models/bulk_create_hash_tags_response_results_inner.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/bulk_pre_ban_params.rb b/client/lib/fastcomments-client/models/bulk_pre_ban_params.rb index 30b02ec..7919d10 100644 --- a/client/lib/fastcomments-client/models/bulk_pre_ban_params.rb +++ b/client/lib/fastcomments-client/models/bulk_pre_ban_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BulkPreBanParams + class BulkPreBanParams < ApiModelBase attr_accessor :comment_ids # Attribute mapping from ruby-style variable name to JSON key. @@ -145,61 +145,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -216,24 +161,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/bulk_pre_ban_summary.rb b/client/lib/fastcomments-client/models/bulk_pre_ban_summary.rb index 838b815..90ec6d1 100644 --- a/client/lib/fastcomments-client/models/bulk_pre_ban_summary.rb +++ b/client/lib/fastcomments-client/models/bulk_pre_ban_summary.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BulkPreBanSummary + class BulkPreBanSummary < ApiModelBase attr_accessor :status attr_accessor :total_related_comment_count @@ -281,61 +281,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -352,24 +297,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/change_comment_pin_status_response.rb b/client/lib/fastcomments-client/models/change_comment_pin_status_response.rb index 7aec64e..29135ea 100644 --- a/client/lib/fastcomments-client/models/change_comment_pin_status_response.rb +++ b/client/lib/fastcomments-client/models/change_comment_pin_status_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ChangeCommentPinStatusResponse + class ChangeCommentPinStatusResponse < ApiModelBase # Construct a type with a set of properties K of type T attr_accessor :comment_positions @@ -194,61 +194,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -265,24 +210,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/change_ticket_state_body.rb b/client/lib/fastcomments-client/models/change_ticket_state_body.rb index ed7b76a..7c2d7c0 100644 --- a/client/lib/fastcomments-client/models/change_ticket_state_body.rb +++ b/client/lib/fastcomments-client/models/change_ticket_state_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ChangeTicketStateBody + class ChangeTicketStateBody < ApiModelBase attr_accessor :state # Attribute mapping from ruby-style variable name to JSON key. @@ -143,61 +143,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -214,24 +159,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/change_ticket_state_response.rb b/client/lib/fastcomments-client/models/change_ticket_state_response.rb index cabdf0b..9f660bb 100644 --- a/client/lib/fastcomments-client/models/change_ticket_state_response.rb +++ b/client/lib/fastcomments-client/models/change_ticket_state_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ChangeTicketStateResponse + class ChangeTicketStateResponse < ApiModelBase attr_accessor :status attr_accessor :ticket @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/change_ticket_state_response1.rb b/client/lib/fastcomments-client/models/change_ticket_state_response1.rb new file mode 100644 index 0000000..0929eb5 --- /dev/null +++ b/client/lib/fastcomments-client/models/change_ticket_state_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module ChangeTicketStateResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'ChangeTicketStateResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/check_blocked_comments_response.rb b/client/lib/fastcomments-client/models/check_blocked_comments_response.rb index 8dc73fc..976e327 100644 --- a/client/lib/fastcomments-client/models/check_blocked_comments_response.rb +++ b/client/lib/fastcomments-client/models/check_blocked_comments_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CheckBlockedCommentsResponse + class CheckBlockedCommentsResponse < ApiModelBase # Construct a type with a set of properties K of type T attr_accessor :comment_statuses @@ -194,61 +194,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -265,24 +210,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/checked_comments_for_blocked_response.rb b/client/lib/fastcomments-client/models/checked_comments_for_blocked_response.rb new file mode 100644 index 0000000..7369924 --- /dev/null +++ b/client/lib/fastcomments-client/models/checked_comments_for_blocked_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module CheckedCommentsForBlockedResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'CheckBlockedCommentsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/combine_comments_with_question_results_response.rb b/client/lib/fastcomments-client/models/combine_comments_with_question_results_response.rb new file mode 100644 index 0000000..56be3bf --- /dev/null +++ b/client/lib/fastcomments-client/models/combine_comments_with_question_results_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module CombineCommentsWithQuestionResultsResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'CombineQuestionResultsWithCommentsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/combine_question_results_with_comments_response.rb b/client/lib/fastcomments-client/models/combine_question_results_with_comments_response.rb index 4f9b729..caee289 100644 --- a/client/lib/fastcomments-client/models/combine_question_results_with_comments_response.rb +++ b/client/lib/fastcomments-client/models/combine_question_results_with_comments_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CombineQuestionResultsWithCommentsResponse + class CombineQuestionResultsWithCommentsResponse < ApiModelBase attr_accessor :status attr_accessor :data @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/comment_data.rb b/client/lib/fastcomments-client/models/comment_data.rb index a0b04b6..d260ffa 100644 --- a/client/lib/fastcomments-client/models/comment_data.rb +++ b/client/lib/fastcomments-client/models/comment_data.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CommentData + class CommentData < ApiModelBase attr_accessor :date attr_accessor :local_date_string @@ -435,61 +435,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -506,24 +451,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/comment_html_rendering_mode.rb b/client/lib/fastcomments-client/models/comment_html_rendering_mode.rb index 411fdd9..ca7fb08 100644 --- a/client/lib/fastcomments-client/models/comment_html_rendering_mode.rb +++ b/client/lib/fastcomments-client/models/comment_html_rendering_mode.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/comment_log_data.rb b/client/lib/fastcomments-client/models/comment_log_data.rb index 30c0506..50c1507 100644 --- a/client/lib/fastcomments-client/models/comment_log_data.rb +++ b/client/lib/fastcomments-client/models/comment_log_data.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CommentLogData + class CommentLogData < ApiModelBase attr_accessor :clear_content attr_accessor :is_deleted_user @@ -584,61 +584,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -655,24 +600,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/comment_log_entry.rb b/client/lib/fastcomments-client/models/comment_log_entry.rb index 931e9f1..c709791 100644 --- a/client/lib/fastcomments-client/models/comment_log_entry.rb +++ b/client/lib/fastcomments-client/models/comment_log_entry.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CommentLogEntry + class CommentLogEntry < ApiModelBase attr_accessor :d attr_accessor :t @@ -200,61 +200,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -271,24 +216,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/comment_log_type.rb b/client/lib/fastcomments-client/models/comment_log_type.rb index 3b4ce98..e920fe3 100644 --- a/client/lib/fastcomments-client/models/comment_log_type.rb +++ b/client/lib/fastcomments-client/models/comment_log_type.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/comment_question_results_rendering_type.rb b/client/lib/fastcomments-client/models/comment_question_results_rendering_type.rb index e309851..3d5de08 100644 --- a/client/lib/fastcomments-client/models/comment_question_results_rendering_type.rb +++ b/client/lib/fastcomments-client/models/comment_question_results_rendering_type.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/comment_questions_required.rb b/client/lib/fastcomments-client/models/comment_questions_required.rb index df4e891..28bf954 100644 --- a/client/lib/fastcomments-client/models/comment_questions_required.rb +++ b/client/lib/fastcomments-client/models/comment_questions_required.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/comment_text_update_request.rb b/client/lib/fastcomments-client/models/comment_text_update_request.rb index ce56e5d..d26c6e5 100644 --- a/client/lib/fastcomments-client/models/comment_text_update_request.rb +++ b/client/lib/fastcomments-client/models/comment_text_update_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CommentTextUpdateRequest + class CommentTextUpdateRequest < ApiModelBase attr_accessor :comment attr_accessor :mentions @@ -165,61 +165,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -236,24 +181,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/comment_thread_deletion_mode.rb b/client/lib/fastcomments-client/models/comment_thread_deletion_mode.rb index 61b3d63..89958e0 100644 --- a/client/lib/fastcomments-client/models/comment_thread_deletion_mode.rb +++ b/client/lib/fastcomments-client/models/comment_thread_deletion_mode.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/comment_user_badge_info.rb b/client/lib/fastcomments-client/models/comment_user_badge_info.rb index 16a8f15..e6e1bb0 100644 --- a/client/lib/fastcomments-client/models/comment_user_badge_info.rb +++ b/client/lib/fastcomments-client/models/comment_user_badge_info.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CommentUserBadgeInfo + class CommentUserBadgeInfo < ApiModelBase attr_accessor :id attr_accessor :type @@ -255,61 +255,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -326,24 +271,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/comment_user_hash_tag_info.rb b/client/lib/fastcomments-client/models/comment_user_hash_tag_info.rb index b8ad908..d9ef9bd 100644 --- a/client/lib/fastcomments-client/models/comment_user_hash_tag_info.rb +++ b/client/lib/fastcomments-client/models/comment_user_hash_tag_info.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CommentUserHashTagInfo + class CommentUserHashTagInfo < ApiModelBase attr_accessor :id attr_accessor :tag @@ -190,61 +190,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -261,24 +206,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/comment_user_mention_info.rb b/client/lib/fastcomments-client/models/comment_user_mention_info.rb index 52ae622..9450048 100644 --- a/client/lib/fastcomments-client/models/comment_user_mention_info.rb +++ b/client/lib/fastcomments-client/models/comment_user_mention_info.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CommentUserMentionInfo + class CommentUserMentionInfo < ApiModelBase attr_accessor :id attr_accessor :tag @@ -230,61 +230,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -301,24 +246,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/commenter_name_formats.rb b/client/lib/fastcomments-client/models/commenter_name_formats.rb index 3b893fe..ccaf22d 100644 --- a/client/lib/fastcomments-client/models/commenter_name_formats.rb +++ b/client/lib/fastcomments-client/models/commenter_name_formats.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/comments_by_ids_params.rb b/client/lib/fastcomments-client/models/comments_by_ids_params.rb index 1be71dc..bf279dd 100644 --- a/client/lib/fastcomments-client/models/comments_by_ids_params.rb +++ b/client/lib/fastcomments-client/models/comments_by_ids_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CommentsByIdsParams + class CommentsByIdsParams < ApiModelBase attr_accessor :ids # Attribute mapping from ruby-style variable name to JSON key. @@ -145,61 +145,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -216,24 +161,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_api_page_data.rb b/client/lib/fastcomments-client/models/create_api_page_data.rb index a8d81af..18e6982 100644 --- a/client/lib/fastcomments-client/models/create_api_page_data.rb +++ b/client/lib/fastcomments-client/models/create_api_page_data.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateAPIPageData + class CreateAPIPageData < ApiModelBase attr_accessor :accessible_by_group_ids attr_accessor :root_comment_count @@ -224,61 +224,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -295,24 +240,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_api_user_subscription_data.rb b/client/lib/fastcomments-client/models/create_api_user_subscription_data.rb index 286569b..92b32ec 100644 --- a/client/lib/fastcomments-client/models/create_api_user_subscription_data.rb +++ b/client/lib/fastcomments-client/models/create_api_user_subscription_data.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateAPIUserSubscriptionData + class CreateAPIUserSubscriptionData < ApiModelBase attr_accessor :notification_frequency attr_accessor :page_title @@ -188,61 +188,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -259,24 +204,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_apisso_user_data.rb b/client/lib/fastcomments-client/models/create_apisso_user_data.rb index 515720b..bb94f5e 100644 --- a/client/lib/fastcomments-client/models/create_apisso_user_data.rb +++ b/client/lib/fastcomments-client/models/create_apisso_user_data.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateAPISSOUserData + class CreateAPISSOUserData < ApiModelBase attr_accessor :group_ids attr_accessor :has_blocked_users @@ -350,61 +350,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -421,24 +366,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_comment_params.rb b/client/lib/fastcomments-client/models/create_comment_params.rb index b358b2d..d6373f0 100644 --- a/client/lib/fastcomments-client/models/create_comment_params.rb +++ b/client/lib/fastcomments-client/models/create_comment_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateCommentParams + class CreateCommentParams < ApiModelBase attr_accessor :date attr_accessor :local_date_string @@ -543,61 +543,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -614,24 +559,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_comment_public_response.rb b/client/lib/fastcomments-client/models/create_comment_public_response.rb new file mode 100644 index 0000000..a2d7ae4 --- /dev/null +++ b/client/lib/fastcomments-client/models/create_comment_public_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module CreateCommentPublicResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'SaveCommentsResponseWithPresence' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/create_email_template_body.rb b/client/lib/fastcomments-client/models/create_email_template_body.rb index 0bdc503..39f90c6 100644 --- a/client/lib/fastcomments-client/models/create_email_template_body.rb +++ b/client/lib/fastcomments-client/models/create_email_template_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateEmailTemplateBody + class CreateEmailTemplateBody < ApiModelBase attr_accessor :email_template_id attr_accessor :display_name @@ -228,61 +228,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -299,24 +244,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_email_template_response.rb b/client/lib/fastcomments-client/models/create_email_template_response.rb index 1739a49..929f92e 100644 --- a/client/lib/fastcomments-client/models/create_email_template_response.rb +++ b/client/lib/fastcomments-client/models/create_email_template_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateEmailTemplateResponse + class CreateEmailTemplateResponse < ApiModelBase attr_accessor :status attr_accessor :email_template @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_email_template_response1.rb b/client/lib/fastcomments-client/models/create_email_template_response1.rb new file mode 100644 index 0000000..5d757b8 --- /dev/null +++ b/client/lib/fastcomments-client/models/create_email_template_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module CreateEmailTemplateResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'CreateEmailTemplateResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/create_feed_post_params.rb b/client/lib/fastcomments-client/models/create_feed_post_params.rb index e2505d8..e3a12e5 100644 --- a/client/lib/fastcomments-client/models/create_feed_post_params.rb +++ b/client/lib/fastcomments-client/models/create_feed_post_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateFeedPostParams + class CreateFeedPostParams < ApiModelBase attr_accessor :title attr_accessor :content_html @@ -198,61 +198,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -269,24 +214,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_feed_post_public_response.rb b/client/lib/fastcomments-client/models/create_feed_post_public_response.rb new file mode 100644 index 0000000..2f6ca2e --- /dev/null +++ b/client/lib/fastcomments-client/models/create_feed_post_public_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module CreateFeedPostPublicResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'CreateFeedPostResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/create_feed_post_response.rb b/client/lib/fastcomments-client/models/create_feed_post_response.rb index f32da97..0eff5a4 100644 --- a/client/lib/fastcomments-client/models/create_feed_post_response.rb +++ b/client/lib/fastcomments-client/models/create_feed_post_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateFeedPostResponse + class CreateFeedPostResponse < ApiModelBase attr_accessor :status attr_accessor :feed_post @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_feed_post_response1.rb b/client/lib/fastcomments-client/models/create_feed_post_response1.rb new file mode 100644 index 0000000..5b67799 --- /dev/null +++ b/client/lib/fastcomments-client/models/create_feed_post_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module CreateFeedPostResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'CreateFeedPostsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/create_feed_posts_response.rb b/client/lib/fastcomments-client/models/create_feed_posts_response.rb index a80f0ab..5fd4508 100644 --- a/client/lib/fastcomments-client/models/create_feed_posts_response.rb +++ b/client/lib/fastcomments-client/models/create_feed_posts_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateFeedPostsResponse + class CreateFeedPostsResponse < ApiModelBase attr_accessor :status attr_accessor :feed_post @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_hash_tag_body.rb b/client/lib/fastcomments-client/models/create_hash_tag_body.rb index 133cac7..854e221 100644 --- a/client/lib/fastcomments-client/models/create_hash_tag_body.rb +++ b/client/lib/fastcomments-client/models/create_hash_tag_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateHashTagBody + class CreateHashTagBody < ApiModelBase attr_accessor :tenant_id attr_accessor :tag @@ -161,61 +161,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -232,24 +177,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_hash_tag_response.rb b/client/lib/fastcomments-client/models/create_hash_tag_response.rb index f29e56b..897c77d 100644 --- a/client/lib/fastcomments-client/models/create_hash_tag_response.rb +++ b/client/lib/fastcomments-client/models/create_hash_tag_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateHashTagResponse + class CreateHashTagResponse < ApiModelBase attr_accessor :status attr_accessor :hash_tag @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_moderator_body.rb b/client/lib/fastcomments-client/models/create_moderator_body.rb index 24727d8..baf81dc 100644 --- a/client/lib/fastcomments-client/models/create_moderator_body.rb +++ b/client/lib/fastcomments-client/models/create_moderator_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateModeratorBody + class CreateModeratorBody < ApiModelBase attr_accessor :name attr_accessor :email @@ -189,61 +189,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -260,24 +205,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_moderator_response.rb b/client/lib/fastcomments-client/models/create_moderator_response.rb index 39a7df2..ff42086 100644 --- a/client/lib/fastcomments-client/models/create_moderator_response.rb +++ b/client/lib/fastcomments-client/models/create_moderator_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateModeratorResponse + class CreateModeratorResponse < ApiModelBase attr_accessor :status attr_accessor :moderator @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_moderator_response1.rb b/client/lib/fastcomments-client/models/create_moderator_response1.rb new file mode 100644 index 0000000..ca0fc9a --- /dev/null +++ b/client/lib/fastcomments-client/models/create_moderator_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module CreateModeratorResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'CreateModeratorResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/create_question_config_body.rb b/client/lib/fastcomments-client/models/create_question_config_body.rb index c9d6301..11a78bb 100644 --- a/client/lib/fastcomments-client/models/create_question_config_body.rb +++ b/client/lib/fastcomments-client/models/create_question_config_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateQuestionConfigBody + class CreateQuestionConfigBody < ApiModelBase attr_accessor :name attr_accessor :question @@ -315,61 +315,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -386,24 +331,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_question_config_response.rb b/client/lib/fastcomments-client/models/create_question_config_response.rb index 6ccb4af..697f03d 100644 --- a/client/lib/fastcomments-client/models/create_question_config_response.rb +++ b/client/lib/fastcomments-client/models/create_question_config_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateQuestionConfigResponse + class CreateQuestionConfigResponse < ApiModelBase attr_accessor :status attr_accessor :question_config @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_question_config_response1.rb b/client/lib/fastcomments-client/models/create_question_config_response1.rb new file mode 100644 index 0000000..47ed44a --- /dev/null +++ b/client/lib/fastcomments-client/models/create_question_config_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module CreateQuestionConfigResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'CreateQuestionConfigResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/create_question_result_body.rb b/client/lib/fastcomments-client/models/create_question_result_body.rb index d8e349b..2b78028 100644 --- a/client/lib/fastcomments-client/models/create_question_result_body.rb +++ b/client/lib/fastcomments-client/models/create_question_result_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateQuestionResultBody + class CreateQuestionResultBody < ApiModelBase attr_accessor :url_id attr_accessor :value @@ -234,61 +234,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -305,24 +250,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_question_result_response.rb b/client/lib/fastcomments-client/models/create_question_result_response.rb index e87fd3e..d44d358 100644 --- a/client/lib/fastcomments-client/models/create_question_result_response.rb +++ b/client/lib/fastcomments-client/models/create_question_result_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateQuestionResultResponse + class CreateQuestionResultResponse < ApiModelBase attr_accessor :status attr_accessor :question_result @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_question_result_response1.rb b/client/lib/fastcomments-client/models/create_question_result_response1.rb new file mode 100644 index 0000000..284f480 --- /dev/null +++ b/client/lib/fastcomments-client/models/create_question_result_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module CreateQuestionResultResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'CreateQuestionResultResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/create_subscription_api_response.rb b/client/lib/fastcomments-client/models/create_subscription_api_response.rb index 79f2bd5..20776fc 100644 --- a/client/lib/fastcomments-client/models/create_subscription_api_response.rb +++ b/client/lib/fastcomments-client/models/create_subscription_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateSubscriptionAPIResponse + class CreateSubscriptionAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -170,61 +170,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -241,24 +186,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_tenant_body.rb b/client/lib/fastcomments-client/models/create_tenant_body.rb index 1cfb80b..1da15c5 100644 --- a/client/lib/fastcomments-client/models/create_tenant_body.rb +++ b/client/lib/fastcomments-client/models/create_tenant_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateTenantBody + class CreateTenantBody < ApiModelBase attr_accessor :name attr_accessor :domain_configuration @@ -363,61 +363,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -434,24 +379,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_tenant_package_body.rb b/client/lib/fastcomments-client/models/create_tenant_package_body.rb index b4a18b8..b069a40 100644 --- a/client/lib/fastcomments-client/models/create_tenant_package_body.rb +++ b/client/lib/fastcomments-client/models/create_tenant_package_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateTenantPackageBody + class CreateTenantPackageBody < ApiModelBase attr_accessor :name attr_accessor :monthly_cost_usd @@ -785,61 +785,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -856,24 +801,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_tenant_package_response.rb b/client/lib/fastcomments-client/models/create_tenant_package_response.rb index 08c99da..3903266 100644 --- a/client/lib/fastcomments-client/models/create_tenant_package_response.rb +++ b/client/lib/fastcomments-client/models/create_tenant_package_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateTenantPackageResponse + class CreateTenantPackageResponse < ApiModelBase attr_accessor :status attr_accessor :tenant_package @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_tenant_package_response1.rb b/client/lib/fastcomments-client/models/create_tenant_package_response1.rb new file mode 100644 index 0000000..11e8ca5 --- /dev/null +++ b/client/lib/fastcomments-client/models/create_tenant_package_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module CreateTenantPackageResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'CreateTenantPackageResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/create_tenant_response.rb b/client/lib/fastcomments-client/models/create_tenant_response.rb index 0647ab5..20b9ca7 100644 --- a/client/lib/fastcomments-client/models/create_tenant_response.rb +++ b/client/lib/fastcomments-client/models/create_tenant_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateTenantResponse + class CreateTenantResponse < ApiModelBase attr_accessor :status attr_accessor :tenant @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_tenant_response1.rb b/client/lib/fastcomments-client/models/create_tenant_response1.rb new file mode 100644 index 0000000..35c2e0f --- /dev/null +++ b/client/lib/fastcomments-client/models/create_tenant_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module CreateTenantResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'CreateTenantResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/create_tenant_user_body.rb b/client/lib/fastcomments-client/models/create_tenant_user_body.rb index 3579103..dfa013f 100644 --- a/client/lib/fastcomments-client/models/create_tenant_user_body.rb +++ b/client/lib/fastcomments-client/models/create_tenant_user_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateTenantUserBody + class CreateTenantUserBody < ApiModelBase attr_accessor :username attr_accessor :email @@ -369,61 +369,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -440,24 +385,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_tenant_user_response.rb b/client/lib/fastcomments-client/models/create_tenant_user_response.rb index f27f791..d513887 100644 --- a/client/lib/fastcomments-client/models/create_tenant_user_response.rb +++ b/client/lib/fastcomments-client/models/create_tenant_user_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateTenantUserResponse + class CreateTenantUserResponse < ApiModelBase attr_accessor :status attr_accessor :tenant_user @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_tenant_user_response1.rb b/client/lib/fastcomments-client/models/create_tenant_user_response1.rb new file mode 100644 index 0000000..bac9f85 --- /dev/null +++ b/client/lib/fastcomments-client/models/create_tenant_user_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module CreateTenantUserResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'CreateTenantUserResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/create_ticket_body.rb b/client/lib/fastcomments-client/models/create_ticket_body.rb index e35a0d1..97f2425 100644 --- a/client/lib/fastcomments-client/models/create_ticket_body.rb +++ b/client/lib/fastcomments-client/models/create_ticket_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateTicketBody + class CreateTicketBody < ApiModelBase attr_accessor :subject # Attribute mapping from ruby-style variable name to JSON key. @@ -143,61 +143,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -214,24 +159,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_ticket_response.rb b/client/lib/fastcomments-client/models/create_ticket_response.rb index 2122527..63bb281 100644 --- a/client/lib/fastcomments-client/models/create_ticket_response.rb +++ b/client/lib/fastcomments-client/models/create_ticket_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateTicketResponse + class CreateTicketResponse < ApiModelBase attr_accessor :status attr_accessor :ticket @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_ticket_response1.rb b/client/lib/fastcomments-client/models/create_ticket_response1.rb new file mode 100644 index 0000000..e070501 --- /dev/null +++ b/client/lib/fastcomments-client/models/create_ticket_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module CreateTicketResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'CreateTicketResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/create_user_badge_params.rb b/client/lib/fastcomments-client/models/create_user_badge_params.rb index 94c2c98..67fa667 100644 --- a/client/lib/fastcomments-client/models/create_user_badge_params.rb +++ b/client/lib/fastcomments-client/models/create_user_badge_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateUserBadgeParams + class CreateUserBadgeParams < ApiModelBase attr_accessor :user_id attr_accessor :badge_id @@ -178,61 +178,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -249,24 +194,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_user_badge_response.rb b/client/lib/fastcomments-client/models/create_user_badge_response.rb new file mode 100644 index 0000000..57738fb --- /dev/null +++ b/client/lib/fastcomments-client/models/create_user_badge_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module CreateUserBadgeResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APICreateUserBadgeResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/create_v1_page_react.rb b/client/lib/fastcomments-client/models/create_v1_page_react.rb index ad2823f..ba646a8 100644 --- a/client/lib/fastcomments-client/models/create_v1_page_react.rb +++ b/client/lib/fastcomments-client/models/create_v1_page_react.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateV1PageReact + class CreateV1PageReact < ApiModelBase attr_accessor :code attr_accessor :status @@ -174,61 +174,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -245,24 +190,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_v1_page_react_response.rb b/client/lib/fastcomments-client/models/create_v1_page_react_response.rb new file mode 100644 index 0000000..3ae086a --- /dev/null +++ b/client/lib/fastcomments-client/models/create_v1_page_react_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module CreateV1PageReactResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'CreateV1PageReact' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/create_v2_page_react_response.rb b/client/lib/fastcomments-client/models/create_v2_page_react_response.rb new file mode 100644 index 0000000..4ede32f --- /dev/null +++ b/client/lib/fastcomments-client/models/create_v2_page_react_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module CreateV2PageReactResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'CreateV1PageReact' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/create_vote_response.rb b/client/lib/fastcomments-client/models/create_vote_response.rb new file mode 100644 index 0000000..e2eebcb --- /dev/null +++ b/client/lib/fastcomments-client/models/create_vote_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module CreateVoteResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'VoteResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/custom_config_parameters.rb b/client/lib/fastcomments-client/models/custom_config_parameters.rb index d9395d4..fc9327c 100644 --- a/client/lib/fastcomments-client/models/custom_config_parameters.rb +++ b/client/lib/fastcomments-client/models/custom_config_parameters.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CustomConfigParameters + class CustomConfigParameters < ApiModelBase attr_accessor :absolute_and_relative_dates attr_accessor :absolute_dates @@ -962,61 +962,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -1033,24 +978,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/custom_email_template.rb b/client/lib/fastcomments-client/models/custom_email_template.rb index 3baa6e0..a798685 100644 --- a/client/lib/fastcomments-client/models/custom_email_template.rb +++ b/client/lib/fastcomments-client/models/custom_email_template.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CustomEmailTemplate + class CustomEmailTemplate < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -348,61 +348,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -419,24 +364,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/delete_comment_action.rb b/client/lib/fastcomments-client/models/delete_comment_action.rb index a75057c..50a9e9b 100644 --- a/client/lib/fastcomments-client/models/delete_comment_action.rb +++ b/client/lib/fastcomments-client/models/delete_comment_action.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/delete_comment_public_response.rb b/client/lib/fastcomments-client/models/delete_comment_public_response.rb new file mode 100644 index 0000000..1a8ae3e --- /dev/null +++ b/client/lib/fastcomments-client/models/delete_comment_public_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module DeleteCommentPublicResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'PublicAPIDeleteCommentResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/delete_comment_response.rb b/client/lib/fastcomments-client/models/delete_comment_response.rb new file mode 100644 index 0000000..bc55602 --- /dev/null +++ b/client/lib/fastcomments-client/models/delete_comment_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module DeleteCommentResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'DeleteCommentResult' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/delete_comment_result.rb b/client/lib/fastcomments-client/models/delete_comment_result.rb index 1fddde0..4a98eba 100644 --- a/client/lib/fastcomments-client/models/delete_comment_result.rb +++ b/client/lib/fastcomments-client/models/delete_comment_result.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class DeleteCommentResult + class DeleteCommentResult < ApiModelBase attr_accessor :action attr_accessor :status @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/delete_comment_vote_response.rb b/client/lib/fastcomments-client/models/delete_comment_vote_response.rb new file mode 100644 index 0000000..bbab25c --- /dev/null +++ b/client/lib/fastcomments-client/models/delete_comment_vote_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module DeleteCommentVoteResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'VoteDeleteResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/delete_domain_config_response.rb b/client/lib/fastcomments-client/models/delete_domain_config_response.rb index 9fe4b5b..a65c3a4 100644 --- a/client/lib/fastcomments-client/models/delete_domain_config_response.rb +++ b/client/lib/fastcomments-client/models/delete_domain_config_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class DeleteDomainConfigResponse + class DeleteDomainConfigResponse < ApiModelBase attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. @@ -129,61 +129,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -200,24 +145,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/delete_email_template_render_error_response.rb b/client/lib/fastcomments-client/models/delete_email_template_render_error_response.rb new file mode 100644 index 0000000..63fbf71 --- /dev/null +++ b/client/lib/fastcomments-client/models/delete_email_template_render_error_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module DeleteEmailTemplateRenderErrorResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/delete_email_template_response.rb b/client/lib/fastcomments-client/models/delete_email_template_response.rb new file mode 100644 index 0000000..3482164 --- /dev/null +++ b/client/lib/fastcomments-client/models/delete_email_template_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module DeleteEmailTemplateResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/delete_feed_post_public_response.rb b/client/lib/fastcomments-client/models/delete_feed_post_public_response.rb index 7971180..851c05d 100644 --- a/client/lib/fastcomments-client/models/delete_feed_post_public_response.rb +++ b/client/lib/fastcomments-client/models/delete_feed_post_public_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,246 +14,90 @@ require 'time' module FastCommentsClient - class DeleteFeedPostPublicResponse - attr_accessor :status - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'status' => :'status' - } - end - - # Returns attribute mapping this model knows about - def self.acceptable_attribute_map - attribute_map - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - acceptable_attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'status' => :'APIStatus' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `FastCommentsClient::DeleteFeedPostPublicResponse` initialize method" + module DeleteFeedPostPublicResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'DeleteFeedPostPublicResponseAnyOf' + ] end - # check to see if the attribute exists and convert string to symbol for hash key - acceptable_attribute_map = self.class.acceptable_attribute_map - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!acceptable_attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `FastCommentsClient::DeleteFeedPostPublicResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end end - h[k.to_sym] = v - } - - if attributes.key?(:'status') - self.status = attributes[:'status'] - else - self.status = nil - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' - invalid_properties = Array.new - if @status.nil? - invalid_properties.push('invalid value for "status", status cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - warn '[DEPRECATED] the `valid?` method is obsolete' - return false if @status.nil? - true - end - # Custom attribute writer method with validation - # @param [Object] status Value to be assigned - def status=(status) - if status.nil? - fail ArgumentError, 'status cannot be nil' + openapi_any_of.include?(:AnyType) ? data : nil end - @status = status - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - status == o.status - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [status].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - attributes = attributes.transform_keys(&:to_sym) - transformed_hash = {} - openapi_types.each_pair do |key, type| - if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? - transformed_hash["#{key}"] = nil - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[attribute_map[key]].is_a?(Array) - transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } end - elsif !attributes[attribute_map[key]].nil? - transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) - end - end - new(transformed_hash) - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) end - hash[param] = _to_hash(value) + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" end - hash end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/delete_feed_post_public_response_any_of.rb b/client/lib/fastcomments-client/models/delete_feed_post_public_response_any_of.rb new file mode 100644 index 0000000..d567dc0 --- /dev/null +++ b/client/lib/fastcomments-client/models/delete_feed_post_public_response_any_of.rb @@ -0,0 +1,186 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class DeleteFeedPostPublicResponseAnyOf < ApiModelBase + attr_accessor :status + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'status' => :'status' + } + end + + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + acceptable_attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'status' => :'APIStatus' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `FastCommentsClient::DeleteFeedPostPublicResponseAnyOf` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `FastCommentsClient::DeleteFeedPostPublicResponseAnyOf`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'status') + self.status = attributes[:'status'] + else + self.status = nil + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + if @status.nil? + invalid_properties.push('invalid value for "status", status cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + return false if @status.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] status Value to be assigned + def status=(status) + if status.nil? + fail ArgumentError, 'status cannot be nil' + end + + @status = status + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + status == o.status + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [status].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + end + +end diff --git a/client/lib/fastcomments-client/models/delete_hash_tag_request_body.rb b/client/lib/fastcomments-client/models/delete_hash_tag_request_body.rb index 1c787ed..7272073 100644 --- a/client/lib/fastcomments-client/models/delete_hash_tag_request_body.rb +++ b/client/lib/fastcomments-client/models/delete_hash_tag_request_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class DeleteHashTagRequestBody + class DeleteHashTagRequestBody < ApiModelBase attr_accessor :tenant_id # Attribute mapping from ruby-style variable name to JSON key. @@ -126,61 +126,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -197,24 +142,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/delete_hash_tag_response.rb b/client/lib/fastcomments-client/models/delete_hash_tag_response.rb new file mode 100644 index 0000000..4693d5f --- /dev/null +++ b/client/lib/fastcomments-client/models/delete_hash_tag_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module DeleteHashTagResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/delete_moderation_vote_response.rb b/client/lib/fastcomments-client/models/delete_moderation_vote_response.rb new file mode 100644 index 0000000..8199699 --- /dev/null +++ b/client/lib/fastcomments-client/models/delete_moderation_vote_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module DeleteModerationVoteResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'VoteDeleteResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/delete_moderator_response.rb b/client/lib/fastcomments-client/models/delete_moderator_response.rb new file mode 100644 index 0000000..c6d9f93 --- /dev/null +++ b/client/lib/fastcomments-client/models/delete_moderator_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module DeleteModeratorResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/delete_notification_count_response.rb b/client/lib/fastcomments-client/models/delete_notification_count_response.rb new file mode 100644 index 0000000..72549b1 --- /dev/null +++ b/client/lib/fastcomments-client/models/delete_notification_count_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module DeleteNotificationCountResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/delete_page_api_response.rb b/client/lib/fastcomments-client/models/delete_page_api_response.rb index a4d137e..bc5d50b 100644 --- a/client/lib/fastcomments-client/models/delete_page_api_response.rb +++ b/client/lib/fastcomments-client/models/delete_page_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class DeletePageAPIResponse + class DeletePageAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -161,61 +161,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -232,24 +177,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/delete_pending_webhook_event_response.rb b/client/lib/fastcomments-client/models/delete_pending_webhook_event_response.rb new file mode 100644 index 0000000..1c16cd9 --- /dev/null +++ b/client/lib/fastcomments-client/models/delete_pending_webhook_event_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module DeletePendingWebhookEventResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/delete_question_config_response.rb b/client/lib/fastcomments-client/models/delete_question_config_response.rb new file mode 100644 index 0000000..2ac0dd5 --- /dev/null +++ b/client/lib/fastcomments-client/models/delete_question_config_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module DeleteQuestionConfigResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/delete_question_result_response.rb b/client/lib/fastcomments-client/models/delete_question_result_response.rb new file mode 100644 index 0000000..daaff53 --- /dev/null +++ b/client/lib/fastcomments-client/models/delete_question_result_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module DeleteQuestionResultResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/delete_sso_user_api_response.rb b/client/lib/fastcomments-client/models/delete_sso_user_api_response.rb index f43d076..76512db 100644 --- a/client/lib/fastcomments-client/models/delete_sso_user_api_response.rb +++ b/client/lib/fastcomments-client/models/delete_sso_user_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class DeleteSSOUserAPIResponse + class DeleteSSOUserAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -170,61 +170,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -241,24 +186,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/delete_subscription_api_response.rb b/client/lib/fastcomments-client/models/delete_subscription_api_response.rb index 7ae9a33..cce5940 100644 --- a/client/lib/fastcomments-client/models/delete_subscription_api_response.rb +++ b/client/lib/fastcomments-client/models/delete_subscription_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class DeleteSubscriptionAPIResponse + class DeleteSubscriptionAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -161,61 +161,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -232,24 +177,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/delete_tenant_package_response.rb b/client/lib/fastcomments-client/models/delete_tenant_package_response.rb new file mode 100644 index 0000000..3e216a4 --- /dev/null +++ b/client/lib/fastcomments-client/models/delete_tenant_package_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module DeleteTenantPackageResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/delete_tenant_response.rb b/client/lib/fastcomments-client/models/delete_tenant_response.rb new file mode 100644 index 0000000..a4cd6ca --- /dev/null +++ b/client/lib/fastcomments-client/models/delete_tenant_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module DeleteTenantResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/delete_tenant_user_response.rb b/client/lib/fastcomments-client/models/delete_tenant_user_response.rb new file mode 100644 index 0000000..ac9e88a --- /dev/null +++ b/client/lib/fastcomments-client/models/delete_tenant_user_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module DeleteTenantUserResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/delete_user_badge_response.rb b/client/lib/fastcomments-client/models/delete_user_badge_response.rb new file mode 100644 index 0000000..f3d5bc9 --- /dev/null +++ b/client/lib/fastcomments-client/models/delete_user_badge_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module DeleteUserBadgeResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptySuccessResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/delete_v1_page_react_response.rb b/client/lib/fastcomments-client/models/delete_v1_page_react_response.rb new file mode 100644 index 0000000..8075492 --- /dev/null +++ b/client/lib/fastcomments-client/models/delete_v1_page_react_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module DeleteV1PageReactResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'CreateV1PageReact' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/delete_v2_page_react_response.rb b/client/lib/fastcomments-client/models/delete_v2_page_react_response.rb new file mode 100644 index 0000000..1932e03 --- /dev/null +++ b/client/lib/fastcomments-client/models/delete_v2_page_react_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module DeleteV2PageReactResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'CreateV1PageReact' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/delete_vote_response.rb b/client/lib/fastcomments-client/models/delete_vote_response.rb new file mode 100644 index 0000000..0aff686 --- /dev/null +++ b/client/lib/fastcomments-client/models/delete_vote_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module DeleteVoteResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'VoteDeleteResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/deleted_comment_result_comment.rb b/client/lib/fastcomments-client/models/deleted_comment_result_comment.rb index feac24e..076a186 100644 --- a/client/lib/fastcomments-client/models/deleted_comment_result_comment.rb +++ b/client/lib/fastcomments-client/models/deleted_comment_result_comment.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class DeletedCommentResultComment + class DeletedCommentResultComment < ApiModelBase attr_accessor :is_deleted attr_accessor :comment_html @@ -188,61 +188,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -259,24 +204,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/digest_email_frequency.rb b/client/lib/fastcomments-client/models/digest_email_frequency.rb index 3bb0541..961ee4f 100644 --- a/client/lib/fastcomments-client/models/digest_email_frequency.rb +++ b/client/lib/fastcomments-client/models/digest_email_frequency.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/email_template_definition.rb b/client/lib/fastcomments-client/models/email_template_definition.rb index 38da101..9cab10f 100644 --- a/client/lib/fastcomments-client/models/email_template_definition.rb +++ b/client/lib/fastcomments-client/models/email_template_definition.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class EmailTemplateDefinition + class EmailTemplateDefinition < ApiModelBase attr_accessor :email_template_id # Construct a type with a set of properties K of type T @@ -227,61 +227,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -298,24 +243,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/email_template_render_error_response.rb b/client/lib/fastcomments-client/models/email_template_render_error_response.rb index c19aa87..86c971f 100644 --- a/client/lib/fastcomments-client/models/email_template_render_error_response.rb +++ b/client/lib/fastcomments-client/models/email_template_render_error_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class EmailTemplateRenderErrorResponse + class EmailTemplateRenderErrorResponse < ApiModelBase attr_accessor :id attr_accessor :tenant_id @@ -299,61 +299,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -370,24 +315,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/event_log_entry.rb b/client/lib/fastcomments-client/models/event_log_entry.rb index 359bcbc..cd94f2f 100644 --- a/client/lib/fastcomments-client/models/event_log_entry.rb +++ b/client/lib/fastcomments-client/models/event_log_entry.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class EventLogEntry + class EventLogEntry < ApiModelBase attr_accessor :_id attr_accessor :created_at @@ -273,61 +273,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -344,24 +289,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/f_comment.rb b/client/lib/fastcomments-client/models/f_comment.rb index a97a4e8..bf8a3b3 100644 --- a/client/lib/fastcomments-client/models/f_comment.rb +++ b/client/lib/fastcomments-client/models/f_comment.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class FComment + class FComment < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -978,61 +978,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -1049,24 +994,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/f_comment_meta.rb b/client/lib/fastcomments-client/models/f_comment_meta.rb index 07d979e..0af7631 100644 --- a/client/lib/fastcomments-client/models/f_comment_meta.rb +++ b/client/lib/fastcomments-client/models/f_comment_meta.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class FCommentMeta + class FCommentMeta < ApiModelBase attr_accessor :wp_id attr_accessor :wp_user_id @@ -144,61 +144,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -215,24 +160,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/feed_post.rb b/client/lib/fastcomments-client/models/feed_post.rb index b37d867..29ac5a4 100644 --- a/client/lib/fastcomments-client/models/feed_post.rb +++ b/client/lib/fastcomments-client/models/feed_post.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class FeedPost + class FeedPost < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -326,61 +326,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -397,24 +342,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/feed_post_link.rb b/client/lib/fastcomments-client/models/feed_post_link.rb index 200d273..8bf1a43 100644 --- a/client/lib/fastcomments-client/models/feed_post_link.rb +++ b/client/lib/fastcomments-client/models/feed_post_link.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class FeedPostLink + class FeedPostLink < ApiModelBase attr_accessor :text attr_accessor :title @@ -153,61 +153,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -224,24 +169,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/feed_post_media_item.rb b/client/lib/fastcomments-client/models/feed_post_media_item.rb index 7945146..f9514a8 100644 --- a/client/lib/fastcomments-client/models/feed_post_media_item.rb +++ b/client/lib/fastcomments-client/models/feed_post_media_item.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class FeedPostMediaItem + class FeedPostMediaItem < ApiModelBase attr_accessor :title attr_accessor :link_url @@ -163,61 +163,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -234,24 +179,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/feed_post_media_item_asset.rb b/client/lib/fastcomments-client/models/feed_post_media_item_asset.rb index e3e07c3..fb5d24c 100644 --- a/client/lib/fastcomments-client/models/feed_post_media_item_asset.rb +++ b/client/lib/fastcomments-client/models/feed_post_media_item_asset.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class FeedPostMediaItemAsset + class FeedPostMediaItemAsset < ApiModelBase attr_accessor :w attr_accessor :h @@ -195,61 +195,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -266,24 +211,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/feed_post_stats.rb b/client/lib/fastcomments-client/models/feed_post_stats.rb index d4c4330..786f2d5 100644 --- a/client/lib/fastcomments-client/models/feed_post_stats.rb +++ b/client/lib/fastcomments-client/models/feed_post_stats.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class FeedPostStats + class FeedPostStats < ApiModelBase attr_accessor :reacts attr_accessor :comment_count @@ -137,61 +137,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -208,24 +153,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/feed_posts_stats_response.rb b/client/lib/fastcomments-client/models/feed_posts_stats_response.rb index 0d9bc6f..ef4586d 100644 --- a/client/lib/fastcomments-client/models/feed_posts_stats_response.rb +++ b/client/lib/fastcomments-client/models/feed_posts_stats_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class FeedPostsStatsResponse + class FeedPostsStatsResponse < ApiModelBase attr_accessor :status attr_accessor :stats @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/find_comments_by_range_item.rb b/client/lib/fastcomments-client/models/find_comments_by_range_item.rb index 694bbd6..2cc30e7 100644 --- a/client/lib/fastcomments-client/models/find_comments_by_range_item.rb +++ b/client/lib/fastcomments-client/models/find_comments_by_range_item.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class FindCommentsByRangeItem + class FindCommentsByRangeItem < ApiModelBase attr_accessor :comment attr_accessor :result @@ -155,61 +155,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -226,24 +171,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/find_comments_by_range_response.rb b/client/lib/fastcomments-client/models/find_comments_by_range_response.rb index 7311d8b..9242cae 100644 --- a/client/lib/fastcomments-client/models/find_comments_by_range_response.rb +++ b/client/lib/fastcomments-client/models/find_comments_by_range_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class FindCommentsByRangeResponse + class FindCommentsByRangeResponse < ApiModelBase attr_accessor :results attr_accessor :created_at @@ -171,61 +171,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -242,24 +187,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/flag_comment_public_response.rb b/client/lib/fastcomments-client/models/flag_comment_public_response.rb new file mode 100644 index 0000000..635f1b1 --- /dev/null +++ b/client/lib/fastcomments-client/models/flag_comment_public_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module FlagCommentPublicResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/flag_comment_response.rb b/client/lib/fastcomments-client/models/flag_comment_response.rb index 366f53d..ad7e47c 100644 --- a/client/lib/fastcomments-client/models/flag_comment_response.rb +++ b/client/lib/fastcomments-client/models/flag_comment_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class FlagCommentResponse + class FlagCommentResponse < ApiModelBase attr_accessor :status_code attr_accessor :status @@ -201,61 +201,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -272,24 +217,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/flag_comment_response1.rb b/client/lib/fastcomments-client/models/flag_comment_response1.rb new file mode 100644 index 0000000..590753d --- /dev/null +++ b/client/lib/fastcomments-client/models/flag_comment_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module FlagCommentResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'FlagCommentResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_api_comments_response.rb b/client/lib/fastcomments-client/models/get_api_comments_response.rb new file mode 100644 index 0000000..f9c6645 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_api_comments_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetApiCommentsResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'ModerationAPIGetCommentsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_api_export_status_response.rb b/client/lib/fastcomments-client/models/get_api_export_status_response.rb new file mode 100644 index 0000000..8574942 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_api_export_status_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetApiExportStatusResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'ModerationExportStatusResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_api_ids_response.rb b/client/lib/fastcomments-client/models/get_api_ids_response.rb new file mode 100644 index 0000000..3dbe19b --- /dev/null +++ b/client/lib/fastcomments-client/models/get_api_ids_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetApiIdsResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'ModerationAPIGetCommentIdsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_audit_logs_response.rb b/client/lib/fastcomments-client/models/get_audit_logs_response.rb index 3749295..91e3b84 100644 --- a/client/lib/fastcomments-client/models/get_audit_logs_response.rb +++ b/client/lib/fastcomments-client/models/get_audit_logs_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetAuditLogsResponse + class GetAuditLogsResponse < ApiModelBase attr_accessor :status attr_accessor :audit_logs @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_audit_logs_response1.rb b/client/lib/fastcomments-client/models/get_audit_logs_response1.rb new file mode 100644 index 0000000..c4d93ae --- /dev/null +++ b/client/lib/fastcomments-client/models/get_audit_logs_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetAuditLogsResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetAuditLogsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_ban_users_from_comment_response.rb b/client/lib/fastcomments-client/models/get_ban_users_from_comment_response.rb new file mode 100644 index 0000000..840050f --- /dev/null +++ b/client/lib/fastcomments-client/models/get_ban_users_from_comment_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetBanUsersFromCommentResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetBannedUsersFromCommentResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_banned_users_count_response.rb b/client/lib/fastcomments-client/models/get_banned_users_count_response.rb index 952c79c..f99fc70 100644 --- a/client/lib/fastcomments-client/models/get_banned_users_count_response.rb +++ b/client/lib/fastcomments-client/models/get_banned_users_count_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetBannedUsersCountResponse + class GetBannedUsersCountResponse < ApiModelBase attr_accessor :total_count attr_accessor :status @@ -169,61 +169,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -240,24 +185,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_banned_users_from_comment_response.rb b/client/lib/fastcomments-client/models/get_banned_users_from_comment_response.rb index a5b8775..14f425d 100644 --- a/client/lib/fastcomments-client/models/get_banned_users_from_comment_response.rb +++ b/client/lib/fastcomments-client/models/get_banned_users_from_comment_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetBannedUsersFromCommentResponse + class GetBannedUsersFromCommentResponse < ApiModelBase attr_accessor :banned_users attr_accessor :code @@ -214,61 +214,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -285,24 +230,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_cached_notification_count_response.rb b/client/lib/fastcomments-client/models/get_cached_notification_count_response.rb index f2ba1f4..e0b9d92 100644 --- a/client/lib/fastcomments-client/models/get_cached_notification_count_response.rb +++ b/client/lib/fastcomments-client/models/get_cached_notification_count_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetCachedNotificationCountResponse + class GetCachedNotificationCountResponse < ApiModelBase attr_accessor :status attr_accessor :data @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_cached_notification_count_response1.rb b/client/lib/fastcomments-client/models/get_cached_notification_count_response1.rb new file mode 100644 index 0000000..553a607 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_cached_notification_count_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetCachedNotificationCountResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetCachedNotificationCountResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_comment_ban_status_response.rb b/client/lib/fastcomments-client/models/get_comment_ban_status_response.rb index 5036baf..30f1e9a 100644 --- a/client/lib/fastcomments-client/models/get_comment_ban_status_response.rb +++ b/client/lib/fastcomments-client/models/get_comment_ban_status_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetCommentBanStatusResponse + class GetCommentBanStatusResponse < ApiModelBase attr_accessor :status attr_accessor :email_domain @@ -167,61 +167,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -238,24 +183,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_comment_ban_status_response1.rb b/client/lib/fastcomments-client/models/get_comment_ban_status_response1.rb new file mode 100644 index 0000000..ccb171c --- /dev/null +++ b/client/lib/fastcomments-client/models/get_comment_ban_status_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetCommentBanStatusResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetCommentBanStatusResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_comment_children_response.rb b/client/lib/fastcomments-client/models/get_comment_children_response.rb new file mode 100644 index 0000000..c8ab694 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_comment_children_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetCommentChildrenResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'ModerationAPIChildCommentsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_comment_response.rb b/client/lib/fastcomments-client/models/get_comment_response.rb new file mode 100644 index 0000000..adf43f7 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_comment_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetCommentResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'APIGetCommentResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_comment_text_response.rb b/client/lib/fastcomments-client/models/get_comment_text_response.rb index f40def9..3eebad9 100644 --- a/client/lib/fastcomments-client/models/get_comment_text_response.rb +++ b/client/lib/fastcomments-client/models/get_comment_text_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetCommentTextResponse + class GetCommentTextResponse < ApiModelBase attr_accessor :comment attr_accessor :status @@ -175,61 +175,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -246,24 +191,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_comment_text_response1.rb b/client/lib/fastcomments-client/models/get_comment_text_response1.rb new file mode 100644 index 0000000..1bacde1 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_comment_text_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetCommentTextResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'PublicAPIGetCommentTextResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_comment_vote_user_names_response.rb b/client/lib/fastcomments-client/models/get_comment_vote_user_names_response.rb new file mode 100644 index 0000000..6f60972 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_comment_vote_user_names_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetCommentVoteUserNamesResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetCommentVoteUserNamesSuccessResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_comment_vote_user_names_success_response.rb b/client/lib/fastcomments-client/models/get_comment_vote_user_names_success_response.rb index 29c4c96..5856d96 100644 --- a/client/lib/fastcomments-client/models/get_comment_vote_user_names_success_response.rb +++ b/client/lib/fastcomments-client/models/get_comment_vote_user_names_success_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetCommentVoteUserNamesSuccessResponse + class GetCommentVoteUserNamesSuccessResponse < ApiModelBase attr_accessor :status attr_accessor :vote_user_names @@ -219,61 +219,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -290,24 +235,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_comments_for_user_response.rb b/client/lib/fastcomments-client/models/get_comments_for_user_response.rb index 93884d8..b7da5ae 100644 --- a/client/lib/fastcomments-client/models/get_comments_for_user_response.rb +++ b/client/lib/fastcomments-client/models/get_comments_for_user_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetCommentsForUserResponse + class GetCommentsForUserResponse < ApiModelBase attr_accessor :moderating_tenant_ids # Attribute mapping from ruby-style variable name to JSON key. @@ -128,61 +128,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -199,24 +144,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_comments_for_user_response1.rb b/client/lib/fastcomments-client/models/get_comments_for_user_response1.rb new file mode 100644 index 0000000..10f362c --- /dev/null +++ b/client/lib/fastcomments-client/models/get_comments_for_user_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetCommentsForUserResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetCommentsForUserResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_comments_public_response.rb b/client/lib/fastcomments-client/models/get_comments_public_response.rb new file mode 100644 index 0000000..89ea6a8 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_comments_public_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetCommentsPublicResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetCommentsResponseWithPresencePublicComment' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_comments_response.rb b/client/lib/fastcomments-client/models/get_comments_response.rb new file mode 100644 index 0000000..f59d6af --- /dev/null +++ b/client/lib/fastcomments-client/models/get_comments_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetCommentsResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'APIGetCommentsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_comments_response_public_comment.rb b/client/lib/fastcomments-client/models/get_comments_response_public_comment.rb index 8bf80a4..a700506 100644 --- a/client/lib/fastcomments-client/models/get_comments_response_public_comment.rb +++ b/client/lib/fastcomments-client/models/get_comments_response_public_comment.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetCommentsResponsePublicComment + class GetCommentsResponsePublicComment < ApiModelBase attr_accessor :status_code attr_accessor :status @@ -393,61 +393,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -464,24 +409,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_comments_response_with_presence_public_comment.rb b/client/lib/fastcomments-client/models/get_comments_response_with_presence_public_comment.rb index 1f9ba15..77726bf 100644 --- a/client/lib/fastcomments-client/models/get_comments_response_with_presence_public_comment.rb +++ b/client/lib/fastcomments-client/models/get_comments_response_with_presence_public_comment.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetCommentsResponseWithPresencePublicComment + class GetCommentsResponseWithPresencePublicComment < ApiModelBase attr_accessor :status_code attr_accessor :status @@ -428,61 +428,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -499,24 +444,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_count_response.rb b/client/lib/fastcomments-client/models/get_count_response.rb new file mode 100644 index 0000000..13c0d11 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_count_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetCountResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'ModerationAPICountCommentsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_counts_response.rb b/client/lib/fastcomments-client/models/get_counts_response.rb new file mode 100644 index 0000000..c75960a --- /dev/null +++ b/client/lib/fastcomments-client/models/get_counts_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetCountsResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetBannedUsersCountResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_domain_config_response.rb b/client/lib/fastcomments-client/models/get_domain_config_response.rb index 13d3978..f9744b6 100644 --- a/client/lib/fastcomments-client/models/get_domain_config_response.rb +++ b/client/lib/fastcomments-client/models/get_domain_config_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/get_domain_configs_response.rb b/client/lib/fastcomments-client/models/get_domain_configs_response.rb index 289db1b..d5a6362 100644 --- a/client/lib/fastcomments-client/models/get_domain_configs_response.rb +++ b/client/lib/fastcomments-client/models/get_domain_configs_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/get_domain_configs_response_any_of.rb b/client/lib/fastcomments-client/models/get_domain_configs_response_any_of.rb index 7533976..878d70a 100644 --- a/client/lib/fastcomments-client/models/get_domain_configs_response_any_of.rb +++ b/client/lib/fastcomments-client/models/get_domain_configs_response_any_of.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetDomainConfigsResponseAnyOf + class GetDomainConfigsResponseAnyOf < ApiModelBase attr_accessor :configurations attr_accessor :status @@ -141,61 +141,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -212,24 +157,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_domain_configs_response_any_of1.rb b/client/lib/fastcomments-client/models/get_domain_configs_response_any_of1.rb index 5977047..a37d4b7 100644 --- a/client/lib/fastcomments-client/models/get_domain_configs_response_any_of1.rb +++ b/client/lib/fastcomments-client/models/get_domain_configs_response_any_of1.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetDomainConfigsResponseAnyOf1 + class GetDomainConfigsResponseAnyOf1 < ApiModelBase attr_accessor :reason attr_accessor :code @@ -181,61 +181,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -252,24 +197,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_email_template_definitions_response.rb b/client/lib/fastcomments-client/models/get_email_template_definitions_response.rb index b0ddd65..7d3a5c5 100644 --- a/client/lib/fastcomments-client/models/get_email_template_definitions_response.rb +++ b/client/lib/fastcomments-client/models/get_email_template_definitions_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetEmailTemplateDefinitionsResponse + class GetEmailTemplateDefinitionsResponse < ApiModelBase attr_accessor :status attr_accessor :definitions @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_email_template_definitions_response1.rb b/client/lib/fastcomments-client/models/get_email_template_definitions_response1.rb new file mode 100644 index 0000000..18dbe06 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_email_template_definitions_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetEmailTemplateDefinitionsResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetEmailTemplateDefinitionsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_email_template_render_errors_response.rb b/client/lib/fastcomments-client/models/get_email_template_render_errors_response.rb index 84ffb02..6fcc3ab 100644 --- a/client/lib/fastcomments-client/models/get_email_template_render_errors_response.rb +++ b/client/lib/fastcomments-client/models/get_email_template_render_errors_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetEmailTemplateRenderErrorsResponse + class GetEmailTemplateRenderErrorsResponse < ApiModelBase attr_accessor :status attr_accessor :render_errors @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_email_template_render_errors_response1.rb b/client/lib/fastcomments-client/models/get_email_template_render_errors_response1.rb new file mode 100644 index 0000000..fb2c107 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_email_template_render_errors_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetEmailTemplateRenderErrorsResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetEmailTemplateRenderErrorsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_email_template_response.rb b/client/lib/fastcomments-client/models/get_email_template_response.rb index 7d36bb4..5db900d 100644 --- a/client/lib/fastcomments-client/models/get_email_template_response.rb +++ b/client/lib/fastcomments-client/models/get_email_template_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetEmailTemplateResponse + class GetEmailTemplateResponse < ApiModelBase attr_accessor :status attr_accessor :email_template @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_email_template_response1.rb b/client/lib/fastcomments-client/models/get_email_template_response1.rb new file mode 100644 index 0000000..585d545 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_email_template_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetEmailTemplateResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetEmailTemplateResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_email_templates_response.rb b/client/lib/fastcomments-client/models/get_email_templates_response.rb index c450a7b..400a476 100644 --- a/client/lib/fastcomments-client/models/get_email_templates_response.rb +++ b/client/lib/fastcomments-client/models/get_email_templates_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetEmailTemplatesResponse + class GetEmailTemplatesResponse < ApiModelBase attr_accessor :status attr_accessor :email_templates @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_email_templates_response1.rb b/client/lib/fastcomments-client/models/get_email_templates_response1.rb new file mode 100644 index 0000000..ca9ab2d --- /dev/null +++ b/client/lib/fastcomments-client/models/get_email_templates_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetEmailTemplatesResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetEmailTemplatesResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_event_log_response.rb b/client/lib/fastcomments-client/models/get_event_log_response.rb index 6961526..b4bef4d 100644 --- a/client/lib/fastcomments-client/models/get_event_log_response.rb +++ b/client/lib/fastcomments-client/models/get_event_log_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetEventLogResponse + class GetEventLogResponse < ApiModelBase attr_accessor :events attr_accessor :status @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_event_log_response1.rb b/client/lib/fastcomments-client/models/get_event_log_response1.rb new file mode 100644 index 0000000..8b0ad42 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_event_log_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetEventLogResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetEventLogResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_feed_posts_public_response.rb b/client/lib/fastcomments-client/models/get_feed_posts_public_response.rb new file mode 100644 index 0000000..61a72a9 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_feed_posts_public_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetFeedPostsPublicResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'PublicFeedPostsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_feed_posts_response.rb b/client/lib/fastcomments-client/models/get_feed_posts_response.rb index fdc7330..4764670 100644 --- a/client/lib/fastcomments-client/models/get_feed_posts_response.rb +++ b/client/lib/fastcomments-client/models/get_feed_posts_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetFeedPostsResponse + class GetFeedPostsResponse < ApiModelBase attr_accessor :status attr_accessor :feed_posts @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_feed_posts_response1.rb b/client/lib/fastcomments-client/models/get_feed_posts_response1.rb new file mode 100644 index 0000000..62cf3ae --- /dev/null +++ b/client/lib/fastcomments-client/models/get_feed_posts_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetFeedPostsResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetFeedPostsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_feed_posts_stats_response.rb b/client/lib/fastcomments-client/models/get_feed_posts_stats_response.rb new file mode 100644 index 0000000..30950bf --- /dev/null +++ b/client/lib/fastcomments-client/models/get_feed_posts_stats_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetFeedPostsStatsResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'FeedPostsStatsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_gif_large_response.rb b/client/lib/fastcomments-client/models/get_gif_large_response.rb new file mode 100644 index 0000000..7ed9791 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_gif_large_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetGifLargeResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GifGetLargeResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_gifs_search_response.rb b/client/lib/fastcomments-client/models/get_gifs_search_response.rb index c00a6af..7e98323 100644 --- a/client/lib/fastcomments-client/models/get_gifs_search_response.rb +++ b/client/lib/fastcomments-client/models/get_gifs_search_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -19,6 +19,7 @@ class << self # List of class defined in anyOf (OpenAPI v3) def openapi_any_of [ + :'APIError', :'GifSearchInternalError', :'GifSearchResponse' ] @@ -37,8 +38,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/get_gifs_trending_response.rb b/client/lib/fastcomments-client/models/get_gifs_trending_response.rb index d813496..bf40ec3 100644 --- a/client/lib/fastcomments-client/models/get_gifs_trending_response.rb +++ b/client/lib/fastcomments-client/models/get_gifs_trending_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/get_global_event_log_response.rb b/client/lib/fastcomments-client/models/get_global_event_log_response.rb new file mode 100644 index 0000000..2bb4d37 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_global_event_log_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetGlobalEventLogResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetEventLogResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_hash_tags_response.rb b/client/lib/fastcomments-client/models/get_hash_tags_response.rb index 4a61824..0d4e997 100644 --- a/client/lib/fastcomments-client/models/get_hash_tags_response.rb +++ b/client/lib/fastcomments-client/models/get_hash_tags_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetHashTagsResponse + class GetHashTagsResponse < ApiModelBase attr_accessor :status attr_accessor :hash_tags @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_hash_tags_response1.rb b/client/lib/fastcomments-client/models/get_hash_tags_response1.rb new file mode 100644 index 0000000..aada997 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_hash_tags_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetHashTagsResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetHashTagsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_logs_response.rb b/client/lib/fastcomments-client/models/get_logs_response.rb new file mode 100644 index 0000000..f5bcffa --- /dev/null +++ b/client/lib/fastcomments-client/models/get_logs_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetLogsResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'ModerationAPIGetLogsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_manual_badges_for_user_response.rb b/client/lib/fastcomments-client/models/get_manual_badges_for_user_response.rb new file mode 100644 index 0000000..8458bad --- /dev/null +++ b/client/lib/fastcomments-client/models/get_manual_badges_for_user_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetManualBadgesForUserResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetUserManualBadgesResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_manual_badges_response.rb b/client/lib/fastcomments-client/models/get_manual_badges_response.rb new file mode 100644 index 0000000..359500e --- /dev/null +++ b/client/lib/fastcomments-client/models/get_manual_badges_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetManualBadgesResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetTenantManualBadgesResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_moderation_comment_response.rb b/client/lib/fastcomments-client/models/get_moderation_comment_response.rb new file mode 100644 index 0000000..d7f9892 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_moderation_comment_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetModerationCommentResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'ModerationAPICommentResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_moderation_comment_text_response.rb b/client/lib/fastcomments-client/models/get_moderation_comment_text_response.rb new file mode 100644 index 0000000..9c6eb8e --- /dev/null +++ b/client/lib/fastcomments-client/models/get_moderation_comment_text_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetModerationCommentTextResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetCommentTextResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_moderator_response.rb b/client/lib/fastcomments-client/models/get_moderator_response.rb index 031c39f..6af01ab 100644 --- a/client/lib/fastcomments-client/models/get_moderator_response.rb +++ b/client/lib/fastcomments-client/models/get_moderator_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetModeratorResponse + class GetModeratorResponse < ApiModelBase attr_accessor :status attr_accessor :moderator @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_moderator_response1.rb b/client/lib/fastcomments-client/models/get_moderator_response1.rb new file mode 100644 index 0000000..3285e26 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_moderator_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetModeratorResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetModeratorResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_moderators_response.rb b/client/lib/fastcomments-client/models/get_moderators_response.rb index 6a20f53..ca21564 100644 --- a/client/lib/fastcomments-client/models/get_moderators_response.rb +++ b/client/lib/fastcomments-client/models/get_moderators_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetModeratorsResponse + class GetModeratorsResponse < ApiModelBase attr_accessor :status attr_accessor :moderators @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_moderators_response1.rb b/client/lib/fastcomments-client/models/get_moderators_response1.rb new file mode 100644 index 0000000..143cbf6 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_moderators_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetModeratorsResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetModeratorsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_my_notifications_response.rb b/client/lib/fastcomments-client/models/get_my_notifications_response.rb index 46b9d36..13b2140 100644 --- a/client/lib/fastcomments-client/models/get_my_notifications_response.rb +++ b/client/lib/fastcomments-client/models/get_my_notifications_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetMyNotificationsResponse + class GetMyNotificationsResponse < ApiModelBase # Construct a type with a set of properties K of type T attr_accessor :translations @@ -257,61 +257,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -328,24 +273,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_notification_count_response.rb b/client/lib/fastcomments-client/models/get_notification_count_response.rb index 7ec1894..5535402 100644 --- a/client/lib/fastcomments-client/models/get_notification_count_response.rb +++ b/client/lib/fastcomments-client/models/get_notification_count_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetNotificationCountResponse + class GetNotificationCountResponse < ApiModelBase attr_accessor :status attr_accessor :count @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_notification_count_response1.rb b/client/lib/fastcomments-client/models/get_notification_count_response1.rb new file mode 100644 index 0000000..0d2fb01 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_notification_count_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetNotificationCountResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetNotificationCountResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_notifications_response.rb b/client/lib/fastcomments-client/models/get_notifications_response.rb index 278f698..c185c14 100644 --- a/client/lib/fastcomments-client/models/get_notifications_response.rb +++ b/client/lib/fastcomments-client/models/get_notifications_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetNotificationsResponse + class GetNotificationsResponse < ApiModelBase attr_accessor :status attr_accessor :notifications @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_notifications_response1.rb b/client/lib/fastcomments-client/models/get_notifications_response1.rb new file mode 100644 index 0000000..0871f8b --- /dev/null +++ b/client/lib/fastcomments-client/models/get_notifications_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetNotificationsResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetNotificationsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_offline_users_response.rb b/client/lib/fastcomments-client/models/get_offline_users_response.rb new file mode 100644 index 0000000..ac7260c --- /dev/null +++ b/client/lib/fastcomments-client/models/get_offline_users_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetOfflineUsersResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'PageUsersOfflineResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_online_users_response.rb b/client/lib/fastcomments-client/models/get_online_users_response.rb new file mode 100644 index 0000000..514766d --- /dev/null +++ b/client/lib/fastcomments-client/models/get_online_users_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetOnlineUsersResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'PageUsersOnlineResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_page_by_urlid_api_response.rb b/client/lib/fastcomments-client/models/get_page_by_urlid_api_response.rb index 32d1270..e68a7e3 100644 --- a/client/lib/fastcomments-client/models/get_page_by_urlid_api_response.rb +++ b/client/lib/fastcomments-client/models/get_page_by_urlid_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetPageByURLIdAPIResponse + class GetPageByURLIdAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -170,61 +170,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -241,24 +186,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_pages_api_response.rb b/client/lib/fastcomments-client/models/get_pages_api_response.rb index fc818d3..a0558ef 100644 --- a/client/lib/fastcomments-client/models/get_pages_api_response.rb +++ b/client/lib/fastcomments-client/models/get_pages_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetPagesAPIResponse + class GetPagesAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -172,61 +172,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -243,24 +188,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_pages_public_response.rb b/client/lib/fastcomments-client/models/get_pages_public_response.rb new file mode 100644 index 0000000..5e322c7 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_pages_public_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetPagesPublicResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetPublicPagesResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_pending_webhook_event_count_response.rb b/client/lib/fastcomments-client/models/get_pending_webhook_event_count_response.rb index 57c05be..3b01a85 100644 --- a/client/lib/fastcomments-client/models/get_pending_webhook_event_count_response.rb +++ b/client/lib/fastcomments-client/models/get_pending_webhook_event_count_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetPendingWebhookEventCountResponse + class GetPendingWebhookEventCountResponse < ApiModelBase attr_accessor :status attr_accessor :count @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_pending_webhook_event_count_response1.rb b/client/lib/fastcomments-client/models/get_pending_webhook_event_count_response1.rb new file mode 100644 index 0000000..0b91f27 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_pending_webhook_event_count_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetPendingWebhookEventCountResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetPendingWebhookEventCountResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_pending_webhook_events_response.rb b/client/lib/fastcomments-client/models/get_pending_webhook_events_response.rb index ee19adf..448c9c2 100644 --- a/client/lib/fastcomments-client/models/get_pending_webhook_events_response.rb +++ b/client/lib/fastcomments-client/models/get_pending_webhook_events_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetPendingWebhookEventsResponse + class GetPendingWebhookEventsResponse < ApiModelBase attr_accessor :status attr_accessor :pending_webhook_events @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_pending_webhook_events_response1.rb b/client/lib/fastcomments-client/models/get_pending_webhook_events_response1.rb new file mode 100644 index 0000000..1b51eb2 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_pending_webhook_events_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetPendingWebhookEventsResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetPendingWebhookEventsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_pre_ban_summary_response.rb b/client/lib/fastcomments-client/models/get_pre_ban_summary_response.rb new file mode 100644 index 0000000..96c76ef --- /dev/null +++ b/client/lib/fastcomments-client/models/get_pre_ban_summary_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetPreBanSummaryResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'PreBanSummary' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_public_feed_posts_response.rb b/client/lib/fastcomments-client/models/get_public_feed_posts_response.rb index a225a2c..23cc7e7 100644 --- a/client/lib/fastcomments-client/models/get_public_feed_posts_response.rb +++ b/client/lib/fastcomments-client/models/get_public_feed_posts_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetPublicFeedPostsResponse + class GetPublicFeedPostsResponse < ApiModelBase attr_accessor :status attr_accessor :feed_posts @@ -203,61 +203,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -274,24 +219,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_public_pages_response.rb b/client/lib/fastcomments-client/models/get_public_pages_response.rb index 7ba8332..329ebdb 100644 --- a/client/lib/fastcomments-client/models/get_public_pages_response.rb +++ b/client/lib/fastcomments-client/models/get_public_pages_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetPublicPagesResponse + class GetPublicPagesResponse < ApiModelBase attr_accessor :next_cursor attr_accessor :pages @@ -205,61 +205,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -276,24 +221,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_question_config_response.rb b/client/lib/fastcomments-client/models/get_question_config_response.rb index 3bc1572..005f6aa 100644 --- a/client/lib/fastcomments-client/models/get_question_config_response.rb +++ b/client/lib/fastcomments-client/models/get_question_config_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetQuestionConfigResponse + class GetQuestionConfigResponse < ApiModelBase attr_accessor :status attr_accessor :question_config @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_question_config_response1.rb b/client/lib/fastcomments-client/models/get_question_config_response1.rb new file mode 100644 index 0000000..5340ca6 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_question_config_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetQuestionConfigResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetQuestionConfigResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_question_configs_response.rb b/client/lib/fastcomments-client/models/get_question_configs_response.rb index 37353a1..27b2369 100644 --- a/client/lib/fastcomments-client/models/get_question_configs_response.rb +++ b/client/lib/fastcomments-client/models/get_question_configs_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetQuestionConfigsResponse + class GetQuestionConfigsResponse < ApiModelBase attr_accessor :status attr_accessor :question_configs @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_question_configs_response1.rb b/client/lib/fastcomments-client/models/get_question_configs_response1.rb new file mode 100644 index 0000000..a061818 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_question_configs_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetQuestionConfigsResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetQuestionConfigsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_question_result_response.rb b/client/lib/fastcomments-client/models/get_question_result_response.rb index d0775d1..1b160c1 100644 --- a/client/lib/fastcomments-client/models/get_question_result_response.rb +++ b/client/lib/fastcomments-client/models/get_question_result_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetQuestionResultResponse + class GetQuestionResultResponse < ApiModelBase attr_accessor :status attr_accessor :question_result @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_question_result_response1.rb b/client/lib/fastcomments-client/models/get_question_result_response1.rb new file mode 100644 index 0000000..0dfb4d7 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_question_result_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetQuestionResultResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetQuestionResultResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_question_results_response.rb b/client/lib/fastcomments-client/models/get_question_results_response.rb index 331c3c9..74fca59 100644 --- a/client/lib/fastcomments-client/models/get_question_results_response.rb +++ b/client/lib/fastcomments-client/models/get_question_results_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetQuestionResultsResponse + class GetQuestionResultsResponse < ApiModelBase attr_accessor :status attr_accessor :question_results @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_question_results_response1.rb b/client/lib/fastcomments-client/models/get_question_results_response1.rb new file mode 100644 index 0000000..0c84641 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_question_results_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetQuestionResultsResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetQuestionResultsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_search_comments_summary_response.rb b/client/lib/fastcomments-client/models/get_search_comments_summary_response.rb new file mode 100644 index 0000000..2a9e47b --- /dev/null +++ b/client/lib/fastcomments-client/models/get_search_comments_summary_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetSearchCommentsSummaryResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'ModerationCommentSearchResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_search_pages_response.rb b/client/lib/fastcomments-client/models/get_search_pages_response.rb new file mode 100644 index 0000000..9325d4d --- /dev/null +++ b/client/lib/fastcomments-client/models/get_search_pages_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetSearchPagesResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'ModerationPageSearchResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_search_sites_response.rb b/client/lib/fastcomments-client/models/get_search_sites_response.rb new file mode 100644 index 0000000..fc828c2 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_search_sites_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetSearchSitesResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'ModerationSiteSearchResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_search_suggest_response.rb b/client/lib/fastcomments-client/models/get_search_suggest_response.rb new file mode 100644 index 0000000..3536094 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_search_suggest_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetSearchSuggestResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'ModerationSuggestResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_search_users_response.rb b/client/lib/fastcomments-client/models/get_search_users_response.rb new file mode 100644 index 0000000..75828f6 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_search_users_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetSearchUsersResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'ModerationUserSearchResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_sso_user_by_email_api_response.rb b/client/lib/fastcomments-client/models/get_sso_user_by_email_api_response.rb index 65f3444..9bea0be 100644 --- a/client/lib/fastcomments-client/models/get_sso_user_by_email_api_response.rb +++ b/client/lib/fastcomments-client/models/get_sso_user_by_email_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetSSOUserByEmailAPIResponse + class GetSSOUserByEmailAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -170,61 +170,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -241,24 +186,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_sso_user_by_id_api_response.rb b/client/lib/fastcomments-client/models/get_sso_user_by_id_api_response.rb index 63db1b0..4c96c7f 100644 --- a/client/lib/fastcomments-client/models/get_sso_user_by_id_api_response.rb +++ b/client/lib/fastcomments-client/models/get_sso_user_by_id_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetSSOUserByIdAPIResponse + class GetSSOUserByIdAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -170,61 +170,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -241,24 +186,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_sso_users_response.rb b/client/lib/fastcomments-client/models/get_sso_users_response.rb index 5841ca9..66b04ef 100644 --- a/client/lib/fastcomments-client/models/get_sso_users_response.rb +++ b/client/lib/fastcomments-client/models/get_sso_users_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetSSOUsersResponse + class GetSSOUsersResponse < ApiModelBase attr_accessor :users attr_accessor :status @@ -171,61 +171,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -242,24 +187,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_subscriptions_api_response.rb b/client/lib/fastcomments-client/models/get_subscriptions_api_response.rb index 993b6d9..dcdb42a 100644 --- a/client/lib/fastcomments-client/models/get_subscriptions_api_response.rb +++ b/client/lib/fastcomments-client/models/get_subscriptions_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetSubscriptionsAPIResponse + class GetSubscriptionsAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -172,61 +172,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -243,24 +188,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_tenant_daily_usages_response.rb b/client/lib/fastcomments-client/models/get_tenant_daily_usages_response.rb index d301465..b43724e 100644 --- a/client/lib/fastcomments-client/models/get_tenant_daily_usages_response.rb +++ b/client/lib/fastcomments-client/models/get_tenant_daily_usages_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetTenantDailyUsagesResponse + class GetTenantDailyUsagesResponse < ApiModelBase attr_accessor :status attr_accessor :tenant_daily_usages @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_tenant_daily_usages_response1.rb b/client/lib/fastcomments-client/models/get_tenant_daily_usages_response1.rb new file mode 100644 index 0000000..dd21e1c --- /dev/null +++ b/client/lib/fastcomments-client/models/get_tenant_daily_usages_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetTenantDailyUsagesResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetTenantDailyUsagesResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_tenant_manual_badges_response.rb b/client/lib/fastcomments-client/models/get_tenant_manual_badges_response.rb index 5709cfb..764bcf7 100644 --- a/client/lib/fastcomments-client/models/get_tenant_manual_badges_response.rb +++ b/client/lib/fastcomments-client/models/get_tenant_manual_badges_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetTenantManualBadgesResponse + class GetTenantManualBadgesResponse < ApiModelBase attr_accessor :badges attr_accessor :status @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_tenant_package_response.rb b/client/lib/fastcomments-client/models/get_tenant_package_response.rb index 491e421..af68a06 100644 --- a/client/lib/fastcomments-client/models/get_tenant_package_response.rb +++ b/client/lib/fastcomments-client/models/get_tenant_package_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetTenantPackageResponse + class GetTenantPackageResponse < ApiModelBase attr_accessor :status attr_accessor :tenant_package @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_tenant_package_response1.rb b/client/lib/fastcomments-client/models/get_tenant_package_response1.rb new file mode 100644 index 0000000..abd18b4 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_tenant_package_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetTenantPackageResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetTenantPackageResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_tenant_packages_response.rb b/client/lib/fastcomments-client/models/get_tenant_packages_response.rb index def384a..fa1c69b 100644 --- a/client/lib/fastcomments-client/models/get_tenant_packages_response.rb +++ b/client/lib/fastcomments-client/models/get_tenant_packages_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetTenantPackagesResponse + class GetTenantPackagesResponse < ApiModelBase attr_accessor :status attr_accessor :tenant_packages @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_tenant_packages_response1.rb b/client/lib/fastcomments-client/models/get_tenant_packages_response1.rb new file mode 100644 index 0000000..5faadd8 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_tenant_packages_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetTenantPackagesResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetTenantPackagesResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_tenant_response.rb b/client/lib/fastcomments-client/models/get_tenant_response.rb index 1ef29a5..f101f23 100644 --- a/client/lib/fastcomments-client/models/get_tenant_response.rb +++ b/client/lib/fastcomments-client/models/get_tenant_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetTenantResponse + class GetTenantResponse < ApiModelBase attr_accessor :status attr_accessor :tenant @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_tenant_response1.rb b/client/lib/fastcomments-client/models/get_tenant_response1.rb new file mode 100644 index 0000000..dcddbb1 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_tenant_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetTenantResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetTenantResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_tenant_user_response.rb b/client/lib/fastcomments-client/models/get_tenant_user_response.rb index 4dc93ba..8c13169 100644 --- a/client/lib/fastcomments-client/models/get_tenant_user_response.rb +++ b/client/lib/fastcomments-client/models/get_tenant_user_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetTenantUserResponse + class GetTenantUserResponse < ApiModelBase attr_accessor :status attr_accessor :tenant_user @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_tenant_user_response1.rb b/client/lib/fastcomments-client/models/get_tenant_user_response1.rb new file mode 100644 index 0000000..6dc9ff7 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_tenant_user_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetTenantUserResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetTenantUserResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_tenant_users_response.rb b/client/lib/fastcomments-client/models/get_tenant_users_response.rb index 7d4a362..52be0ba 100644 --- a/client/lib/fastcomments-client/models/get_tenant_users_response.rb +++ b/client/lib/fastcomments-client/models/get_tenant_users_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetTenantUsersResponse + class GetTenantUsersResponse < ApiModelBase attr_accessor :status attr_accessor :tenant_users @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_tenant_users_response1.rb b/client/lib/fastcomments-client/models/get_tenant_users_response1.rb new file mode 100644 index 0000000..fbf1c2f --- /dev/null +++ b/client/lib/fastcomments-client/models/get_tenant_users_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetTenantUsersResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetTenantUsersResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_tenants_response.rb b/client/lib/fastcomments-client/models/get_tenants_response.rb index 7f758ad..c2a6a73 100644 --- a/client/lib/fastcomments-client/models/get_tenants_response.rb +++ b/client/lib/fastcomments-client/models/get_tenants_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetTenantsResponse + class GetTenantsResponse < ApiModelBase attr_accessor :status attr_accessor :tenants @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_tenants_response1.rb b/client/lib/fastcomments-client/models/get_tenants_response1.rb new file mode 100644 index 0000000..62a7c18 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_tenants_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetTenantsResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetTenantsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_ticket_response.rb b/client/lib/fastcomments-client/models/get_ticket_response.rb index 635e4a6..2ee6167 100644 --- a/client/lib/fastcomments-client/models/get_ticket_response.rb +++ b/client/lib/fastcomments-client/models/get_ticket_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetTicketResponse + class GetTicketResponse < ApiModelBase attr_accessor :status attr_accessor :ticket @@ -219,61 +219,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -290,24 +235,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_ticket_response1.rb b/client/lib/fastcomments-client/models/get_ticket_response1.rb new file mode 100644 index 0000000..1d1da3c --- /dev/null +++ b/client/lib/fastcomments-client/models/get_ticket_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetTicketResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetTicketResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_tickets_response.rb b/client/lib/fastcomments-client/models/get_tickets_response.rb index 8c8220b..b072c0f 100644 --- a/client/lib/fastcomments-client/models/get_tickets_response.rb +++ b/client/lib/fastcomments-client/models/get_tickets_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetTicketsResponse + class GetTicketsResponse < ApiModelBase attr_accessor :status attr_accessor :tickets @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_tickets_response1.rb b/client/lib/fastcomments-client/models/get_tickets_response1.rb new file mode 100644 index 0000000..eacf6ac --- /dev/null +++ b/client/lib/fastcomments-client/models/get_tickets_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetTicketsResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetTicketsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_translations_response.rb b/client/lib/fastcomments-client/models/get_translations_response.rb index 5d68015..1a50d50 100644 --- a/client/lib/fastcomments-client/models/get_translations_response.rb +++ b/client/lib/fastcomments-client/models/get_translations_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetTranslationsResponse + class GetTranslationsResponse < ApiModelBase # Construct a type with a set of properties K of type T attr_accessor :translations @@ -194,61 +194,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -265,24 +210,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_translations_response1.rb b/client/lib/fastcomments-client/models/get_translations_response1.rb new file mode 100644 index 0000000..d174b0c --- /dev/null +++ b/client/lib/fastcomments-client/models/get_translations_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetTranslationsResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetTranslationsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_trust_factor_response.rb b/client/lib/fastcomments-client/models/get_trust_factor_response.rb new file mode 100644 index 0000000..3f903e7 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_trust_factor_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetTrustFactorResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetUserTrustFactorResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_user_badge_progress_by_id_response.rb b/client/lib/fastcomments-client/models/get_user_badge_progress_by_id_response.rb new file mode 100644 index 0000000..4810593 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_user_badge_progress_by_id_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetUserBadgeProgressByIdResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'APIGetUserBadgeProgressResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_user_badge_progress_by_user_id_response.rb b/client/lib/fastcomments-client/models/get_user_badge_progress_by_user_id_response.rb new file mode 100644 index 0000000..9b93027 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_user_badge_progress_by_user_id_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetUserBadgeProgressByUserIdResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'APIGetUserBadgeProgressResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_user_badge_progress_list_response.rb b/client/lib/fastcomments-client/models/get_user_badge_progress_list_response.rb new file mode 100644 index 0000000..4560fb1 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_user_badge_progress_list_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetUserBadgeProgressListResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'APIGetUserBadgeProgressListResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_user_badge_response.rb b/client/lib/fastcomments-client/models/get_user_badge_response.rb new file mode 100644 index 0000000..6472392 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_user_badge_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetUserBadgeResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'APIGetUserBadgeResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_user_badges_response.rb b/client/lib/fastcomments-client/models/get_user_badges_response.rb new file mode 100644 index 0000000..7c07483 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_user_badges_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetUserBadgesResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'APIGetUserBadgesResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_user_ban_preference_response.rb b/client/lib/fastcomments-client/models/get_user_ban_preference_response.rb new file mode 100644 index 0000000..0cdc5e0 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_user_ban_preference_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetUserBanPreferenceResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'APIModerateGetUserBanPreferencesResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_user_internal_profile_response.rb b/client/lib/fastcomments-client/models/get_user_internal_profile_response.rb index 1f8373a..6736078 100644 --- a/client/lib/fastcomments-client/models/get_user_internal_profile_response.rb +++ b/client/lib/fastcomments-client/models/get_user_internal_profile_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetUserInternalProfileResponse + class GetUserInternalProfileResponse < ApiModelBase attr_accessor :profile attr_accessor :status @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_user_internal_profile_response1.rb b/client/lib/fastcomments-client/models/get_user_internal_profile_response1.rb new file mode 100644 index 0000000..77ccde3 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_user_internal_profile_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetUserInternalProfileResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetUserInternalProfileResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_user_internal_profile_response_profile.rb b/client/lib/fastcomments-client/models/get_user_internal_profile_response_profile.rb index b53e2b7..7c8c9cf 100644 --- a/client/lib/fastcomments-client/models/get_user_internal_profile_response_profile.rb +++ b/client/lib/fastcomments-client/models/get_user_internal_profile_response_profile.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetUserInternalProfileResponseProfile + class GetUserInternalProfileResponseProfile < ApiModelBase attr_accessor :commenter_name attr_accessor :first_comment_date @@ -277,61 +277,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -348,24 +293,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_user_manual_badges_response.rb b/client/lib/fastcomments-client/models/get_user_manual_badges_response.rb index 2024d6f..0d10a02 100644 --- a/client/lib/fastcomments-client/models/get_user_manual_badges_response.rb +++ b/client/lib/fastcomments-client/models/get_user_manual_badges_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetUserManualBadgesResponse + class GetUserManualBadgesResponse < ApiModelBase attr_accessor :badges attr_accessor :status @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_user_notification_count_response.rb b/client/lib/fastcomments-client/models/get_user_notification_count_response.rb index 30f94a5..67efb42 100644 --- a/client/lib/fastcomments-client/models/get_user_notification_count_response.rb +++ b/client/lib/fastcomments-client/models/get_user_notification_count_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetUserNotificationCountResponse + class GetUserNotificationCountResponse < ApiModelBase attr_accessor :status attr_accessor :count @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_user_notification_count_response1.rb b/client/lib/fastcomments-client/models/get_user_notification_count_response1.rb new file mode 100644 index 0000000..9be68e4 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_user_notification_count_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetUserNotificationCountResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetUserNotificationCountResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_user_notifications_response.rb b/client/lib/fastcomments-client/models/get_user_notifications_response.rb new file mode 100644 index 0000000..f04b1a6 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_user_notifications_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetUserNotificationsResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetMyNotificationsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_user_presence_statuses_response.rb b/client/lib/fastcomments-client/models/get_user_presence_statuses_response.rb index b3314a3..78f365a 100644 --- a/client/lib/fastcomments-client/models/get_user_presence_statuses_response.rb +++ b/client/lib/fastcomments-client/models/get_user_presence_statuses_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetUserPresenceStatusesResponse + class GetUserPresenceStatusesResponse < ApiModelBase attr_accessor :status # Construct a type with a set of properties K of type T @@ -194,61 +194,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -265,24 +210,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_user_presence_statuses_response1.rb b/client/lib/fastcomments-client/models/get_user_presence_statuses_response1.rb new file mode 100644 index 0000000..7bdc0f4 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_user_presence_statuses_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetUserPresenceStatusesResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetUserPresenceStatusesResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_user_reacts_public_response.rb b/client/lib/fastcomments-client/models/get_user_reacts_public_response.rb new file mode 100644 index 0000000..11ca7c4 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_user_reacts_public_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetUserReactsPublicResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'UserReactsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_user_response.rb b/client/lib/fastcomments-client/models/get_user_response.rb index d6050bf..28290ba 100644 --- a/client/lib/fastcomments-client/models/get_user_response.rb +++ b/client/lib/fastcomments-client/models/get_user_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetUserResponse + class GetUserResponse < ApiModelBase attr_accessor :status attr_accessor :user @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_user_response1.rb b/client/lib/fastcomments-client/models/get_user_response1.rb new file mode 100644 index 0000000..748a815 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_user_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetUserResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetUserResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_user_trust_factor_response.rb b/client/lib/fastcomments-client/models/get_user_trust_factor_response.rb index cd36359..1e78c7c 100644 --- a/client/lib/fastcomments-client/models/get_user_trust_factor_response.rb +++ b/client/lib/fastcomments-client/models/get_user_trust_factor_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetUserTrustFactorResponse + class GetUserTrustFactorResponse < ApiModelBase attr_accessor :manual_trust_factor attr_accessor :auto_trust_factor @@ -183,61 +183,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -254,24 +199,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_users_info_response.rb b/client/lib/fastcomments-client/models/get_users_info_response.rb new file mode 100644 index 0000000..d38316d --- /dev/null +++ b/client/lib/fastcomments-client/models/get_users_info_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetUsersInfoResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'PageUsersInfoResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_v1_page_likes.rb b/client/lib/fastcomments-client/models/get_v1_page_likes.rb index 092e2e3..7118bfc 100644 --- a/client/lib/fastcomments-client/models/get_v1_page_likes.rb +++ b/client/lib/fastcomments-client/models/get_v1_page_likes.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetV1PageLikes + class GetV1PageLikes < ApiModelBase attr_accessor :url_id_ws attr_accessor :did_like @@ -269,61 +269,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -340,24 +285,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_v1_page_likes_response.rb b/client/lib/fastcomments-client/models/get_v1_page_likes_response.rb new file mode 100644 index 0000000..492b5f4 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_v1_page_likes_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetV1PageLikesResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetV1PageLikes' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_v2_page_react_users_response.rb b/client/lib/fastcomments-client/models/get_v2_page_react_users_response.rb index a7cb7ff..baf9157 100644 --- a/client/lib/fastcomments-client/models/get_v2_page_react_users_response.rb +++ b/client/lib/fastcomments-client/models/get_v2_page_react_users_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetV2PageReactUsersResponse + class GetV2PageReactUsersResponse < ApiModelBase attr_accessor :user_names attr_accessor :status @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_v2_page_react_users_response1.rb b/client/lib/fastcomments-client/models/get_v2_page_react_users_response1.rb new file mode 100644 index 0000000..75e4752 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_v2_page_react_users_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetV2PageReactUsersResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetV2PageReactUsersResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_v2_page_reacts.rb b/client/lib/fastcomments-client/models/get_v2_page_reacts.rb index fc4e99c..794b026 100644 --- a/client/lib/fastcomments-client/models/get_v2_page_reacts.rb +++ b/client/lib/fastcomments-client/models/get_v2_page_reacts.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetV2PageReacts + class GetV2PageReacts < ApiModelBase attr_accessor :reacted_ids # Construct a type with a set of properties K of type T @@ -188,61 +188,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -259,24 +204,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_v2_page_reacts_response.rb b/client/lib/fastcomments-client/models/get_v2_page_reacts_response.rb new file mode 100644 index 0000000..09b0cf9 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_v2_page_reacts_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetV2PageReactsResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetV2PageReacts' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_votes_for_user_response.rb b/client/lib/fastcomments-client/models/get_votes_for_user_response.rb index 8a1a24a..8c3219b 100644 --- a/client/lib/fastcomments-client/models/get_votes_for_user_response.rb +++ b/client/lib/fastcomments-client/models/get_votes_for_user_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetVotesForUserResponse + class GetVotesForUserResponse < ApiModelBase attr_accessor :status attr_accessor :applied_authorized_votes @@ -249,61 +249,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -320,24 +265,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_votes_for_user_response1.rb b/client/lib/fastcomments-client/models/get_votes_for_user_response1.rb new file mode 100644 index 0000000..aa83809 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_votes_for_user_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetVotesForUserResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetVotesForUserResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/get_votes_response.rb b/client/lib/fastcomments-client/models/get_votes_response.rb index 68a0ab8..0367ff6 100644 --- a/client/lib/fastcomments-client/models/get_votes_response.rb +++ b/client/lib/fastcomments-client/models/get_votes_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetVotesResponse + class GetVotesResponse < ApiModelBase attr_accessor :status attr_accessor :applied_authorized_votes @@ -249,61 +249,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -320,24 +265,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_votes_response1.rb b/client/lib/fastcomments-client/models/get_votes_response1.rb new file mode 100644 index 0000000..2389885 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_votes_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetVotesResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'GetVotesResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/gif_get_large_response.rb b/client/lib/fastcomments-client/models/gif_get_large_response.rb index 35711fa..6f87a5e 100644 --- a/client/lib/fastcomments-client/models/gif_get_large_response.rb +++ b/client/lib/fastcomments-client/models/gif_get_large_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GifGetLargeResponse + class GifGetLargeResponse < ApiModelBase attr_accessor :src attr_accessor :status @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/gif_rating.rb b/client/lib/fastcomments-client/models/gif_rating.rb index 98a9eaf..886d005 100644 --- a/client/lib/fastcomments-client/models/gif_rating.rb +++ b/client/lib/fastcomments-client/models/gif_rating.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/gif_search_internal_error.rb b/client/lib/fastcomments-client/models/gif_search_internal_error.rb index aa1e4b7..325326e 100644 --- a/client/lib/fastcomments-client/models/gif_search_internal_error.rb +++ b/client/lib/fastcomments-client/models/gif_search_internal_error.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GifSearchInternalError + class GifSearchInternalError < ApiModelBase attr_accessor :code attr_accessor :status @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/gif_search_response.rb b/client/lib/fastcomments-client/models/gif_search_response.rb index e47f761..659cdab 100644 --- a/client/lib/fastcomments-client/models/gif_search_response.rb +++ b/client/lib/fastcomments-client/models/gif_search_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GifSearchResponse + class GifSearchResponse < ApiModelBase attr_accessor :images attr_accessor :status @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/gif_search_response_images_inner_inner.rb b/client/lib/fastcomments-client/models/gif_search_response_images_inner_inner.rb index 14c33aa..50e1984 100644 --- a/client/lib/fastcomments-client/models/gif_search_response_images_inner_inner.rb +++ b/client/lib/fastcomments-client/models/gif_search_response_images_inner_inner.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/header_account_notification.rb b/client/lib/fastcomments-client/models/header_account_notification.rb index 0c58ab0..7d858c2 100644 --- a/client/lib/fastcomments-client/models/header_account_notification.rb +++ b/client/lib/fastcomments-client/models/header_account_notification.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class HeaderAccountNotification + class HeaderAccountNotification < ApiModelBase attr_accessor :_id attr_accessor :title @@ -312,61 +312,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -383,24 +328,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/header_state.rb b/client/lib/fastcomments-client/models/header_state.rb index da3137a..7224bca 100644 --- a/client/lib/fastcomments-client/models/header_state.rb +++ b/client/lib/fastcomments-client/models/header_state.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class HeaderState + class HeaderState < ApiModelBase attr_accessor :status attr_accessor :notification_type @@ -299,61 +299,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -370,24 +315,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/ignored_response.rb b/client/lib/fastcomments-client/models/ignored_response.rb index e7c5837..543bcb3 100644 --- a/client/lib/fastcomments-client/models/ignored_response.rb +++ b/client/lib/fastcomments-client/models/ignored_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class IgnoredResponse + class IgnoredResponse < ApiModelBase attr_accessor :status attr_accessor :note @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/image_content_profanity_level.rb b/client/lib/fastcomments-client/models/image_content_profanity_level.rb index d0573b5..03bace5 100644 --- a/client/lib/fastcomments-client/models/image_content_profanity_level.rb +++ b/client/lib/fastcomments-client/models/image_content_profanity_level.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/imported_agent_approval_notification_frequency.rb b/client/lib/fastcomments-client/models/imported_agent_approval_notification_frequency.rb index 6f778b4..32f7873 100644 --- a/client/lib/fastcomments-client/models/imported_agent_approval_notification_frequency.rb +++ b/client/lib/fastcomments-client/models/imported_agent_approval_notification_frequency.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/imported_site_type.rb b/client/lib/fastcomments-client/models/imported_site_type.rb index 34240ce..5814f46 100644 --- a/client/lib/fastcomments-client/models/imported_site_type.rb +++ b/client/lib/fastcomments-client/models/imported_site_type.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/live_event.rb b/client/lib/fastcomments-client/models/live_event.rb index 24a4324..7615223 100644 --- a/client/lib/fastcomments-client/models/live_event.rb +++ b/client/lib/fastcomments-client/models/live_event.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class LiveEvent + class LiveEvent < ApiModelBase attr_accessor :type attr_accessor :timestamp @@ -317,61 +317,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -388,24 +333,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/live_event_extra_info.rb b/client/lib/fastcomments-client/models/live_event_extra_info.rb index 9ff09d0..38a97b7 100644 --- a/client/lib/fastcomments-client/models/live_event_extra_info.rb +++ b/client/lib/fastcomments-client/models/live_event_extra_info.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class LiveEventExtraInfo + class LiveEventExtraInfo < ApiModelBase # Construct a type with a set of properties K of type T attr_accessor :comment_positions @@ -129,61 +129,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -200,24 +145,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/live_event_type.rb b/client/lib/fastcomments-client/models/live_event_type.rb index 401d1e1..d6cd0e4 100644 --- a/client/lib/fastcomments-client/models/live_event_type.rb +++ b/client/lib/fastcomments-client/models/live_event_type.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/lock_comment_response.rb b/client/lib/fastcomments-client/models/lock_comment_response.rb new file mode 100644 index 0000000..41c40fd --- /dev/null +++ b/client/lib/fastcomments-client/models/lock_comment_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module LockCommentResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/media_asset.rb b/client/lib/fastcomments-client/models/media_asset.rb index b817d3a..23c3a68 100644 --- a/client/lib/fastcomments-client/models/media_asset.rb +++ b/client/lib/fastcomments-client/models/media_asset.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class MediaAsset + class MediaAsset < ApiModelBase attr_accessor :w attr_accessor :h @@ -195,61 +195,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -266,24 +211,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/mention_auto_complete_mode.rb b/client/lib/fastcomments-client/models/mention_auto_complete_mode.rb index 1a1d914..85a4164 100644 --- a/client/lib/fastcomments-client/models/mention_auto_complete_mode.rb +++ b/client/lib/fastcomments-client/models/mention_auto_complete_mode.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/meta_item.rb b/client/lib/fastcomments-client/models/meta_item.rb index 8b02b95..fe072c5 100644 --- a/client/lib/fastcomments-client/models/meta_item.rb +++ b/client/lib/fastcomments-client/models/meta_item.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class MetaItem + class MetaItem < ApiModelBase attr_accessor :name attr_accessor :values @@ -171,61 +171,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -242,24 +187,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_api_child_comments_response.rb b/client/lib/fastcomments-client/models/moderation_api_child_comments_response.rb index 9a24dfa..118acf5 100644 --- a/client/lib/fastcomments-client/models/moderation_api_child_comments_response.rb +++ b/client/lib/fastcomments-client/models/moderation_api_child_comments_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationAPIChildCommentsResponse + class ModerationAPIChildCommentsResponse < ApiModelBase attr_accessor :comments attr_accessor :status @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_api_comment.rb b/client/lib/fastcomments-client/models/moderation_api_comment.rb index ca1b435..8dbdac5 100644 --- a/client/lib/fastcomments-client/models/moderation_api_comment.rb +++ b/client/lib/fastcomments-client/models/moderation_api_comment.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationAPIComment + class ModerationAPIComment < ApiModelBase attr_accessor :is_local_deleted attr_accessor :reply_count @@ -659,61 +659,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -730,24 +675,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_api_comment_log.rb b/client/lib/fastcomments-client/models/moderation_api_comment_log.rb index 52ad38c..52a53dd 100644 --- a/client/lib/fastcomments-client/models/moderation_api_comment_log.rb +++ b/client/lib/fastcomments-client/models/moderation_api_comment_log.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationAPICommentLog + class ModerationAPICommentLog < ApiModelBase attr_accessor :date attr_accessor :username @@ -204,61 +204,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -275,24 +220,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_api_comment_response.rb b/client/lib/fastcomments-client/models/moderation_api_comment_response.rb index 8d39eaa..60be820 100644 --- a/client/lib/fastcomments-client/models/moderation_api_comment_response.rb +++ b/client/lib/fastcomments-client/models/moderation_api_comment_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationAPICommentResponse + class ModerationAPICommentResponse < ApiModelBase attr_accessor :comment attr_accessor :status @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_api_count_comments_response.rb b/client/lib/fastcomments-client/models/moderation_api_count_comments_response.rb index 30f70a3..88ebcf0 100644 --- a/client/lib/fastcomments-client/models/moderation_api_count_comments_response.rb +++ b/client/lib/fastcomments-client/models/moderation_api_count_comments_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationAPICountCommentsResponse + class ModerationAPICountCommentsResponse < ApiModelBase attr_accessor :status attr_accessor :count @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_api_get_comment_ids_response.rb b/client/lib/fastcomments-client/models/moderation_api_get_comment_ids_response.rb index f59856f..fe208fc 100644 --- a/client/lib/fastcomments-client/models/moderation_api_get_comment_ids_response.rb +++ b/client/lib/fastcomments-client/models/moderation_api_get_comment_ids_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationAPIGetCommentIdsResponse + class ModerationAPIGetCommentIdsResponse < ApiModelBase attr_accessor :ids attr_accessor :has_more @@ -219,61 +219,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -290,24 +235,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_api_get_comments_response.rb b/client/lib/fastcomments-client/models/moderation_api_get_comments_response.rb index 02d9bbc..938eb01 100644 --- a/client/lib/fastcomments-client/models/moderation_api_get_comments_response.rb +++ b/client/lib/fastcomments-client/models/moderation_api_get_comments_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationAPIGetCommentsResponse + class ModerationAPIGetCommentsResponse < ApiModelBase attr_accessor :status attr_accessor :translations @@ -228,61 +228,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -299,24 +244,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_api_get_logs_response.rb b/client/lib/fastcomments-client/models/moderation_api_get_logs_response.rb index 9c2c9e2..3ef695b 100644 --- a/client/lib/fastcomments-client/models/moderation_api_get_logs_response.rb +++ b/client/lib/fastcomments-client/models/moderation_api_get_logs_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationAPIGetLogsResponse + class ModerationAPIGetLogsResponse < ApiModelBase attr_accessor :logs attr_accessor :status @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_comment_search_response.rb b/client/lib/fastcomments-client/models/moderation_comment_search_response.rb index cf3c139..c93dcd1 100644 --- a/client/lib/fastcomments-client/models/moderation_comment_search_response.rb +++ b/client/lib/fastcomments-client/models/moderation_comment_search_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationCommentSearchResponse + class ModerationCommentSearchResponse < ApiModelBase attr_accessor :comment_count attr_accessor :status @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_export_response.rb b/client/lib/fastcomments-client/models/moderation_export_response.rb index c96b20f..7a37cda 100644 --- a/client/lib/fastcomments-client/models/moderation_export_response.rb +++ b/client/lib/fastcomments-client/models/moderation_export_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationExportResponse + class ModerationExportResponse < ApiModelBase attr_accessor :status attr_accessor :batch_job_id @@ -169,61 +169,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -240,24 +185,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_export_status_response.rb b/client/lib/fastcomments-client/models/moderation_export_status_response.rb index 8cc349d..206d84e 100644 --- a/client/lib/fastcomments-client/models/moderation_export_status_response.rb +++ b/client/lib/fastcomments-client/models/moderation_export_status_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationExportStatusResponse + class ModerationExportStatusResponse < ApiModelBase attr_accessor :status attr_accessor :job_status @@ -204,61 +204,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -275,24 +220,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_filter.rb b/client/lib/fastcomments-client/models/moderation_filter.rb index f4f2aba..d91780f 100644 --- a/client/lib/fastcomments-client/models/moderation_filter.rb +++ b/client/lib/fastcomments-client/models/moderation_filter.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationFilter + class ModerationFilter < ApiModelBase attr_accessor :reviewed attr_accessor :approved @@ -231,61 +231,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -302,24 +247,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_page_search_projected.rb b/client/lib/fastcomments-client/models/moderation_page_search_projected.rb index 3d9300c..e3d0b11 100644 --- a/client/lib/fastcomments-client/models/moderation_page_search_projected.rb +++ b/client/lib/fastcomments-client/models/moderation_page_search_projected.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationPageSearchProjected + class ModerationPageSearchProjected < ApiModelBase attr_accessor :url_id attr_accessor :url @@ -221,61 +221,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -292,24 +237,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_page_search_response.rb b/client/lib/fastcomments-client/models/moderation_page_search_response.rb index 9a62ab0..e371ca0 100644 --- a/client/lib/fastcomments-client/models/moderation_page_search_response.rb +++ b/client/lib/fastcomments-client/models/moderation_page_search_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationPageSearchResponse + class ModerationPageSearchResponse < ApiModelBase attr_accessor :pages attr_accessor :status @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_site_search_projected.rb b/client/lib/fastcomments-client/models/moderation_site_search_projected.rb index 330ad61..f386dca 100644 --- a/client/lib/fastcomments-client/models/moderation_site_search_projected.rb +++ b/client/lib/fastcomments-client/models/moderation_site_search_projected.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationSiteSearchProjected + class ModerationSiteSearchProjected < ApiModelBase attr_accessor :domain attr_accessor :logo_src100px @@ -153,61 +153,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -224,24 +169,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_site_search_response.rb b/client/lib/fastcomments-client/models/moderation_site_search_response.rb index ccf6009..6b19014 100644 --- a/client/lib/fastcomments-client/models/moderation_site_search_response.rb +++ b/client/lib/fastcomments-client/models/moderation_site_search_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationSiteSearchResponse + class ModerationSiteSearchResponse < ApiModelBase attr_accessor :sites attr_accessor :status @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_suggest_response.rb b/client/lib/fastcomments-client/models/moderation_suggest_response.rb index b9cdd00..13b6229 100644 --- a/client/lib/fastcomments-client/models/moderation_suggest_response.rb +++ b/client/lib/fastcomments-client/models/moderation_suggest_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationSuggestResponse + class ModerationSuggestResponse < ApiModelBase attr_accessor :status attr_accessor :pages @@ -174,61 +174,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -245,24 +190,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_user_search_projected.rb b/client/lib/fastcomments-client/models/moderation_user_search_projected.rb index d5c61bd..1c7a195 100644 --- a/client/lib/fastcomments-client/models/moderation_user_search_projected.rb +++ b/client/lib/fastcomments-client/models/moderation_user_search_projected.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationUserSearchProjected + class ModerationUserSearchProjected < ApiModelBase attr_accessor :_id attr_accessor :username @@ -189,61 +189,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -260,24 +205,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_user_search_response.rb b/client/lib/fastcomments-client/models/moderation_user_search_response.rb index c6b12d8..655a950 100644 --- a/client/lib/fastcomments-client/models/moderation_user_search_response.rb +++ b/client/lib/fastcomments-client/models/moderation_user_search_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationUserSearchResponse + class ModerationUserSearchResponse < ApiModelBase attr_accessor :users attr_accessor :status @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderator.rb b/client/lib/fastcomments-client/models/moderator.rb index 15fb420..0e72f33 100644 --- a/client/lib/fastcomments-client/models/moderator.rb +++ b/client/lib/fastcomments-client/models/moderator.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class Moderator + class Moderator < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -526,61 +526,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -597,24 +542,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/notification_and_count.rb b/client/lib/fastcomments-client/models/notification_and_count.rb index c4122d9..5597b49 100644 --- a/client/lib/fastcomments-client/models/notification_and_count.rb +++ b/client/lib/fastcomments-client/models/notification_and_count.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class NotificationAndCount + class NotificationAndCount < ApiModelBase attr_accessor :type attr_accessor :count @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/notification_object_type.rb b/client/lib/fastcomments-client/models/notification_object_type.rb index 8978509..2956f99 100644 --- a/client/lib/fastcomments-client/models/notification_object_type.rb +++ b/client/lib/fastcomments-client/models/notification_object_type.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/notification_type.rb b/client/lib/fastcomments-client/models/notification_type.rb index 9dca431..b0977cd 100644 --- a/client/lib/fastcomments-client/models/notification_type.rb +++ b/client/lib/fastcomments-client/models/notification_type.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/page_user_entry.rb b/client/lib/fastcomments-client/models/page_user_entry.rb index 8430c3d..e703899 100644 --- a/client/lib/fastcomments-client/models/page_user_entry.rb +++ b/client/lib/fastcomments-client/models/page_user_entry.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PageUserEntry + class PageUserEntry < ApiModelBase attr_accessor :is_private attr_accessor :avatar_src @@ -187,61 +187,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -258,24 +203,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/page_users_info_response.rb b/client/lib/fastcomments-client/models/page_users_info_response.rb index 9d8098e..82476e9 100644 --- a/client/lib/fastcomments-client/models/page_users_info_response.rb +++ b/client/lib/fastcomments-client/models/page_users_info_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PageUsersInfoResponse + class PageUsersInfoResponse < ApiModelBase attr_accessor :users attr_accessor :status @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/page_users_offline_response.rb b/client/lib/fastcomments-client/models/page_users_offline_response.rb index 6b016cf..60c7ead 100644 --- a/client/lib/fastcomments-client/models/page_users_offline_response.rb +++ b/client/lib/fastcomments-client/models/page_users_offline_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PageUsersOfflineResponse + class PageUsersOfflineResponse < ApiModelBase attr_accessor :next_after_user_id attr_accessor :next_after_name @@ -217,61 +217,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -288,24 +233,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/page_users_online_response.rb b/client/lib/fastcomments-client/models/page_users_online_response.rb index 1fedec9..a886778 100644 --- a/client/lib/fastcomments-client/models/page_users_online_response.rb +++ b/client/lib/fastcomments-client/models/page_users_online_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PageUsersOnlineResponse + class PageUsersOnlineResponse < ApiModelBase attr_accessor :next_after_user_id attr_accessor :next_after_name @@ -269,61 +269,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -340,24 +285,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/pages_sort_by.rb b/client/lib/fastcomments-client/models/pages_sort_by.rb index 33368dc..b93cfb6 100644 --- a/client/lib/fastcomments-client/models/pages_sort_by.rb +++ b/client/lib/fastcomments-client/models/pages_sort_by.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/patch_domain_config_params.rb b/client/lib/fastcomments-client/models/patch_domain_config_params.rb index aadec6d..cce3d53 100644 --- a/client/lib/fastcomments-client/models/patch_domain_config_params.rb +++ b/client/lib/fastcomments-client/models/patch_domain_config_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PatchDomainConfigParams + class PatchDomainConfigParams < ApiModelBase attr_accessor :domain attr_accessor :email_from_name @@ -183,61 +183,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -254,24 +199,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/patch_domain_config_response.rb b/client/lib/fastcomments-client/models/patch_domain_config_response.rb index 6456523..d49c9fc 100644 --- a/client/lib/fastcomments-client/models/patch_domain_config_response.rb +++ b/client/lib/fastcomments-client/models/patch_domain_config_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/patch_hash_tag_response.rb b/client/lib/fastcomments-client/models/patch_hash_tag_response.rb new file mode 100644 index 0000000..30f0184 --- /dev/null +++ b/client/lib/fastcomments-client/models/patch_hash_tag_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module PatchHashTagResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'UpdateHashTagResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/patch_page_api_response.rb b/client/lib/fastcomments-client/models/patch_page_api_response.rb index 0618bed..82f3967 100644 --- a/client/lib/fastcomments-client/models/patch_page_api_response.rb +++ b/client/lib/fastcomments-client/models/patch_page_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PatchPageAPIResponse + class PatchPageAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -179,61 +179,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -250,24 +195,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/patch_sso_user_api_response.rb b/client/lib/fastcomments-client/models/patch_sso_user_api_response.rb index 57e29a6..ed63197 100644 --- a/client/lib/fastcomments-client/models/patch_sso_user_api_response.rb +++ b/client/lib/fastcomments-client/models/patch_sso_user_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PatchSSOUserAPIResponse + class PatchSSOUserAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -170,61 +170,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -241,24 +186,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/pending_comment_to_sync_outbound.rb b/client/lib/fastcomments-client/models/pending_comment_to_sync_outbound.rb index 0153f95..af5b374 100644 --- a/client/lib/fastcomments-client/models/pending_comment_to_sync_outbound.rb +++ b/client/lib/fastcomments-client/models/pending_comment_to_sync_outbound.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PendingCommentToSyncOutbound + class PendingCommentToSyncOutbound < ApiModelBase attr_accessor :_id attr_accessor :comment_id @@ -407,61 +407,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -478,24 +423,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/pin_comment_response.rb b/client/lib/fastcomments-client/models/pin_comment_response.rb new file mode 100644 index 0000000..75411d8 --- /dev/null +++ b/client/lib/fastcomments-client/models/pin_comment_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module PinCommentResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'ChangeCommentPinStatusResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/post_adjust_comment_votes_response.rb b/client/lib/fastcomments-client/models/post_adjust_comment_votes_response.rb new file mode 100644 index 0000000..6094dbc --- /dev/null +++ b/client/lib/fastcomments-client/models/post_adjust_comment_votes_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module PostAdjustCommentVotesResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'AdjustVotesResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/post_api_export_response.rb b/client/lib/fastcomments-client/models/post_api_export_response.rb new file mode 100644 index 0000000..4e50f49 --- /dev/null +++ b/client/lib/fastcomments-client/models/post_api_export_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module PostApiExportResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'ModerationExportResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/post_ban_user_from_comment_response.rb b/client/lib/fastcomments-client/models/post_ban_user_from_comment_response.rb new file mode 100644 index 0000000..7689258 --- /dev/null +++ b/client/lib/fastcomments-client/models/post_ban_user_from_comment_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module PostBanUserFromCommentResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'BanUserFromCommentResult' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/post_ban_user_undo_response.rb b/client/lib/fastcomments-client/models/post_ban_user_undo_response.rb new file mode 100644 index 0000000..58c09e0 --- /dev/null +++ b/client/lib/fastcomments-client/models/post_ban_user_undo_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module PostBanUserUndoResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/post_bulk_pre_ban_summary_response.rb b/client/lib/fastcomments-client/models/post_bulk_pre_ban_summary_response.rb new file mode 100644 index 0000000..aba20ae --- /dev/null +++ b/client/lib/fastcomments-client/models/post_bulk_pre_ban_summary_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module PostBulkPreBanSummaryResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'BulkPreBanSummary' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/post_comments_by_ids_response.rb b/client/lib/fastcomments-client/models/post_comments_by_ids_response.rb new file mode 100644 index 0000000..d561e3a --- /dev/null +++ b/client/lib/fastcomments-client/models/post_comments_by_ids_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module PostCommentsByIdsResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'ModerationAPIChildCommentsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/post_flag_comment_response.rb b/client/lib/fastcomments-client/models/post_flag_comment_response.rb new file mode 100644 index 0000000..cf470b9 --- /dev/null +++ b/client/lib/fastcomments-client/models/post_flag_comment_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module PostFlagCommentResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/post_remove_comment_response.rb b/client/lib/fastcomments-client/models/post_remove_comment_response.rb index 27cc60b..c035db6 100644 --- a/client/lib/fastcomments-client/models/post_remove_comment_response.rb +++ b/client/lib/fastcomments-client/models/post_remove_comment_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -19,6 +19,7 @@ class << self # List of class defined in anyOf (OpenAPI v3) def openapi_any_of [ + :'APIError', :'DeleteCommentResult', :'RemoveCommentActionResponse' ] @@ -37,8 +38,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/post_restore_deleted_comment_response.rb b/client/lib/fastcomments-client/models/post_restore_deleted_comment_response.rb new file mode 100644 index 0000000..f8db8ce --- /dev/null +++ b/client/lib/fastcomments-client/models/post_restore_deleted_comment_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module PostRestoreDeletedCommentResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/post_set_comment_approval_status_response.rb b/client/lib/fastcomments-client/models/post_set_comment_approval_status_response.rb new file mode 100644 index 0000000..629e78e --- /dev/null +++ b/client/lib/fastcomments-client/models/post_set_comment_approval_status_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module PostSetCommentApprovalStatusResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'SetCommentApprovedResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/post_set_comment_review_status_response.rb b/client/lib/fastcomments-client/models/post_set_comment_review_status_response.rb new file mode 100644 index 0000000..659a159 --- /dev/null +++ b/client/lib/fastcomments-client/models/post_set_comment_review_status_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module PostSetCommentReviewStatusResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/post_set_comment_spam_status_response.rb b/client/lib/fastcomments-client/models/post_set_comment_spam_status_response.rb new file mode 100644 index 0000000..f13de21 --- /dev/null +++ b/client/lib/fastcomments-client/models/post_set_comment_spam_status_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module PostSetCommentSpamStatusResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/post_set_comment_text_response.rb b/client/lib/fastcomments-client/models/post_set_comment_text_response.rb new file mode 100644 index 0000000..54190b0 --- /dev/null +++ b/client/lib/fastcomments-client/models/post_set_comment_text_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module PostSetCommentTextResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'SetCommentTextResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/post_un_flag_comment_response.rb b/client/lib/fastcomments-client/models/post_un_flag_comment_response.rb new file mode 100644 index 0000000..772cf19 --- /dev/null +++ b/client/lib/fastcomments-client/models/post_un_flag_comment_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module PostUnFlagCommentResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/post_vote_response.rb b/client/lib/fastcomments-client/models/post_vote_response.rb new file mode 100644 index 0000000..a666584 --- /dev/null +++ b/client/lib/fastcomments-client/models/post_vote_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module PostVoteResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'VoteResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/pre_ban_summary.rb b/client/lib/fastcomments-client/models/pre_ban_summary.rb index 08163c4..107d9ea 100644 --- a/client/lib/fastcomments-client/models/pre_ban_summary.rb +++ b/client/lib/fastcomments-client/models/pre_ban_summary.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PreBanSummary + class PreBanSummary < ApiModelBase attr_accessor :status attr_accessor :usernames @@ -219,61 +219,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -290,24 +235,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/pub_sub_comment.rb b/client/lib/fastcomments-client/models/pub_sub_comment.rb index 878c891..10611d7 100644 --- a/client/lib/fastcomments-client/models/pub_sub_comment.rb +++ b/client/lib/fastcomments-client/models/pub_sub_comment.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PubSubComment + class PubSubComment < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -709,61 +709,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -780,24 +725,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/pub_sub_comment_base.rb b/client/lib/fastcomments-client/models/pub_sub_comment_base.rb index 07de243..e210401 100644 --- a/client/lib/fastcomments-client/models/pub_sub_comment_base.rb +++ b/client/lib/fastcomments-client/models/pub_sub_comment_base.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PubSubCommentBase + class PubSubCommentBase < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -658,61 +658,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -729,24 +674,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/pub_sub_vote.rb b/client/lib/fastcomments-client/models/pub_sub_vote.rb index de4cb34..11ebd50 100644 --- a/client/lib/fastcomments-client/models/pub_sub_vote.rb +++ b/client/lib/fastcomments-client/models/pub_sub_vote.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PubSubVote + class PubSubVote < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -321,61 +321,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -392,24 +337,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/public_api_delete_comment_response.rb b/client/lib/fastcomments-client/models/public_api_delete_comment_response.rb index e7f868c..7990a0d 100644 --- a/client/lib/fastcomments-client/models/public_api_delete_comment_response.rb +++ b/client/lib/fastcomments-client/models/public_api_delete_comment_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PublicAPIDeleteCommentResponse + class PublicAPIDeleteCommentResponse < ApiModelBase attr_accessor :comment attr_accessor :hard_removed @@ -200,61 +200,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -271,24 +216,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/public_api_get_comment_text_response.rb b/client/lib/fastcomments-client/models/public_api_get_comment_text_response.rb index e50d874..ce63b7e 100644 --- a/client/lib/fastcomments-client/models/public_api_get_comment_text_response.rb +++ b/client/lib/fastcomments-client/models/public_api_get_comment_text_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PublicAPIGetCommentTextResponse + class PublicAPIGetCommentTextResponse < ApiModelBase attr_accessor :status attr_accessor :comment_text @@ -217,61 +217,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -288,24 +233,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/public_api_set_comment_text_response.rb b/client/lib/fastcomments-client/models/public_api_set_comment_text_response.rb index ecc5c00..5f5dc89 100644 --- a/client/lib/fastcomments-client/models/public_api_set_comment_text_response.rb +++ b/client/lib/fastcomments-client/models/public_api_set_comment_text_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PublicAPISetCommentTextResponse + class PublicAPISetCommentTextResponse < ApiModelBase attr_accessor :comment attr_accessor :status @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/public_block_from_comment_params.rb b/client/lib/fastcomments-client/models/public_block_from_comment_params.rb index 18caff1..88da087 100644 --- a/client/lib/fastcomments-client/models/public_block_from_comment_params.rb +++ b/client/lib/fastcomments-client/models/public_block_from_comment_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PublicBlockFromCommentParams + class PublicBlockFromCommentParams < ApiModelBase # A list of comment ids to check if are blocked after performing the update. attr_accessor :comment_ids @@ -132,61 +132,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -203,24 +148,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/public_comment.rb b/client/lib/fastcomments-client/models/public_comment.rb index cd7948e..e723c81 100644 --- a/client/lib/fastcomments-client/models/public_comment.rb +++ b/client/lib/fastcomments-client/models/public_comment.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PublicComment + class PublicComment < ApiModelBase attr_accessor :_id attr_accessor :user_id @@ -569,61 +569,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -640,24 +585,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/public_comment_base.rb b/client/lib/fastcomments-client/models/public_comment_base.rb index cbc7fbd..c2e714f 100644 --- a/client/lib/fastcomments-client/models/public_comment_base.rb +++ b/client/lib/fastcomments-client/models/public_comment_base.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PublicCommentBase + class PublicCommentBase < ApiModelBase attr_accessor :_id attr_accessor :user_id @@ -467,61 +467,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -538,24 +483,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/public_feed_posts_response.rb b/client/lib/fastcomments-client/models/public_feed_posts_response.rb index 5fda1cb..cd01eb0 100644 --- a/client/lib/fastcomments-client/models/public_feed_posts_response.rb +++ b/client/lib/fastcomments-client/models/public_feed_posts_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PublicFeedPostsResponse + class PublicFeedPostsResponse < ApiModelBase attr_accessor :status attr_accessor :feed_posts @@ -249,61 +249,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -320,24 +265,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/public_page.rb b/client/lib/fastcomments-client/models/public_page.rb index 2331ac6..40e5749 100644 --- a/client/lib/fastcomments-client/models/public_page.rb +++ b/client/lib/fastcomments-client/models/public_page.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PublicPage + class PublicPage < ApiModelBase attr_accessor :updated_at attr_accessor :comment_count @@ -247,61 +247,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -318,24 +263,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/public_vote.rb b/client/lib/fastcomments-client/models/public_vote.rb index 9a12fe4..4715627 100644 --- a/client/lib/fastcomments-client/models/public_vote.rb +++ b/client/lib/fastcomments-client/models/public_vote.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PublicVote + class PublicVote < ApiModelBase attr_accessor :id attr_accessor :url_id @@ -273,61 +273,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -344,24 +289,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/put_award_badge_response.rb b/client/lib/fastcomments-client/models/put_award_badge_response.rb new file mode 100644 index 0000000..21bd508 --- /dev/null +++ b/client/lib/fastcomments-client/models/put_award_badge_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module PutAwardBadgeResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'AwardUserBadgeResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/put_close_thread_response.rb b/client/lib/fastcomments-client/models/put_close_thread_response.rb new file mode 100644 index 0000000..4647874 --- /dev/null +++ b/client/lib/fastcomments-client/models/put_close_thread_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module PutCloseThreadResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/put_domain_config_response.rb b/client/lib/fastcomments-client/models/put_domain_config_response.rb index 416dbd8..2227b97 100644 --- a/client/lib/fastcomments-client/models/put_domain_config_response.rb +++ b/client/lib/fastcomments-client/models/put_domain_config_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/put_remove_badge_response.rb b/client/lib/fastcomments-client/models/put_remove_badge_response.rb new file mode 100644 index 0000000..2afbe5a --- /dev/null +++ b/client/lib/fastcomments-client/models/put_remove_badge_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module PutRemoveBadgeResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'RemoveUserBadgeResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/put_reopen_thread_response.rb b/client/lib/fastcomments-client/models/put_reopen_thread_response.rb new file mode 100644 index 0000000..4ebc0c7 --- /dev/null +++ b/client/lib/fastcomments-client/models/put_reopen_thread_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module PutReopenThreadResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/put_sso_user_api_response.rb b/client/lib/fastcomments-client/models/put_sso_user_api_response.rb index c81ea5b..110481f 100644 --- a/client/lib/fastcomments-client/models/put_sso_user_api_response.rb +++ b/client/lib/fastcomments-client/models/put_sso_user_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PutSSOUserAPIResponse + class PutSSOUserAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -171,61 +171,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -242,24 +187,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/query_predicate.rb b/client/lib/fastcomments-client/models/query_predicate.rb index 6109065..f2f06ba 100644 --- a/client/lib/fastcomments-client/models/query_predicate.rb +++ b/client/lib/fastcomments-client/models/query_predicate.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class QueryPredicate + class QueryPredicate < ApiModelBase attr_accessor :key attr_accessor :value @@ -219,61 +219,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -290,24 +235,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/query_predicate_value.rb b/client/lib/fastcomments-client/models/query_predicate_value.rb index f729fec..92d138b 100644 --- a/client/lib/fastcomments-client/models/query_predicate_value.rb +++ b/client/lib/fastcomments-client/models/query_predicate_value.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -38,8 +38,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/question_config.rb b/client/lib/fastcomments-client/models/question_config.rb index f85f89e..298e606 100644 --- a/client/lib/fastcomments-client/models/question_config.rb +++ b/client/lib/fastcomments-client/models/question_config.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class QuestionConfig + class QuestionConfig < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -650,61 +650,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -721,24 +666,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/question_config_custom_options_inner.rb b/client/lib/fastcomments-client/models/question_config_custom_options_inner.rb index e76631c..453f2dd 100644 --- a/client/lib/fastcomments-client/models/question_config_custom_options_inner.rb +++ b/client/lib/fastcomments-client/models/question_config_custom_options_inner.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class QuestionConfigCustomOptionsInner + class QuestionConfigCustomOptionsInner < ApiModelBase attr_accessor :image_src attr_accessor :name @@ -169,61 +169,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -240,24 +185,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/question_datum.rb b/client/lib/fastcomments-client/models/question_datum.rb index 2fab8a1..d6cf817 100644 --- a/client/lib/fastcomments-client/models/question_datum.rb +++ b/client/lib/fastcomments-client/models/question_datum.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class QuestionDatum + class QuestionDatum < ApiModelBase # Construct a type with a set of properties K of type T attr_accessor :v @@ -172,61 +172,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -243,24 +188,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/question_rendering_type.rb b/client/lib/fastcomments-client/models/question_rendering_type.rb index 5d718fe..4c51764 100644 --- a/client/lib/fastcomments-client/models/question_rendering_type.rb +++ b/client/lib/fastcomments-client/models/question_rendering_type.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/question_result.rb b/client/lib/fastcomments-client/models/question_result.rb index 067b8e0..79ffd05 100644 --- a/client/lib/fastcomments-client/models/question_result.rb +++ b/client/lib/fastcomments-client/models/question_result.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class QuestionResult + class QuestionResult < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -373,61 +373,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -444,24 +389,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/question_result_aggregation_overall.rb b/client/lib/fastcomments-client/models/question_result_aggregation_overall.rb index d63d811..4d099c2 100644 --- a/client/lib/fastcomments-client/models/question_result_aggregation_overall.rb +++ b/client/lib/fastcomments-client/models/question_result_aggregation_overall.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class QuestionResultAggregationOverall + class QuestionResultAggregationOverall < ApiModelBase # Construct a type with a set of properties K of type T attr_accessor :data_by_date_bucket @@ -213,61 +213,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -284,24 +229,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/question_sub_question_visibility.rb b/client/lib/fastcomments-client/models/question_sub_question_visibility.rb index 481bd2d..0e3d64c 100644 --- a/client/lib/fastcomments-client/models/question_sub_question_visibility.rb +++ b/client/lib/fastcomments-client/models/question_sub_question_visibility.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/question_when_save.rb b/client/lib/fastcomments-client/models/question_when_save.rb index 3886dcf..b2383d5 100644 --- a/client/lib/fastcomments-client/models/question_when_save.rb +++ b/client/lib/fastcomments-client/models/question_when_save.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/react_body_params.rb b/client/lib/fastcomments-client/models/react_body_params.rb index ff7ed10..ff4f03b 100644 --- a/client/lib/fastcomments-client/models/react_body_params.rb +++ b/client/lib/fastcomments-client/models/react_body_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ReactBodyParams + class ReactBodyParams < ApiModelBase attr_accessor :react_type # Attribute mapping from ruby-style variable name to JSON key. @@ -126,61 +126,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -197,24 +142,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/react_feed_post_public_response.rb b/client/lib/fastcomments-client/models/react_feed_post_public_response.rb new file mode 100644 index 0000000..6039784 --- /dev/null +++ b/client/lib/fastcomments-client/models/react_feed_post_public_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module ReactFeedPostPublicResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'ReactFeedPostResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/react_feed_post_response.rb b/client/lib/fastcomments-client/models/react_feed_post_response.rb index f21d41f..1682e06 100644 --- a/client/lib/fastcomments-client/models/react_feed_post_response.rb +++ b/client/lib/fastcomments-client/models/react_feed_post_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ReactFeedPostResponse + class ReactFeedPostResponse < ApiModelBase attr_accessor :status attr_accessor :react_type @@ -217,61 +217,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -288,24 +233,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/record_string_before_string_or_null_after_string_or_null_value.rb b/client/lib/fastcomments-client/models/record_string_before_string_or_null_after_string_or_null_value.rb index 6b03fd5..1989219 100644 --- a/client/lib/fastcomments-client/models/record_string_before_string_or_null_after_string_or_null_value.rb +++ b/client/lib/fastcomments-client/models/record_string_before_string_or_null_after_string_or_null_value.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class RecordStringBeforeStringOrNullAfterStringOrNullValue + class RecordStringBeforeStringOrNullAfterStringOrNullValue < ApiModelBase attr_accessor :after attr_accessor :before @@ -141,61 +141,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -212,24 +157,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/remove_comment_action_response.rb b/client/lib/fastcomments-client/models/remove_comment_action_response.rb index cd1eff3..0e687f5 100644 --- a/client/lib/fastcomments-client/models/remove_comment_action_response.rb +++ b/client/lib/fastcomments-client/models/remove_comment_action_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class RemoveCommentActionResponse + class RemoveCommentActionResponse < ApiModelBase attr_accessor :status attr_accessor :action @@ -169,61 +169,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -240,24 +185,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/remove_user_badge_response.rb b/client/lib/fastcomments-client/models/remove_user_badge_response.rb index 64a7908..3ec6f15 100644 --- a/client/lib/fastcomments-client/models/remove_user_badge_response.rb +++ b/client/lib/fastcomments-client/models/remove_user_badge_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class RemoveUserBadgeResponse + class RemoveUserBadgeResponse < ApiModelBase attr_accessor :badges attr_accessor :status @@ -176,61 +176,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -247,24 +192,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/render_email_template_body.rb b/client/lib/fastcomments-client/models/render_email_template_body.rb index 66ecaeb..a611e1b 100644 --- a/client/lib/fastcomments-client/models/render_email_template_body.rb +++ b/client/lib/fastcomments-client/models/render_email_template_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class RenderEmailTemplateBody + class RenderEmailTemplateBody < ApiModelBase attr_accessor :email_template_id attr_accessor :ejs @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/render_email_template_response.rb b/client/lib/fastcomments-client/models/render_email_template_response.rb index 48786e5..7d78b04 100644 --- a/client/lib/fastcomments-client/models/render_email_template_response.rb +++ b/client/lib/fastcomments-client/models/render_email_template_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class RenderEmailTemplateResponse + class RenderEmailTemplateResponse < ApiModelBase attr_accessor :status attr_accessor :html @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/render_email_template_response1.rb b/client/lib/fastcomments-client/models/render_email_template_response1.rb new file mode 100644 index 0000000..05b9227 --- /dev/null +++ b/client/lib/fastcomments-client/models/render_email_template_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module RenderEmailTemplateResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'RenderEmailTemplateResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/renderable_user_notification.rb b/client/lib/fastcomments-client/models/renderable_user_notification.rb index 567474b..e3fb9dd 100644 --- a/client/lib/fastcomments-client/models/renderable_user_notification.rb +++ b/client/lib/fastcomments-client/models/renderable_user_notification.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class RenderableUserNotification + class RenderableUserNotification < ApiModelBase attr_accessor :conversation_id attr_accessor :context_html @@ -509,61 +509,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -580,24 +525,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/repeat_comment_check_ignored_reason.rb b/client/lib/fastcomments-client/models/repeat_comment_check_ignored_reason.rb index 13f6f3c..99eb8a8 100644 --- a/client/lib/fastcomments-client/models/repeat_comment_check_ignored_reason.rb +++ b/client/lib/fastcomments-client/models/repeat_comment_check_ignored_reason.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/repeat_comment_handling_action.rb b/client/lib/fastcomments-client/models/repeat_comment_handling_action.rb index aada1c9..58ad83e 100644 --- a/client/lib/fastcomments-client/models/repeat_comment_handling_action.rb +++ b/client/lib/fastcomments-client/models/repeat_comment_handling_action.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/replace_tenant_package_body.rb b/client/lib/fastcomments-client/models/replace_tenant_package_body.rb index 27d914d..b20b2d3 100644 --- a/client/lib/fastcomments-client/models/replace_tenant_package_body.rb +++ b/client/lib/fastcomments-client/models/replace_tenant_package_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ReplaceTenantPackageBody + class ReplaceTenantPackageBody < ApiModelBase attr_accessor :name attr_accessor :monthly_cost_usd @@ -653,61 +653,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -724,24 +669,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/replace_tenant_package_response.rb b/client/lib/fastcomments-client/models/replace_tenant_package_response.rb new file mode 100644 index 0000000..ea7564a --- /dev/null +++ b/client/lib/fastcomments-client/models/replace_tenant_package_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module ReplaceTenantPackageResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/replace_tenant_user_body.rb b/client/lib/fastcomments-client/models/replace_tenant_user_body.rb index 674dfea..58343d5 100644 --- a/client/lib/fastcomments-client/models/replace_tenant_user_body.rb +++ b/client/lib/fastcomments-client/models/replace_tenant_user_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ReplaceTenantUserBody + class ReplaceTenantUserBody < ApiModelBase attr_accessor :username attr_accessor :email @@ -405,61 +405,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -476,24 +421,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/replace_tenant_user_response.rb b/client/lib/fastcomments-client/models/replace_tenant_user_response.rb new file mode 100644 index 0000000..b873c53 --- /dev/null +++ b/client/lib/fastcomments-client/models/replace_tenant_user_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module ReplaceTenantUserResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/reset_user_notification_count_response.rb b/client/lib/fastcomments-client/models/reset_user_notification_count_response.rb new file mode 100644 index 0000000..e647afb --- /dev/null +++ b/client/lib/fastcomments-client/models/reset_user_notification_count_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module ResetUserNotificationCountResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'ResetUserNotificationsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/reset_user_notifications_response.rb b/client/lib/fastcomments-client/models/reset_user_notifications_response.rb index dd5f214..67b23f2 100644 --- a/client/lib/fastcomments-client/models/reset_user_notifications_response.rb +++ b/client/lib/fastcomments-client/models/reset_user_notifications_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ResetUserNotificationsResponse + class ResetUserNotificationsResponse < ApiModelBase attr_accessor :status attr_accessor :code @@ -186,61 +186,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -257,24 +202,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/reset_user_notifications_response1.rb b/client/lib/fastcomments-client/models/reset_user_notifications_response1.rb new file mode 100644 index 0000000..2a681de --- /dev/null +++ b/client/lib/fastcomments-client/models/reset_user_notifications_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module ResetUserNotificationsResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'ResetUserNotificationsResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/save_comment_response.rb b/client/lib/fastcomments-client/models/save_comment_response.rb new file mode 100644 index 0000000..fda4ed4 --- /dev/null +++ b/client/lib/fastcomments-client/models/save_comment_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module SaveCommentResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'APISaveCommentResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/save_comment_response_optimized.rb b/client/lib/fastcomments-client/models/save_comment_response_optimized.rb index 32e751d..567ea2b 100644 --- a/client/lib/fastcomments-client/models/save_comment_response_optimized.rb +++ b/client/lib/fastcomments-client/models/save_comment_response_optimized.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class SaveCommentResponseOptimized + class SaveCommentResponseOptimized < ApiModelBase attr_accessor :status attr_accessor :comment @@ -215,61 +215,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -286,24 +231,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/save_comments_bulk_response.rb b/client/lib/fastcomments-client/models/save_comments_bulk_response.rb index b2f5827..826cf2a 100644 --- a/client/lib/fastcomments-client/models/save_comments_bulk_response.rb +++ b/client/lib/fastcomments-client/models/save_comments_bulk_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/save_comments_response_with_presence.rb b/client/lib/fastcomments-client/models/save_comments_response_with_presence.rb index 007c1eb..642addb 100644 --- a/client/lib/fastcomments-client/models/save_comments_response_with_presence.rb +++ b/client/lib/fastcomments-client/models/save_comments_response_with_presence.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class SaveCommentsResponseWithPresence + class SaveCommentsResponseWithPresence < ApiModelBase attr_accessor :status attr_accessor :comment @@ -231,61 +231,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -302,24 +247,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/search_users_response.rb b/client/lib/fastcomments-client/models/search_users_response.rb index 2ace7c1..efae47e 100644 --- a/client/lib/fastcomments-client/models/search_users_response.rb +++ b/client/lib/fastcomments-client/models/search_users_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class SearchUsersResponse + class SearchUsersResponse < ApiModelBase attr_accessor :status attr_accessor :users @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/search_users_response1.rb b/client/lib/fastcomments-client/models/search_users_response1.rb new file mode 100644 index 0000000..3571bcd --- /dev/null +++ b/client/lib/fastcomments-client/models/search_users_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module SearchUsersResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'SearchUsersResult' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/search_users_result.rb b/client/lib/fastcomments-client/models/search_users_result.rb index 687e26d..dcba271 100644 --- a/client/lib/fastcomments-client/models/search_users_result.rb +++ b/client/lib/fastcomments-client/models/search_users_result.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/search_users_sectioned_response.rb b/client/lib/fastcomments-client/models/search_users_sectioned_response.rb index fe56fb1..1ad5c7f 100644 --- a/client/lib/fastcomments-client/models/search_users_sectioned_response.rb +++ b/client/lib/fastcomments-client/models/search_users_sectioned_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class SearchUsersSectionedResponse + class SearchUsersSectionedResponse < ApiModelBase attr_accessor :status attr_accessor :sections @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/send_invite_response.rb b/client/lib/fastcomments-client/models/send_invite_response.rb new file mode 100644 index 0000000..a460c00 --- /dev/null +++ b/client/lib/fastcomments-client/models/send_invite_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module SendInviteResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/send_login_link_response.rb b/client/lib/fastcomments-client/models/send_login_link_response.rb new file mode 100644 index 0000000..5a0a758 --- /dev/null +++ b/client/lib/fastcomments-client/models/send_login_link_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module SendLoginLinkResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/set_comment_approved_response.rb b/client/lib/fastcomments-client/models/set_comment_approved_response.rb index e3fc57a..c17dcf4 100644 --- a/client/lib/fastcomments-client/models/set_comment_approved_response.rb +++ b/client/lib/fastcomments-client/models/set_comment_approved_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class SetCommentApprovedResponse + class SetCommentApprovedResponse < ApiModelBase attr_accessor :did_reset_flagged_count attr_accessor :status @@ -174,61 +174,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -245,24 +190,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/set_comment_text_params.rb b/client/lib/fastcomments-client/models/set_comment_text_params.rb index 18b2e76..c67a251 100644 --- a/client/lib/fastcomments-client/models/set_comment_text_params.rb +++ b/client/lib/fastcomments-client/models/set_comment_text_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class SetCommentTextParams + class SetCommentTextParams < ApiModelBase attr_accessor :comment # Attribute mapping from ruby-style variable name to JSON key. @@ -143,61 +143,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -214,24 +159,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/set_comment_text_response.rb b/client/lib/fastcomments-client/models/set_comment_text_response.rb index 6681c10..cacb5b2 100644 --- a/client/lib/fastcomments-client/models/set_comment_text_response.rb +++ b/client/lib/fastcomments-client/models/set_comment_text_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class SetCommentTextResponse + class SetCommentTextResponse < ApiModelBase attr_accessor :new_comment_text_html attr_accessor :status @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/set_comment_text_response1.rb b/client/lib/fastcomments-client/models/set_comment_text_response1.rb new file mode 100644 index 0000000..654e88f --- /dev/null +++ b/client/lib/fastcomments-client/models/set_comment_text_response1.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module SetCommentTextResponse1 + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'PublicAPISetCommentTextResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/set_comment_text_result.rb b/client/lib/fastcomments-client/models/set_comment_text_result.rb index d798cd1..389fa49 100644 --- a/client/lib/fastcomments-client/models/set_comment_text_result.rb +++ b/client/lib/fastcomments-client/models/set_comment_text_result.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class SetCommentTextResult + class SetCommentTextResult < ApiModelBase attr_accessor :approved attr_accessor :comment_html @@ -169,61 +169,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -240,24 +185,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/set_trust_factor_response.rb b/client/lib/fastcomments-client/models/set_trust_factor_response.rb new file mode 100644 index 0000000..8cca6f0 --- /dev/null +++ b/client/lib/fastcomments-client/models/set_trust_factor_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module SetTrustFactorResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'SetUserTrustFactorResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/set_user_trust_factor_response.rb b/client/lib/fastcomments-client/models/set_user_trust_factor_response.rb index 7f04255..4cadcb2 100644 --- a/client/lib/fastcomments-client/models/set_user_trust_factor_response.rb +++ b/client/lib/fastcomments-client/models/set_user_trust_factor_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class SetUserTrustFactorResponse + class SetUserTrustFactorResponse < ApiModelBase attr_accessor :previous_manual_trust_factor attr_accessor :status @@ -174,61 +174,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -245,24 +190,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/size_preset.rb b/client/lib/fastcomments-client/models/size_preset.rb index 7f3c347..769e2f2 100644 --- a/client/lib/fastcomments-client/models/size_preset.rb +++ b/client/lib/fastcomments-client/models/size_preset.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/sort_directions.rb b/client/lib/fastcomments-client/models/sort_directions.rb index 679728c..a5d5be6 100644 --- a/client/lib/fastcomments-client/models/sort_directions.rb +++ b/client/lib/fastcomments-client/models/sort_directions.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/sortdir.rb b/client/lib/fastcomments-client/models/sortdir.rb index 1a41d7c..d6a79f2 100644 --- a/client/lib/fastcomments-client/models/sortdir.rb +++ b/client/lib/fastcomments-client/models/sortdir.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/spam_rule.rb b/client/lib/fastcomments-client/models/spam_rule.rb index 9a7fade..adf853b 100644 --- a/client/lib/fastcomments-client/models/spam_rule.rb +++ b/client/lib/fastcomments-client/models/spam_rule.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class SpamRule + class SpamRule < ApiModelBase attr_accessor :actions attr_accessor :comment_contains @@ -166,61 +166,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -237,24 +182,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/sso_security_level.rb b/client/lib/fastcomments-client/models/sso_security_level.rb index d8554be..fb87b45 100644 --- a/client/lib/fastcomments-client/models/sso_security_level.rb +++ b/client/lib/fastcomments-client/models/sso_security_level.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/tenant_badge.rb b/client/lib/fastcomments-client/models/tenant_badge.rb index 91f87bb..9802823 100644 --- a/client/lib/fastcomments-client/models/tenant_badge.rb +++ b/client/lib/fastcomments-client/models/tenant_badge.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class TenantBadge + class TenantBadge < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -543,61 +543,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -614,24 +559,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/tenant_hash_tag.rb b/client/lib/fastcomments-client/models/tenant_hash_tag.rb index efdb21c..27f4d7f 100644 --- a/client/lib/fastcomments-client/models/tenant_hash_tag.rb +++ b/client/lib/fastcomments-client/models/tenant_hash_tag.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class TenantHashTag + class TenantHashTag < ApiModelBase attr_accessor :_id attr_accessor :created_at @@ -230,61 +230,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -301,24 +246,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/tenant_package.rb b/client/lib/fastcomments-client/models/tenant_package.rb index 433abb2..8af3c38 100644 --- a/client/lib/fastcomments-client/models/tenant_package.rb +++ b/client/lib/fastcomments-client/models/tenant_package.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class TenantPackage + class TenantPackage < ApiModelBase attr_accessor :_id attr_accessor :name @@ -1071,61 +1071,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -1142,24 +1087,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/tos_config.rb b/client/lib/fastcomments-client/models/tos_config.rb index 87543eb..6ddd234 100644 --- a/client/lib/fastcomments-client/models/tos_config.rb +++ b/client/lib/fastcomments-client/models/tos_config.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class TOSConfig + class TOSConfig < ApiModelBase attr_accessor :enabled # Construct a type with a set of properties K of type T @@ -147,61 +147,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -218,24 +163,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/un_block_comment_public_response.rb b/client/lib/fastcomments-client/models/un_block_comment_public_response.rb new file mode 100644 index 0000000..6a7074e --- /dev/null +++ b/client/lib/fastcomments-client/models/un_block_comment_public_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module UnBlockCommentPublicResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'UnblockSuccess' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/un_block_from_comment_params.rb b/client/lib/fastcomments-client/models/un_block_from_comment_params.rb index 29362cf..fea2494 100644 --- a/client/lib/fastcomments-client/models/un_block_from_comment_params.rb +++ b/client/lib/fastcomments-client/models/un_block_from_comment_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UnBlockFromCommentParams + class UnBlockFromCommentParams < ApiModelBase attr_accessor :comment_ids_to_check # Attribute mapping from ruby-style variable name to JSON key. @@ -128,61 +128,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -199,24 +144,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/un_block_user_from_comment_response.rb b/client/lib/fastcomments-client/models/un_block_user_from_comment_response.rb new file mode 100644 index 0000000..7d9e645 --- /dev/null +++ b/client/lib/fastcomments-client/models/un_block_user_from_comment_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module UnBlockUserFromCommentResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'UnblockSuccess' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/un_flag_comment_response.rb b/client/lib/fastcomments-client/models/un_flag_comment_response.rb new file mode 100644 index 0000000..33d04c6 --- /dev/null +++ b/client/lib/fastcomments-client/models/un_flag_comment_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module UnFlagCommentResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'FlagCommentResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/un_lock_comment_response.rb b/client/lib/fastcomments-client/models/un_lock_comment_response.rb new file mode 100644 index 0000000..8a2436f --- /dev/null +++ b/client/lib/fastcomments-client/models/un_lock_comment_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module UnLockCommentResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/un_pin_comment_response.rb b/client/lib/fastcomments-client/models/un_pin_comment_response.rb new file mode 100644 index 0000000..986ac3b --- /dev/null +++ b/client/lib/fastcomments-client/models/un_pin_comment_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module UnPinCommentResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'ChangeCommentPinStatusResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/unblock_success.rb b/client/lib/fastcomments-client/models/unblock_success.rb index a43a676..a81dae4 100644 --- a/client/lib/fastcomments-client/models/unblock_success.rb +++ b/client/lib/fastcomments-client/models/unblock_success.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UnblockSuccess + class UnblockSuccess < ApiModelBase attr_accessor :status # Construct a type with a set of properties K of type T @@ -194,61 +194,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -265,24 +210,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/updatable_comment_params.rb b/client/lib/fastcomments-client/models/updatable_comment_params.rb index 516cced..ad259cd 100644 --- a/client/lib/fastcomments-client/models/updatable_comment_params.rb +++ b/client/lib/fastcomments-client/models/updatable_comment_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdatableCommentParams + class UpdatableCommentParams < ApiModelBase attr_accessor :url_id attr_accessor :url_id_raw @@ -493,61 +493,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -564,24 +509,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_api_page_data.rb b/client/lib/fastcomments-client/models/update_api_page_data.rb index 933fb32..10e8d41 100644 --- a/client/lib/fastcomments-client/models/update_api_page_data.rb +++ b/client/lib/fastcomments-client/models/update_api_page_data.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateAPIPageData + class UpdateAPIPageData < ApiModelBase attr_accessor :is_closed attr_accessor :accessible_by_group_ids @@ -164,61 +164,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -235,24 +180,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_api_user_subscription_data.rb b/client/lib/fastcomments-client/models/update_api_user_subscription_data.rb index ab049a1..1332596 100644 --- a/client/lib/fastcomments-client/models/update_api_user_subscription_data.rb +++ b/client/lib/fastcomments-client/models/update_api_user_subscription_data.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateAPIUserSubscriptionData + class UpdateAPIUserSubscriptionData < ApiModelBase attr_accessor :notification_frequency # Attribute mapping from ruby-style variable name to JSON key. @@ -126,61 +126,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -197,24 +142,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_apisso_user_data.rb b/client/lib/fastcomments-client/models/update_apisso_user_data.rb index 22baec5..18bbcd9 100644 --- a/client/lib/fastcomments-client/models/update_apisso_user_data.rb +++ b/client/lib/fastcomments-client/models/update_apisso_user_data.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateAPISSOUserData + class UpdateAPISSOUserData < ApiModelBase attr_accessor :group_ids attr_accessor :has_blocked_users @@ -299,61 +299,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -370,24 +315,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_comment_response.rb b/client/lib/fastcomments-client/models/update_comment_response.rb new file mode 100644 index 0000000..2bcbe35 --- /dev/null +++ b/client/lib/fastcomments-client/models/update_comment_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module UpdateCommentResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/update_domain_config_params.rb b/client/lib/fastcomments-client/models/update_domain_config_params.rb index 3bc959e..beeda31 100644 --- a/client/lib/fastcomments-client/models/update_domain_config_params.rb +++ b/client/lib/fastcomments-client/models/update_domain_config_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateDomainConfigParams + class UpdateDomainConfigParams < ApiModelBase attr_accessor :domain attr_accessor :email_from_name @@ -200,61 +200,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -271,24 +216,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_email_template_body.rb b/client/lib/fastcomments-client/models/update_email_template_body.rb index f258b4f..04f8f09 100644 --- a/client/lib/fastcomments-client/models/update_email_template_body.rb +++ b/client/lib/fastcomments-client/models/update_email_template_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateEmailTemplateBody + class UpdateEmailTemplateBody < ApiModelBase attr_accessor :email_template_id attr_accessor :display_name @@ -177,61 +177,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -248,24 +193,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_email_template_response.rb b/client/lib/fastcomments-client/models/update_email_template_response.rb new file mode 100644 index 0000000..2637518 --- /dev/null +++ b/client/lib/fastcomments-client/models/update_email_template_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module UpdateEmailTemplateResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/update_feed_post_params.rb b/client/lib/fastcomments-client/models/update_feed_post_params.rb index c29538a..cafe508 100644 --- a/client/lib/fastcomments-client/models/update_feed_post_params.rb +++ b/client/lib/fastcomments-client/models/update_feed_post_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateFeedPostParams + class UpdateFeedPostParams < ApiModelBase attr_accessor :title attr_accessor :content_html @@ -180,61 +180,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -251,24 +196,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_feed_post_public_response.rb b/client/lib/fastcomments-client/models/update_feed_post_public_response.rb new file mode 100644 index 0000000..f7280cb --- /dev/null +++ b/client/lib/fastcomments-client/models/update_feed_post_public_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module UpdateFeedPostPublicResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'CreateFeedPostResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/update_feed_post_response.rb b/client/lib/fastcomments-client/models/update_feed_post_response.rb new file mode 100644 index 0000000..0637b60 --- /dev/null +++ b/client/lib/fastcomments-client/models/update_feed_post_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module UpdateFeedPostResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/update_hash_tag_body.rb b/client/lib/fastcomments-client/models/update_hash_tag_body.rb index 2ca3168..92ee155 100644 --- a/client/lib/fastcomments-client/models/update_hash_tag_body.rb +++ b/client/lib/fastcomments-client/models/update_hash_tag_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateHashTagBody + class UpdateHashTagBody < ApiModelBase attr_accessor :tenant_id attr_accessor :url @@ -144,61 +144,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -215,24 +160,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_hash_tag_response.rb b/client/lib/fastcomments-client/models/update_hash_tag_response.rb index 5ef68f3..71a00fc 100644 --- a/client/lib/fastcomments-client/models/update_hash_tag_response.rb +++ b/client/lib/fastcomments-client/models/update_hash_tag_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateHashTagResponse + class UpdateHashTagResponse < ApiModelBase attr_accessor :status attr_accessor :hash_tag @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_moderator_body.rb b/client/lib/fastcomments-client/models/update_moderator_body.rb index 5a60b99..14f616b 100644 --- a/client/lib/fastcomments-client/models/update_moderator_body.rb +++ b/client/lib/fastcomments-client/models/update_moderator_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateModeratorBody + class UpdateModeratorBody < ApiModelBase attr_accessor :name attr_accessor :email @@ -155,61 +155,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -226,24 +171,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_moderator_response.rb b/client/lib/fastcomments-client/models/update_moderator_response.rb new file mode 100644 index 0000000..202940a --- /dev/null +++ b/client/lib/fastcomments-client/models/update_moderator_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module UpdateModeratorResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/update_notification_body.rb b/client/lib/fastcomments-client/models/update_notification_body.rb index f991239..abc8412 100644 --- a/client/lib/fastcomments-client/models/update_notification_body.rb +++ b/client/lib/fastcomments-client/models/update_notification_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateNotificationBody + class UpdateNotificationBody < ApiModelBase attr_accessor :viewed attr_accessor :opted_out @@ -135,61 +135,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -206,24 +151,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_notification_response.rb b/client/lib/fastcomments-client/models/update_notification_response.rb new file mode 100644 index 0000000..773e0a8 --- /dev/null +++ b/client/lib/fastcomments-client/models/update_notification_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module UpdateNotificationResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/update_question_config_body.rb b/client/lib/fastcomments-client/models/update_question_config_body.rb index c93f35e..dacaa79 100644 --- a/client/lib/fastcomments-client/models/update_question_config_body.rb +++ b/client/lib/fastcomments-client/models/update_question_config_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateQuestionConfigBody + class UpdateQuestionConfigBody < ApiModelBase attr_accessor :name attr_accessor :question @@ -247,61 +247,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -318,24 +263,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_question_config_response.rb b/client/lib/fastcomments-client/models/update_question_config_response.rb new file mode 100644 index 0000000..6f3f5ab --- /dev/null +++ b/client/lib/fastcomments-client/models/update_question_config_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module UpdateQuestionConfigResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/update_question_result_body.rb b/client/lib/fastcomments-client/models/update_question_result_body.rb index 093b45c..39ca16b 100644 --- a/client/lib/fastcomments-client/models/update_question_result_body.rb +++ b/client/lib/fastcomments-client/models/update_question_result_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateQuestionResultBody + class UpdateQuestionResultBody < ApiModelBase attr_accessor :url_id attr_accessor :anon_user_id @@ -183,61 +183,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -254,24 +199,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_question_result_response.rb b/client/lib/fastcomments-client/models/update_question_result_response.rb new file mode 100644 index 0000000..c831390 --- /dev/null +++ b/client/lib/fastcomments-client/models/update_question_result_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module UpdateQuestionResultResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/update_subscription_api_response.rb b/client/lib/fastcomments-client/models/update_subscription_api_response.rb index 7ad4d6a..77f37f8 100644 --- a/client/lib/fastcomments-client/models/update_subscription_api_response.rb +++ b/client/lib/fastcomments-client/models/update_subscription_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateSubscriptionAPIResponse + class UpdateSubscriptionAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -170,61 +170,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -241,24 +186,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_tenant_body.rb b/client/lib/fastcomments-client/models/update_tenant_body.rb index 792d2bf..2a8e8be 100644 --- a/client/lib/fastcomments-client/models/update_tenant_body.rb +++ b/client/lib/fastcomments-client/models/update_tenant_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateTenantBody + class UpdateTenantBody < ApiModelBase attr_accessor :name attr_accessor :email @@ -338,61 +338,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -409,24 +354,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_tenant_package_body.rb b/client/lib/fastcomments-client/models/update_tenant_package_body.rb index b23ead9..2a34ab3 100644 --- a/client/lib/fastcomments-client/models/update_tenant_package_body.rb +++ b/client/lib/fastcomments-client/models/update_tenant_package_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateTenantPackageBody + class UpdateTenantPackageBody < ApiModelBase attr_accessor :name attr_accessor :monthly_cost_usd @@ -407,61 +407,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -478,24 +423,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_tenant_package_response.rb b/client/lib/fastcomments-client/models/update_tenant_package_response.rb new file mode 100644 index 0000000..79de0e5 --- /dev/null +++ b/client/lib/fastcomments-client/models/update_tenant_package_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module UpdateTenantPackageResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/update_tenant_response.rb b/client/lib/fastcomments-client/models/update_tenant_response.rb new file mode 100644 index 0000000..eacc102 --- /dev/null +++ b/client/lib/fastcomments-client/models/update_tenant_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module UpdateTenantResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/update_tenant_user_body.rb b/client/lib/fastcomments-client/models/update_tenant_user_body.rb index 55b487e..da9dc47 100644 --- a/client/lib/fastcomments-client/models/update_tenant_user_body.rb +++ b/client/lib/fastcomments-client/models/update_tenant_user_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateTenantUserBody + class UpdateTenantUserBody < ApiModelBase attr_accessor :username attr_accessor :display_name @@ -335,61 +335,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -406,24 +351,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_tenant_user_response.rb b/client/lib/fastcomments-client/models/update_tenant_user_response.rb new file mode 100644 index 0000000..1d9892d --- /dev/null +++ b/client/lib/fastcomments-client/models/update_tenant_user_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module UpdateTenantUserResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptyResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/update_user_badge_params.rb b/client/lib/fastcomments-client/models/update_user_badge_params.rb index 87ede92..1ea9074 100644 --- a/client/lib/fastcomments-client/models/update_user_badge_params.rb +++ b/client/lib/fastcomments-client/models/update_user_badge_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateUserBadgeParams + class UpdateUserBadgeParams < ApiModelBase attr_accessor :displayed_on_comments # Attribute mapping from ruby-style variable name to JSON key. @@ -126,61 +126,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -197,24 +142,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_user_badge_response.rb b/client/lib/fastcomments-client/models/update_user_badge_response.rb new file mode 100644 index 0000000..bb6cdf4 --- /dev/null +++ b/client/lib/fastcomments-client/models/update_user_badge_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module UpdateUserBadgeResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIEmptySuccessResponse', + :'APIError' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/update_user_notification_comment_subscription_status_response.rb b/client/lib/fastcomments-client/models/update_user_notification_comment_subscription_status_response.rb index e3a5552..e8fa0a6 100644 --- a/client/lib/fastcomments-client/models/update_user_notification_comment_subscription_status_response.rb +++ b/client/lib/fastcomments-client/models/update_user_notification_comment_subscription_status_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -19,6 +19,7 @@ class << self # List of class defined in anyOf (OpenAPI v3) def openapi_any_of [ + :'APIError', :'IgnoredResponse', :'UserNotificationWriteResponse' ] @@ -37,8 +38,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/update_user_notification_page_subscription_status_response.rb b/client/lib/fastcomments-client/models/update_user_notification_page_subscription_status_response.rb index 44de180..891f0c3 100644 --- a/client/lib/fastcomments-client/models/update_user_notification_page_subscription_status_response.rb +++ b/client/lib/fastcomments-client/models/update_user_notification_page_subscription_status_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -19,6 +19,7 @@ class << self # List of class defined in anyOf (OpenAPI v3) def openapi_any_of [ + :'APIError', :'IgnoredResponse', :'UserNotificationWriteResponse' ] @@ -37,8 +38,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/update_user_notification_status_response.rb b/client/lib/fastcomments-client/models/update_user_notification_status_response.rb index 32fbfd2..977429b 100644 --- a/client/lib/fastcomments-client/models/update_user_notification_status_response.rb +++ b/client/lib/fastcomments-client/models/update_user_notification_status_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -19,6 +19,7 @@ class << self # List of class defined in anyOf (OpenAPI v3) def openapi_any_of [ + :'APIError', :'IgnoredResponse', :'UserNotificationWriteResponse' ] @@ -37,8 +38,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/upload_image_response.rb b/client/lib/fastcomments-client/models/upload_image_response.rb index aef1a4e..dd6268c 100644 --- a/client/lib/fastcomments-client/models/upload_image_response.rb +++ b/client/lib/fastcomments-client/models/upload_image_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UploadImageResponse + class UploadImageResponse < ApiModelBase attr_accessor :status attr_accessor :url @@ -203,61 +203,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -274,24 +219,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/user.rb b/client/lib/fastcomments-client/models/user.rb index f744084..4cb4d8f 100644 --- a/client/lib/fastcomments-client/models/user.rb +++ b/client/lib/fastcomments-client/models/user.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class User + class User < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -813,61 +813,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -884,24 +829,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/user_badge.rb b/client/lib/fastcomments-client/models/user_badge.rb index 3200ac3..b60d7d9 100644 --- a/client/lib/fastcomments-client/models/user_badge.rb +++ b/client/lib/fastcomments-client/models/user_badge.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UserBadge + class UserBadge < ApiModelBase attr_accessor :_id attr_accessor :user_id @@ -498,61 +498,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -569,24 +514,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/user_badge_progress.rb b/client/lib/fastcomments-client/models/user_badge_progress.rb index 8c45af2..b330320 100644 --- a/client/lib/fastcomments-client/models/user_badge_progress.rb +++ b/client/lib/fastcomments-client/models/user_badge_progress.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UserBadgeProgress + class UserBadgeProgress < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -303,61 +303,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -374,24 +319,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/user_notification.rb b/client/lib/fastcomments-client/models/user_notification.rb index 3faf331..3f67b0b 100644 --- a/client/lib/fastcomments-client/models/user_notification.rb +++ b/client/lib/fastcomments-client/models/user_notification.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UserNotification + class UserNotification < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -573,61 +573,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -644,24 +589,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/user_notification_count.rb b/client/lib/fastcomments-client/models/user_notification_count.rb index 3e884c4..7b3a4e4 100644 --- a/client/lib/fastcomments-client/models/user_notification_count.rb +++ b/client/lib/fastcomments-client/models/user_notification_count.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UserNotificationCount + class UserNotificationCount < ApiModelBase attr_accessor :_id attr_accessor :count @@ -221,61 +221,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -292,24 +237,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/user_notification_write_response.rb b/client/lib/fastcomments-client/models/user_notification_write_response.rb index 8aefac1..714afbc 100644 --- a/client/lib/fastcomments-client/models/user_notification_write_response.rb +++ b/client/lib/fastcomments-client/models/user_notification_write_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UserNotificationWriteResponse + class UserNotificationWriteResponse < ApiModelBase attr_accessor :status attr_accessor :matched_count @@ -217,61 +217,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -288,24 +233,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/user_presence_data.rb b/client/lib/fastcomments-client/models/user_presence_data.rb index 9a203fc..a0ebc7f 100644 --- a/client/lib/fastcomments-client/models/user_presence_data.rb +++ b/client/lib/fastcomments-client/models/user_presence_data.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UserPresenceData + class UserPresenceData < ApiModelBase attr_accessor :url_id_ws attr_accessor :user_id_ws @@ -144,61 +144,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -215,24 +160,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/user_reacts_response.rb b/client/lib/fastcomments-client/models/user_reacts_response.rb index 78c8f06..ad56296 100644 --- a/client/lib/fastcomments-client/models/user_reacts_response.rb +++ b/client/lib/fastcomments-client/models/user_reacts_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UserReactsResponse + class UserReactsResponse < ApiModelBase attr_accessor :status attr_accessor :reacts @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/user_search_result.rb b/client/lib/fastcomments-client/models/user_search_result.rb index d580936..2fcb181 100644 --- a/client/lib/fastcomments-client/models/user_search_result.rb +++ b/client/lib/fastcomments-client/models/user_search_result.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UserSearchResult + class UserSearchResult < ApiModelBase attr_accessor :id attr_accessor :name @@ -238,61 +238,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -309,24 +254,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/user_search_section.rb b/client/lib/fastcomments-client/models/user_search_section.rb index 3259c4b..ccd69fe 100644 --- a/client/lib/fastcomments-client/models/user_search_section.rb +++ b/client/lib/fastcomments-client/models/user_search_section.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/user_search_section_result.rb b/client/lib/fastcomments-client/models/user_search_section_result.rb index 284ec4b..0a4da86 100644 --- a/client/lib/fastcomments-client/models/user_search_section_result.rb +++ b/client/lib/fastcomments-client/models/user_search_section_result.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UserSearchSectionResult + class UserSearchSectionResult < ApiModelBase attr_accessor :section attr_accessor :users @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/user_session_info.rb b/client/lib/fastcomments-client/models/user_session_info.rb index 13c88dd..2784692 100644 --- a/client/lib/fastcomments-client/models/user_session_info.rb +++ b/client/lib/fastcomments-client/models/user_session_info.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UserSessionInfo + class UserSessionInfo < ApiModelBase attr_accessor :id attr_accessor :authorized @@ -250,61 +250,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -321,24 +266,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/users_list_location.rb b/client/lib/fastcomments-client/models/users_list_location.rb index 3f159b8..dc32f7d 100644 --- a/client/lib/fastcomments-client/models/users_list_location.rb +++ b/client/lib/fastcomments-client/models/users_list_location.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/vote_body_params.rb b/client/lib/fastcomments-client/models/vote_body_params.rb index d4b845b..ca5238d 100644 --- a/client/lib/fastcomments-client/models/vote_body_params.rb +++ b/client/lib/fastcomments-client/models/vote_body_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class VoteBodyParams + class VoteBodyParams < ApiModelBase attr_accessor :commenter_email attr_accessor :commenter_name @@ -203,61 +203,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -274,24 +219,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/vote_comment_response.rb b/client/lib/fastcomments-client/models/vote_comment_response.rb new file mode 100644 index 0000000..a67f1ab --- /dev/null +++ b/client/lib/fastcomments-client/models/vote_comment_response.rb @@ -0,0 +1,103 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module VoteCommentResponse + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'VoteResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end diff --git a/client/lib/fastcomments-client/models/vote_delete_response.rb b/client/lib/fastcomments-client/models/vote_delete_response.rb index e9f9e03..a869aae 100644 --- a/client/lib/fastcomments-client/models/vote_delete_response.rb +++ b/client/lib/fastcomments-client/models/vote_delete_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class VoteDeleteResponse + class VoteDeleteResponse < ApiModelBase attr_accessor :status attr_accessor :was_pending_vote @@ -174,61 +174,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -245,24 +190,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/vote_response.rb b/client/lib/fastcomments-client/models/vote_response.rb index dad040e..8f734a4 100644 --- a/client/lib/fastcomments-client/models/vote_response.rb +++ b/client/lib/fastcomments-client/models/vote_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class VoteResponse + class VoteResponse < ApiModelBase attr_accessor :status attr_accessor :vote_id @@ -25,6 +25,28 @@ class VoteResponse attr_accessor :edit_key + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +71,7 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'status' => :'VoteResponseStatus', + :'status' => :'String', :'vote_id' => :'String', :'is_verified' => :'Boolean', :'user' => :'VoteResponseUser', @@ -119,16 +141,18 @@ def list_invalid_properties def valid? warn '[DEPRECATED] the `valid?` method is obsolete' return false if @status.nil? + status_validator = EnumAttributeValidator.new('String', ["success", "failed", "pending-verification"]) + return false unless status_validator.valid?(@status) true end - # Custom attribute writer method with validation - # @param [Object] status Value to be assigned + # Custom attribute writer method checking allowed values (enum). + # @param [Object] status Object to be assigned def status=(status) - if status.nil? - fail ArgumentError, 'status cannot be nil' + validator = EnumAttributeValidator.new('String', ["success", "failed", "pending-verification"]) + unless validator.valid?(status) + fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." end - @status = status end @@ -179,61 +203,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -250,24 +219,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/vote_response_user.rb b/client/lib/fastcomments-client/models/vote_response_user.rb index aba9056..24677d9 100644 --- a/client/lib/fastcomments-client/models/vote_response_user.rb +++ b/client/lib/fastcomments-client/models/vote_response_user.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class VoteResponseUser + class VoteResponseUser < ApiModelBase attr_accessor :session_id # Attribute mapping from ruby-style variable name to JSON key. @@ -127,61 +127,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -198,24 +143,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/vote_style.rb b/client/lib/fastcomments-client/models/vote_style.rb index 14ba79e..84ec9d6 100644 --- a/client/lib/fastcomments-client/models/vote_style.rb +++ b/client/lib/fastcomments-client/models/vote_style.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/version.rb b/client/lib/fastcomments-client/version.rb index dc70fb6..0d2ce83 100644 --- a/client/lib/fastcomments-client/version.rb +++ b/client/lib/fastcomments-client/version.rb @@ -6,10 +6,10 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end module FastCommentsClient - VERSION = '1.2.1' + VERSION = '2.0.0' end diff --git a/client/spec/api/default_api_spec.rb b/client/spec/api/default_api_spec.rb index 38aad53..1749d40 100644 --- a/client/spec/api/default_api_spec.rb +++ b/client/spec/api/default_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -47,7 +47,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [CreateHashTagBody] :create_hash_tag_body - # @return [CreateHashTagResponse] + # @return [AddHashTagResponse] describe 'add_hash_tag test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -58,7 +58,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [BulkCreateHashTagsBody] :bulk_create_hash_tags_body - # @return [BulkCreateHashTagsResponse] + # @return [AddHashTagsBulkResponse] describe 'add_hash_tags_bulk test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -110,7 +110,7 @@ # @option opts [AggregateTimeBucket] :time_bucket # @option opts [Time] :start_date # @option opts [Boolean] :force_recalculate - # @return [AggregateQuestionResultsResponse] + # @return [AggregateQuestionResultsResponse1] describe 'aggregate_question_results test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -124,7 +124,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [BlockSuccess] + # @return [BlockUserFromCommentResponse] describe 'block_user_from_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -136,7 +136,7 @@ # @param bulk_aggregate_question_results_request # @param [Hash] opts the optional parameters # @option opts [Boolean] :force_recalculate - # @return [BulkAggregateQuestionResultsResponse] + # @return [BulkAggregateQuestionResultsResponse1] describe 'bulk_aggregate_question_results test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -149,7 +149,7 @@ # @param id # @param change_ticket_state_body # @param [Hash] opts the optional parameters - # @return [ChangeTicketStateResponse] + # @return [ChangeTicketStateResponse1] describe 'change_ticket_state test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -167,7 +167,7 @@ # @option opts [Float] :min_value # @option opts [Float] :max_value # @option opts [Float] :limit - # @return [CombineQuestionResultsWithCommentsResponse] + # @return [CombineCommentsWithQuestionResultsResponse] describe 'combine_comments_with_question_results test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -178,7 +178,7 @@ # @param tenant_id # @param create_email_template_body # @param [Hash] opts the optional parameters - # @return [CreateEmailTemplateResponse] + # @return [CreateEmailTemplateResponse1] describe 'create_email_template test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -193,7 +193,7 @@ # @option opts [Boolean] :is_live # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :skip_dup_check - # @return [CreateFeedPostsResponse] + # @return [CreateFeedPostResponse1] describe 'create_feed_post test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -204,7 +204,7 @@ # @param tenant_id # @param create_moderator_body # @param [Hash] opts the optional parameters - # @return [CreateModeratorResponse] + # @return [CreateModeratorResponse1] describe 'create_moderator test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -215,7 +215,7 @@ # @param tenant_id # @param create_question_config_body # @param [Hash] opts the optional parameters - # @return [CreateQuestionConfigResponse] + # @return [CreateQuestionConfigResponse1] describe 'create_question_config test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -226,7 +226,7 @@ # @param tenant_id # @param create_question_result_body # @param [Hash] opts the optional parameters - # @return [CreateQuestionResultResponse] + # @return [CreateQuestionResultResponse1] describe 'create_question_result test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -248,7 +248,7 @@ # @param tenant_id # @param create_tenant_body # @param [Hash] opts the optional parameters - # @return [CreateTenantResponse] + # @return [CreateTenantResponse1] describe 'create_tenant test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -259,7 +259,7 @@ # @param tenant_id # @param create_tenant_package_body # @param [Hash] opts the optional parameters - # @return [CreateTenantPackageResponse] + # @return [CreateTenantPackageResponse1] describe 'create_tenant_package test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -270,7 +270,7 @@ # @param tenant_id # @param create_tenant_user_body # @param [Hash] opts the optional parameters - # @return [CreateTenantUserResponse] + # @return [CreateTenantUserResponse1] describe 'create_tenant_user test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -282,7 +282,7 @@ # @param user_id # @param create_ticket_body # @param [Hash] opts the optional parameters - # @return [CreateTicketResponse] + # @return [CreateTicketResponse1] describe 'create_ticket test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -293,7 +293,7 @@ # @param tenant_id # @param create_user_badge_params # @param [Hash] opts the optional parameters - # @return [APICreateUserBadgeResponse] + # @return [CreateUserBadgeResponse] describe 'create_user_badge test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -307,7 +307,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [VoteResponse] + # @return [CreateVoteResponse] describe 'create_vote test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -320,7 +320,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :context_user_id # @option opts [Boolean] :is_live - # @return [DeleteCommentResult] + # @return [DeleteCommentResponse] describe 'delete_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -342,7 +342,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [DeleteEmailTemplateResponse] describe 'delete_email_template test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -354,7 +354,7 @@ # @param id # @param error_id # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [DeleteEmailTemplateRenderErrorResponse] describe 'delete_email_template_render_error test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -366,7 +366,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [DeleteHashTagRequestBody] :delete_hash_tag_request_body - # @return [APIEmptyResponse] + # @return [DeleteHashTagResponse] describe 'delete_hash_tag test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -378,7 +378,7 @@ # @param id # @param [Hash] opts the optional parameters # @option opts [String] :send_email - # @return [APIEmptyResponse] + # @return [DeleteModeratorResponse] describe 'delete_moderator test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -389,7 +389,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [DeleteNotificationCountResponse] describe 'delete_notification_count test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -411,7 +411,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [DeletePendingWebhookEventResponse] describe 'delete_pending_webhook_event test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -422,7 +422,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [DeleteQuestionConfigResponse] describe 'delete_question_config test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -433,7 +433,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [DeleteQuestionResultResponse] describe 'delete_question_result test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -470,7 +470,7 @@ # @param id # @param [Hash] opts the optional parameters # @option opts [String] :sure - # @return [APIEmptyResponse] + # @return [DeleteTenantResponse] describe 'delete_tenant test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -481,7 +481,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [DeleteTenantPackageResponse] describe 'delete_tenant_package test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -494,7 +494,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :delete_comments # @option opts [String] :comment_delete_mode - # @return [APIEmptyResponse] + # @return [DeleteTenantUserResponse] describe 'delete_tenant_user test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -505,7 +505,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [APIEmptySuccessResponse] + # @return [DeleteUserBadgeResponse] describe 'delete_user_badge test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -517,7 +517,7 @@ # @param id # @param [Hash] opts the optional parameters # @option opts [String] :edit_key - # @return [VoteDeleteResponse] + # @return [DeleteVoteResponse] describe 'delete_vote test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -530,7 +530,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [FlagCommentResponse] + # @return [FlagCommentResponse1] describe 'flag_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -545,7 +545,7 @@ # @option opts [SORTDIR] :order # @option opts [Float] :after # @option opts [Float] :before - # @return [GetAuditLogsResponse] + # @return [GetAuditLogsResponse1] describe 'get_audit_logs test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -556,7 +556,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [GetCachedNotificationCountResponse] + # @return [GetCachedNotificationCountResponse1] describe 'get_cached_notification_count test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -567,7 +567,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [APIGetCommentResponse] + # @return [GetCommentResponse] describe 'get_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -593,7 +593,7 @@ # @option opts [SortDirections] :direction # @option opts [Integer] :from_date # @option opts [Integer] :to_date - # @return [APIGetCommentsResponse] + # @return [GetCommentsResponse] describe 'get_comments test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -625,7 +625,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [GetEmailTemplateResponse] + # @return [GetEmailTemplateResponse1] describe 'get_email_template test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -635,7 +635,7 @@ # unit tests for get_email_template_definitions # @param tenant_id # @param [Hash] opts the optional parameters - # @return [GetEmailTemplateDefinitionsResponse] + # @return [GetEmailTemplateDefinitionsResponse1] describe 'get_email_template_definitions test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -647,7 +647,7 @@ # @param id # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [GetEmailTemplateRenderErrorsResponse] + # @return [GetEmailTemplateRenderErrorsResponse1] describe 'get_email_template_render_errors test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -658,7 +658,7 @@ # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [GetEmailTemplatesResponse] + # @return [GetEmailTemplatesResponse1] describe 'get_email_templates test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -672,7 +672,7 @@ # @option opts [String] :after_id # @option opts [Integer] :limit # @option opts [Array] :tags - # @return [GetFeedPostsResponse] + # @return [GetFeedPostsResponse1] describe 'get_feed_posts test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -683,7 +683,7 @@ # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [Float] :page - # @return [GetHashTagsResponse] + # @return [GetHashTagsResponse1] describe 'get_hash_tags test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -694,7 +694,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [GetModeratorResponse] + # @return [GetModeratorResponse1] describe 'get_moderator test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -705,7 +705,7 @@ # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [GetModeratorsResponse] + # @return [GetModeratorsResponse1] describe 'get_moderators test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -720,7 +720,7 @@ # @option opts [String] :from_comment_id # @option opts [Boolean] :viewed # @option opts [String] :type - # @return [GetNotificationCountResponse] + # @return [GetNotificationCountResponse1] describe 'get_notification_count test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -736,7 +736,7 @@ # @option opts [Boolean] :viewed # @option opts [String] :type # @option opts [Float] :skip - # @return [GetNotificationsResponse] + # @return [GetNotificationsResponse1] describe 'get_notifications test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -773,7 +773,7 @@ # @option opts [String] :type # @option opts [String] :domain # @option opts [Float] :attempt_count_gt - # @return [GetPendingWebhookEventCountResponse] + # @return [GetPendingWebhookEventCountResponse1] describe 'get_pending_webhook_event_count test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -790,7 +790,7 @@ # @option opts [String] :domain # @option opts [Float] :attempt_count_gt # @option opts [Float] :skip - # @return [GetPendingWebhookEventsResponse] + # @return [GetPendingWebhookEventsResponse1] describe 'get_pending_webhook_events test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -801,7 +801,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [GetQuestionConfigResponse] + # @return [GetQuestionConfigResponse1] describe 'get_question_config test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -812,7 +812,7 @@ # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [GetQuestionConfigsResponse] + # @return [GetQuestionConfigsResponse1] describe 'get_question_configs test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -823,7 +823,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [GetQuestionResultResponse] + # @return [GetQuestionResultResponse1] describe 'get_question_result test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -839,7 +839,7 @@ # @option opts [String] :question_id # @option opts [String] :question_ids # @option opts [Float] :skip - # @return [GetQuestionResultsResponse] + # @return [GetQuestionResultsResponse1] describe 'get_question_results test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -894,7 +894,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [GetTenantResponse] + # @return [GetTenantResponse1] describe 'get_tenant test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -908,7 +908,7 @@ # @option opts [Float] :month_number # @option opts [Float] :day_number # @option opts [Float] :skip - # @return [GetTenantDailyUsagesResponse] + # @return [GetTenantDailyUsagesResponse1] describe 'get_tenant_daily_usages test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -919,7 +919,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [GetTenantPackageResponse] + # @return [GetTenantPackageResponse1] describe 'get_tenant_package test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -930,7 +930,7 @@ # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [GetTenantPackagesResponse] + # @return [GetTenantPackagesResponse1] describe 'get_tenant_packages test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -941,7 +941,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [GetTenantUserResponse] + # @return [GetTenantUserResponse1] describe 'get_tenant_user test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -952,7 +952,7 @@ # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [GetTenantUsersResponse] + # @return [GetTenantUsersResponse1] describe 'get_tenant_users test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -964,7 +964,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :meta # @option opts [Float] :skip - # @return [GetTenantsResponse] + # @return [GetTenantsResponse1] describe 'get_tenants test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -976,7 +976,7 @@ # @param id # @param [Hash] opts the optional parameters # @option opts [String] :user_id - # @return [GetTicketResponse] + # @return [GetTicketResponse1] describe 'get_ticket test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -990,7 +990,7 @@ # @option opts [Float] :state # @option opts [Float] :skip # @option opts [Float] :limit - # @return [GetTicketsResponse] + # @return [GetTicketsResponse1] describe 'get_tickets test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1001,7 +1001,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [GetUserResponse] + # @return [GetUserResponse1] describe 'get_user test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1012,7 +1012,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [APIGetUserBadgeResponse] + # @return [GetUserBadgeResponse] describe 'get_user_badge test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1023,7 +1023,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [APIGetUserBadgeProgressResponse] + # @return [GetUserBadgeProgressByIdResponse] describe 'get_user_badge_progress_by_id test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1034,7 +1034,7 @@ # @param tenant_id # @param user_id # @param [Hash] opts the optional parameters - # @return [APIGetUserBadgeProgressResponse] + # @return [GetUserBadgeProgressByUserIdResponse] describe 'get_user_badge_progress_by_user_id test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1047,7 +1047,7 @@ # @option opts [String] :user_id # @option opts [Float] :limit # @option opts [Float] :skip - # @return [APIGetUserBadgeProgressListResponse] + # @return [GetUserBadgeProgressListResponse] describe 'get_user_badge_progress_list test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1063,7 +1063,7 @@ # @option opts [Boolean] :displayed_on_comments # @option opts [Float] :limit # @option opts [Float] :skip - # @return [APIGetUserBadgesResponse] + # @return [GetUserBadgesResponse] describe 'get_user_badges test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1074,7 +1074,7 @@ # @param tenant_id # @param url_id # @param [Hash] opts the optional parameters - # @return [GetVotesResponse] + # @return [GetVotesResponse1] describe 'get_votes test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1087,7 +1087,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [GetVotesForUserResponse] + # @return [GetVotesForUserResponse1] describe 'get_votes_for_user test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1111,7 +1111,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [UpdateHashTagBody] :update_hash_tag_body - # @return [UpdateHashTagResponse] + # @return [PatchHashTagResponse] describe 'patch_hash_tag test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1173,7 +1173,7 @@ # @param render_email_template_body # @param [Hash] opts the optional parameters # @option opts [String] :locale - # @return [RenderEmailTemplateResponse] + # @return [RenderEmailTemplateResponse1] describe 'render_email_template test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1185,7 +1185,7 @@ # @param id # @param replace_tenant_package_body # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [ReplaceTenantPackageResponse] describe 'replace_tenant_package test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1198,7 +1198,7 @@ # @param replace_tenant_user_body # @param [Hash] opts the optional parameters # @option opts [String] :update_comments - # @return [APIEmptyResponse] + # @return [ReplaceTenantUserResponse] describe 'replace_tenant_user test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1213,7 +1213,7 @@ # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :send_emails # @option opts [Boolean] :populate_notifications - # @return [APISaveCommentResponse] + # @return [SaveCommentResponse] describe 'save_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1240,7 +1240,7 @@ # @param id # @param from_name # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [SendInviteResponse] describe 'send_invite test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1252,7 +1252,7 @@ # @param id # @param [Hash] opts the optional parameters # @option opts [String] :redirect_url - # @return [APIEmptyResponse] + # @return [SendLoginLinkResponse] describe 'send_login_link test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1266,7 +1266,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [UnblockSuccess] + # @return [UnBlockUserFromCommentResponse] describe 'un_block_user_from_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1279,7 +1279,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [FlagCommentResponse] + # @return [UnFlagCommentResponse] describe 'un_flag_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1294,7 +1294,7 @@ # @option opts [String] :context_user_id # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :is_live - # @return [APIEmptyResponse] + # @return [UpdateCommentResponse] describe 'update_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1306,7 +1306,7 @@ # @param id # @param update_email_template_body # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [UpdateEmailTemplateResponse] describe 'update_email_template test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1318,7 +1318,7 @@ # @param id # @param feed_post # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [UpdateFeedPostResponse] describe 'update_feed_post test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1330,7 +1330,7 @@ # @param id # @param update_moderator_body # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [UpdateModeratorResponse] describe 'update_moderator test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1343,7 +1343,7 @@ # @param update_notification_body # @param [Hash] opts the optional parameters # @option opts [String] :user_id - # @return [APIEmptyResponse] + # @return [UpdateNotificationResponse] describe 'update_notification test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1355,7 +1355,7 @@ # @param id # @param update_question_config_body # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [UpdateQuestionConfigResponse] describe 'update_question_config test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1367,7 +1367,7 @@ # @param id # @param update_question_result_body # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [UpdateQuestionResultResponse] describe 'update_question_result test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1392,7 +1392,7 @@ # @param id # @param update_tenant_body # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [UpdateTenantResponse] describe 'update_tenant test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1404,7 +1404,7 @@ # @param id # @param update_tenant_package_body # @param [Hash] opts the optional parameters - # @return [APIEmptyResponse] + # @return [UpdateTenantPackageResponse] describe 'update_tenant_package test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1417,7 +1417,7 @@ # @param update_tenant_user_body # @param [Hash] opts the optional parameters # @option opts [String] :update_comments - # @return [APIEmptyResponse] + # @return [UpdateTenantUserResponse] describe 'update_tenant_user test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1429,7 +1429,7 @@ # @param id # @param update_user_badge_params # @param [Hash] opts the optional parameters - # @return [APIEmptySuccessResponse] + # @return [UpdateUserBadgeResponse] describe 'update_user_badge test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/client/spec/api/moderation_api_spec.rb b/client/spec/api/moderation_api_spec.rb index 276dd14..5f68a3f 100644 --- a/client/spec/api/moderation_api_spec.rb +++ b/client/spec/api/moderation_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -36,8 +36,10 @@ # @param comment_id # @param vote_id # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [VoteDeleteResponse] + # @return [DeleteModerationVoteResponse] describe 'delete_moderation_vote test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -54,8 +56,9 @@ # @option opts [String] :search_filters # @option opts [String] :sorts # @option opts [Boolean] :demo + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationAPIGetCommentsResponse] + # @return [GetApiCommentsResponse] describe 'get_api_comments test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -65,8 +68,9 @@ # unit tests for get_api_export_status # @param [Hash] opts the optional parameters # @option opts [String] :batch_job_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationExportStatusResponse] + # @return [GetApiExportStatusResponse] describe 'get_api_export_status test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -81,8 +85,9 @@ # @option opts [String] :search_filters # @option opts [String] :after_id # @option opts [Boolean] :demo + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationAPIGetCommentIdsResponse] + # @return [GetApiIdsResponse] describe 'get_api_ids test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -92,8 +97,9 @@ # unit tests for get_ban_users_from_comment # @param comment_id # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetBannedUsersFromCommentResponse] + # @return [GetBanUsersFromCommentResponse] describe 'get_ban_users_from_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -103,8 +109,9 @@ # unit tests for get_comment_ban_status # @param comment_id # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetCommentBanStatusResponse] + # @return [GetCommentBanStatusResponse1] describe 'get_comment_ban_status test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -114,8 +121,9 @@ # unit tests for get_comment_children # @param comment_id # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationAPIChildCommentsResponse] + # @return [GetCommentChildrenResponse] describe 'get_comment_children test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -129,8 +137,9 @@ # @option opts [String] :filter # @option opts [String] :search_filters # @option opts [Boolean] :demo + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationAPICountCommentsResponse] + # @return [GetCountResponse] describe 'get_count test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -139,8 +148,9 @@ # unit tests for get_counts # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetBannedUsersCountResponse] + # @return [GetCountsResponse] describe 'get_counts test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -150,8 +160,9 @@ # unit tests for get_logs # @param comment_id # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationAPIGetLogsResponse] + # @return [GetLogsResponse] describe 'get_logs test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -160,8 +171,9 @@ # unit tests for get_manual_badges # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetTenantManualBadgesResponse] + # @return [GetManualBadgesResponse] describe 'get_manual_badges test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -172,8 +184,9 @@ # @param [Hash] opts the optional parameters # @option opts [String] :badges_user_id # @option opts [String] :comment_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetUserManualBadgesResponse] + # @return [GetManualBadgesForUserResponse] describe 'get_manual_badges_for_user test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -185,8 +198,9 @@ # @param [Hash] opts the optional parameters # @option opts [Boolean] :include_email # @option opts [Boolean] :include_ip + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationAPICommentResponse] + # @return [GetModerationCommentResponse] describe 'get_moderation_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -196,8 +210,9 @@ # unit tests for get_moderation_comment_text # @param comment_id # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetCommentTextResponse] + # @return [GetModerationCommentTextResponse] describe 'get_moderation_comment_text test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -210,8 +225,9 @@ # @option opts [Boolean] :include_by_user_id_and_email # @option opts [Boolean] :include_by_ip # @option opts [Boolean] :include_by_email_domain + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PreBanSummary] + # @return [GetPreBanSummaryResponse] describe 'get_pre_ban_summary test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -223,8 +239,9 @@ # @option opts [String] :value # @option opts [String] :filters # @option opts [String] :search_filters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationCommentSearchResponse] + # @return [GetSearchCommentsSummaryResponse] describe 'get_search_comments_summary test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -234,8 +251,9 @@ # unit tests for get_search_pages # @param [Hash] opts the optional parameters # @option opts [String] :value + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationPageSearchResponse] + # @return [GetSearchPagesResponse] describe 'get_search_pages test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -245,8 +263,9 @@ # unit tests for get_search_sites # @param [Hash] opts the optional parameters # @option opts [String] :value + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationSiteSearchResponse] + # @return [GetSearchSitesResponse] describe 'get_search_sites test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -256,8 +275,9 @@ # unit tests for get_search_suggest # @param [Hash] opts the optional parameters # @option opts [String] :text_search + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationSuggestResponse] + # @return [GetSearchSuggestResponse] describe 'get_search_suggest test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -267,8 +287,9 @@ # unit tests for get_search_users # @param [Hash] opts the optional parameters # @option opts [String] :value + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationUserSearchResponse] + # @return [GetSearchUsersResponse] describe 'get_search_users test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -278,8 +299,9 @@ # unit tests for get_trust_factor # @param [Hash] opts the optional parameters # @option opts [String] :user_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetUserTrustFactorResponse] + # @return [GetTrustFactorResponse] describe 'get_trust_factor test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -288,8 +310,9 @@ # unit tests for get_user_ban_preference # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [APIModerateGetUserBanPreferencesResponse] + # @return [GetUserBanPreferenceResponse] describe 'get_user_ban_preference test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -299,8 +322,9 @@ # unit tests for get_user_internal_profile # @param [Hash] opts the optional parameters # @option opts [String] :comment_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetUserInternalProfileResponse] + # @return [GetUserInternalProfileResponse1] describe 'get_user_internal_profile test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -311,8 +335,10 @@ # @param comment_id # @param adjust_comment_votes_params # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [AdjustVotesResponse] + # @return [PostAdjustCommentVotesResponse] describe 'post_adjust_comment_votes test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -326,8 +352,9 @@ # @option opts [String] :filters # @option opts [String] :search_filters # @option opts [String] :sorts + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationExportResponse] + # @return [PostApiExportResponse] describe 'post_api_export test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -345,8 +372,9 @@ # @option opts [Boolean] :is_shadow_ban # @option opts [String] :update_id # @option opts [String] :ban_reason + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [BanUserFromCommentResult] + # @return [PostBanUserFromCommentResponse] describe 'post_ban_user_from_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -356,8 +384,9 @@ # unit tests for post_ban_user_undo # @param ban_user_undo_params # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [APIEmptyResponse] + # @return [PostBanUserUndoResponse] describe 'post_ban_user_undo test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -370,8 +399,9 @@ # @option opts [Boolean] :include_by_user_id_and_email # @option opts [Boolean] :include_by_ip # @option opts [Boolean] :include_by_email_domain + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [BulkPreBanSummary] + # @return [PostBulkPreBanSummaryResponse] describe 'post_bulk_pre_ban_summary test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -381,8 +411,9 @@ # unit tests for post_comments_by_ids # @param comments_by_ids_params # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [ModerationAPIChildCommentsResponse] + # @return [PostCommentsByIdsResponse] describe 'post_comments_by_ids test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -392,8 +423,10 @@ # unit tests for post_flag_comment # @param comment_id # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [APIEmptyResponse] + # @return [PostFlagCommentResponse] describe 'post_flag_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -403,6 +436,8 @@ # unit tests for post_remove_comment # @param comment_id # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso # @return [PostRemoveCommentResponse] describe 'post_remove_comment test' do @@ -414,8 +449,10 @@ # unit tests for post_restore_deleted_comment # @param comment_id # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [APIEmptyResponse] + # @return [PostRestoreDeletedCommentResponse] describe 'post_restore_deleted_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -426,8 +463,10 @@ # @param comment_id # @param [Hash] opts the optional parameters # @option opts [Boolean] :approved + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [SetCommentApprovedResponse] + # @return [PostSetCommentApprovalStatusResponse] describe 'post_set_comment_approval_status test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -438,8 +477,10 @@ # @param comment_id # @param [Hash] opts the optional parameters # @option opts [Boolean] :reviewed + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [APIEmptyResponse] + # @return [PostSetCommentReviewStatusResponse] describe 'post_set_comment_review_status test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -451,8 +492,10 @@ # @param [Hash] opts the optional parameters # @option opts [Boolean] :spam # @option opts [Boolean] :perm_not_spam + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [APIEmptyResponse] + # @return [PostSetCommentSpamStatusResponse] describe 'post_set_comment_spam_status test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -463,8 +506,10 @@ # @param comment_id # @param set_comment_text_params # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [SetCommentTextResponse] + # @return [PostSetCommentTextResponse] describe 'post_set_comment_text test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -474,8 +519,10 @@ # unit tests for post_un_flag_comment # @param comment_id # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [APIEmptyResponse] + # @return [PostUnFlagCommentResponse] describe 'post_un_flag_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -486,8 +533,10 @@ # @param comment_id # @param [Hash] opts the optional parameters # @option opts [String] :direction + # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [VoteResponse] + # @return [PostVoteResponse] describe 'post_vote test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -500,8 +549,9 @@ # @option opts [String] :user_id # @option opts [String] :comment_id # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [AwardUserBadgeResponse] + # @return [PutAwardBadgeResponse] describe 'put_award_badge test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -511,8 +561,9 @@ # unit tests for put_close_thread # @param url_id # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [APIEmptyResponse] + # @return [PutCloseThreadResponse] describe 'put_close_thread test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -525,8 +576,9 @@ # @option opts [String] :user_id # @option opts [String] :comment_id # @option opts [String] :broadcast_id + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [RemoveUserBadgeResponse] + # @return [PutRemoveBadgeResponse] describe 'put_remove_badge test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -536,8 +588,9 @@ # unit tests for put_reopen_thread # @param url_id # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [APIEmptyResponse] + # @return [PutReopenThreadResponse] describe 'put_reopen_thread test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -548,8 +601,9 @@ # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :trust_factor + # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [SetUserTrustFactorResponse] + # @return [SetTrustFactorResponse] describe 'set_trust_factor test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/client/spec/api/public_api_spec.rb b/client/spec/api/public_api_spec.rb index 0e9fdbf..1577749 100644 --- a/client/spec/api/public_api_spec.rb +++ b/client/spec/api/public_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -38,7 +38,7 @@ # @param public_block_from_comment_params # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [BlockSuccess] + # @return [BlockFromCommentPublicResponse] describe 'block_from_comment_public test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -50,7 +50,7 @@ # @param comment_ids A comma separated list of comment ids. # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [CheckBlockedCommentsResponse] + # @return [CheckedCommentsForBlockedResponse] describe 'checked_comments_for_blocked test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -65,7 +65,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :session_id # @option opts [String] :sso - # @return [SaveCommentsResponseWithPresence] + # @return [CreateCommentPublicResponse] describe 'create_comment_public test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -78,7 +78,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :broadcast_id # @option opts [String] :sso - # @return [CreateFeedPostResponse] + # @return [CreateFeedPostPublicResponse] describe 'create_feed_post_public test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -90,7 +90,7 @@ # @param url_id # @param [Hash] opts the optional parameters # @option opts [String] :title - # @return [CreateV1PageReact] + # @return [CreateV1PageReactResponse] describe 'create_v1_page_react test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -103,7 +103,7 @@ # @param id # @param [Hash] opts the optional parameters # @option opts [String] :title - # @return [CreateV1PageReact] + # @return [CreateV2PageReactResponse] describe 'create_v2_page_react test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -117,7 +117,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso - # @return [PublicAPIDeleteCommentResponse] + # @return [DeleteCommentPublicResponse] describe 'delete_comment_public test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -133,7 +133,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso - # @return [VoteDeleteResponse] + # @return [DeleteCommentVoteResponse] describe 'delete_comment_vote test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -157,7 +157,7 @@ # @param tenant_id # @param url_id # @param [Hash] opts the optional parameters - # @return [CreateV1PageReact] + # @return [DeleteV1PageReactResponse] describe 'delete_v1_page_react test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -169,7 +169,7 @@ # @param url_id # @param id # @param [Hash] opts the optional parameters - # @return [CreateV1PageReact] + # @return [DeleteV2PageReactResponse] describe 'delete_v2_page_react test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -182,7 +182,7 @@ # @param is_flagged # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [APIEmptyResponse] + # @return [FlagCommentPublicResponse] describe 'flag_comment_public test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -195,7 +195,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso - # @return [PublicAPIGetCommentTextResponse] + # @return [GetCommentTextResponse1] describe 'get_comment_text test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -208,7 +208,7 @@ # @param dir # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [GetCommentVoteUserNamesSuccessResponse] + # @return [GetCommentVoteUserNamesResponse] describe 'get_comment_vote_user_names test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -224,7 +224,7 @@ # @option opts [Boolean] :includei10n # @option opts [String] :locale # @option opts [Boolean] :is_crawler - # @return [GetCommentsForUserResponse] + # @return [GetCommentsForUserResponse1] describe 'get_comments_for_user test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -262,7 +262,7 @@ # @option opts [String] :custom_config_str # @option opts [String] :after_comment_id # @option opts [String] :before_comment_id - # @return [GetCommentsResponseWithPresencePublicComment] + # @return [GetCommentsPublicResponse] describe 'get_comments_public test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -277,7 +277,7 @@ # @param start_time # @param [Hash] opts the optional parameters # @option opts [Integer] :end_time - # @return [GetEventLogResponse] + # @return [GetEventLogResponse1] describe 'get_event_log test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -294,7 +294,7 @@ # @option opts [String] :sso # @option opts [Boolean] :is_crawler # @option opts [Boolean] :include_user_info - # @return [PublicFeedPostsResponse] + # @return [GetFeedPostsPublicResponse] describe 'get_feed_posts_public test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -306,7 +306,7 @@ # @param post_ids # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [FeedPostsStatsResponse] + # @return [GetFeedPostsStatsResponse] describe 'get_feed_posts_stats test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -317,7 +317,7 @@ # @param tenant_id # @param large_internal_url_sanitized # @param [Hash] opts the optional parameters - # @return [GifGetLargeResponse] + # @return [GetGifLargeResponse] describe 'get_gif_large test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -359,7 +359,7 @@ # @param start_time # @param [Hash] opts the optional parameters # @option opts [Integer] :end_time - # @return [GetEventLogResponse] + # @return [GetGlobalEventLogResponse] describe 'get_global_event_log test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -373,7 +373,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :after_name Cursor: pass nextAfterName from the previous response. # @option opts [String] :after_user_id Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. - # @return [PageUsersOfflineResponse] + # @return [GetOfflineUsersResponse] describe 'get_offline_users test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -387,7 +387,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :after_name Cursor: pass nextAfterName from the previous response. # @option opts [String] :after_user_id Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. - # @return [PageUsersOnlineResponse] + # @return [GetOnlineUsersResponse] describe 'get_online_users test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -403,7 +403,7 @@ # @option opts [String] :q Optional case-insensitive title prefix filter. # @option opts [PagesSortBy] :sort_by Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). # @option opts [Boolean] :has_comments If true, only return pages with at least one comment. - # @return [GetPublicPagesResponse] + # @return [GetPagesPublicResponse] describe 'get_pages_public test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -416,7 +416,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :locale # @option opts [Boolean] :use_full_translation_ids - # @return [GetTranslationsResponse] + # @return [GetTranslationsResponse1] describe 'get_translations test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -427,7 +427,7 @@ # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [GetUserNotificationCountResponse] + # @return [GetUserNotificationCountResponse1] describe 'get_user_notification_count test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -448,7 +448,7 @@ # @option opts [Boolean] :include_translations # @option opts [Boolean] :include_tenant_notifications # @option opts [String] :sso - # @return [GetMyNotificationsResponse] + # @return [GetUserNotificationsResponse] describe 'get_user_notifications test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -460,7 +460,7 @@ # @param url_id_ws # @param user_ids # @param [Hash] opts the optional parameters - # @return [GetUserPresenceStatusesResponse] + # @return [GetUserPresenceStatusesResponse1] describe 'get_user_presence_statuses test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -472,7 +472,7 @@ # @param [Hash] opts the optional parameters # @option opts [Array] :post_ids # @option opts [String] :sso - # @return [UserReactsResponse] + # @return [GetUserReactsPublicResponse] describe 'get_user_reacts_public test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -484,7 +484,7 @@ # @param tenant_id # @param ids Comma-delimited userIds. # @param [Hash] opts the optional parameters - # @return [PageUsersInfoResponse] + # @return [GetUsersInfoResponse] describe 'get_users_info test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -495,7 +495,7 @@ # @param tenant_id # @param url_id # @param [Hash] opts the optional parameters - # @return [GetV1PageLikes] + # @return [GetV1PageLikesResponse] describe 'get_v1_page_likes test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -507,7 +507,7 @@ # @param url_id # @param id # @param [Hash] opts the optional parameters - # @return [GetV2PageReactUsersResponse] + # @return [GetV2PageReactUsersResponse1] describe 'get_v2_page_react_users test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -518,7 +518,7 @@ # @param tenant_id # @param url_id # @param [Hash] opts the optional parameters - # @return [GetV2PageReacts] + # @return [GetV2PageReactsResponse] describe 'get_v2_page_reacts test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -531,7 +531,7 @@ # @param broadcast_id # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [APIEmptyResponse] + # @return [LockCommentResponse] describe 'lock_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -553,7 +553,7 @@ # @param broadcast_id # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [ChangeCommentPinStatusResponse] + # @return [PinCommentResponse] describe 'pin_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -568,7 +568,7 @@ # @option opts [Boolean] :is_undo # @option opts [String] :broadcast_id # @option opts [String] :sso - # @return [ReactFeedPostResponse] + # @return [ReactFeedPostPublicResponse] describe 'react_feed_post_public test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -579,7 +579,7 @@ # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [ResetUserNotificationsResponse] + # @return [ResetUserNotificationCountResponse] describe 'reset_user_notification_count test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -595,7 +595,7 @@ # @option opts [Boolean] :dm_only # @option opts [Boolean] :no_dm # @option opts [String] :sso - # @return [ResetUserNotificationsResponse] + # @return [ResetUserNotificationsResponse1] describe 'reset_user_notifications test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -610,7 +610,7 @@ # @option opts [Array] :mention_group_ids # @option opts [String] :sso # @option opts [String] :search_section - # @return [SearchUsersResult] + # @return [SearchUsersResponse1] describe 'search_users test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -625,7 +625,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso - # @return [PublicAPISetCommentTextResponse] + # @return [SetCommentTextResponse1] describe 'set_comment_text test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -638,7 +638,7 @@ # @param public_block_from_comment_params # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [UnblockSuccess] + # @return [UnBlockCommentPublicResponse] describe 'un_block_comment_public test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -651,7 +651,7 @@ # @param broadcast_id # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [APIEmptyResponse] + # @return [UnLockCommentResponse] describe 'un_lock_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -664,7 +664,7 @@ # @param broadcast_id # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [ChangeCommentPinStatusResponse] + # @return [UnPinCommentResponse] describe 'un_pin_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -678,7 +678,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :broadcast_id # @option opts [String] :sso - # @return [CreateFeedPostResponse] + # @return [UpdateFeedPostPublicResponse] describe 'update_feed_post_public test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -752,7 +752,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :session_id # @option opts [String] :sso - # @return [VoteResponse] + # @return [VoteCommentResponse] describe 'vote_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/client/spec/models/add_domain_config_params_spec.rb b/client/spec/models/add_domain_config_params_spec.rb index 475d392..677c5b8 100644 --- a/client/spec/models/add_domain_config_params_spec.rb +++ b/client/spec/models/add_domain_config_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AddDomainConfigParams do - let(:instance) { FastCommentsClient::AddDomainConfigParams.new } + #let(:instance) { FastCommentsClient::AddDomainConfigParams.new } describe 'test an instance of AddDomainConfigParams' do it 'should create an instance of AddDomainConfigParams' do diff --git a/client/spec/models/add_domain_config_response_any_of_spec.rb b/client/spec/models/add_domain_config_response_any_of_spec.rb index c2af49a..30d5e41 100644 --- a/client/spec/models/add_domain_config_response_any_of_spec.rb +++ b/client/spec/models/add_domain_config_response_any_of_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AddDomainConfigResponseAnyOf do - let(:instance) { FastCommentsClient::AddDomainConfigResponseAnyOf.new } + #let(:instance) { FastCommentsClient::AddDomainConfigResponseAnyOf.new } describe 'test an instance of AddDomainConfigResponseAnyOf' do it 'should create an instance of AddDomainConfigResponseAnyOf' do diff --git a/client/spec/models/add_domain_config_response_spec.rb b/client/spec/models/add_domain_config_response_spec.rb index 3d48e27..dc7f857 100644 --- a/client/spec/models/add_domain_config_response_spec.rb +++ b/client/spec/models/add_domain_config_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/add_hash_tag_response_spec.rb b/client/spec/models/add_hash_tag_response_spec.rb new file mode 100644 index 0000000..4e7664d --- /dev/null +++ b/client/spec/models/add_hash_tag_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::AddHashTagResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::AddHashTagResponse do +end diff --git a/client/spec/models/add_hash_tags_bulk_response_spec.rb b/client/spec/models/add_hash_tags_bulk_response_spec.rb new file mode 100644 index 0000000..67f41a6 --- /dev/null +++ b/client/spec/models/add_hash_tags_bulk_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::AddHashTagsBulkResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::AddHashTagsBulkResponse do +end diff --git a/client/spec/models/add_page_api_response_spec.rb b/client/spec/models/add_page_api_response_spec.rb index f1315b2..be7dae3 100644 --- a/client/spec/models/add_page_api_response_spec.rb +++ b/client/spec/models/add_page_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AddPageAPIResponse do - let(:instance) { FastCommentsClient::AddPageAPIResponse.new } + #let(:instance) { FastCommentsClient::AddPageAPIResponse.new } describe 'test an instance of AddPageAPIResponse' do it 'should create an instance of AddPageAPIResponse' do diff --git a/client/spec/models/add_sso_user_api_response_spec.rb b/client/spec/models/add_sso_user_api_response_spec.rb index 89e6a3d..bf23a9c 100644 --- a/client/spec/models/add_sso_user_api_response_spec.rb +++ b/client/spec/models/add_sso_user_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AddSSOUserAPIResponse do - let(:instance) { FastCommentsClient::AddSSOUserAPIResponse.new } + #let(:instance) { FastCommentsClient::AddSSOUserAPIResponse.new } describe 'test an instance of AddSSOUserAPIResponse' do it 'should create an instance of AddSSOUserAPIResponse' do diff --git a/client/spec/models/adjust_comment_votes_params_spec.rb b/client/spec/models/adjust_comment_votes_params_spec.rb index 3937c92..da8bb51 100644 --- a/client/spec/models/adjust_comment_votes_params_spec.rb +++ b/client/spec/models/adjust_comment_votes_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AdjustCommentVotesParams do - let(:instance) { FastCommentsClient::AdjustCommentVotesParams.new } + #let(:instance) { FastCommentsClient::AdjustCommentVotesParams.new } describe 'test an instance of AdjustCommentVotesParams' do it 'should create an instance of AdjustCommentVotesParams' do diff --git a/client/spec/models/adjust_votes_response_spec.rb b/client/spec/models/adjust_votes_response_spec.rb index 434ca4d..8473ef6 100644 --- a/client/spec/models/adjust_votes_response_spec.rb +++ b/client/spec/models/adjust_votes_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AdjustVotesResponse do - let(:instance) { FastCommentsClient::AdjustVotesResponse.new } + #let(:instance) { FastCommentsClient::AdjustVotesResponse.new } describe 'test an instance of AdjustVotesResponse' do it 'should create an instance of AdjustVotesResponse' do diff --git a/client/spec/models/aggregate_question_results_response1_spec.rb b/client/spec/models/aggregate_question_results_response1_spec.rb new file mode 100644 index 0000000..4e0f372 --- /dev/null +++ b/client/spec/models/aggregate_question_results_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::AggregateQuestionResultsResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::AggregateQuestionResultsResponse1 do +end diff --git a/client/spec/models/aggregate_question_results_response_spec.rb b/client/spec/models/aggregate_question_results_response_spec.rb index 03bca60..a85b700 100644 --- a/client/spec/models/aggregate_question_results_response_spec.rb +++ b/client/spec/models/aggregate_question_results_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AggregateQuestionResultsResponse do - let(:instance) { FastCommentsClient::AggregateQuestionResultsResponse.new } + #let(:instance) { FastCommentsClient::AggregateQuestionResultsResponse.new } describe 'test an instance of AggregateQuestionResultsResponse' do it 'should create an instance of AggregateQuestionResultsResponse' do diff --git a/client/spec/models/aggregate_response_spec.rb b/client/spec/models/aggregate_response_spec.rb index 01c902b..6803175 100644 --- a/client/spec/models/aggregate_response_spec.rb +++ b/client/spec/models/aggregate_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/aggregate_time_bucket_spec.rb b/client/spec/models/aggregate_time_bucket_spec.rb index d24fed6..666ecfa 100644 --- a/client/spec/models/aggregate_time_bucket_spec.rb +++ b/client/spec/models/aggregate_time_bucket_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AggregateTimeBucket do - let(:instance) { FastCommentsClient::AggregateTimeBucket.new } + #let(:instance) { FastCommentsClient::AggregateTimeBucket.new } describe 'test an instance of AggregateTimeBucket' do it 'should create an instance of AggregateTimeBucket' do diff --git a/client/spec/models/aggregation_api_error_spec.rb b/client/spec/models/aggregation_api_error_spec.rb index e0c33cc..6c380c5 100644 --- a/client/spec/models/aggregation_api_error_spec.rb +++ b/client/spec/models/aggregation_api_error_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AggregationAPIError do - let(:instance) { FastCommentsClient::AggregationAPIError.new } + #let(:instance) { FastCommentsClient::AggregationAPIError.new } describe 'test an instance of AggregationAPIError' do it 'should create an instance of AggregationAPIError' do diff --git a/client/spec/models/aggregation_item_spec.rb b/client/spec/models/aggregation_item_spec.rb index bd4d40a..0bd3949 100644 --- a/client/spec/models/aggregation_item_spec.rb +++ b/client/spec/models/aggregation_item_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AggregationItem do - let(:instance) { FastCommentsClient::AggregationItem.new } + #let(:instance) { FastCommentsClient::AggregationItem.new } describe 'test an instance of AggregationItem' do it 'should create an instance of AggregationItem' do diff --git a/client/spec/models/aggregation_op_type_spec.rb b/client/spec/models/aggregation_op_type_spec.rb index ea1281b..5c9a1e7 100644 --- a/client/spec/models/aggregation_op_type_spec.rb +++ b/client/spec/models/aggregation_op_type_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AggregationOpType do - let(:instance) { FastCommentsClient::AggregationOpType.new } + #let(:instance) { FastCommentsClient::AggregationOpType.new } describe 'test an instance of AggregationOpType' do it 'should create an instance of AggregationOpType' do diff --git a/client/spec/models/aggregation_operation_spec.rb b/client/spec/models/aggregation_operation_spec.rb index e86ce40..4fae3f1 100644 --- a/client/spec/models/aggregation_operation_spec.rb +++ b/client/spec/models/aggregation_operation_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AggregationOperation do - let(:instance) { FastCommentsClient::AggregationOperation.new } + #let(:instance) { FastCommentsClient::AggregationOperation.new } describe 'test an instance of AggregationOperation' do it 'should create an instance of AggregationOperation' do diff --git a/client/spec/models/aggregation_request_sort_spec.rb b/client/spec/models/aggregation_request_sort_spec.rb index 0cd97ce..ba1d07f 100644 --- a/client/spec/models/aggregation_request_sort_spec.rb +++ b/client/spec/models/aggregation_request_sort_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AggregationRequestSort do - let(:instance) { FastCommentsClient::AggregationRequestSort.new } + #let(:instance) { FastCommentsClient::AggregationRequestSort.new } describe 'test an instance of AggregationRequestSort' do it 'should create an instance of AggregationRequestSort' do diff --git a/client/spec/models/aggregation_request_spec.rb b/client/spec/models/aggregation_request_spec.rb index 52e3932..0c78cb5 100644 --- a/client/spec/models/aggregation_request_spec.rb +++ b/client/spec/models/aggregation_request_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AggregationRequest do - let(:instance) { FastCommentsClient::AggregationRequest.new } + #let(:instance) { FastCommentsClient::AggregationRequest.new } describe 'test an instance of AggregationRequest' do it 'should create an instance of AggregationRequest' do diff --git a/client/spec/models/aggregation_response_spec.rb b/client/spec/models/aggregation_response_spec.rb index e267cf1..a389946 100644 --- a/client/spec/models/aggregation_response_spec.rb +++ b/client/spec/models/aggregation_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AggregationResponse do - let(:instance) { FastCommentsClient::AggregationResponse.new } + #let(:instance) { FastCommentsClient::AggregationResponse.new } describe 'test an instance of AggregationResponse' do it 'should create an instance of AggregationResponse' do diff --git a/client/spec/models/aggregation_response_stats_spec.rb b/client/spec/models/aggregation_response_stats_spec.rb index f237f77..d56e107 100644 --- a/client/spec/models/aggregation_response_stats_spec.rb +++ b/client/spec/models/aggregation_response_stats_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AggregationResponseStats do - let(:instance) { FastCommentsClient::AggregationResponseStats.new } + #let(:instance) { FastCommentsClient::AggregationResponseStats.new } describe 'test an instance of AggregationResponseStats' do it 'should create an instance of AggregationResponseStats' do diff --git a/client/spec/models/aggregation_value_spec.rb b/client/spec/models/aggregation_value_spec.rb index 66d6b47..5914d59 100644 --- a/client/spec/models/aggregation_value_spec.rb +++ b/client/spec/models/aggregation_value_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AggregationValue do - let(:instance) { FastCommentsClient::AggregationValue.new } + #let(:instance) { FastCommentsClient::AggregationValue.new } describe 'test an instance of AggregationValue' do it 'should create an instance of AggregationValue' do diff --git a/client/spec/models/api_audit_log_spec.rb b/client/spec/models/api_audit_log_spec.rb index f85a13c..8b1e198 100644 --- a/client/spec/models/api_audit_log_spec.rb +++ b/client/spec/models/api_audit_log_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIAuditLog do - let(:instance) { FastCommentsClient::APIAuditLog.new } + #let(:instance) { FastCommentsClient::APIAuditLog.new } describe 'test an instance of APIAuditLog' do it 'should create an instance of APIAuditLog' do diff --git a/client/spec/models/api_ban_user_change_log_spec.rb b/client/spec/models/api_ban_user_change_log_spec.rb index 65cc5ae..ffd83cb 100644 --- a/client/spec/models/api_ban_user_change_log_spec.rb +++ b/client/spec/models/api_ban_user_change_log_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIBanUserChangeLog do - let(:instance) { FastCommentsClient::APIBanUserChangeLog.new } + #let(:instance) { FastCommentsClient::APIBanUserChangeLog.new } describe 'test an instance of APIBanUserChangeLog' do it 'should create an instance of APIBanUserChangeLog' do diff --git a/client/spec/models/api_ban_user_changed_values_spec.rb b/client/spec/models/api_ban_user_changed_values_spec.rb index 41e00a0..f6816a6 100644 --- a/client/spec/models/api_ban_user_changed_values_spec.rb +++ b/client/spec/models/api_ban_user_changed_values_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIBanUserChangedValues do - let(:instance) { FastCommentsClient::APIBanUserChangedValues.new } + #let(:instance) { FastCommentsClient::APIBanUserChangedValues.new } describe 'test an instance of APIBanUserChangedValues' do it 'should create an instance of APIBanUserChangedValues' do diff --git a/client/spec/models/api_banned_user_spec.rb b/client/spec/models/api_banned_user_spec.rb index 8c9bcdd..0fba102 100644 --- a/client/spec/models/api_banned_user_spec.rb +++ b/client/spec/models/api_banned_user_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIBannedUser do - let(:instance) { FastCommentsClient::APIBannedUser.new } + #let(:instance) { FastCommentsClient::APIBannedUser.new } describe 'test an instance of APIBannedUser' do it 'should create an instance of APIBannedUser' do diff --git a/client/spec/models/api_banned_user_with_multi_match_info_spec.rb b/client/spec/models/api_banned_user_with_multi_match_info_spec.rb index 994caae..ffde72b 100644 --- a/client/spec/models/api_banned_user_with_multi_match_info_spec.rb +++ b/client/spec/models/api_banned_user_with_multi_match_info_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIBannedUserWithMultiMatchInfo do - let(:instance) { FastCommentsClient::APIBannedUserWithMultiMatchInfo.new } + #let(:instance) { FastCommentsClient::APIBannedUserWithMultiMatchInfo.new } describe 'test an instance of APIBannedUserWithMultiMatchInfo' do it 'should create an instance of APIBannedUserWithMultiMatchInfo' do diff --git a/client/spec/models/api_comment_base_meta_spec.rb b/client/spec/models/api_comment_base_meta_spec.rb index 4902966..d5702cc 100644 --- a/client/spec/models/api_comment_base_meta_spec.rb +++ b/client/spec/models/api_comment_base_meta_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APICommentBaseMeta do - let(:instance) { FastCommentsClient::APICommentBaseMeta.new } + #let(:instance) { FastCommentsClient::APICommentBaseMeta.new } describe 'test an instance of APICommentBaseMeta' do it 'should create an instance of APICommentBaseMeta' do diff --git a/client/spec/models/api_comment_base_spec.rb b/client/spec/models/api_comment_base_spec.rb index bb3d305..c273495 100644 --- a/client/spec/models/api_comment_base_spec.rb +++ b/client/spec/models/api_comment_base_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APICommentBase do - let(:instance) { FastCommentsClient::APICommentBase.new } + #let(:instance) { FastCommentsClient::APICommentBase.new } describe 'test an instance of APICommentBase' do it 'should create an instance of APICommentBase' do diff --git a/client/spec/models/api_comment_common_banned_user_spec.rb b/client/spec/models/api_comment_common_banned_user_spec.rb index 0b6381c..950c024 100644 --- a/client/spec/models/api_comment_common_banned_user_spec.rb +++ b/client/spec/models/api_comment_common_banned_user_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APICommentCommonBannedUser do - let(:instance) { FastCommentsClient::APICommentCommonBannedUser.new } + #let(:instance) { FastCommentsClient::APICommentCommonBannedUser.new } describe 'test an instance of APICommentCommonBannedUser' do it 'should create an instance of APICommentCommonBannedUser' do diff --git a/client/spec/models/api_comment_spec.rb b/client/spec/models/api_comment_spec.rb index ebe10ae..9b4bafa 100644 --- a/client/spec/models/api_comment_spec.rb +++ b/client/spec/models/api_comment_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIComment do - let(:instance) { FastCommentsClient::APIComment.new } + #let(:instance) { FastCommentsClient::APIComment.new } describe 'test an instance of APIComment' do it 'should create an instance of APIComment' do diff --git a/client/spec/models/api_create_user_badge_response_spec.rb b/client/spec/models/api_create_user_badge_response_spec.rb index 49c46f6..da06a64 100644 --- a/client/spec/models/api_create_user_badge_response_spec.rb +++ b/client/spec/models/api_create_user_badge_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APICreateUserBadgeResponse do - let(:instance) { FastCommentsClient::APICreateUserBadgeResponse.new } + #let(:instance) { FastCommentsClient::APICreateUserBadgeResponse.new } describe 'test an instance of APICreateUserBadgeResponse' do it 'should create an instance of APICreateUserBadgeResponse' do diff --git a/client/spec/models/api_domain_configuration_spec.rb b/client/spec/models/api_domain_configuration_spec.rb index 1ed3516..5978f7c 100644 --- a/client/spec/models/api_domain_configuration_spec.rb +++ b/client/spec/models/api_domain_configuration_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIDomainConfiguration do - let(:instance) { FastCommentsClient::APIDomainConfiguration.new } + #let(:instance) { FastCommentsClient::APIDomainConfiguration.new } describe 'test an instance of APIDomainConfiguration' do it 'should create an instance of APIDomainConfiguration' do diff --git a/client/spec/models/api_empty_response_spec.rb b/client/spec/models/api_empty_response_spec.rb index 32f88a3..63e5b2f 100644 --- a/client/spec/models/api_empty_response_spec.rb +++ b/client/spec/models/api_empty_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIEmptyResponse do - let(:instance) { FastCommentsClient::APIEmptyResponse.new } + #let(:instance) { FastCommentsClient::APIEmptyResponse.new } describe 'test an instance of APIEmptyResponse' do it 'should create an instance of APIEmptyResponse' do diff --git a/client/spec/models/api_empty_success_response_spec.rb b/client/spec/models/api_empty_success_response_spec.rb index b2567ec..413bc02 100644 --- a/client/spec/models/api_empty_success_response_spec.rb +++ b/client/spec/models/api_empty_success_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIEmptySuccessResponse do - let(:instance) { FastCommentsClient::APIEmptySuccessResponse.new } + #let(:instance) { FastCommentsClient::APIEmptySuccessResponse.new } describe 'test an instance of APIEmptySuccessResponse' do it 'should create an instance of APIEmptySuccessResponse' do diff --git a/client/spec/models/api_error_spec.rb b/client/spec/models/api_error_spec.rb index 5f92242..3a005d4 100644 --- a/client/spec/models/api_error_spec.rb +++ b/client/spec/models/api_error_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIError do - let(:instance) { FastCommentsClient::APIError.new } + #let(:instance) { FastCommentsClient::APIError.new } describe 'test an instance of APIError' do it 'should create an instance of APIError' do diff --git a/client/spec/models/api_get_comment_response_spec.rb b/client/spec/models/api_get_comment_response_spec.rb index a2ce65c..c46ad54 100644 --- a/client/spec/models/api_get_comment_response_spec.rb +++ b/client/spec/models/api_get_comment_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIGetCommentResponse do - let(:instance) { FastCommentsClient::APIGetCommentResponse.new } + #let(:instance) { FastCommentsClient::APIGetCommentResponse.new } describe 'test an instance of APIGetCommentResponse' do it 'should create an instance of APIGetCommentResponse' do diff --git a/client/spec/models/api_get_comments_response_spec.rb b/client/spec/models/api_get_comments_response_spec.rb index e3856cd..fa1319b 100644 --- a/client/spec/models/api_get_comments_response_spec.rb +++ b/client/spec/models/api_get_comments_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIGetCommentsResponse do - let(:instance) { FastCommentsClient::APIGetCommentsResponse.new } + #let(:instance) { FastCommentsClient::APIGetCommentsResponse.new } describe 'test an instance of APIGetCommentsResponse' do it 'should create an instance of APIGetCommentsResponse' do diff --git a/client/spec/models/api_get_user_badge_progress_list_response_spec.rb b/client/spec/models/api_get_user_badge_progress_list_response_spec.rb index f5cd733..2fe72a0 100644 --- a/client/spec/models/api_get_user_badge_progress_list_response_spec.rb +++ b/client/spec/models/api_get_user_badge_progress_list_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIGetUserBadgeProgressListResponse do - let(:instance) { FastCommentsClient::APIGetUserBadgeProgressListResponse.new } + #let(:instance) { FastCommentsClient::APIGetUserBadgeProgressListResponse.new } describe 'test an instance of APIGetUserBadgeProgressListResponse' do it 'should create an instance of APIGetUserBadgeProgressListResponse' do diff --git a/client/spec/models/api_get_user_badge_progress_response_spec.rb b/client/spec/models/api_get_user_badge_progress_response_spec.rb index 781343e..9a0a6ab 100644 --- a/client/spec/models/api_get_user_badge_progress_response_spec.rb +++ b/client/spec/models/api_get_user_badge_progress_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIGetUserBadgeProgressResponse do - let(:instance) { FastCommentsClient::APIGetUserBadgeProgressResponse.new } + #let(:instance) { FastCommentsClient::APIGetUserBadgeProgressResponse.new } describe 'test an instance of APIGetUserBadgeProgressResponse' do it 'should create an instance of APIGetUserBadgeProgressResponse' do diff --git a/client/spec/models/api_get_user_badge_response_spec.rb b/client/spec/models/api_get_user_badge_response_spec.rb index 0591d62..69e3fcc 100644 --- a/client/spec/models/api_get_user_badge_response_spec.rb +++ b/client/spec/models/api_get_user_badge_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIGetUserBadgeResponse do - let(:instance) { FastCommentsClient::APIGetUserBadgeResponse.new } + #let(:instance) { FastCommentsClient::APIGetUserBadgeResponse.new } describe 'test an instance of APIGetUserBadgeResponse' do it 'should create an instance of APIGetUserBadgeResponse' do diff --git a/client/spec/models/api_get_user_badges_response_spec.rb b/client/spec/models/api_get_user_badges_response_spec.rb index 69934b7..ccb4629 100644 --- a/client/spec/models/api_get_user_badges_response_spec.rb +++ b/client/spec/models/api_get_user_badges_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIGetUserBadgesResponse do - let(:instance) { FastCommentsClient::APIGetUserBadgesResponse.new } + #let(:instance) { FastCommentsClient::APIGetUserBadgesResponse.new } describe 'test an instance of APIGetUserBadgesResponse' do it 'should create an instance of APIGetUserBadgesResponse' do diff --git a/client/spec/models/api_moderate_get_user_ban_preferences_response_spec.rb b/client/spec/models/api_moderate_get_user_ban_preferences_response_spec.rb index 6e89b2f..de4ef71 100644 --- a/client/spec/models/api_moderate_get_user_ban_preferences_response_spec.rb +++ b/client/spec/models/api_moderate_get_user_ban_preferences_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIModerateGetUserBanPreferencesResponse do - let(:instance) { FastCommentsClient::APIModerateGetUserBanPreferencesResponse.new } + #let(:instance) { FastCommentsClient::APIModerateGetUserBanPreferencesResponse.new } describe 'test an instance of APIModerateGetUserBanPreferencesResponse' do it 'should create an instance of APIModerateGetUserBanPreferencesResponse' do diff --git a/client/spec/models/api_moderate_user_ban_preferences_spec.rb b/client/spec/models/api_moderate_user_ban_preferences_spec.rb index 2d80fc4..cd0a3cb 100644 --- a/client/spec/models/api_moderate_user_ban_preferences_spec.rb +++ b/client/spec/models/api_moderate_user_ban_preferences_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIModerateUserBanPreferences do - let(:instance) { FastCommentsClient::APIModerateUserBanPreferences.new } + #let(:instance) { FastCommentsClient::APIModerateUserBanPreferences.new } describe 'test an instance of APIModerateUserBanPreferences' do it 'should create an instance of APIModerateUserBanPreferences' do diff --git a/client/spec/models/api_page_spec.rb b/client/spec/models/api_page_spec.rb index f7b6e78..d6c2af0 100644 --- a/client/spec/models/api_page_spec.rb +++ b/client/spec/models/api_page_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIPage do - let(:instance) { FastCommentsClient::APIPage.new } + #let(:instance) { FastCommentsClient::APIPage.new } describe 'test an instance of APIPage' do it 'should create an instance of APIPage' do diff --git a/client/spec/models/api_save_comment_response_spec.rb b/client/spec/models/api_save_comment_response_spec.rb index 608e25c..fa149f7 100644 --- a/client/spec/models/api_save_comment_response_spec.rb +++ b/client/spec/models/api_save_comment_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APISaveCommentResponse do - let(:instance) { FastCommentsClient::APISaveCommentResponse.new } + #let(:instance) { FastCommentsClient::APISaveCommentResponse.new } describe 'test an instance of APISaveCommentResponse' do it 'should create an instance of APISaveCommentResponse' do diff --git a/client/spec/models/api_status_spec.rb b/client/spec/models/api_status_spec.rb index fee71ab..f093e0c 100644 --- a/client/spec/models/api_status_spec.rb +++ b/client/spec/models/api_status_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIStatus do - let(:instance) { FastCommentsClient::APIStatus.new } + #let(:instance) { FastCommentsClient::APIStatus.new } describe 'test an instance of APIStatus' do it 'should create an instance of APIStatus' do diff --git a/client/spec/models/api_tenant_daily_usage_spec.rb b/client/spec/models/api_tenant_daily_usage_spec.rb index 63489c4..d46fe15 100644 --- a/client/spec/models/api_tenant_daily_usage_spec.rb +++ b/client/spec/models/api_tenant_daily_usage_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APITenantDailyUsage do - let(:instance) { FastCommentsClient::APITenantDailyUsage.new } + #let(:instance) { FastCommentsClient::APITenantDailyUsage.new } describe 'test an instance of APITenantDailyUsage' do it 'should create an instance of APITenantDailyUsage' do diff --git a/client/spec/models/api_tenant_spec.rb b/client/spec/models/api_tenant_spec.rb index 7e6bba3..b16a61d 100644 --- a/client/spec/models/api_tenant_spec.rb +++ b/client/spec/models/api_tenant_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APITenant do - let(:instance) { FastCommentsClient::APITenant.new } + #let(:instance) { FastCommentsClient::APITenant.new } describe 'test an instance of APITenant' do it 'should create an instance of APITenant' do diff --git a/client/spec/models/api_ticket_detail_spec.rb b/client/spec/models/api_ticket_detail_spec.rb index df14d89..661c175 100644 --- a/client/spec/models/api_ticket_detail_spec.rb +++ b/client/spec/models/api_ticket_detail_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APITicketDetail do - let(:instance) { FastCommentsClient::APITicketDetail.new } + #let(:instance) { FastCommentsClient::APITicketDetail.new } describe 'test an instance of APITicketDetail' do it 'should create an instance of APITicketDetail' do diff --git a/client/spec/models/api_ticket_file_spec.rb b/client/spec/models/api_ticket_file_spec.rb index f79deca..efea5c6 100644 --- a/client/spec/models/api_ticket_file_spec.rb +++ b/client/spec/models/api_ticket_file_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APITicketFile do - let(:instance) { FastCommentsClient::APITicketFile.new } + #let(:instance) { FastCommentsClient::APITicketFile.new } describe 'test an instance of APITicketFile' do it 'should create an instance of APITicketFile' do diff --git a/client/spec/models/api_ticket_spec.rb b/client/spec/models/api_ticket_spec.rb index b79ba86..edf740b 100644 --- a/client/spec/models/api_ticket_spec.rb +++ b/client/spec/models/api_ticket_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APITicket do - let(:instance) { FastCommentsClient::APITicket.new } + #let(:instance) { FastCommentsClient::APITicket.new } describe 'test an instance of APITicket' do it 'should create an instance of APITicket' do diff --git a/client/spec/models/api_user_subscription_spec.rb b/client/spec/models/api_user_subscription_spec.rb index 8dbf0d8..7e929db 100644 --- a/client/spec/models/api_user_subscription_spec.rb +++ b/client/spec/models/api_user_subscription_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIUserSubscription do - let(:instance) { FastCommentsClient::APIUserSubscription.new } + #let(:instance) { FastCommentsClient::APIUserSubscription.new } describe 'test an instance of APIUserSubscription' do it 'should create an instance of APIUserSubscription' do diff --git a/client/spec/models/apisso_user_spec.rb b/client/spec/models/apisso_user_spec.rb index 53e6109..deacb72 100644 --- a/client/spec/models/apisso_user_spec.rb +++ b/client/spec/models/apisso_user_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APISSOUser do - let(:instance) { FastCommentsClient::APISSOUser.new } + #let(:instance) { FastCommentsClient::APISSOUser.new } describe 'test an instance of APISSOUser' do it 'should create an instance of APISSOUser' do diff --git a/client/spec/models/award_user_badge_response_spec.rb b/client/spec/models/award_user_badge_response_spec.rb index 6ce0f11..93fc99f 100644 --- a/client/spec/models/award_user_badge_response_spec.rb +++ b/client/spec/models/award_user_badge_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AwardUserBadgeResponse do - let(:instance) { FastCommentsClient::AwardUserBadgeResponse.new } + #let(:instance) { FastCommentsClient::AwardUserBadgeResponse.new } describe 'test an instance of AwardUserBadgeResponse' do it 'should create an instance of AwardUserBadgeResponse' do diff --git a/client/spec/models/ban_user_from_comment_result_spec.rb b/client/spec/models/ban_user_from_comment_result_spec.rb index febd5ee..3672ed7 100644 --- a/client/spec/models/ban_user_from_comment_result_spec.rb +++ b/client/spec/models/ban_user_from_comment_result_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BanUserFromCommentResult do - let(:instance) { FastCommentsClient::BanUserFromCommentResult.new } + #let(:instance) { FastCommentsClient::BanUserFromCommentResult.new } describe 'test an instance of BanUserFromCommentResult' do it 'should create an instance of BanUserFromCommentResult' do diff --git a/client/spec/models/ban_user_undo_params_spec.rb b/client/spec/models/ban_user_undo_params_spec.rb index 253647c..8304f1a 100644 --- a/client/spec/models/ban_user_undo_params_spec.rb +++ b/client/spec/models/ban_user_undo_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BanUserUndoParams do - let(:instance) { FastCommentsClient::BanUserUndoParams.new } + #let(:instance) { FastCommentsClient::BanUserUndoParams.new } describe 'test an instance of BanUserUndoParams' do it 'should create an instance of BanUserUndoParams' do diff --git a/client/spec/models/banned_user_match_matched_on_value_spec.rb b/client/spec/models/banned_user_match_matched_on_value_spec.rb index 1d2ccac..b8ab241 100644 --- a/client/spec/models/banned_user_match_matched_on_value_spec.rb +++ b/client/spec/models/banned_user_match_matched_on_value_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/banned_user_match_spec.rb b/client/spec/models/banned_user_match_spec.rb index 6c94f6d..c1080c8 100644 --- a/client/spec/models/banned_user_match_spec.rb +++ b/client/spec/models/banned_user_match_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BannedUserMatch do - let(:instance) { FastCommentsClient::BannedUserMatch.new } + #let(:instance) { FastCommentsClient::BannedUserMatch.new } describe 'test an instance of BannedUserMatch' do it 'should create an instance of BannedUserMatch' do diff --git a/client/spec/models/banned_user_match_type_spec.rb b/client/spec/models/banned_user_match_type_spec.rb index 4356abc..6534eb1 100644 --- a/client/spec/models/banned_user_match_type_spec.rb +++ b/client/spec/models/banned_user_match_type_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BannedUserMatchType do - let(:instance) { FastCommentsClient::BannedUserMatchType.new } + #let(:instance) { FastCommentsClient::BannedUserMatchType.new } describe 'test an instance of BannedUserMatchType' do it 'should create an instance of BannedUserMatchType' do diff --git a/client/spec/models/billing_info_spec.rb b/client/spec/models/billing_info_spec.rb index 1aeb5d3..16f3e98 100644 --- a/client/spec/models/billing_info_spec.rb +++ b/client/spec/models/billing_info_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BillingInfo do - let(:instance) { FastCommentsClient::BillingInfo.new } + #let(:instance) { FastCommentsClient::BillingInfo.new } describe 'test an instance of BillingInfo' do it 'should create an instance of BillingInfo' do diff --git a/client/spec/models/block_from_comment_params_spec.rb b/client/spec/models/block_from_comment_params_spec.rb index 399e993..c215ba3 100644 --- a/client/spec/models/block_from_comment_params_spec.rb +++ b/client/spec/models/block_from_comment_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BlockFromCommentParams do - let(:instance) { FastCommentsClient::BlockFromCommentParams.new } + #let(:instance) { FastCommentsClient::BlockFromCommentParams.new } describe 'test an instance of BlockFromCommentParams' do it 'should create an instance of BlockFromCommentParams' do diff --git a/client/spec/models/block_from_comment_public_response_spec.rb b/client/spec/models/block_from_comment_public_response_spec.rb new file mode 100644 index 0000000..8d9b8f1 --- /dev/null +++ b/client/spec/models/block_from_comment_public_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::BlockFromCommentPublicResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::BlockFromCommentPublicResponse do +end diff --git a/client/spec/models/block_success_spec.rb b/client/spec/models/block_success_spec.rb index 1abc8c1..f073c5f 100644 --- a/client/spec/models/block_success_spec.rb +++ b/client/spec/models/block_success_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BlockSuccess do - let(:instance) { FastCommentsClient::BlockSuccess.new } + #let(:instance) { FastCommentsClient::BlockSuccess.new } describe 'test an instance of BlockSuccess' do it 'should create an instance of BlockSuccess' do diff --git a/client/spec/models/block_user_from_comment_response_spec.rb b/client/spec/models/block_user_from_comment_response_spec.rb new file mode 100644 index 0000000..4dbef88 --- /dev/null +++ b/client/spec/models/block_user_from_comment_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::BlockUserFromCommentResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::BlockUserFromCommentResponse do +end diff --git a/client/spec/models/build_moderation_filter_params_spec.rb b/client/spec/models/build_moderation_filter_params_spec.rb index 1e3aaa1..832f8e1 100644 --- a/client/spec/models/build_moderation_filter_params_spec.rb +++ b/client/spec/models/build_moderation_filter_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BuildModerationFilterParams do - let(:instance) { FastCommentsClient::BuildModerationFilterParams.new } + #let(:instance) { FastCommentsClient::BuildModerationFilterParams.new } describe 'test an instance of BuildModerationFilterParams' do it 'should create an instance of BuildModerationFilterParams' do diff --git a/client/spec/models/build_moderation_filter_response_spec.rb b/client/spec/models/build_moderation_filter_response_spec.rb index a42cec1..0257791 100644 --- a/client/spec/models/build_moderation_filter_response_spec.rb +++ b/client/spec/models/build_moderation_filter_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BuildModerationFilterResponse do - let(:instance) { FastCommentsClient::BuildModerationFilterResponse.new } + #let(:instance) { FastCommentsClient::BuildModerationFilterResponse.new } describe 'test an instance of BuildModerationFilterResponse' do it 'should create an instance of BuildModerationFilterResponse' do diff --git a/client/spec/models/bulk_aggregate_question_item_spec.rb b/client/spec/models/bulk_aggregate_question_item_spec.rb index bfce5de..5ef9537 100644 --- a/client/spec/models/bulk_aggregate_question_item_spec.rb +++ b/client/spec/models/bulk_aggregate_question_item_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BulkAggregateQuestionItem do - let(:instance) { FastCommentsClient::BulkAggregateQuestionItem.new } + #let(:instance) { FastCommentsClient::BulkAggregateQuestionItem.new } describe 'test an instance of BulkAggregateQuestionItem' do it 'should create an instance of BulkAggregateQuestionItem' do diff --git a/client/spec/models/bulk_aggregate_question_results_request_spec.rb b/client/spec/models/bulk_aggregate_question_results_request_spec.rb index c4779df..5c7fdd8 100644 --- a/client/spec/models/bulk_aggregate_question_results_request_spec.rb +++ b/client/spec/models/bulk_aggregate_question_results_request_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BulkAggregateQuestionResultsRequest do - let(:instance) { FastCommentsClient::BulkAggregateQuestionResultsRequest.new } + #let(:instance) { FastCommentsClient::BulkAggregateQuestionResultsRequest.new } describe 'test an instance of BulkAggregateQuestionResultsRequest' do it 'should create an instance of BulkAggregateQuestionResultsRequest' do diff --git a/client/spec/models/bulk_aggregate_question_results_response1_spec.rb b/client/spec/models/bulk_aggregate_question_results_response1_spec.rb new file mode 100644 index 0000000..92792ee --- /dev/null +++ b/client/spec/models/bulk_aggregate_question_results_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::BulkAggregateQuestionResultsResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::BulkAggregateQuestionResultsResponse1 do +end diff --git a/client/spec/models/bulk_aggregate_question_results_response_spec.rb b/client/spec/models/bulk_aggregate_question_results_response_spec.rb index b507cbe..1b385ae 100644 --- a/client/spec/models/bulk_aggregate_question_results_response_spec.rb +++ b/client/spec/models/bulk_aggregate_question_results_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BulkAggregateQuestionResultsResponse do - let(:instance) { FastCommentsClient::BulkAggregateQuestionResultsResponse.new } + #let(:instance) { FastCommentsClient::BulkAggregateQuestionResultsResponse.new } describe 'test an instance of BulkAggregateQuestionResultsResponse' do it 'should create an instance of BulkAggregateQuestionResultsResponse' do diff --git a/client/spec/models/bulk_create_hash_tags_body_spec.rb b/client/spec/models/bulk_create_hash_tags_body_spec.rb index b525e0e..8821a44 100644 --- a/client/spec/models/bulk_create_hash_tags_body_spec.rb +++ b/client/spec/models/bulk_create_hash_tags_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BulkCreateHashTagsBody do - let(:instance) { FastCommentsClient::BulkCreateHashTagsBody.new } + #let(:instance) { FastCommentsClient::BulkCreateHashTagsBody.new } describe 'test an instance of BulkCreateHashTagsBody' do it 'should create an instance of BulkCreateHashTagsBody' do diff --git a/client/spec/models/bulk_create_hash_tags_body_tags_inner_spec.rb b/client/spec/models/bulk_create_hash_tags_body_tags_inner_spec.rb index aaf5cd0..a8b2654 100644 --- a/client/spec/models/bulk_create_hash_tags_body_tags_inner_spec.rb +++ b/client/spec/models/bulk_create_hash_tags_body_tags_inner_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BulkCreateHashTagsBodyTagsInner do - let(:instance) { FastCommentsClient::BulkCreateHashTagsBodyTagsInner.new } + #let(:instance) { FastCommentsClient::BulkCreateHashTagsBodyTagsInner.new } describe 'test an instance of BulkCreateHashTagsBodyTagsInner' do it 'should create an instance of BulkCreateHashTagsBodyTagsInner' do diff --git a/client/spec/models/bulk_create_hash_tags_response_results_inner_spec.rb b/client/spec/models/bulk_create_hash_tags_response_results_inner_spec.rb index 5e813d0..5dc8f62 100644 --- a/client/spec/models/bulk_create_hash_tags_response_results_inner_spec.rb +++ b/client/spec/models/bulk_create_hash_tags_response_results_inner_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/bulk_create_hash_tags_response_spec.rb b/client/spec/models/bulk_create_hash_tags_response_spec.rb index 7e0b3bf..4845c83 100644 --- a/client/spec/models/bulk_create_hash_tags_response_spec.rb +++ b/client/spec/models/bulk_create_hash_tags_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BulkCreateHashTagsResponse do - let(:instance) { FastCommentsClient::BulkCreateHashTagsResponse.new } + #let(:instance) { FastCommentsClient::BulkCreateHashTagsResponse.new } describe 'test an instance of BulkCreateHashTagsResponse' do it 'should create an instance of BulkCreateHashTagsResponse' do diff --git a/client/spec/models/bulk_pre_ban_params_spec.rb b/client/spec/models/bulk_pre_ban_params_spec.rb index 33ba4a7..a78b2d7 100644 --- a/client/spec/models/bulk_pre_ban_params_spec.rb +++ b/client/spec/models/bulk_pre_ban_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BulkPreBanParams do - let(:instance) { FastCommentsClient::BulkPreBanParams.new } + #let(:instance) { FastCommentsClient::BulkPreBanParams.new } describe 'test an instance of BulkPreBanParams' do it 'should create an instance of BulkPreBanParams' do diff --git a/client/spec/models/bulk_pre_ban_summary_spec.rb b/client/spec/models/bulk_pre_ban_summary_spec.rb index 502ada5..b545ba1 100644 --- a/client/spec/models/bulk_pre_ban_summary_spec.rb +++ b/client/spec/models/bulk_pre_ban_summary_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BulkPreBanSummary do - let(:instance) { FastCommentsClient::BulkPreBanSummary.new } + #let(:instance) { FastCommentsClient::BulkPreBanSummary.new } describe 'test an instance of BulkPreBanSummary' do it 'should create an instance of BulkPreBanSummary' do diff --git a/client/spec/models/change_comment_pin_status_response_spec.rb b/client/spec/models/change_comment_pin_status_response_spec.rb index a6aef85..44a6da6 100644 --- a/client/spec/models/change_comment_pin_status_response_spec.rb +++ b/client/spec/models/change_comment_pin_status_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ChangeCommentPinStatusResponse do - let(:instance) { FastCommentsClient::ChangeCommentPinStatusResponse.new } + #let(:instance) { FastCommentsClient::ChangeCommentPinStatusResponse.new } describe 'test an instance of ChangeCommentPinStatusResponse' do it 'should create an instance of ChangeCommentPinStatusResponse' do diff --git a/client/spec/models/change_ticket_state_body_spec.rb b/client/spec/models/change_ticket_state_body_spec.rb index 3505291..02e5667 100644 --- a/client/spec/models/change_ticket_state_body_spec.rb +++ b/client/spec/models/change_ticket_state_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ChangeTicketStateBody do - let(:instance) { FastCommentsClient::ChangeTicketStateBody.new } + #let(:instance) { FastCommentsClient::ChangeTicketStateBody.new } describe 'test an instance of ChangeTicketStateBody' do it 'should create an instance of ChangeTicketStateBody' do diff --git a/client/spec/models/change_ticket_state_response1_spec.rb b/client/spec/models/change_ticket_state_response1_spec.rb new file mode 100644 index 0000000..b944a29 --- /dev/null +++ b/client/spec/models/change_ticket_state_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::ChangeTicketStateResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::ChangeTicketStateResponse1 do +end diff --git a/client/spec/models/change_ticket_state_response_spec.rb b/client/spec/models/change_ticket_state_response_spec.rb index 8a3a875..a0bccce 100644 --- a/client/spec/models/change_ticket_state_response_spec.rb +++ b/client/spec/models/change_ticket_state_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ChangeTicketStateResponse do - let(:instance) { FastCommentsClient::ChangeTicketStateResponse.new } + #let(:instance) { FastCommentsClient::ChangeTicketStateResponse.new } describe 'test an instance of ChangeTicketStateResponse' do it 'should create an instance of ChangeTicketStateResponse' do diff --git a/client/spec/models/check_blocked_comments_response_spec.rb b/client/spec/models/check_blocked_comments_response_spec.rb index 2bd65c5..e37a936 100644 --- a/client/spec/models/check_blocked_comments_response_spec.rb +++ b/client/spec/models/check_blocked_comments_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CheckBlockedCommentsResponse do - let(:instance) { FastCommentsClient::CheckBlockedCommentsResponse.new } + #let(:instance) { FastCommentsClient::CheckBlockedCommentsResponse.new } describe 'test an instance of CheckBlockedCommentsResponse' do it 'should create an instance of CheckBlockedCommentsResponse' do diff --git a/client/spec/models/checked_comments_for_blocked_response_spec.rb b/client/spec/models/checked_comments_for_blocked_response_spec.rb new file mode 100644 index 0000000..7968d00 --- /dev/null +++ b/client/spec/models/checked_comments_for_blocked_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CheckedCommentsForBlockedResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CheckedCommentsForBlockedResponse do +end diff --git a/client/spec/models/combine_comments_with_question_results_response_spec.rb b/client/spec/models/combine_comments_with_question_results_response_spec.rb new file mode 100644 index 0000000..fc62d95 --- /dev/null +++ b/client/spec/models/combine_comments_with_question_results_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CombineCommentsWithQuestionResultsResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CombineCommentsWithQuestionResultsResponse do +end diff --git a/client/spec/models/combine_question_results_with_comments_response_spec.rb b/client/spec/models/combine_question_results_with_comments_response_spec.rb index b108e90..6b34a6b 100644 --- a/client/spec/models/combine_question_results_with_comments_response_spec.rb +++ b/client/spec/models/combine_question_results_with_comments_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CombineQuestionResultsWithCommentsResponse do - let(:instance) { FastCommentsClient::CombineQuestionResultsWithCommentsResponse.new } + #let(:instance) { FastCommentsClient::CombineQuestionResultsWithCommentsResponse.new } describe 'test an instance of CombineQuestionResultsWithCommentsResponse' do it 'should create an instance of CombineQuestionResultsWithCommentsResponse' do diff --git a/client/spec/models/comment_data_spec.rb b/client/spec/models/comment_data_spec.rb index 3d2320d..ef98472 100644 --- a/client/spec/models/comment_data_spec.rb +++ b/client/spec/models/comment_data_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommentData do - let(:instance) { FastCommentsClient::CommentData.new } + #let(:instance) { FastCommentsClient::CommentData.new } describe 'test an instance of CommentData' do it 'should create an instance of CommentData' do diff --git a/client/spec/models/comment_html_rendering_mode_spec.rb b/client/spec/models/comment_html_rendering_mode_spec.rb index cff018b..1b0f088 100644 --- a/client/spec/models/comment_html_rendering_mode_spec.rb +++ b/client/spec/models/comment_html_rendering_mode_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommentHTMLRenderingMode do - let(:instance) { FastCommentsClient::CommentHTMLRenderingMode.new } + #let(:instance) { FastCommentsClient::CommentHTMLRenderingMode.new } describe 'test an instance of CommentHTMLRenderingMode' do it 'should create an instance of CommentHTMLRenderingMode' do diff --git a/client/spec/models/comment_log_data_spec.rb b/client/spec/models/comment_log_data_spec.rb index d5819e9..05f3b98 100644 --- a/client/spec/models/comment_log_data_spec.rb +++ b/client/spec/models/comment_log_data_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommentLogData do - let(:instance) { FastCommentsClient::CommentLogData.new } + #let(:instance) { FastCommentsClient::CommentLogData.new } describe 'test an instance of CommentLogData' do it 'should create an instance of CommentLogData' do diff --git a/client/spec/models/comment_log_entry_spec.rb b/client/spec/models/comment_log_entry_spec.rb index a320e8b..f3743ed 100644 --- a/client/spec/models/comment_log_entry_spec.rb +++ b/client/spec/models/comment_log_entry_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommentLogEntry do - let(:instance) { FastCommentsClient::CommentLogEntry.new } + #let(:instance) { FastCommentsClient::CommentLogEntry.new } describe 'test an instance of CommentLogEntry' do it 'should create an instance of CommentLogEntry' do diff --git a/client/spec/models/comment_log_type_spec.rb b/client/spec/models/comment_log_type_spec.rb index ee15d85..fcff6f6 100644 --- a/client/spec/models/comment_log_type_spec.rb +++ b/client/spec/models/comment_log_type_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommentLogType do - let(:instance) { FastCommentsClient::CommentLogType.new } + #let(:instance) { FastCommentsClient::CommentLogType.new } describe 'test an instance of CommentLogType' do it 'should create an instance of CommentLogType' do diff --git a/client/spec/models/comment_question_results_rendering_type_spec.rb b/client/spec/models/comment_question_results_rendering_type_spec.rb index 9daa7ae..68e9eb0 100644 --- a/client/spec/models/comment_question_results_rendering_type_spec.rb +++ b/client/spec/models/comment_question_results_rendering_type_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommentQuestionResultsRenderingType do - let(:instance) { FastCommentsClient::CommentQuestionResultsRenderingType.new } + #let(:instance) { FastCommentsClient::CommentQuestionResultsRenderingType.new } describe 'test an instance of CommentQuestionResultsRenderingType' do it 'should create an instance of CommentQuestionResultsRenderingType' do diff --git a/client/spec/models/comment_questions_required_spec.rb b/client/spec/models/comment_questions_required_spec.rb index 092b8c2..6faf117 100644 --- a/client/spec/models/comment_questions_required_spec.rb +++ b/client/spec/models/comment_questions_required_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommentQuestionsRequired do - let(:instance) { FastCommentsClient::CommentQuestionsRequired.new } + #let(:instance) { FastCommentsClient::CommentQuestionsRequired.new } describe 'test an instance of CommentQuestionsRequired' do it 'should create an instance of CommentQuestionsRequired' do diff --git a/client/spec/models/comment_text_update_request_spec.rb b/client/spec/models/comment_text_update_request_spec.rb index 08c363f..b20d9fe 100644 --- a/client/spec/models/comment_text_update_request_spec.rb +++ b/client/spec/models/comment_text_update_request_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommentTextUpdateRequest do - let(:instance) { FastCommentsClient::CommentTextUpdateRequest.new } + #let(:instance) { FastCommentsClient::CommentTextUpdateRequest.new } describe 'test an instance of CommentTextUpdateRequest' do it 'should create an instance of CommentTextUpdateRequest' do diff --git a/client/spec/models/comment_thread_deletion_mode_spec.rb b/client/spec/models/comment_thread_deletion_mode_spec.rb index ea11dbc..469b505 100644 --- a/client/spec/models/comment_thread_deletion_mode_spec.rb +++ b/client/spec/models/comment_thread_deletion_mode_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommentThreadDeletionMode do - let(:instance) { FastCommentsClient::CommentThreadDeletionMode.new } + #let(:instance) { FastCommentsClient::CommentThreadDeletionMode.new } describe 'test an instance of CommentThreadDeletionMode' do it 'should create an instance of CommentThreadDeletionMode' do diff --git a/client/spec/models/comment_user_badge_info_spec.rb b/client/spec/models/comment_user_badge_info_spec.rb index 7c9a6ef..2582c94 100644 --- a/client/spec/models/comment_user_badge_info_spec.rb +++ b/client/spec/models/comment_user_badge_info_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommentUserBadgeInfo do - let(:instance) { FastCommentsClient::CommentUserBadgeInfo.new } + #let(:instance) { FastCommentsClient::CommentUserBadgeInfo.new } describe 'test an instance of CommentUserBadgeInfo' do it 'should create an instance of CommentUserBadgeInfo' do diff --git a/client/spec/models/comment_user_hash_tag_info_spec.rb b/client/spec/models/comment_user_hash_tag_info_spec.rb index 9765cc4..d00650d 100644 --- a/client/spec/models/comment_user_hash_tag_info_spec.rb +++ b/client/spec/models/comment_user_hash_tag_info_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommentUserHashTagInfo do - let(:instance) { FastCommentsClient::CommentUserHashTagInfo.new } + #let(:instance) { FastCommentsClient::CommentUserHashTagInfo.new } describe 'test an instance of CommentUserHashTagInfo' do it 'should create an instance of CommentUserHashTagInfo' do diff --git a/client/spec/models/comment_user_mention_info_spec.rb b/client/spec/models/comment_user_mention_info_spec.rb index 609c435..aef552e 100644 --- a/client/spec/models/comment_user_mention_info_spec.rb +++ b/client/spec/models/comment_user_mention_info_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommentUserMentionInfo do - let(:instance) { FastCommentsClient::CommentUserMentionInfo.new } + #let(:instance) { FastCommentsClient::CommentUserMentionInfo.new } describe 'test an instance of CommentUserMentionInfo' do it 'should create an instance of CommentUserMentionInfo' do diff --git a/client/spec/models/commenter_name_formats_spec.rb b/client/spec/models/commenter_name_formats_spec.rb index 8167ead..1cabf53 100644 --- a/client/spec/models/commenter_name_formats_spec.rb +++ b/client/spec/models/commenter_name_formats_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommenterNameFormats do - let(:instance) { FastCommentsClient::CommenterNameFormats.new } + #let(:instance) { FastCommentsClient::CommenterNameFormats.new } describe 'test an instance of CommenterNameFormats' do it 'should create an instance of CommenterNameFormats' do diff --git a/client/spec/models/comments_by_ids_params_spec.rb b/client/spec/models/comments_by_ids_params_spec.rb index b0f083b..7024550 100644 --- a/client/spec/models/comments_by_ids_params_spec.rb +++ b/client/spec/models/comments_by_ids_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommentsByIdsParams do - let(:instance) { FastCommentsClient::CommentsByIdsParams.new } + #let(:instance) { FastCommentsClient::CommentsByIdsParams.new } describe 'test an instance of CommentsByIdsParams' do it 'should create an instance of CommentsByIdsParams' do diff --git a/client/spec/models/create_api_page_data_spec.rb b/client/spec/models/create_api_page_data_spec.rb index f38d58f..8913e0c 100644 --- a/client/spec/models/create_api_page_data_spec.rb +++ b/client/spec/models/create_api_page_data_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateAPIPageData do - let(:instance) { FastCommentsClient::CreateAPIPageData.new } + #let(:instance) { FastCommentsClient::CreateAPIPageData.new } describe 'test an instance of CreateAPIPageData' do it 'should create an instance of CreateAPIPageData' do diff --git a/client/spec/models/create_api_user_subscription_data_spec.rb b/client/spec/models/create_api_user_subscription_data_spec.rb index 1a038ea..a9e52bd 100644 --- a/client/spec/models/create_api_user_subscription_data_spec.rb +++ b/client/spec/models/create_api_user_subscription_data_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateAPIUserSubscriptionData do - let(:instance) { FastCommentsClient::CreateAPIUserSubscriptionData.new } + #let(:instance) { FastCommentsClient::CreateAPIUserSubscriptionData.new } describe 'test an instance of CreateAPIUserSubscriptionData' do it 'should create an instance of CreateAPIUserSubscriptionData' do diff --git a/client/spec/models/create_apisso_user_data_spec.rb b/client/spec/models/create_apisso_user_data_spec.rb index 2796ce2..c11b8b8 100644 --- a/client/spec/models/create_apisso_user_data_spec.rb +++ b/client/spec/models/create_apisso_user_data_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateAPISSOUserData do - let(:instance) { FastCommentsClient::CreateAPISSOUserData.new } + #let(:instance) { FastCommentsClient::CreateAPISSOUserData.new } describe 'test an instance of CreateAPISSOUserData' do it 'should create an instance of CreateAPISSOUserData' do diff --git a/client/spec/models/create_comment_params_spec.rb b/client/spec/models/create_comment_params_spec.rb index 603cbad..ff3c628 100644 --- a/client/spec/models/create_comment_params_spec.rb +++ b/client/spec/models/create_comment_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateCommentParams do - let(:instance) { FastCommentsClient::CreateCommentParams.new } + #let(:instance) { FastCommentsClient::CreateCommentParams.new } describe 'test an instance of CreateCommentParams' do it 'should create an instance of CreateCommentParams' do diff --git a/client/spec/models/create_comment_public_response_spec.rb b/client/spec/models/create_comment_public_response_spec.rb new file mode 100644 index 0000000..fc56b6a --- /dev/null +++ b/client/spec/models/create_comment_public_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateCommentPublicResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateCommentPublicResponse do +end diff --git a/client/spec/models/create_email_template_body_spec.rb b/client/spec/models/create_email_template_body_spec.rb index 1b7211c..290b230 100644 --- a/client/spec/models/create_email_template_body_spec.rb +++ b/client/spec/models/create_email_template_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateEmailTemplateBody do - let(:instance) { FastCommentsClient::CreateEmailTemplateBody.new } + #let(:instance) { FastCommentsClient::CreateEmailTemplateBody.new } describe 'test an instance of CreateEmailTemplateBody' do it 'should create an instance of CreateEmailTemplateBody' do diff --git a/client/spec/models/create_email_template_response1_spec.rb b/client/spec/models/create_email_template_response1_spec.rb new file mode 100644 index 0000000..eab8701 --- /dev/null +++ b/client/spec/models/create_email_template_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateEmailTemplateResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateEmailTemplateResponse1 do +end diff --git a/client/spec/models/create_email_template_response_spec.rb b/client/spec/models/create_email_template_response_spec.rb index a32c25f..86967e4 100644 --- a/client/spec/models/create_email_template_response_spec.rb +++ b/client/spec/models/create_email_template_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateEmailTemplateResponse do - let(:instance) { FastCommentsClient::CreateEmailTemplateResponse.new } + #let(:instance) { FastCommentsClient::CreateEmailTemplateResponse.new } describe 'test an instance of CreateEmailTemplateResponse' do it 'should create an instance of CreateEmailTemplateResponse' do diff --git a/client/spec/models/create_feed_post_params_spec.rb b/client/spec/models/create_feed_post_params_spec.rb index 6d7ec00..7460ffd 100644 --- a/client/spec/models/create_feed_post_params_spec.rb +++ b/client/spec/models/create_feed_post_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateFeedPostParams do - let(:instance) { FastCommentsClient::CreateFeedPostParams.new } + #let(:instance) { FastCommentsClient::CreateFeedPostParams.new } describe 'test an instance of CreateFeedPostParams' do it 'should create an instance of CreateFeedPostParams' do diff --git a/client/spec/models/create_feed_post_public_response_spec.rb b/client/spec/models/create_feed_post_public_response_spec.rb new file mode 100644 index 0000000..3f791f7 --- /dev/null +++ b/client/spec/models/create_feed_post_public_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateFeedPostPublicResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateFeedPostPublicResponse do +end diff --git a/client/spec/models/create_feed_post_response1_spec.rb b/client/spec/models/create_feed_post_response1_spec.rb new file mode 100644 index 0000000..77b5aa3 --- /dev/null +++ b/client/spec/models/create_feed_post_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateFeedPostResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateFeedPostResponse1 do +end diff --git a/client/spec/models/create_feed_post_response_spec.rb b/client/spec/models/create_feed_post_response_spec.rb index 94ecbe5..4ada2ca 100644 --- a/client/spec/models/create_feed_post_response_spec.rb +++ b/client/spec/models/create_feed_post_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateFeedPostResponse do - let(:instance) { FastCommentsClient::CreateFeedPostResponse.new } + #let(:instance) { FastCommentsClient::CreateFeedPostResponse.new } describe 'test an instance of CreateFeedPostResponse' do it 'should create an instance of CreateFeedPostResponse' do diff --git a/client/spec/models/create_feed_posts_response_spec.rb b/client/spec/models/create_feed_posts_response_spec.rb index 1a72484..2caf984 100644 --- a/client/spec/models/create_feed_posts_response_spec.rb +++ b/client/spec/models/create_feed_posts_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateFeedPostsResponse do - let(:instance) { FastCommentsClient::CreateFeedPostsResponse.new } + #let(:instance) { FastCommentsClient::CreateFeedPostsResponse.new } describe 'test an instance of CreateFeedPostsResponse' do it 'should create an instance of CreateFeedPostsResponse' do diff --git a/client/spec/models/create_hash_tag_body_spec.rb b/client/spec/models/create_hash_tag_body_spec.rb index 88b5a55..646b84a 100644 --- a/client/spec/models/create_hash_tag_body_spec.rb +++ b/client/spec/models/create_hash_tag_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateHashTagBody do - let(:instance) { FastCommentsClient::CreateHashTagBody.new } + #let(:instance) { FastCommentsClient::CreateHashTagBody.new } describe 'test an instance of CreateHashTagBody' do it 'should create an instance of CreateHashTagBody' do diff --git a/client/spec/models/create_hash_tag_response_spec.rb b/client/spec/models/create_hash_tag_response_spec.rb index b7b9d6f..51e9875 100644 --- a/client/spec/models/create_hash_tag_response_spec.rb +++ b/client/spec/models/create_hash_tag_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateHashTagResponse do - let(:instance) { FastCommentsClient::CreateHashTagResponse.new } + #let(:instance) { FastCommentsClient::CreateHashTagResponse.new } describe 'test an instance of CreateHashTagResponse' do it 'should create an instance of CreateHashTagResponse' do diff --git a/client/spec/models/create_moderator_body_spec.rb b/client/spec/models/create_moderator_body_spec.rb index 8b63005..911ce64 100644 --- a/client/spec/models/create_moderator_body_spec.rb +++ b/client/spec/models/create_moderator_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateModeratorBody do - let(:instance) { FastCommentsClient::CreateModeratorBody.new } + #let(:instance) { FastCommentsClient::CreateModeratorBody.new } describe 'test an instance of CreateModeratorBody' do it 'should create an instance of CreateModeratorBody' do diff --git a/client/spec/models/create_moderator_response1_spec.rb b/client/spec/models/create_moderator_response1_spec.rb new file mode 100644 index 0000000..102b7a0 --- /dev/null +++ b/client/spec/models/create_moderator_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateModeratorResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateModeratorResponse1 do +end diff --git a/client/spec/models/create_moderator_response_spec.rb b/client/spec/models/create_moderator_response_spec.rb index 624adf2..c974913 100644 --- a/client/spec/models/create_moderator_response_spec.rb +++ b/client/spec/models/create_moderator_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateModeratorResponse do - let(:instance) { FastCommentsClient::CreateModeratorResponse.new } + #let(:instance) { FastCommentsClient::CreateModeratorResponse.new } describe 'test an instance of CreateModeratorResponse' do it 'should create an instance of CreateModeratorResponse' do diff --git a/client/spec/models/create_question_config_body_spec.rb b/client/spec/models/create_question_config_body_spec.rb index cc35d1a..1e443a1 100644 --- a/client/spec/models/create_question_config_body_spec.rb +++ b/client/spec/models/create_question_config_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateQuestionConfigBody do - let(:instance) { FastCommentsClient::CreateQuestionConfigBody.new } + #let(:instance) { FastCommentsClient::CreateQuestionConfigBody.new } describe 'test an instance of CreateQuestionConfigBody' do it 'should create an instance of CreateQuestionConfigBody' do diff --git a/client/spec/models/create_question_config_response1_spec.rb b/client/spec/models/create_question_config_response1_spec.rb new file mode 100644 index 0000000..0ebc75d --- /dev/null +++ b/client/spec/models/create_question_config_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateQuestionConfigResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateQuestionConfigResponse1 do +end diff --git a/client/spec/models/create_question_config_response_spec.rb b/client/spec/models/create_question_config_response_spec.rb index f2baf24..da0994e 100644 --- a/client/spec/models/create_question_config_response_spec.rb +++ b/client/spec/models/create_question_config_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateQuestionConfigResponse do - let(:instance) { FastCommentsClient::CreateQuestionConfigResponse.new } + #let(:instance) { FastCommentsClient::CreateQuestionConfigResponse.new } describe 'test an instance of CreateQuestionConfigResponse' do it 'should create an instance of CreateQuestionConfigResponse' do diff --git a/client/spec/models/create_question_result_body_spec.rb b/client/spec/models/create_question_result_body_spec.rb index 985be68..bae6f14 100644 --- a/client/spec/models/create_question_result_body_spec.rb +++ b/client/spec/models/create_question_result_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateQuestionResultBody do - let(:instance) { FastCommentsClient::CreateQuestionResultBody.new } + #let(:instance) { FastCommentsClient::CreateQuestionResultBody.new } describe 'test an instance of CreateQuestionResultBody' do it 'should create an instance of CreateQuestionResultBody' do diff --git a/client/spec/models/create_question_result_response1_spec.rb b/client/spec/models/create_question_result_response1_spec.rb new file mode 100644 index 0000000..ba24ca0 --- /dev/null +++ b/client/spec/models/create_question_result_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateQuestionResultResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateQuestionResultResponse1 do +end diff --git a/client/spec/models/create_question_result_response_spec.rb b/client/spec/models/create_question_result_response_spec.rb index 60290f4..41fbecf 100644 --- a/client/spec/models/create_question_result_response_spec.rb +++ b/client/spec/models/create_question_result_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateQuestionResultResponse do - let(:instance) { FastCommentsClient::CreateQuestionResultResponse.new } + #let(:instance) { FastCommentsClient::CreateQuestionResultResponse.new } describe 'test an instance of CreateQuestionResultResponse' do it 'should create an instance of CreateQuestionResultResponse' do diff --git a/client/spec/models/create_subscription_api_response_spec.rb b/client/spec/models/create_subscription_api_response_spec.rb index 332cac5..34fb5cb 100644 --- a/client/spec/models/create_subscription_api_response_spec.rb +++ b/client/spec/models/create_subscription_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateSubscriptionAPIResponse do - let(:instance) { FastCommentsClient::CreateSubscriptionAPIResponse.new } + #let(:instance) { FastCommentsClient::CreateSubscriptionAPIResponse.new } describe 'test an instance of CreateSubscriptionAPIResponse' do it 'should create an instance of CreateSubscriptionAPIResponse' do diff --git a/client/spec/models/create_tenant_body_spec.rb b/client/spec/models/create_tenant_body_spec.rb index 70cde7d..b487db5 100644 --- a/client/spec/models/create_tenant_body_spec.rb +++ b/client/spec/models/create_tenant_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateTenantBody do - let(:instance) { FastCommentsClient::CreateTenantBody.new } + #let(:instance) { FastCommentsClient::CreateTenantBody.new } describe 'test an instance of CreateTenantBody' do it 'should create an instance of CreateTenantBody' do diff --git a/client/spec/models/create_tenant_package_body_spec.rb b/client/spec/models/create_tenant_package_body_spec.rb index 46ea10a..2e907de 100644 --- a/client/spec/models/create_tenant_package_body_spec.rb +++ b/client/spec/models/create_tenant_package_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateTenantPackageBody do - let(:instance) { FastCommentsClient::CreateTenantPackageBody.new } + #let(:instance) { FastCommentsClient::CreateTenantPackageBody.new } describe 'test an instance of CreateTenantPackageBody' do it 'should create an instance of CreateTenantPackageBody' do diff --git a/client/spec/models/create_tenant_package_response1_spec.rb b/client/spec/models/create_tenant_package_response1_spec.rb new file mode 100644 index 0000000..5f41444 --- /dev/null +++ b/client/spec/models/create_tenant_package_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateTenantPackageResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateTenantPackageResponse1 do +end diff --git a/client/spec/models/create_tenant_package_response_spec.rb b/client/spec/models/create_tenant_package_response_spec.rb index 53ddbb0..761b31c 100644 --- a/client/spec/models/create_tenant_package_response_spec.rb +++ b/client/spec/models/create_tenant_package_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateTenantPackageResponse do - let(:instance) { FastCommentsClient::CreateTenantPackageResponse.new } + #let(:instance) { FastCommentsClient::CreateTenantPackageResponse.new } describe 'test an instance of CreateTenantPackageResponse' do it 'should create an instance of CreateTenantPackageResponse' do diff --git a/client/spec/models/create_tenant_response1_spec.rb b/client/spec/models/create_tenant_response1_spec.rb new file mode 100644 index 0000000..266c7f3 --- /dev/null +++ b/client/spec/models/create_tenant_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateTenantResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateTenantResponse1 do +end diff --git a/client/spec/models/create_tenant_response_spec.rb b/client/spec/models/create_tenant_response_spec.rb index 2c5daba..c9dfc23 100644 --- a/client/spec/models/create_tenant_response_spec.rb +++ b/client/spec/models/create_tenant_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateTenantResponse do - let(:instance) { FastCommentsClient::CreateTenantResponse.new } + #let(:instance) { FastCommentsClient::CreateTenantResponse.new } describe 'test an instance of CreateTenantResponse' do it 'should create an instance of CreateTenantResponse' do diff --git a/client/spec/models/create_tenant_user_body_spec.rb b/client/spec/models/create_tenant_user_body_spec.rb index 0a859be..69fc07f 100644 --- a/client/spec/models/create_tenant_user_body_spec.rb +++ b/client/spec/models/create_tenant_user_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateTenantUserBody do - let(:instance) { FastCommentsClient::CreateTenantUserBody.new } + #let(:instance) { FastCommentsClient::CreateTenantUserBody.new } describe 'test an instance of CreateTenantUserBody' do it 'should create an instance of CreateTenantUserBody' do diff --git a/client/spec/models/create_tenant_user_response1_spec.rb b/client/spec/models/create_tenant_user_response1_spec.rb new file mode 100644 index 0000000..0cd5d10 --- /dev/null +++ b/client/spec/models/create_tenant_user_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateTenantUserResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateTenantUserResponse1 do +end diff --git a/client/spec/models/create_tenant_user_response_spec.rb b/client/spec/models/create_tenant_user_response_spec.rb index 43a780f..a4ffa95 100644 --- a/client/spec/models/create_tenant_user_response_spec.rb +++ b/client/spec/models/create_tenant_user_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateTenantUserResponse do - let(:instance) { FastCommentsClient::CreateTenantUserResponse.new } + #let(:instance) { FastCommentsClient::CreateTenantUserResponse.new } describe 'test an instance of CreateTenantUserResponse' do it 'should create an instance of CreateTenantUserResponse' do diff --git a/client/spec/models/create_ticket_body_spec.rb b/client/spec/models/create_ticket_body_spec.rb index d993e67..263fc5f 100644 --- a/client/spec/models/create_ticket_body_spec.rb +++ b/client/spec/models/create_ticket_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateTicketBody do - let(:instance) { FastCommentsClient::CreateTicketBody.new } + #let(:instance) { FastCommentsClient::CreateTicketBody.new } describe 'test an instance of CreateTicketBody' do it 'should create an instance of CreateTicketBody' do diff --git a/client/spec/models/create_ticket_response1_spec.rb b/client/spec/models/create_ticket_response1_spec.rb new file mode 100644 index 0000000..61799d0 --- /dev/null +++ b/client/spec/models/create_ticket_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateTicketResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateTicketResponse1 do +end diff --git a/client/spec/models/create_ticket_response_spec.rb b/client/spec/models/create_ticket_response_spec.rb index 28c2747..aa5c806 100644 --- a/client/spec/models/create_ticket_response_spec.rb +++ b/client/spec/models/create_ticket_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateTicketResponse do - let(:instance) { FastCommentsClient::CreateTicketResponse.new } + #let(:instance) { FastCommentsClient::CreateTicketResponse.new } describe 'test an instance of CreateTicketResponse' do it 'should create an instance of CreateTicketResponse' do diff --git a/client/spec/models/create_user_badge_params_spec.rb b/client/spec/models/create_user_badge_params_spec.rb index c85ef7f..87d13f7 100644 --- a/client/spec/models/create_user_badge_params_spec.rb +++ b/client/spec/models/create_user_badge_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateUserBadgeParams do - let(:instance) { FastCommentsClient::CreateUserBadgeParams.new } + #let(:instance) { FastCommentsClient::CreateUserBadgeParams.new } describe 'test an instance of CreateUserBadgeParams' do it 'should create an instance of CreateUserBadgeParams' do diff --git a/client/spec/models/create_user_badge_response_spec.rb b/client/spec/models/create_user_badge_response_spec.rb new file mode 100644 index 0000000..5f10bf0 --- /dev/null +++ b/client/spec/models/create_user_badge_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateUserBadgeResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateUserBadgeResponse do +end diff --git a/client/spec/models/create_v1_page_react_response_spec.rb b/client/spec/models/create_v1_page_react_response_spec.rb new file mode 100644 index 0000000..b863d2e --- /dev/null +++ b/client/spec/models/create_v1_page_react_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateV1PageReactResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateV1PageReactResponse do +end diff --git a/client/spec/models/create_v1_page_react_spec.rb b/client/spec/models/create_v1_page_react_spec.rb index 1b2dadd..0bf0372 100644 --- a/client/spec/models/create_v1_page_react_spec.rb +++ b/client/spec/models/create_v1_page_react_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateV1PageReact do - let(:instance) { FastCommentsClient::CreateV1PageReact.new } + #let(:instance) { FastCommentsClient::CreateV1PageReact.new } describe 'test an instance of CreateV1PageReact' do it 'should create an instance of CreateV1PageReact' do diff --git a/client/spec/models/create_v2_page_react_response_spec.rb b/client/spec/models/create_v2_page_react_response_spec.rb new file mode 100644 index 0000000..116e6ec --- /dev/null +++ b/client/spec/models/create_v2_page_react_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateV2PageReactResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateV2PageReactResponse do +end diff --git a/client/spec/models/create_vote_response_spec.rb b/client/spec/models/create_vote_response_spec.rb new file mode 100644 index 0000000..50d256e --- /dev/null +++ b/client/spec/models/create_vote_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateVoteResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateVoteResponse do +end diff --git a/client/spec/models/custom_config_parameters_spec.rb b/client/spec/models/custom_config_parameters_spec.rb index aa0d120..3e6ef63 100644 --- a/client/spec/models/custom_config_parameters_spec.rb +++ b/client/spec/models/custom_config_parameters_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CustomConfigParameters do - let(:instance) { FastCommentsClient::CustomConfigParameters.new } + #let(:instance) { FastCommentsClient::CustomConfigParameters.new } describe 'test an instance of CustomConfigParameters' do it 'should create an instance of CustomConfigParameters' do diff --git a/client/spec/models/custom_email_template_spec.rb b/client/spec/models/custom_email_template_spec.rb index 782d4d2..ecd5df4 100644 --- a/client/spec/models/custom_email_template_spec.rb +++ b/client/spec/models/custom_email_template_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CustomEmailTemplate do - let(:instance) { FastCommentsClient::CustomEmailTemplate.new } + #let(:instance) { FastCommentsClient::CustomEmailTemplate.new } describe 'test an instance of CustomEmailTemplate' do it 'should create an instance of CustomEmailTemplate' do diff --git a/client/spec/models/delete_comment_action_spec.rb b/client/spec/models/delete_comment_action_spec.rb index 1fd1180..800fc2a 100644 --- a/client/spec/models/delete_comment_action_spec.rb +++ b/client/spec/models/delete_comment_action_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::DeleteCommentAction do - let(:instance) { FastCommentsClient::DeleteCommentAction.new } + #let(:instance) { FastCommentsClient::DeleteCommentAction.new } describe 'test an instance of DeleteCommentAction' do it 'should create an instance of DeleteCommentAction' do diff --git a/client/spec/models/delete_comment_public_response_spec.rb b/client/spec/models/delete_comment_public_response_spec.rb new file mode 100644 index 0000000..f8860ff --- /dev/null +++ b/client/spec/models/delete_comment_public_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::DeleteCommentPublicResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::DeleteCommentPublicResponse do +end diff --git a/client/spec/models/delete_comment_response_spec.rb b/client/spec/models/delete_comment_response_spec.rb new file mode 100644 index 0000000..e30d6e5 --- /dev/null +++ b/client/spec/models/delete_comment_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::DeleteCommentResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::DeleteCommentResponse do +end diff --git a/client/spec/models/delete_comment_result_spec.rb b/client/spec/models/delete_comment_result_spec.rb index 301d603..c5923e5 100644 --- a/client/spec/models/delete_comment_result_spec.rb +++ b/client/spec/models/delete_comment_result_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::DeleteCommentResult do - let(:instance) { FastCommentsClient::DeleteCommentResult.new } + #let(:instance) { FastCommentsClient::DeleteCommentResult.new } describe 'test an instance of DeleteCommentResult' do it 'should create an instance of DeleteCommentResult' do diff --git a/client/spec/models/delete_comment_vote_response_spec.rb b/client/spec/models/delete_comment_vote_response_spec.rb new file mode 100644 index 0000000..3be1508 --- /dev/null +++ b/client/spec/models/delete_comment_vote_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::DeleteCommentVoteResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::DeleteCommentVoteResponse do +end diff --git a/client/spec/models/delete_domain_config_response_spec.rb b/client/spec/models/delete_domain_config_response_spec.rb index 9d37fce..07e28c4 100644 --- a/client/spec/models/delete_domain_config_response_spec.rb +++ b/client/spec/models/delete_domain_config_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::DeleteDomainConfigResponse do - let(:instance) { FastCommentsClient::DeleteDomainConfigResponse.new } + #let(:instance) { FastCommentsClient::DeleteDomainConfigResponse.new } describe 'test an instance of DeleteDomainConfigResponse' do it 'should create an instance of DeleteDomainConfigResponse' do diff --git a/client/spec/models/delete_email_template_render_error_response_spec.rb b/client/spec/models/delete_email_template_render_error_response_spec.rb new file mode 100644 index 0000000..b5067d9 --- /dev/null +++ b/client/spec/models/delete_email_template_render_error_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::DeleteEmailTemplateRenderErrorResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::DeleteEmailTemplateRenderErrorResponse do +end diff --git a/client/spec/models/delete_email_template_response_spec.rb b/client/spec/models/delete_email_template_response_spec.rb new file mode 100644 index 0000000..c6a3961 --- /dev/null +++ b/client/spec/models/delete_email_template_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::DeleteEmailTemplateResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::DeleteEmailTemplateResponse do +end diff --git a/client/spec/models/delete_feed_post_public_response_any_of_spec.rb b/client/spec/models/delete_feed_post_public_response_any_of_spec.rb new file mode 100644 index 0000000..0e83f89 --- /dev/null +++ b/client/spec/models/delete_feed_post_public_response_any_of_spec.rb @@ -0,0 +1,36 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::DeleteFeedPostPublicResponseAnyOf +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::DeleteFeedPostPublicResponseAnyOf do + #let(:instance) { FastCommentsClient::DeleteFeedPostPublicResponseAnyOf.new } + + describe 'test an instance of DeleteFeedPostPublicResponseAnyOf' do + it 'should create an instance of DeleteFeedPostPublicResponseAnyOf' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::DeleteFeedPostPublicResponseAnyOf) + end + end + + describe 'test attribute "status"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/client/spec/models/delete_feed_post_public_response_spec.rb b/client/spec/models/delete_feed_post_public_response_spec.rb index 67aa3a9..573bc8b 100644 --- a/client/spec/models/delete_feed_post_public_response_spec.rb +++ b/client/spec/models/delete_feed_post_public_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,19 +18,4 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::DeleteFeedPostPublicResponse do - let(:instance) { FastCommentsClient::DeleteFeedPostPublicResponse.new } - - describe 'test an instance of DeleteFeedPostPublicResponse' do - it 'should create an instance of DeleteFeedPostPublicResponse' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(FastCommentsClient::DeleteFeedPostPublicResponse) - end - end - - describe 'test attribute "status"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - end diff --git a/client/spec/models/delete_hash_tag_request_body_spec.rb b/client/spec/models/delete_hash_tag_request_body_spec.rb index 285b131..6a0b8bc 100644 --- a/client/spec/models/delete_hash_tag_request_body_spec.rb +++ b/client/spec/models/delete_hash_tag_request_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::DeleteHashTagRequestBody do - let(:instance) { FastCommentsClient::DeleteHashTagRequestBody.new } + #let(:instance) { FastCommentsClient::DeleteHashTagRequestBody.new } describe 'test an instance of DeleteHashTagRequestBody' do it 'should create an instance of DeleteHashTagRequestBody' do diff --git a/client/spec/models/delete_hash_tag_response_spec.rb b/client/spec/models/delete_hash_tag_response_spec.rb new file mode 100644 index 0000000..d73d3a1 --- /dev/null +++ b/client/spec/models/delete_hash_tag_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::DeleteHashTagResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::DeleteHashTagResponse do +end diff --git a/client/spec/models/delete_moderation_vote_response_spec.rb b/client/spec/models/delete_moderation_vote_response_spec.rb new file mode 100644 index 0000000..536e20b --- /dev/null +++ b/client/spec/models/delete_moderation_vote_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::DeleteModerationVoteResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::DeleteModerationVoteResponse do +end diff --git a/client/spec/models/delete_moderator_response_spec.rb b/client/spec/models/delete_moderator_response_spec.rb new file mode 100644 index 0000000..d84f484 --- /dev/null +++ b/client/spec/models/delete_moderator_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::DeleteModeratorResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::DeleteModeratorResponse do +end diff --git a/client/spec/models/delete_notification_count_response_spec.rb b/client/spec/models/delete_notification_count_response_spec.rb new file mode 100644 index 0000000..031ccb4 --- /dev/null +++ b/client/spec/models/delete_notification_count_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::DeleteNotificationCountResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::DeleteNotificationCountResponse do +end diff --git a/client/spec/models/delete_page_api_response_spec.rb b/client/spec/models/delete_page_api_response_spec.rb index 7b25e17..c8addc2 100644 --- a/client/spec/models/delete_page_api_response_spec.rb +++ b/client/spec/models/delete_page_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::DeletePageAPIResponse do - let(:instance) { FastCommentsClient::DeletePageAPIResponse.new } + #let(:instance) { FastCommentsClient::DeletePageAPIResponse.new } describe 'test an instance of DeletePageAPIResponse' do it 'should create an instance of DeletePageAPIResponse' do diff --git a/client/spec/models/delete_pending_webhook_event_response_spec.rb b/client/spec/models/delete_pending_webhook_event_response_spec.rb new file mode 100644 index 0000000..db1951f --- /dev/null +++ b/client/spec/models/delete_pending_webhook_event_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::DeletePendingWebhookEventResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::DeletePendingWebhookEventResponse do +end diff --git a/client/spec/models/delete_question_config_response_spec.rb b/client/spec/models/delete_question_config_response_spec.rb new file mode 100644 index 0000000..de00999 --- /dev/null +++ b/client/spec/models/delete_question_config_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::DeleteQuestionConfigResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::DeleteQuestionConfigResponse do +end diff --git a/client/spec/models/delete_question_result_response_spec.rb b/client/spec/models/delete_question_result_response_spec.rb new file mode 100644 index 0000000..2c4f5bb --- /dev/null +++ b/client/spec/models/delete_question_result_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::DeleteQuestionResultResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::DeleteQuestionResultResponse do +end diff --git a/client/spec/models/delete_sso_user_api_response_spec.rb b/client/spec/models/delete_sso_user_api_response_spec.rb index 10367fd..d9d0863 100644 --- a/client/spec/models/delete_sso_user_api_response_spec.rb +++ b/client/spec/models/delete_sso_user_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::DeleteSSOUserAPIResponse do - let(:instance) { FastCommentsClient::DeleteSSOUserAPIResponse.new } + #let(:instance) { FastCommentsClient::DeleteSSOUserAPIResponse.new } describe 'test an instance of DeleteSSOUserAPIResponse' do it 'should create an instance of DeleteSSOUserAPIResponse' do diff --git a/client/spec/models/delete_subscription_api_response_spec.rb b/client/spec/models/delete_subscription_api_response_spec.rb index 4f1b23f..424e9ea 100644 --- a/client/spec/models/delete_subscription_api_response_spec.rb +++ b/client/spec/models/delete_subscription_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::DeleteSubscriptionAPIResponse do - let(:instance) { FastCommentsClient::DeleteSubscriptionAPIResponse.new } + #let(:instance) { FastCommentsClient::DeleteSubscriptionAPIResponse.new } describe 'test an instance of DeleteSubscriptionAPIResponse' do it 'should create an instance of DeleteSubscriptionAPIResponse' do diff --git a/client/spec/models/delete_tenant_package_response_spec.rb b/client/spec/models/delete_tenant_package_response_spec.rb new file mode 100644 index 0000000..2ab56aa --- /dev/null +++ b/client/spec/models/delete_tenant_package_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::DeleteTenantPackageResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::DeleteTenantPackageResponse do +end diff --git a/client/spec/models/delete_tenant_response_spec.rb b/client/spec/models/delete_tenant_response_spec.rb new file mode 100644 index 0000000..dffd099 --- /dev/null +++ b/client/spec/models/delete_tenant_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::DeleteTenantResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::DeleteTenantResponse do +end diff --git a/client/spec/models/delete_tenant_user_response_spec.rb b/client/spec/models/delete_tenant_user_response_spec.rb new file mode 100644 index 0000000..84aef07 --- /dev/null +++ b/client/spec/models/delete_tenant_user_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::DeleteTenantUserResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::DeleteTenantUserResponse do +end diff --git a/client/spec/models/delete_user_badge_response_spec.rb b/client/spec/models/delete_user_badge_response_spec.rb new file mode 100644 index 0000000..8636163 --- /dev/null +++ b/client/spec/models/delete_user_badge_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::DeleteUserBadgeResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::DeleteUserBadgeResponse do +end diff --git a/client/spec/models/delete_v1_page_react_response_spec.rb b/client/spec/models/delete_v1_page_react_response_spec.rb new file mode 100644 index 0000000..c17a114 --- /dev/null +++ b/client/spec/models/delete_v1_page_react_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::DeleteV1PageReactResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::DeleteV1PageReactResponse do +end diff --git a/client/spec/models/delete_v2_page_react_response_spec.rb b/client/spec/models/delete_v2_page_react_response_spec.rb new file mode 100644 index 0000000..fb9cc9e --- /dev/null +++ b/client/spec/models/delete_v2_page_react_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::DeleteV2PageReactResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::DeleteV2PageReactResponse do +end diff --git a/client/spec/models/delete_vote_response_spec.rb b/client/spec/models/delete_vote_response_spec.rb new file mode 100644 index 0000000..0cac597 --- /dev/null +++ b/client/spec/models/delete_vote_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::DeleteVoteResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::DeleteVoteResponse do +end diff --git a/client/spec/models/deleted_comment_result_comment_spec.rb b/client/spec/models/deleted_comment_result_comment_spec.rb index e743fe8..05d7431 100644 --- a/client/spec/models/deleted_comment_result_comment_spec.rb +++ b/client/spec/models/deleted_comment_result_comment_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::DeletedCommentResultComment do - let(:instance) { FastCommentsClient::DeletedCommentResultComment.new } + #let(:instance) { FastCommentsClient::DeletedCommentResultComment.new } describe 'test an instance of DeletedCommentResultComment' do it 'should create an instance of DeletedCommentResultComment' do diff --git a/client/spec/models/digest_email_frequency_spec.rb b/client/spec/models/digest_email_frequency_spec.rb index d28a35a..55c9b97 100644 --- a/client/spec/models/digest_email_frequency_spec.rb +++ b/client/spec/models/digest_email_frequency_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::DigestEmailFrequency do - let(:instance) { FastCommentsClient::DigestEmailFrequency.new } + #let(:instance) { FastCommentsClient::DigestEmailFrequency.new } describe 'test an instance of DigestEmailFrequency' do it 'should create an instance of DigestEmailFrequency' do diff --git a/client/spec/models/email_template_definition_spec.rb b/client/spec/models/email_template_definition_spec.rb index 9903bc2..6a43be5 100644 --- a/client/spec/models/email_template_definition_spec.rb +++ b/client/spec/models/email_template_definition_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::EmailTemplateDefinition do - let(:instance) { FastCommentsClient::EmailTemplateDefinition.new } + #let(:instance) { FastCommentsClient::EmailTemplateDefinition.new } describe 'test an instance of EmailTemplateDefinition' do it 'should create an instance of EmailTemplateDefinition' do diff --git a/client/spec/models/email_template_render_error_response_spec.rb b/client/spec/models/email_template_render_error_response_spec.rb index 4ca6d9c..6fd42b5 100644 --- a/client/spec/models/email_template_render_error_response_spec.rb +++ b/client/spec/models/email_template_render_error_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::EmailTemplateRenderErrorResponse do - let(:instance) { FastCommentsClient::EmailTemplateRenderErrorResponse.new } + #let(:instance) { FastCommentsClient::EmailTemplateRenderErrorResponse.new } describe 'test an instance of EmailTemplateRenderErrorResponse' do it 'should create an instance of EmailTemplateRenderErrorResponse' do diff --git a/client/spec/models/event_log_entry_spec.rb b/client/spec/models/event_log_entry_spec.rb index cc02050..54404e7 100644 --- a/client/spec/models/event_log_entry_spec.rb +++ b/client/spec/models/event_log_entry_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::EventLogEntry do - let(:instance) { FastCommentsClient::EventLogEntry.new } + #let(:instance) { FastCommentsClient::EventLogEntry.new } describe 'test an instance of EventLogEntry' do it 'should create an instance of EventLogEntry' do diff --git a/client/spec/models/f_comment_meta_spec.rb b/client/spec/models/f_comment_meta_spec.rb index 3b2be1f..b01db3c 100644 --- a/client/spec/models/f_comment_meta_spec.rb +++ b/client/spec/models/f_comment_meta_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::FCommentMeta do - let(:instance) { FastCommentsClient::FCommentMeta.new } + #let(:instance) { FastCommentsClient::FCommentMeta.new } describe 'test an instance of FCommentMeta' do it 'should create an instance of FCommentMeta' do diff --git a/client/spec/models/f_comment_spec.rb b/client/spec/models/f_comment_spec.rb index 2032397..5f6f356 100644 --- a/client/spec/models/f_comment_spec.rb +++ b/client/spec/models/f_comment_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::FComment do - let(:instance) { FastCommentsClient::FComment.new } + #let(:instance) { FastCommentsClient::FComment.new } describe 'test an instance of FComment' do it 'should create an instance of FComment' do diff --git a/client/spec/models/feed_post_link_spec.rb b/client/spec/models/feed_post_link_spec.rb index 54490ce..fd028fa 100644 --- a/client/spec/models/feed_post_link_spec.rb +++ b/client/spec/models/feed_post_link_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::FeedPostLink do - let(:instance) { FastCommentsClient::FeedPostLink.new } + #let(:instance) { FastCommentsClient::FeedPostLink.new } describe 'test an instance of FeedPostLink' do it 'should create an instance of FeedPostLink' do diff --git a/client/spec/models/feed_post_media_item_asset_spec.rb b/client/spec/models/feed_post_media_item_asset_spec.rb index b02d837..75b0804 100644 --- a/client/spec/models/feed_post_media_item_asset_spec.rb +++ b/client/spec/models/feed_post_media_item_asset_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::FeedPostMediaItemAsset do - let(:instance) { FastCommentsClient::FeedPostMediaItemAsset.new } + #let(:instance) { FastCommentsClient::FeedPostMediaItemAsset.new } describe 'test an instance of FeedPostMediaItemAsset' do it 'should create an instance of FeedPostMediaItemAsset' do diff --git a/client/spec/models/feed_post_media_item_spec.rb b/client/spec/models/feed_post_media_item_spec.rb index 4064406..8ee1487 100644 --- a/client/spec/models/feed_post_media_item_spec.rb +++ b/client/spec/models/feed_post_media_item_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::FeedPostMediaItem do - let(:instance) { FastCommentsClient::FeedPostMediaItem.new } + #let(:instance) { FastCommentsClient::FeedPostMediaItem.new } describe 'test an instance of FeedPostMediaItem' do it 'should create an instance of FeedPostMediaItem' do diff --git a/client/spec/models/feed_post_spec.rb b/client/spec/models/feed_post_spec.rb index f92e660..29dc3b9 100644 --- a/client/spec/models/feed_post_spec.rb +++ b/client/spec/models/feed_post_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::FeedPost do - let(:instance) { FastCommentsClient::FeedPost.new } + #let(:instance) { FastCommentsClient::FeedPost.new } describe 'test an instance of FeedPost' do it 'should create an instance of FeedPost' do diff --git a/client/spec/models/feed_post_stats_spec.rb b/client/spec/models/feed_post_stats_spec.rb index c6d28ff..e0da388 100644 --- a/client/spec/models/feed_post_stats_spec.rb +++ b/client/spec/models/feed_post_stats_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::FeedPostStats do - let(:instance) { FastCommentsClient::FeedPostStats.new } + #let(:instance) { FastCommentsClient::FeedPostStats.new } describe 'test an instance of FeedPostStats' do it 'should create an instance of FeedPostStats' do diff --git a/client/spec/models/feed_posts_stats_response_spec.rb b/client/spec/models/feed_posts_stats_response_spec.rb index f9387e9..76cc41f 100644 --- a/client/spec/models/feed_posts_stats_response_spec.rb +++ b/client/spec/models/feed_posts_stats_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::FeedPostsStatsResponse do - let(:instance) { FastCommentsClient::FeedPostsStatsResponse.new } + #let(:instance) { FastCommentsClient::FeedPostsStatsResponse.new } describe 'test an instance of FeedPostsStatsResponse' do it 'should create an instance of FeedPostsStatsResponse' do diff --git a/client/spec/models/find_comments_by_range_item_spec.rb b/client/spec/models/find_comments_by_range_item_spec.rb index 64f719f..e5c120a 100644 --- a/client/spec/models/find_comments_by_range_item_spec.rb +++ b/client/spec/models/find_comments_by_range_item_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::FindCommentsByRangeItem do - let(:instance) { FastCommentsClient::FindCommentsByRangeItem.new } + #let(:instance) { FastCommentsClient::FindCommentsByRangeItem.new } describe 'test an instance of FindCommentsByRangeItem' do it 'should create an instance of FindCommentsByRangeItem' do diff --git a/client/spec/models/find_comments_by_range_response_spec.rb b/client/spec/models/find_comments_by_range_response_spec.rb index 976ddb0..ff3bec2 100644 --- a/client/spec/models/find_comments_by_range_response_spec.rb +++ b/client/spec/models/find_comments_by_range_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::FindCommentsByRangeResponse do - let(:instance) { FastCommentsClient::FindCommentsByRangeResponse.new } + #let(:instance) { FastCommentsClient::FindCommentsByRangeResponse.new } describe 'test an instance of FindCommentsByRangeResponse' do it 'should create an instance of FindCommentsByRangeResponse' do diff --git a/client/spec/models/flag_comment_public_response_spec.rb b/client/spec/models/flag_comment_public_response_spec.rb new file mode 100644 index 0000000..d3da9c9 --- /dev/null +++ b/client/spec/models/flag_comment_public_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::FlagCommentPublicResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::FlagCommentPublicResponse do +end diff --git a/client/spec/models/flag_comment_response1_spec.rb b/client/spec/models/flag_comment_response1_spec.rb new file mode 100644 index 0000000..9355206 --- /dev/null +++ b/client/spec/models/flag_comment_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::FlagCommentResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::FlagCommentResponse1 do +end diff --git a/client/spec/models/flag_comment_response_spec.rb b/client/spec/models/flag_comment_response_spec.rb index e4b4832..979f9a9 100644 --- a/client/spec/models/flag_comment_response_spec.rb +++ b/client/spec/models/flag_comment_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::FlagCommentResponse do - let(:instance) { FastCommentsClient::FlagCommentResponse.new } + #let(:instance) { FastCommentsClient::FlagCommentResponse.new } describe 'test an instance of FlagCommentResponse' do it 'should create an instance of FlagCommentResponse' do diff --git a/client/spec/models/get_api_comments_response_spec.rb b/client/spec/models/get_api_comments_response_spec.rb new file mode 100644 index 0000000..116d560 --- /dev/null +++ b/client/spec/models/get_api_comments_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetApiCommentsResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetApiCommentsResponse do +end diff --git a/client/spec/models/get_api_export_status_response_spec.rb b/client/spec/models/get_api_export_status_response_spec.rb new file mode 100644 index 0000000..ecacfd3 --- /dev/null +++ b/client/spec/models/get_api_export_status_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetApiExportStatusResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetApiExportStatusResponse do +end diff --git a/client/spec/models/get_api_ids_response_spec.rb b/client/spec/models/get_api_ids_response_spec.rb new file mode 100644 index 0000000..00dda6d --- /dev/null +++ b/client/spec/models/get_api_ids_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetApiIdsResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetApiIdsResponse do +end diff --git a/client/spec/models/get_audit_logs_response1_spec.rb b/client/spec/models/get_audit_logs_response1_spec.rb new file mode 100644 index 0000000..98c0823 --- /dev/null +++ b/client/spec/models/get_audit_logs_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetAuditLogsResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetAuditLogsResponse1 do +end diff --git a/client/spec/models/get_audit_logs_response_spec.rb b/client/spec/models/get_audit_logs_response_spec.rb index 10a212d..41dd75d 100644 --- a/client/spec/models/get_audit_logs_response_spec.rb +++ b/client/spec/models/get_audit_logs_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetAuditLogsResponse do - let(:instance) { FastCommentsClient::GetAuditLogsResponse.new } + #let(:instance) { FastCommentsClient::GetAuditLogsResponse.new } describe 'test an instance of GetAuditLogsResponse' do it 'should create an instance of GetAuditLogsResponse' do diff --git a/client/spec/models/get_ban_users_from_comment_response_spec.rb b/client/spec/models/get_ban_users_from_comment_response_spec.rb new file mode 100644 index 0000000..2813fab --- /dev/null +++ b/client/spec/models/get_ban_users_from_comment_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetBanUsersFromCommentResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetBanUsersFromCommentResponse do +end diff --git a/client/spec/models/get_banned_users_count_response_spec.rb b/client/spec/models/get_banned_users_count_response_spec.rb index e637f47..379aef2 100644 --- a/client/spec/models/get_banned_users_count_response_spec.rb +++ b/client/spec/models/get_banned_users_count_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetBannedUsersCountResponse do - let(:instance) { FastCommentsClient::GetBannedUsersCountResponse.new } + #let(:instance) { FastCommentsClient::GetBannedUsersCountResponse.new } describe 'test an instance of GetBannedUsersCountResponse' do it 'should create an instance of GetBannedUsersCountResponse' do diff --git a/client/spec/models/get_banned_users_from_comment_response_spec.rb b/client/spec/models/get_banned_users_from_comment_response_spec.rb index c416933..1d374f6 100644 --- a/client/spec/models/get_banned_users_from_comment_response_spec.rb +++ b/client/spec/models/get_banned_users_from_comment_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetBannedUsersFromCommentResponse do - let(:instance) { FastCommentsClient::GetBannedUsersFromCommentResponse.new } + #let(:instance) { FastCommentsClient::GetBannedUsersFromCommentResponse.new } describe 'test an instance of GetBannedUsersFromCommentResponse' do it 'should create an instance of GetBannedUsersFromCommentResponse' do diff --git a/client/spec/models/get_cached_notification_count_response1_spec.rb b/client/spec/models/get_cached_notification_count_response1_spec.rb new file mode 100644 index 0000000..35af5bb --- /dev/null +++ b/client/spec/models/get_cached_notification_count_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetCachedNotificationCountResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetCachedNotificationCountResponse1 do +end diff --git a/client/spec/models/get_cached_notification_count_response_spec.rb b/client/spec/models/get_cached_notification_count_response_spec.rb index bcc01b7..d357c68 100644 --- a/client/spec/models/get_cached_notification_count_response_spec.rb +++ b/client/spec/models/get_cached_notification_count_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetCachedNotificationCountResponse do - let(:instance) { FastCommentsClient::GetCachedNotificationCountResponse.new } + #let(:instance) { FastCommentsClient::GetCachedNotificationCountResponse.new } describe 'test an instance of GetCachedNotificationCountResponse' do it 'should create an instance of GetCachedNotificationCountResponse' do diff --git a/client/spec/models/get_comment_ban_status_response1_spec.rb b/client/spec/models/get_comment_ban_status_response1_spec.rb new file mode 100644 index 0000000..0f70509 --- /dev/null +++ b/client/spec/models/get_comment_ban_status_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetCommentBanStatusResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetCommentBanStatusResponse1 do +end diff --git a/client/spec/models/get_comment_ban_status_response_spec.rb b/client/spec/models/get_comment_ban_status_response_spec.rb index 900d678..30783a6 100644 --- a/client/spec/models/get_comment_ban_status_response_spec.rb +++ b/client/spec/models/get_comment_ban_status_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetCommentBanStatusResponse do - let(:instance) { FastCommentsClient::GetCommentBanStatusResponse.new } + #let(:instance) { FastCommentsClient::GetCommentBanStatusResponse.new } describe 'test an instance of GetCommentBanStatusResponse' do it 'should create an instance of GetCommentBanStatusResponse' do diff --git a/client/spec/models/get_comment_children_response_spec.rb b/client/spec/models/get_comment_children_response_spec.rb new file mode 100644 index 0000000..d5a5bbe --- /dev/null +++ b/client/spec/models/get_comment_children_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetCommentChildrenResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetCommentChildrenResponse do +end diff --git a/client/spec/models/get_comment_response_spec.rb b/client/spec/models/get_comment_response_spec.rb new file mode 100644 index 0000000..81cecab --- /dev/null +++ b/client/spec/models/get_comment_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetCommentResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetCommentResponse do +end diff --git a/client/spec/models/get_comment_text_response1_spec.rb b/client/spec/models/get_comment_text_response1_spec.rb new file mode 100644 index 0000000..82fdbe6 --- /dev/null +++ b/client/spec/models/get_comment_text_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetCommentTextResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetCommentTextResponse1 do +end diff --git a/client/spec/models/get_comment_text_response_spec.rb b/client/spec/models/get_comment_text_response_spec.rb index 4297e6a..a55e699 100644 --- a/client/spec/models/get_comment_text_response_spec.rb +++ b/client/spec/models/get_comment_text_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetCommentTextResponse do - let(:instance) { FastCommentsClient::GetCommentTextResponse.new } + #let(:instance) { FastCommentsClient::GetCommentTextResponse.new } describe 'test an instance of GetCommentTextResponse' do it 'should create an instance of GetCommentTextResponse' do diff --git a/client/spec/models/get_comment_vote_user_names_response_spec.rb b/client/spec/models/get_comment_vote_user_names_response_spec.rb new file mode 100644 index 0000000..d6b017e --- /dev/null +++ b/client/spec/models/get_comment_vote_user_names_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetCommentVoteUserNamesResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetCommentVoteUserNamesResponse do +end diff --git a/client/spec/models/get_comment_vote_user_names_success_response_spec.rb b/client/spec/models/get_comment_vote_user_names_success_response_spec.rb index 9f53d5d..d50c130 100644 --- a/client/spec/models/get_comment_vote_user_names_success_response_spec.rb +++ b/client/spec/models/get_comment_vote_user_names_success_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetCommentVoteUserNamesSuccessResponse do - let(:instance) { FastCommentsClient::GetCommentVoteUserNamesSuccessResponse.new } + #let(:instance) { FastCommentsClient::GetCommentVoteUserNamesSuccessResponse.new } describe 'test an instance of GetCommentVoteUserNamesSuccessResponse' do it 'should create an instance of GetCommentVoteUserNamesSuccessResponse' do diff --git a/client/spec/models/get_comments_for_user_response1_spec.rb b/client/spec/models/get_comments_for_user_response1_spec.rb new file mode 100644 index 0000000..357d992 --- /dev/null +++ b/client/spec/models/get_comments_for_user_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetCommentsForUserResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetCommentsForUserResponse1 do +end diff --git a/client/spec/models/get_comments_for_user_response_spec.rb b/client/spec/models/get_comments_for_user_response_spec.rb index c45dd17..b272f8d 100644 --- a/client/spec/models/get_comments_for_user_response_spec.rb +++ b/client/spec/models/get_comments_for_user_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetCommentsForUserResponse do - let(:instance) { FastCommentsClient::GetCommentsForUserResponse.new } + #let(:instance) { FastCommentsClient::GetCommentsForUserResponse.new } describe 'test an instance of GetCommentsForUserResponse' do it 'should create an instance of GetCommentsForUserResponse' do diff --git a/client/spec/models/get_comments_public_response_spec.rb b/client/spec/models/get_comments_public_response_spec.rb new file mode 100644 index 0000000..5216590 --- /dev/null +++ b/client/spec/models/get_comments_public_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetCommentsPublicResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetCommentsPublicResponse do +end diff --git a/client/spec/models/get_comments_response_public_comment_spec.rb b/client/spec/models/get_comments_response_public_comment_spec.rb index a9bc205..fec36eb 100644 --- a/client/spec/models/get_comments_response_public_comment_spec.rb +++ b/client/spec/models/get_comments_response_public_comment_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetCommentsResponsePublicComment do - let(:instance) { FastCommentsClient::GetCommentsResponsePublicComment.new } + #let(:instance) { FastCommentsClient::GetCommentsResponsePublicComment.new } describe 'test an instance of GetCommentsResponsePublicComment' do it 'should create an instance of GetCommentsResponsePublicComment' do diff --git a/client/spec/models/get_comments_response_spec.rb b/client/spec/models/get_comments_response_spec.rb new file mode 100644 index 0000000..82ed3d8 --- /dev/null +++ b/client/spec/models/get_comments_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetCommentsResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetCommentsResponse do +end diff --git a/client/spec/models/get_comments_response_with_presence_public_comment_spec.rb b/client/spec/models/get_comments_response_with_presence_public_comment_spec.rb index b9c363a..70060cb 100644 --- a/client/spec/models/get_comments_response_with_presence_public_comment_spec.rb +++ b/client/spec/models/get_comments_response_with_presence_public_comment_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetCommentsResponseWithPresencePublicComment do - let(:instance) { FastCommentsClient::GetCommentsResponseWithPresencePublicComment.new } + #let(:instance) { FastCommentsClient::GetCommentsResponseWithPresencePublicComment.new } describe 'test an instance of GetCommentsResponseWithPresencePublicComment' do it 'should create an instance of GetCommentsResponseWithPresencePublicComment' do diff --git a/client/spec/models/get_count_response_spec.rb b/client/spec/models/get_count_response_spec.rb new file mode 100644 index 0000000..e31576d --- /dev/null +++ b/client/spec/models/get_count_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetCountResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetCountResponse do +end diff --git a/client/spec/models/get_counts_response_spec.rb b/client/spec/models/get_counts_response_spec.rb new file mode 100644 index 0000000..8880eb2 --- /dev/null +++ b/client/spec/models/get_counts_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetCountsResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetCountsResponse do +end diff --git a/client/spec/models/get_domain_config_response_spec.rb b/client/spec/models/get_domain_config_response_spec.rb index 7c5b7de..5651b56 100644 --- a/client/spec/models/get_domain_config_response_spec.rb +++ b/client/spec/models/get_domain_config_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/get_domain_configs_response_any_of1_spec.rb b/client/spec/models/get_domain_configs_response_any_of1_spec.rb index fc79d36..846f1f8 100644 --- a/client/spec/models/get_domain_configs_response_any_of1_spec.rb +++ b/client/spec/models/get_domain_configs_response_any_of1_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetDomainConfigsResponseAnyOf1 do - let(:instance) { FastCommentsClient::GetDomainConfigsResponseAnyOf1.new } + #let(:instance) { FastCommentsClient::GetDomainConfigsResponseAnyOf1.new } describe 'test an instance of GetDomainConfigsResponseAnyOf1' do it 'should create an instance of GetDomainConfigsResponseAnyOf1' do diff --git a/client/spec/models/get_domain_configs_response_any_of_spec.rb b/client/spec/models/get_domain_configs_response_any_of_spec.rb index 9ba34f5..4170bda 100644 --- a/client/spec/models/get_domain_configs_response_any_of_spec.rb +++ b/client/spec/models/get_domain_configs_response_any_of_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetDomainConfigsResponseAnyOf do - let(:instance) { FastCommentsClient::GetDomainConfigsResponseAnyOf.new } + #let(:instance) { FastCommentsClient::GetDomainConfigsResponseAnyOf.new } describe 'test an instance of GetDomainConfigsResponseAnyOf' do it 'should create an instance of GetDomainConfigsResponseAnyOf' do diff --git a/client/spec/models/get_domain_configs_response_spec.rb b/client/spec/models/get_domain_configs_response_spec.rb index ae5f967..bd94633 100644 --- a/client/spec/models/get_domain_configs_response_spec.rb +++ b/client/spec/models/get_domain_configs_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/get_email_template_definitions_response1_spec.rb b/client/spec/models/get_email_template_definitions_response1_spec.rb new file mode 100644 index 0000000..5c50701 --- /dev/null +++ b/client/spec/models/get_email_template_definitions_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetEmailTemplateDefinitionsResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetEmailTemplateDefinitionsResponse1 do +end diff --git a/client/spec/models/get_email_template_definitions_response_spec.rb b/client/spec/models/get_email_template_definitions_response_spec.rb index ac22825..b2a6be3 100644 --- a/client/spec/models/get_email_template_definitions_response_spec.rb +++ b/client/spec/models/get_email_template_definitions_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetEmailTemplateDefinitionsResponse do - let(:instance) { FastCommentsClient::GetEmailTemplateDefinitionsResponse.new } + #let(:instance) { FastCommentsClient::GetEmailTemplateDefinitionsResponse.new } describe 'test an instance of GetEmailTemplateDefinitionsResponse' do it 'should create an instance of GetEmailTemplateDefinitionsResponse' do diff --git a/client/spec/models/get_email_template_render_errors_response1_spec.rb b/client/spec/models/get_email_template_render_errors_response1_spec.rb new file mode 100644 index 0000000..59ea1a7 --- /dev/null +++ b/client/spec/models/get_email_template_render_errors_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetEmailTemplateRenderErrorsResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetEmailTemplateRenderErrorsResponse1 do +end diff --git a/client/spec/models/get_email_template_render_errors_response_spec.rb b/client/spec/models/get_email_template_render_errors_response_spec.rb index 1796efb..3cc4a8b 100644 --- a/client/spec/models/get_email_template_render_errors_response_spec.rb +++ b/client/spec/models/get_email_template_render_errors_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetEmailTemplateRenderErrorsResponse do - let(:instance) { FastCommentsClient::GetEmailTemplateRenderErrorsResponse.new } + #let(:instance) { FastCommentsClient::GetEmailTemplateRenderErrorsResponse.new } describe 'test an instance of GetEmailTemplateRenderErrorsResponse' do it 'should create an instance of GetEmailTemplateRenderErrorsResponse' do diff --git a/client/spec/models/get_email_template_response1_spec.rb b/client/spec/models/get_email_template_response1_spec.rb new file mode 100644 index 0000000..4c6f601 --- /dev/null +++ b/client/spec/models/get_email_template_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetEmailTemplateResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetEmailTemplateResponse1 do +end diff --git a/client/spec/models/get_email_template_response_spec.rb b/client/spec/models/get_email_template_response_spec.rb index 6d38c04..8f7e2e1 100644 --- a/client/spec/models/get_email_template_response_spec.rb +++ b/client/spec/models/get_email_template_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetEmailTemplateResponse do - let(:instance) { FastCommentsClient::GetEmailTemplateResponse.new } + #let(:instance) { FastCommentsClient::GetEmailTemplateResponse.new } describe 'test an instance of GetEmailTemplateResponse' do it 'should create an instance of GetEmailTemplateResponse' do diff --git a/client/spec/models/get_email_templates_response1_spec.rb b/client/spec/models/get_email_templates_response1_spec.rb new file mode 100644 index 0000000..2e1f0b4 --- /dev/null +++ b/client/spec/models/get_email_templates_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetEmailTemplatesResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetEmailTemplatesResponse1 do +end diff --git a/client/spec/models/get_email_templates_response_spec.rb b/client/spec/models/get_email_templates_response_spec.rb index 4f7e42a..8d11411 100644 --- a/client/spec/models/get_email_templates_response_spec.rb +++ b/client/spec/models/get_email_templates_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetEmailTemplatesResponse do - let(:instance) { FastCommentsClient::GetEmailTemplatesResponse.new } + #let(:instance) { FastCommentsClient::GetEmailTemplatesResponse.new } describe 'test an instance of GetEmailTemplatesResponse' do it 'should create an instance of GetEmailTemplatesResponse' do diff --git a/client/spec/models/get_event_log_response1_spec.rb b/client/spec/models/get_event_log_response1_spec.rb new file mode 100644 index 0000000..1b67876 --- /dev/null +++ b/client/spec/models/get_event_log_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetEventLogResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetEventLogResponse1 do +end diff --git a/client/spec/models/get_event_log_response_spec.rb b/client/spec/models/get_event_log_response_spec.rb index d4e771f..258a9b1 100644 --- a/client/spec/models/get_event_log_response_spec.rb +++ b/client/spec/models/get_event_log_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetEventLogResponse do - let(:instance) { FastCommentsClient::GetEventLogResponse.new } + #let(:instance) { FastCommentsClient::GetEventLogResponse.new } describe 'test an instance of GetEventLogResponse' do it 'should create an instance of GetEventLogResponse' do diff --git a/client/spec/models/get_feed_posts_public_response_spec.rb b/client/spec/models/get_feed_posts_public_response_spec.rb new file mode 100644 index 0000000..8e56f00 --- /dev/null +++ b/client/spec/models/get_feed_posts_public_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetFeedPostsPublicResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetFeedPostsPublicResponse do +end diff --git a/client/spec/models/get_feed_posts_response1_spec.rb b/client/spec/models/get_feed_posts_response1_spec.rb new file mode 100644 index 0000000..02b0fea --- /dev/null +++ b/client/spec/models/get_feed_posts_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetFeedPostsResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetFeedPostsResponse1 do +end diff --git a/client/spec/models/get_feed_posts_response_spec.rb b/client/spec/models/get_feed_posts_response_spec.rb index b5f05ea..c9248e3 100644 --- a/client/spec/models/get_feed_posts_response_spec.rb +++ b/client/spec/models/get_feed_posts_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetFeedPostsResponse do - let(:instance) { FastCommentsClient::GetFeedPostsResponse.new } + #let(:instance) { FastCommentsClient::GetFeedPostsResponse.new } describe 'test an instance of GetFeedPostsResponse' do it 'should create an instance of GetFeedPostsResponse' do diff --git a/client/spec/models/get_feed_posts_stats_response_spec.rb b/client/spec/models/get_feed_posts_stats_response_spec.rb new file mode 100644 index 0000000..3acbb91 --- /dev/null +++ b/client/spec/models/get_feed_posts_stats_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetFeedPostsStatsResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetFeedPostsStatsResponse do +end diff --git a/client/spec/models/get_gif_large_response_spec.rb b/client/spec/models/get_gif_large_response_spec.rb new file mode 100644 index 0000000..6298a3f --- /dev/null +++ b/client/spec/models/get_gif_large_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetGifLargeResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetGifLargeResponse do +end diff --git a/client/spec/models/get_gifs_search_response_spec.rb b/client/spec/models/get_gifs_search_response_spec.rb index bc64397..f3145d5 100644 --- a/client/spec/models/get_gifs_search_response_spec.rb +++ b/client/spec/models/get_gifs_search_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/get_gifs_trending_response_spec.rb b/client/spec/models/get_gifs_trending_response_spec.rb index b6250dd..18eafa2 100644 --- a/client/spec/models/get_gifs_trending_response_spec.rb +++ b/client/spec/models/get_gifs_trending_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/get_global_event_log_response_spec.rb b/client/spec/models/get_global_event_log_response_spec.rb new file mode 100644 index 0000000..9dd1ff4 --- /dev/null +++ b/client/spec/models/get_global_event_log_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetGlobalEventLogResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetGlobalEventLogResponse do +end diff --git a/client/spec/models/get_hash_tags_response1_spec.rb b/client/spec/models/get_hash_tags_response1_spec.rb new file mode 100644 index 0000000..8ef913f --- /dev/null +++ b/client/spec/models/get_hash_tags_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetHashTagsResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetHashTagsResponse1 do +end diff --git a/client/spec/models/get_hash_tags_response_spec.rb b/client/spec/models/get_hash_tags_response_spec.rb index d4d776b..2ce9f2c 100644 --- a/client/spec/models/get_hash_tags_response_spec.rb +++ b/client/spec/models/get_hash_tags_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetHashTagsResponse do - let(:instance) { FastCommentsClient::GetHashTagsResponse.new } + #let(:instance) { FastCommentsClient::GetHashTagsResponse.new } describe 'test an instance of GetHashTagsResponse' do it 'should create an instance of GetHashTagsResponse' do diff --git a/client/spec/models/vote_response_status_spec.rb b/client/spec/models/get_logs_response_spec.rb similarity index 74% rename from client/spec/models/vote_response_status_spec.rb rename to client/spec/models/get_logs_response_spec.rb index 893e7d5..b61bc65 100644 --- a/client/spec/models/vote_response_status_spec.rb +++ b/client/spec/models/get_logs_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,8 +14,8 @@ require 'json' require 'date' -# Unit tests for FastCommentsClient::VoteResponseStatus +# Unit tests for FastCommentsClient::GetLogsResponse # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe FastCommentsClient::VoteResponseStatus do +describe FastCommentsClient::GetLogsResponse do end diff --git a/client/spec/models/get_manual_badges_for_user_response_spec.rb b/client/spec/models/get_manual_badges_for_user_response_spec.rb new file mode 100644 index 0000000..5db0467 --- /dev/null +++ b/client/spec/models/get_manual_badges_for_user_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetManualBadgesForUserResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetManualBadgesForUserResponse do +end diff --git a/client/spec/models/get_manual_badges_response_spec.rb b/client/spec/models/get_manual_badges_response_spec.rb new file mode 100644 index 0000000..b38b935 --- /dev/null +++ b/client/spec/models/get_manual_badges_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetManualBadgesResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetManualBadgesResponse do +end diff --git a/client/spec/models/get_moderation_comment_response_spec.rb b/client/spec/models/get_moderation_comment_response_spec.rb new file mode 100644 index 0000000..27f0079 --- /dev/null +++ b/client/spec/models/get_moderation_comment_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetModerationCommentResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetModerationCommentResponse do +end diff --git a/client/spec/models/get_moderation_comment_text_response_spec.rb b/client/spec/models/get_moderation_comment_text_response_spec.rb new file mode 100644 index 0000000..5a4d39e --- /dev/null +++ b/client/spec/models/get_moderation_comment_text_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetModerationCommentTextResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetModerationCommentTextResponse do +end diff --git a/client/spec/models/get_moderator_response1_spec.rb b/client/spec/models/get_moderator_response1_spec.rb new file mode 100644 index 0000000..63f26d5 --- /dev/null +++ b/client/spec/models/get_moderator_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetModeratorResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetModeratorResponse1 do +end diff --git a/client/spec/models/get_moderator_response_spec.rb b/client/spec/models/get_moderator_response_spec.rb index 48d713c..ff9dbea 100644 --- a/client/spec/models/get_moderator_response_spec.rb +++ b/client/spec/models/get_moderator_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetModeratorResponse do - let(:instance) { FastCommentsClient::GetModeratorResponse.new } + #let(:instance) { FastCommentsClient::GetModeratorResponse.new } describe 'test an instance of GetModeratorResponse' do it 'should create an instance of GetModeratorResponse' do diff --git a/client/spec/models/get_moderators_response1_spec.rb b/client/spec/models/get_moderators_response1_spec.rb new file mode 100644 index 0000000..df06ec4 --- /dev/null +++ b/client/spec/models/get_moderators_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetModeratorsResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetModeratorsResponse1 do +end diff --git a/client/spec/models/get_moderators_response_spec.rb b/client/spec/models/get_moderators_response_spec.rb index f3cf1cb..08d10a7 100644 --- a/client/spec/models/get_moderators_response_spec.rb +++ b/client/spec/models/get_moderators_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetModeratorsResponse do - let(:instance) { FastCommentsClient::GetModeratorsResponse.new } + #let(:instance) { FastCommentsClient::GetModeratorsResponse.new } describe 'test an instance of GetModeratorsResponse' do it 'should create an instance of GetModeratorsResponse' do diff --git a/client/spec/models/get_my_notifications_response_spec.rb b/client/spec/models/get_my_notifications_response_spec.rb index e26d8ef..40076bb 100644 --- a/client/spec/models/get_my_notifications_response_spec.rb +++ b/client/spec/models/get_my_notifications_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetMyNotificationsResponse do - let(:instance) { FastCommentsClient::GetMyNotificationsResponse.new } + #let(:instance) { FastCommentsClient::GetMyNotificationsResponse.new } describe 'test an instance of GetMyNotificationsResponse' do it 'should create an instance of GetMyNotificationsResponse' do diff --git a/client/spec/models/get_notification_count_response1_spec.rb b/client/spec/models/get_notification_count_response1_spec.rb new file mode 100644 index 0000000..24da367 --- /dev/null +++ b/client/spec/models/get_notification_count_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetNotificationCountResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetNotificationCountResponse1 do +end diff --git a/client/spec/models/get_notification_count_response_spec.rb b/client/spec/models/get_notification_count_response_spec.rb index c434c4e..42850d1 100644 --- a/client/spec/models/get_notification_count_response_spec.rb +++ b/client/spec/models/get_notification_count_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetNotificationCountResponse do - let(:instance) { FastCommentsClient::GetNotificationCountResponse.new } + #let(:instance) { FastCommentsClient::GetNotificationCountResponse.new } describe 'test an instance of GetNotificationCountResponse' do it 'should create an instance of GetNotificationCountResponse' do diff --git a/client/spec/models/get_notifications_response1_spec.rb b/client/spec/models/get_notifications_response1_spec.rb new file mode 100644 index 0000000..f5da233 --- /dev/null +++ b/client/spec/models/get_notifications_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetNotificationsResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetNotificationsResponse1 do +end diff --git a/client/spec/models/get_notifications_response_spec.rb b/client/spec/models/get_notifications_response_spec.rb index f6aa082..451fe8d 100644 --- a/client/spec/models/get_notifications_response_spec.rb +++ b/client/spec/models/get_notifications_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetNotificationsResponse do - let(:instance) { FastCommentsClient::GetNotificationsResponse.new } + #let(:instance) { FastCommentsClient::GetNotificationsResponse.new } describe 'test an instance of GetNotificationsResponse' do it 'should create an instance of GetNotificationsResponse' do diff --git a/client/spec/models/get_offline_users_response_spec.rb b/client/spec/models/get_offline_users_response_spec.rb new file mode 100644 index 0000000..dffd8da --- /dev/null +++ b/client/spec/models/get_offline_users_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetOfflineUsersResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetOfflineUsersResponse do +end diff --git a/client/spec/models/get_online_users_response_spec.rb b/client/spec/models/get_online_users_response_spec.rb new file mode 100644 index 0000000..a87b653 --- /dev/null +++ b/client/spec/models/get_online_users_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetOnlineUsersResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetOnlineUsersResponse do +end diff --git a/client/spec/models/get_page_by_urlid_api_response_spec.rb b/client/spec/models/get_page_by_urlid_api_response_spec.rb index 1e32ec7..2ef77cd 100644 --- a/client/spec/models/get_page_by_urlid_api_response_spec.rb +++ b/client/spec/models/get_page_by_urlid_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetPageByURLIdAPIResponse do - let(:instance) { FastCommentsClient::GetPageByURLIdAPIResponse.new } + #let(:instance) { FastCommentsClient::GetPageByURLIdAPIResponse.new } describe 'test an instance of GetPageByURLIdAPIResponse' do it 'should create an instance of GetPageByURLIdAPIResponse' do diff --git a/client/spec/models/get_pages_api_response_spec.rb b/client/spec/models/get_pages_api_response_spec.rb index 54937ad..cc3b1c0 100644 --- a/client/spec/models/get_pages_api_response_spec.rb +++ b/client/spec/models/get_pages_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetPagesAPIResponse do - let(:instance) { FastCommentsClient::GetPagesAPIResponse.new } + #let(:instance) { FastCommentsClient::GetPagesAPIResponse.new } describe 'test an instance of GetPagesAPIResponse' do it 'should create an instance of GetPagesAPIResponse' do diff --git a/client/spec/models/get_pages_public_response_spec.rb b/client/spec/models/get_pages_public_response_spec.rb new file mode 100644 index 0000000..319e2e4 --- /dev/null +++ b/client/spec/models/get_pages_public_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetPagesPublicResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetPagesPublicResponse do +end diff --git a/client/spec/models/get_pending_webhook_event_count_response1_spec.rb b/client/spec/models/get_pending_webhook_event_count_response1_spec.rb new file mode 100644 index 0000000..a6b7cbf --- /dev/null +++ b/client/spec/models/get_pending_webhook_event_count_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetPendingWebhookEventCountResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetPendingWebhookEventCountResponse1 do +end diff --git a/client/spec/models/get_pending_webhook_event_count_response_spec.rb b/client/spec/models/get_pending_webhook_event_count_response_spec.rb index 713a605..610f35f 100644 --- a/client/spec/models/get_pending_webhook_event_count_response_spec.rb +++ b/client/spec/models/get_pending_webhook_event_count_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetPendingWebhookEventCountResponse do - let(:instance) { FastCommentsClient::GetPendingWebhookEventCountResponse.new } + #let(:instance) { FastCommentsClient::GetPendingWebhookEventCountResponse.new } describe 'test an instance of GetPendingWebhookEventCountResponse' do it 'should create an instance of GetPendingWebhookEventCountResponse' do diff --git a/client/spec/models/get_pending_webhook_events_response1_spec.rb b/client/spec/models/get_pending_webhook_events_response1_spec.rb new file mode 100644 index 0000000..27ff31a --- /dev/null +++ b/client/spec/models/get_pending_webhook_events_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetPendingWebhookEventsResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetPendingWebhookEventsResponse1 do +end diff --git a/client/spec/models/get_pending_webhook_events_response_spec.rb b/client/spec/models/get_pending_webhook_events_response_spec.rb index 14c892d..54455f6 100644 --- a/client/spec/models/get_pending_webhook_events_response_spec.rb +++ b/client/spec/models/get_pending_webhook_events_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetPendingWebhookEventsResponse do - let(:instance) { FastCommentsClient::GetPendingWebhookEventsResponse.new } + #let(:instance) { FastCommentsClient::GetPendingWebhookEventsResponse.new } describe 'test an instance of GetPendingWebhookEventsResponse' do it 'should create an instance of GetPendingWebhookEventsResponse' do diff --git a/client/spec/models/get_pre_ban_summary_response_spec.rb b/client/spec/models/get_pre_ban_summary_response_spec.rb new file mode 100644 index 0000000..0489ce9 --- /dev/null +++ b/client/spec/models/get_pre_ban_summary_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetPreBanSummaryResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetPreBanSummaryResponse do +end diff --git a/client/spec/models/get_public_feed_posts_response_spec.rb b/client/spec/models/get_public_feed_posts_response_spec.rb index 21963a9..adf9677 100644 --- a/client/spec/models/get_public_feed_posts_response_spec.rb +++ b/client/spec/models/get_public_feed_posts_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetPublicFeedPostsResponse do - let(:instance) { FastCommentsClient::GetPublicFeedPostsResponse.new } + #let(:instance) { FastCommentsClient::GetPublicFeedPostsResponse.new } describe 'test an instance of GetPublicFeedPostsResponse' do it 'should create an instance of GetPublicFeedPostsResponse' do diff --git a/client/spec/models/get_public_pages_response_spec.rb b/client/spec/models/get_public_pages_response_spec.rb index bc1dd7a..23a6c3a 100644 --- a/client/spec/models/get_public_pages_response_spec.rb +++ b/client/spec/models/get_public_pages_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetPublicPagesResponse do - let(:instance) { FastCommentsClient::GetPublicPagesResponse.new } + #let(:instance) { FastCommentsClient::GetPublicPagesResponse.new } describe 'test an instance of GetPublicPagesResponse' do it 'should create an instance of GetPublicPagesResponse' do diff --git a/client/spec/models/get_question_config_response1_spec.rb b/client/spec/models/get_question_config_response1_spec.rb new file mode 100644 index 0000000..6bf4965 --- /dev/null +++ b/client/spec/models/get_question_config_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetQuestionConfigResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetQuestionConfigResponse1 do +end diff --git a/client/spec/models/get_question_config_response_spec.rb b/client/spec/models/get_question_config_response_spec.rb index d3d1bc3..3c812aa 100644 --- a/client/spec/models/get_question_config_response_spec.rb +++ b/client/spec/models/get_question_config_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetQuestionConfigResponse do - let(:instance) { FastCommentsClient::GetQuestionConfigResponse.new } + #let(:instance) { FastCommentsClient::GetQuestionConfigResponse.new } describe 'test an instance of GetQuestionConfigResponse' do it 'should create an instance of GetQuestionConfigResponse' do diff --git a/client/spec/models/get_question_configs_response1_spec.rb b/client/spec/models/get_question_configs_response1_spec.rb new file mode 100644 index 0000000..c85433c --- /dev/null +++ b/client/spec/models/get_question_configs_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetQuestionConfigsResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetQuestionConfigsResponse1 do +end diff --git a/client/spec/models/get_question_configs_response_spec.rb b/client/spec/models/get_question_configs_response_spec.rb index 84ef05f..a502cd8 100644 --- a/client/spec/models/get_question_configs_response_spec.rb +++ b/client/spec/models/get_question_configs_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetQuestionConfigsResponse do - let(:instance) { FastCommentsClient::GetQuestionConfigsResponse.new } + #let(:instance) { FastCommentsClient::GetQuestionConfigsResponse.new } describe 'test an instance of GetQuestionConfigsResponse' do it 'should create an instance of GetQuestionConfigsResponse' do diff --git a/client/spec/models/get_question_result_response1_spec.rb b/client/spec/models/get_question_result_response1_spec.rb new file mode 100644 index 0000000..1afa725 --- /dev/null +++ b/client/spec/models/get_question_result_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetQuestionResultResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetQuestionResultResponse1 do +end diff --git a/client/spec/models/get_question_result_response_spec.rb b/client/spec/models/get_question_result_response_spec.rb index a99bf43..246d8b1 100644 --- a/client/spec/models/get_question_result_response_spec.rb +++ b/client/spec/models/get_question_result_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetQuestionResultResponse do - let(:instance) { FastCommentsClient::GetQuestionResultResponse.new } + #let(:instance) { FastCommentsClient::GetQuestionResultResponse.new } describe 'test an instance of GetQuestionResultResponse' do it 'should create an instance of GetQuestionResultResponse' do diff --git a/client/spec/models/get_question_results_response1_spec.rb b/client/spec/models/get_question_results_response1_spec.rb new file mode 100644 index 0000000..e46d98e --- /dev/null +++ b/client/spec/models/get_question_results_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetQuestionResultsResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetQuestionResultsResponse1 do +end diff --git a/client/spec/models/get_question_results_response_spec.rb b/client/spec/models/get_question_results_response_spec.rb index a4858a2..6631b06 100644 --- a/client/spec/models/get_question_results_response_spec.rb +++ b/client/spec/models/get_question_results_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetQuestionResultsResponse do - let(:instance) { FastCommentsClient::GetQuestionResultsResponse.new } + #let(:instance) { FastCommentsClient::GetQuestionResultsResponse.new } describe 'test an instance of GetQuestionResultsResponse' do it 'should create an instance of GetQuestionResultsResponse' do diff --git a/client/spec/models/get_search_comments_summary_response_spec.rb b/client/spec/models/get_search_comments_summary_response_spec.rb new file mode 100644 index 0000000..ecb1915 --- /dev/null +++ b/client/spec/models/get_search_comments_summary_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetSearchCommentsSummaryResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetSearchCommentsSummaryResponse do +end diff --git a/client/spec/models/get_search_pages_response_spec.rb b/client/spec/models/get_search_pages_response_spec.rb new file mode 100644 index 0000000..3dd7fe2 --- /dev/null +++ b/client/spec/models/get_search_pages_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetSearchPagesResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetSearchPagesResponse do +end diff --git a/client/spec/models/get_search_sites_response_spec.rb b/client/spec/models/get_search_sites_response_spec.rb new file mode 100644 index 0000000..e9d1490 --- /dev/null +++ b/client/spec/models/get_search_sites_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetSearchSitesResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetSearchSitesResponse do +end diff --git a/client/spec/models/get_search_suggest_response_spec.rb b/client/spec/models/get_search_suggest_response_spec.rb new file mode 100644 index 0000000..7aa3a2b --- /dev/null +++ b/client/spec/models/get_search_suggest_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetSearchSuggestResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetSearchSuggestResponse do +end diff --git a/client/spec/models/get_search_users_response_spec.rb b/client/spec/models/get_search_users_response_spec.rb new file mode 100644 index 0000000..07eddf9 --- /dev/null +++ b/client/spec/models/get_search_users_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetSearchUsersResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetSearchUsersResponse do +end diff --git a/client/spec/models/get_sso_user_by_email_api_response_spec.rb b/client/spec/models/get_sso_user_by_email_api_response_spec.rb index bfa9bce..6a616ac 100644 --- a/client/spec/models/get_sso_user_by_email_api_response_spec.rb +++ b/client/spec/models/get_sso_user_by_email_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetSSOUserByEmailAPIResponse do - let(:instance) { FastCommentsClient::GetSSOUserByEmailAPIResponse.new } + #let(:instance) { FastCommentsClient::GetSSOUserByEmailAPIResponse.new } describe 'test an instance of GetSSOUserByEmailAPIResponse' do it 'should create an instance of GetSSOUserByEmailAPIResponse' do diff --git a/client/spec/models/get_sso_user_by_id_api_response_spec.rb b/client/spec/models/get_sso_user_by_id_api_response_spec.rb index 418d84c..23f255b 100644 --- a/client/spec/models/get_sso_user_by_id_api_response_spec.rb +++ b/client/spec/models/get_sso_user_by_id_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetSSOUserByIdAPIResponse do - let(:instance) { FastCommentsClient::GetSSOUserByIdAPIResponse.new } + #let(:instance) { FastCommentsClient::GetSSOUserByIdAPIResponse.new } describe 'test an instance of GetSSOUserByIdAPIResponse' do it 'should create an instance of GetSSOUserByIdAPIResponse' do diff --git a/client/spec/models/get_sso_users_response_spec.rb b/client/spec/models/get_sso_users_response_spec.rb index e3e474d..6fc4e60 100644 --- a/client/spec/models/get_sso_users_response_spec.rb +++ b/client/spec/models/get_sso_users_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetSSOUsersResponse do - let(:instance) { FastCommentsClient::GetSSOUsersResponse.new } + #let(:instance) { FastCommentsClient::GetSSOUsersResponse.new } describe 'test an instance of GetSSOUsersResponse' do it 'should create an instance of GetSSOUsersResponse' do diff --git a/client/spec/models/get_subscriptions_api_response_spec.rb b/client/spec/models/get_subscriptions_api_response_spec.rb index c3ac35b..677bdd6 100644 --- a/client/spec/models/get_subscriptions_api_response_spec.rb +++ b/client/spec/models/get_subscriptions_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetSubscriptionsAPIResponse do - let(:instance) { FastCommentsClient::GetSubscriptionsAPIResponse.new } + #let(:instance) { FastCommentsClient::GetSubscriptionsAPIResponse.new } describe 'test an instance of GetSubscriptionsAPIResponse' do it 'should create an instance of GetSubscriptionsAPIResponse' do diff --git a/client/spec/models/get_tenant_daily_usages_response1_spec.rb b/client/spec/models/get_tenant_daily_usages_response1_spec.rb new file mode 100644 index 0000000..84673a4 --- /dev/null +++ b/client/spec/models/get_tenant_daily_usages_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetTenantDailyUsagesResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetTenantDailyUsagesResponse1 do +end diff --git a/client/spec/models/get_tenant_daily_usages_response_spec.rb b/client/spec/models/get_tenant_daily_usages_response_spec.rb index d623d7e..99b6fab 100644 --- a/client/spec/models/get_tenant_daily_usages_response_spec.rb +++ b/client/spec/models/get_tenant_daily_usages_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetTenantDailyUsagesResponse do - let(:instance) { FastCommentsClient::GetTenantDailyUsagesResponse.new } + #let(:instance) { FastCommentsClient::GetTenantDailyUsagesResponse.new } describe 'test an instance of GetTenantDailyUsagesResponse' do it 'should create an instance of GetTenantDailyUsagesResponse' do diff --git a/client/spec/models/get_tenant_manual_badges_response_spec.rb b/client/spec/models/get_tenant_manual_badges_response_spec.rb index f6a4714..c349b72 100644 --- a/client/spec/models/get_tenant_manual_badges_response_spec.rb +++ b/client/spec/models/get_tenant_manual_badges_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetTenantManualBadgesResponse do - let(:instance) { FastCommentsClient::GetTenantManualBadgesResponse.new } + #let(:instance) { FastCommentsClient::GetTenantManualBadgesResponse.new } describe 'test an instance of GetTenantManualBadgesResponse' do it 'should create an instance of GetTenantManualBadgesResponse' do diff --git a/client/spec/models/get_tenant_package_response1_spec.rb b/client/spec/models/get_tenant_package_response1_spec.rb new file mode 100644 index 0000000..69e9f33 --- /dev/null +++ b/client/spec/models/get_tenant_package_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetTenantPackageResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetTenantPackageResponse1 do +end diff --git a/client/spec/models/get_tenant_package_response_spec.rb b/client/spec/models/get_tenant_package_response_spec.rb index 9052dd8..06f6d75 100644 --- a/client/spec/models/get_tenant_package_response_spec.rb +++ b/client/spec/models/get_tenant_package_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetTenantPackageResponse do - let(:instance) { FastCommentsClient::GetTenantPackageResponse.new } + #let(:instance) { FastCommentsClient::GetTenantPackageResponse.new } describe 'test an instance of GetTenantPackageResponse' do it 'should create an instance of GetTenantPackageResponse' do diff --git a/client/spec/models/get_tenant_packages_response1_spec.rb b/client/spec/models/get_tenant_packages_response1_spec.rb new file mode 100644 index 0000000..56eea27 --- /dev/null +++ b/client/spec/models/get_tenant_packages_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetTenantPackagesResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetTenantPackagesResponse1 do +end diff --git a/client/spec/models/get_tenant_packages_response_spec.rb b/client/spec/models/get_tenant_packages_response_spec.rb index 3f687ca..e8f5120 100644 --- a/client/spec/models/get_tenant_packages_response_spec.rb +++ b/client/spec/models/get_tenant_packages_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetTenantPackagesResponse do - let(:instance) { FastCommentsClient::GetTenantPackagesResponse.new } + #let(:instance) { FastCommentsClient::GetTenantPackagesResponse.new } describe 'test an instance of GetTenantPackagesResponse' do it 'should create an instance of GetTenantPackagesResponse' do diff --git a/client/spec/models/get_tenant_response1_spec.rb b/client/spec/models/get_tenant_response1_spec.rb new file mode 100644 index 0000000..8229f5d --- /dev/null +++ b/client/spec/models/get_tenant_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetTenantResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetTenantResponse1 do +end diff --git a/client/spec/models/get_tenant_response_spec.rb b/client/spec/models/get_tenant_response_spec.rb index 1105dfb..6f7e611 100644 --- a/client/spec/models/get_tenant_response_spec.rb +++ b/client/spec/models/get_tenant_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetTenantResponse do - let(:instance) { FastCommentsClient::GetTenantResponse.new } + #let(:instance) { FastCommentsClient::GetTenantResponse.new } describe 'test an instance of GetTenantResponse' do it 'should create an instance of GetTenantResponse' do diff --git a/client/spec/models/get_tenant_user_response1_spec.rb b/client/spec/models/get_tenant_user_response1_spec.rb new file mode 100644 index 0000000..0985c2a --- /dev/null +++ b/client/spec/models/get_tenant_user_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetTenantUserResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetTenantUserResponse1 do +end diff --git a/client/spec/models/get_tenant_user_response_spec.rb b/client/spec/models/get_tenant_user_response_spec.rb index edd1569..1d4195b 100644 --- a/client/spec/models/get_tenant_user_response_spec.rb +++ b/client/spec/models/get_tenant_user_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetTenantUserResponse do - let(:instance) { FastCommentsClient::GetTenantUserResponse.new } + #let(:instance) { FastCommentsClient::GetTenantUserResponse.new } describe 'test an instance of GetTenantUserResponse' do it 'should create an instance of GetTenantUserResponse' do diff --git a/client/spec/models/get_tenant_users_response1_spec.rb b/client/spec/models/get_tenant_users_response1_spec.rb new file mode 100644 index 0000000..ca90ea9 --- /dev/null +++ b/client/spec/models/get_tenant_users_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetTenantUsersResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetTenantUsersResponse1 do +end diff --git a/client/spec/models/get_tenant_users_response_spec.rb b/client/spec/models/get_tenant_users_response_spec.rb index c76ef20..fdbae28 100644 --- a/client/spec/models/get_tenant_users_response_spec.rb +++ b/client/spec/models/get_tenant_users_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetTenantUsersResponse do - let(:instance) { FastCommentsClient::GetTenantUsersResponse.new } + #let(:instance) { FastCommentsClient::GetTenantUsersResponse.new } describe 'test an instance of GetTenantUsersResponse' do it 'should create an instance of GetTenantUsersResponse' do diff --git a/client/spec/models/get_tenants_response1_spec.rb b/client/spec/models/get_tenants_response1_spec.rb new file mode 100644 index 0000000..b82c474 --- /dev/null +++ b/client/spec/models/get_tenants_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetTenantsResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetTenantsResponse1 do +end diff --git a/client/spec/models/get_tenants_response_spec.rb b/client/spec/models/get_tenants_response_spec.rb index 422f0e8..d7a9e66 100644 --- a/client/spec/models/get_tenants_response_spec.rb +++ b/client/spec/models/get_tenants_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetTenantsResponse do - let(:instance) { FastCommentsClient::GetTenantsResponse.new } + #let(:instance) { FastCommentsClient::GetTenantsResponse.new } describe 'test an instance of GetTenantsResponse' do it 'should create an instance of GetTenantsResponse' do diff --git a/client/spec/models/get_ticket_response1_spec.rb b/client/spec/models/get_ticket_response1_spec.rb new file mode 100644 index 0000000..08da7b2 --- /dev/null +++ b/client/spec/models/get_ticket_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetTicketResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetTicketResponse1 do +end diff --git a/client/spec/models/get_ticket_response_spec.rb b/client/spec/models/get_ticket_response_spec.rb index a7656a5..0d9a816 100644 --- a/client/spec/models/get_ticket_response_spec.rb +++ b/client/spec/models/get_ticket_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetTicketResponse do - let(:instance) { FastCommentsClient::GetTicketResponse.new } + #let(:instance) { FastCommentsClient::GetTicketResponse.new } describe 'test an instance of GetTicketResponse' do it 'should create an instance of GetTicketResponse' do diff --git a/client/spec/models/get_tickets_response1_spec.rb b/client/spec/models/get_tickets_response1_spec.rb new file mode 100644 index 0000000..e0975ec --- /dev/null +++ b/client/spec/models/get_tickets_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetTicketsResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetTicketsResponse1 do +end diff --git a/client/spec/models/get_tickets_response_spec.rb b/client/spec/models/get_tickets_response_spec.rb index 8a26287..1a73ed8 100644 --- a/client/spec/models/get_tickets_response_spec.rb +++ b/client/spec/models/get_tickets_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetTicketsResponse do - let(:instance) { FastCommentsClient::GetTicketsResponse.new } + #let(:instance) { FastCommentsClient::GetTicketsResponse.new } describe 'test an instance of GetTicketsResponse' do it 'should create an instance of GetTicketsResponse' do diff --git a/client/spec/models/get_translations_response1_spec.rb b/client/spec/models/get_translations_response1_spec.rb new file mode 100644 index 0000000..0b5fcee --- /dev/null +++ b/client/spec/models/get_translations_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetTranslationsResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetTranslationsResponse1 do +end diff --git a/client/spec/models/get_translations_response_spec.rb b/client/spec/models/get_translations_response_spec.rb index 5abd783..af83423 100644 --- a/client/spec/models/get_translations_response_spec.rb +++ b/client/spec/models/get_translations_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetTranslationsResponse do - let(:instance) { FastCommentsClient::GetTranslationsResponse.new } + #let(:instance) { FastCommentsClient::GetTranslationsResponse.new } describe 'test an instance of GetTranslationsResponse' do it 'should create an instance of GetTranslationsResponse' do diff --git a/client/spec/models/get_trust_factor_response_spec.rb b/client/spec/models/get_trust_factor_response_spec.rb new file mode 100644 index 0000000..c279526 --- /dev/null +++ b/client/spec/models/get_trust_factor_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetTrustFactorResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetTrustFactorResponse do +end diff --git a/client/spec/models/get_user_badge_progress_by_id_response_spec.rb b/client/spec/models/get_user_badge_progress_by_id_response_spec.rb new file mode 100644 index 0000000..baf129d --- /dev/null +++ b/client/spec/models/get_user_badge_progress_by_id_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetUserBadgeProgressByIdResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetUserBadgeProgressByIdResponse do +end diff --git a/client/spec/models/get_user_badge_progress_by_user_id_response_spec.rb b/client/spec/models/get_user_badge_progress_by_user_id_response_spec.rb new file mode 100644 index 0000000..3eac2b3 --- /dev/null +++ b/client/spec/models/get_user_badge_progress_by_user_id_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetUserBadgeProgressByUserIdResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetUserBadgeProgressByUserIdResponse do +end diff --git a/client/spec/models/get_user_badge_progress_list_response_spec.rb b/client/spec/models/get_user_badge_progress_list_response_spec.rb new file mode 100644 index 0000000..3d751e2 --- /dev/null +++ b/client/spec/models/get_user_badge_progress_list_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetUserBadgeProgressListResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetUserBadgeProgressListResponse do +end diff --git a/client/spec/models/get_user_badge_response_spec.rb b/client/spec/models/get_user_badge_response_spec.rb new file mode 100644 index 0000000..4de35e4 --- /dev/null +++ b/client/spec/models/get_user_badge_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetUserBadgeResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetUserBadgeResponse do +end diff --git a/client/spec/models/get_user_badges_response_spec.rb b/client/spec/models/get_user_badges_response_spec.rb new file mode 100644 index 0000000..7c93ba8 --- /dev/null +++ b/client/spec/models/get_user_badges_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetUserBadgesResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetUserBadgesResponse do +end diff --git a/client/spec/models/get_user_ban_preference_response_spec.rb b/client/spec/models/get_user_ban_preference_response_spec.rb new file mode 100644 index 0000000..d809fcb --- /dev/null +++ b/client/spec/models/get_user_ban_preference_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetUserBanPreferenceResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetUserBanPreferenceResponse do +end diff --git a/client/spec/models/get_user_internal_profile_response1_spec.rb b/client/spec/models/get_user_internal_profile_response1_spec.rb new file mode 100644 index 0000000..c225962 --- /dev/null +++ b/client/spec/models/get_user_internal_profile_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetUserInternalProfileResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetUserInternalProfileResponse1 do +end diff --git a/client/spec/models/get_user_internal_profile_response_profile_spec.rb b/client/spec/models/get_user_internal_profile_response_profile_spec.rb index 21beb75..5f63534 100644 --- a/client/spec/models/get_user_internal_profile_response_profile_spec.rb +++ b/client/spec/models/get_user_internal_profile_response_profile_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetUserInternalProfileResponseProfile do - let(:instance) { FastCommentsClient::GetUserInternalProfileResponseProfile.new } + #let(:instance) { FastCommentsClient::GetUserInternalProfileResponseProfile.new } describe 'test an instance of GetUserInternalProfileResponseProfile' do it 'should create an instance of GetUserInternalProfileResponseProfile' do diff --git a/client/spec/models/get_user_internal_profile_response_spec.rb b/client/spec/models/get_user_internal_profile_response_spec.rb index e325e5b..0fddc5d 100644 --- a/client/spec/models/get_user_internal_profile_response_spec.rb +++ b/client/spec/models/get_user_internal_profile_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetUserInternalProfileResponse do - let(:instance) { FastCommentsClient::GetUserInternalProfileResponse.new } + #let(:instance) { FastCommentsClient::GetUserInternalProfileResponse.new } describe 'test an instance of GetUserInternalProfileResponse' do it 'should create an instance of GetUserInternalProfileResponse' do diff --git a/client/spec/models/get_user_manual_badges_response_spec.rb b/client/spec/models/get_user_manual_badges_response_spec.rb index a07bfde..f78d084 100644 --- a/client/spec/models/get_user_manual_badges_response_spec.rb +++ b/client/spec/models/get_user_manual_badges_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetUserManualBadgesResponse do - let(:instance) { FastCommentsClient::GetUserManualBadgesResponse.new } + #let(:instance) { FastCommentsClient::GetUserManualBadgesResponse.new } describe 'test an instance of GetUserManualBadgesResponse' do it 'should create an instance of GetUserManualBadgesResponse' do diff --git a/client/spec/models/get_user_notification_count_response1_spec.rb b/client/spec/models/get_user_notification_count_response1_spec.rb new file mode 100644 index 0000000..e18e7e3 --- /dev/null +++ b/client/spec/models/get_user_notification_count_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetUserNotificationCountResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetUserNotificationCountResponse1 do +end diff --git a/client/spec/models/get_user_notification_count_response_spec.rb b/client/spec/models/get_user_notification_count_response_spec.rb index dc995d5..2f59188 100644 --- a/client/spec/models/get_user_notification_count_response_spec.rb +++ b/client/spec/models/get_user_notification_count_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetUserNotificationCountResponse do - let(:instance) { FastCommentsClient::GetUserNotificationCountResponse.new } + #let(:instance) { FastCommentsClient::GetUserNotificationCountResponse.new } describe 'test an instance of GetUserNotificationCountResponse' do it 'should create an instance of GetUserNotificationCountResponse' do diff --git a/client/spec/models/get_user_notifications_response_spec.rb b/client/spec/models/get_user_notifications_response_spec.rb new file mode 100644 index 0000000..91a40a2 --- /dev/null +++ b/client/spec/models/get_user_notifications_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetUserNotificationsResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetUserNotificationsResponse do +end diff --git a/client/spec/models/get_user_presence_statuses_response1_spec.rb b/client/spec/models/get_user_presence_statuses_response1_spec.rb new file mode 100644 index 0000000..572861d --- /dev/null +++ b/client/spec/models/get_user_presence_statuses_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetUserPresenceStatusesResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetUserPresenceStatusesResponse1 do +end diff --git a/client/spec/models/get_user_presence_statuses_response_spec.rb b/client/spec/models/get_user_presence_statuses_response_spec.rb index 42833c5..071bc3d 100644 --- a/client/spec/models/get_user_presence_statuses_response_spec.rb +++ b/client/spec/models/get_user_presence_statuses_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetUserPresenceStatusesResponse do - let(:instance) { FastCommentsClient::GetUserPresenceStatusesResponse.new } + #let(:instance) { FastCommentsClient::GetUserPresenceStatusesResponse.new } describe 'test an instance of GetUserPresenceStatusesResponse' do it 'should create an instance of GetUserPresenceStatusesResponse' do diff --git a/client/spec/models/get_user_reacts_public_response_spec.rb b/client/spec/models/get_user_reacts_public_response_spec.rb new file mode 100644 index 0000000..df152cf --- /dev/null +++ b/client/spec/models/get_user_reacts_public_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetUserReactsPublicResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetUserReactsPublicResponse do +end diff --git a/client/spec/models/get_user_response1_spec.rb b/client/spec/models/get_user_response1_spec.rb new file mode 100644 index 0000000..7937272 --- /dev/null +++ b/client/spec/models/get_user_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetUserResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetUserResponse1 do +end diff --git a/client/spec/models/get_user_response_spec.rb b/client/spec/models/get_user_response_spec.rb index ea159be..e4e1313 100644 --- a/client/spec/models/get_user_response_spec.rb +++ b/client/spec/models/get_user_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetUserResponse do - let(:instance) { FastCommentsClient::GetUserResponse.new } + #let(:instance) { FastCommentsClient::GetUserResponse.new } describe 'test an instance of GetUserResponse' do it 'should create an instance of GetUserResponse' do diff --git a/client/spec/models/get_user_trust_factor_response_spec.rb b/client/spec/models/get_user_trust_factor_response_spec.rb index 92d0b39..7a5689d 100644 --- a/client/spec/models/get_user_trust_factor_response_spec.rb +++ b/client/spec/models/get_user_trust_factor_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetUserTrustFactorResponse do - let(:instance) { FastCommentsClient::GetUserTrustFactorResponse.new } + #let(:instance) { FastCommentsClient::GetUserTrustFactorResponse.new } describe 'test an instance of GetUserTrustFactorResponse' do it 'should create an instance of GetUserTrustFactorResponse' do diff --git a/client/spec/models/get_users_info_response_spec.rb b/client/spec/models/get_users_info_response_spec.rb new file mode 100644 index 0000000..e40bce3 --- /dev/null +++ b/client/spec/models/get_users_info_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetUsersInfoResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetUsersInfoResponse do +end diff --git a/client/spec/models/get_v1_page_likes_response_spec.rb b/client/spec/models/get_v1_page_likes_response_spec.rb new file mode 100644 index 0000000..b89159f --- /dev/null +++ b/client/spec/models/get_v1_page_likes_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetV1PageLikesResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetV1PageLikesResponse do +end diff --git a/client/spec/models/get_v1_page_likes_spec.rb b/client/spec/models/get_v1_page_likes_spec.rb index ff1818d..b84ac45 100644 --- a/client/spec/models/get_v1_page_likes_spec.rb +++ b/client/spec/models/get_v1_page_likes_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetV1PageLikes do - let(:instance) { FastCommentsClient::GetV1PageLikes.new } + #let(:instance) { FastCommentsClient::GetV1PageLikes.new } describe 'test an instance of GetV1PageLikes' do it 'should create an instance of GetV1PageLikes' do diff --git a/client/spec/models/get_v2_page_react_users_response1_spec.rb b/client/spec/models/get_v2_page_react_users_response1_spec.rb new file mode 100644 index 0000000..6e6b8a9 --- /dev/null +++ b/client/spec/models/get_v2_page_react_users_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetV2PageReactUsersResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetV2PageReactUsersResponse1 do +end diff --git a/client/spec/models/get_v2_page_react_users_response_spec.rb b/client/spec/models/get_v2_page_react_users_response_spec.rb index 18e8005..ccd80e4 100644 --- a/client/spec/models/get_v2_page_react_users_response_spec.rb +++ b/client/spec/models/get_v2_page_react_users_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetV2PageReactUsersResponse do - let(:instance) { FastCommentsClient::GetV2PageReactUsersResponse.new } + #let(:instance) { FastCommentsClient::GetV2PageReactUsersResponse.new } describe 'test an instance of GetV2PageReactUsersResponse' do it 'should create an instance of GetV2PageReactUsersResponse' do diff --git a/client/spec/models/get_v2_page_reacts_response_spec.rb b/client/spec/models/get_v2_page_reacts_response_spec.rb new file mode 100644 index 0000000..85a2b95 --- /dev/null +++ b/client/spec/models/get_v2_page_reacts_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetV2PageReactsResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetV2PageReactsResponse do +end diff --git a/client/spec/models/get_v2_page_reacts_spec.rb b/client/spec/models/get_v2_page_reacts_spec.rb index 0461ac6..611839a 100644 --- a/client/spec/models/get_v2_page_reacts_spec.rb +++ b/client/spec/models/get_v2_page_reacts_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetV2PageReacts do - let(:instance) { FastCommentsClient::GetV2PageReacts.new } + #let(:instance) { FastCommentsClient::GetV2PageReacts.new } describe 'test an instance of GetV2PageReacts' do it 'should create an instance of GetV2PageReacts' do diff --git a/client/spec/models/get_votes_for_user_response1_spec.rb b/client/spec/models/get_votes_for_user_response1_spec.rb new file mode 100644 index 0000000..d7d72db --- /dev/null +++ b/client/spec/models/get_votes_for_user_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetVotesForUserResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetVotesForUserResponse1 do +end diff --git a/client/spec/models/get_votes_for_user_response_spec.rb b/client/spec/models/get_votes_for_user_response_spec.rb index a8dfb63..f216eec 100644 --- a/client/spec/models/get_votes_for_user_response_spec.rb +++ b/client/spec/models/get_votes_for_user_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetVotesForUserResponse do - let(:instance) { FastCommentsClient::GetVotesForUserResponse.new } + #let(:instance) { FastCommentsClient::GetVotesForUserResponse.new } describe 'test an instance of GetVotesForUserResponse' do it 'should create an instance of GetVotesForUserResponse' do diff --git a/client/spec/models/get_votes_response1_spec.rb b/client/spec/models/get_votes_response1_spec.rb new file mode 100644 index 0000000..19b5048 --- /dev/null +++ b/client/spec/models/get_votes_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetVotesResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetVotesResponse1 do +end diff --git a/client/spec/models/get_votes_response_spec.rb b/client/spec/models/get_votes_response_spec.rb index 98c6678..a537f75 100644 --- a/client/spec/models/get_votes_response_spec.rb +++ b/client/spec/models/get_votes_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetVotesResponse do - let(:instance) { FastCommentsClient::GetVotesResponse.new } + #let(:instance) { FastCommentsClient::GetVotesResponse.new } describe 'test an instance of GetVotesResponse' do it 'should create an instance of GetVotesResponse' do diff --git a/client/spec/models/gif_get_large_response_spec.rb b/client/spec/models/gif_get_large_response_spec.rb index 4896e11..c5b71d7 100644 --- a/client/spec/models/gif_get_large_response_spec.rb +++ b/client/spec/models/gif_get_large_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GifGetLargeResponse do - let(:instance) { FastCommentsClient::GifGetLargeResponse.new } + #let(:instance) { FastCommentsClient::GifGetLargeResponse.new } describe 'test an instance of GifGetLargeResponse' do it 'should create an instance of GifGetLargeResponse' do diff --git a/client/spec/models/gif_rating_spec.rb b/client/spec/models/gif_rating_spec.rb index 55c7fc9..c4c81ae 100644 --- a/client/spec/models/gif_rating_spec.rb +++ b/client/spec/models/gif_rating_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GifRating do - let(:instance) { FastCommentsClient::GifRating.new } + #let(:instance) { FastCommentsClient::GifRating.new } describe 'test an instance of GifRating' do it 'should create an instance of GifRating' do diff --git a/client/spec/models/gif_search_internal_error_spec.rb b/client/spec/models/gif_search_internal_error_spec.rb index 1a6c7b9..be21a55 100644 --- a/client/spec/models/gif_search_internal_error_spec.rb +++ b/client/spec/models/gif_search_internal_error_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GifSearchInternalError do - let(:instance) { FastCommentsClient::GifSearchInternalError.new } + #let(:instance) { FastCommentsClient::GifSearchInternalError.new } describe 'test an instance of GifSearchInternalError' do it 'should create an instance of GifSearchInternalError' do diff --git a/client/spec/models/gif_search_response_images_inner_inner_spec.rb b/client/spec/models/gif_search_response_images_inner_inner_spec.rb index 50d628e..39776dd 100644 --- a/client/spec/models/gif_search_response_images_inner_inner_spec.rb +++ b/client/spec/models/gif_search_response_images_inner_inner_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/gif_search_response_spec.rb b/client/spec/models/gif_search_response_spec.rb index 821f85d..0c5e454 100644 --- a/client/spec/models/gif_search_response_spec.rb +++ b/client/spec/models/gif_search_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GifSearchResponse do - let(:instance) { FastCommentsClient::GifSearchResponse.new } + #let(:instance) { FastCommentsClient::GifSearchResponse.new } describe 'test an instance of GifSearchResponse' do it 'should create an instance of GifSearchResponse' do diff --git a/client/spec/models/header_account_notification_spec.rb b/client/spec/models/header_account_notification_spec.rb index f785562..dd1d40f 100644 --- a/client/spec/models/header_account_notification_spec.rb +++ b/client/spec/models/header_account_notification_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::HeaderAccountNotification do - let(:instance) { FastCommentsClient::HeaderAccountNotification.new } + #let(:instance) { FastCommentsClient::HeaderAccountNotification.new } describe 'test an instance of HeaderAccountNotification' do it 'should create an instance of HeaderAccountNotification' do diff --git a/client/spec/models/header_state_spec.rb b/client/spec/models/header_state_spec.rb index afa83ec..6055e14 100644 --- a/client/spec/models/header_state_spec.rb +++ b/client/spec/models/header_state_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::HeaderState do - let(:instance) { FastCommentsClient::HeaderState.new } + #let(:instance) { FastCommentsClient::HeaderState.new } describe 'test an instance of HeaderState' do it 'should create an instance of HeaderState' do diff --git a/client/spec/models/ignored_response_spec.rb b/client/spec/models/ignored_response_spec.rb index 70a82e9..7881f10 100644 --- a/client/spec/models/ignored_response_spec.rb +++ b/client/spec/models/ignored_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::IgnoredResponse do - let(:instance) { FastCommentsClient::IgnoredResponse.new } + #let(:instance) { FastCommentsClient::IgnoredResponse.new } describe 'test an instance of IgnoredResponse' do it 'should create an instance of IgnoredResponse' do diff --git a/client/spec/models/image_content_profanity_level_spec.rb b/client/spec/models/image_content_profanity_level_spec.rb index 4b2e233..939cce1 100644 --- a/client/spec/models/image_content_profanity_level_spec.rb +++ b/client/spec/models/image_content_profanity_level_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ImageContentProfanityLevel do - let(:instance) { FastCommentsClient::ImageContentProfanityLevel.new } + #let(:instance) { FastCommentsClient::ImageContentProfanityLevel.new } describe 'test an instance of ImageContentProfanityLevel' do it 'should create an instance of ImageContentProfanityLevel' do diff --git a/client/spec/models/imported_agent_approval_notification_frequency_spec.rb b/client/spec/models/imported_agent_approval_notification_frequency_spec.rb index 599b327..fa74bee 100644 --- a/client/spec/models/imported_agent_approval_notification_frequency_spec.rb +++ b/client/spec/models/imported_agent_approval_notification_frequency_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ImportedAgentApprovalNotificationFrequency do - let(:instance) { FastCommentsClient::ImportedAgentApprovalNotificationFrequency.new } + #let(:instance) { FastCommentsClient::ImportedAgentApprovalNotificationFrequency.new } describe 'test an instance of ImportedAgentApprovalNotificationFrequency' do it 'should create an instance of ImportedAgentApprovalNotificationFrequency' do diff --git a/client/spec/models/imported_site_type_spec.rb b/client/spec/models/imported_site_type_spec.rb index fc057de..a9a3aec 100644 --- a/client/spec/models/imported_site_type_spec.rb +++ b/client/spec/models/imported_site_type_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ImportedSiteType do - let(:instance) { FastCommentsClient::ImportedSiteType.new } + #let(:instance) { FastCommentsClient::ImportedSiteType.new } describe 'test an instance of ImportedSiteType' do it 'should create an instance of ImportedSiteType' do diff --git a/client/spec/models/live_event_extra_info_spec.rb b/client/spec/models/live_event_extra_info_spec.rb index 8ea37a1..d0bad96 100644 --- a/client/spec/models/live_event_extra_info_spec.rb +++ b/client/spec/models/live_event_extra_info_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::LiveEventExtraInfo do - let(:instance) { FastCommentsClient::LiveEventExtraInfo.new } + #let(:instance) { FastCommentsClient::LiveEventExtraInfo.new } describe 'test an instance of LiveEventExtraInfo' do it 'should create an instance of LiveEventExtraInfo' do diff --git a/client/spec/models/live_event_spec.rb b/client/spec/models/live_event_spec.rb index e625a87..18ad74c 100644 --- a/client/spec/models/live_event_spec.rb +++ b/client/spec/models/live_event_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::LiveEvent do - let(:instance) { FastCommentsClient::LiveEvent.new } + #let(:instance) { FastCommentsClient::LiveEvent.new } describe 'test an instance of LiveEvent' do it 'should create an instance of LiveEvent' do diff --git a/client/spec/models/live_event_type_spec.rb b/client/spec/models/live_event_type_spec.rb index 711c4b8..ac16dbf 100644 --- a/client/spec/models/live_event_type_spec.rb +++ b/client/spec/models/live_event_type_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::LiveEventType do - let(:instance) { FastCommentsClient::LiveEventType.new } + #let(:instance) { FastCommentsClient::LiveEventType.new } describe 'test an instance of LiveEventType' do it 'should create an instance of LiveEventType' do diff --git a/client/spec/models/lock_comment_response_spec.rb b/client/spec/models/lock_comment_response_spec.rb new file mode 100644 index 0000000..211bc7f --- /dev/null +++ b/client/spec/models/lock_comment_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::LockCommentResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::LockCommentResponse do +end diff --git a/client/spec/models/media_asset_spec.rb b/client/spec/models/media_asset_spec.rb index a763d74..7f2cdb5 100644 --- a/client/spec/models/media_asset_spec.rb +++ b/client/spec/models/media_asset_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::MediaAsset do - let(:instance) { FastCommentsClient::MediaAsset.new } + #let(:instance) { FastCommentsClient::MediaAsset.new } describe 'test an instance of MediaAsset' do it 'should create an instance of MediaAsset' do diff --git a/client/spec/models/mention_auto_complete_mode_spec.rb b/client/spec/models/mention_auto_complete_mode_spec.rb index 2747cd8..c8d0b66 100644 --- a/client/spec/models/mention_auto_complete_mode_spec.rb +++ b/client/spec/models/mention_auto_complete_mode_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::MentionAutoCompleteMode do - let(:instance) { FastCommentsClient::MentionAutoCompleteMode.new } + #let(:instance) { FastCommentsClient::MentionAutoCompleteMode.new } describe 'test an instance of MentionAutoCompleteMode' do it 'should create an instance of MentionAutoCompleteMode' do diff --git a/client/spec/models/meta_item_spec.rb b/client/spec/models/meta_item_spec.rb index d466890..3efb08a 100644 --- a/client/spec/models/meta_item_spec.rb +++ b/client/spec/models/meta_item_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::MetaItem do - let(:instance) { FastCommentsClient::MetaItem.new } + #let(:instance) { FastCommentsClient::MetaItem.new } describe 'test an instance of MetaItem' do it 'should create an instance of MetaItem' do diff --git a/client/spec/models/moderation_api_child_comments_response_spec.rb b/client/spec/models/moderation_api_child_comments_response_spec.rb index b7ba6a9..9aba4ec 100644 --- a/client/spec/models/moderation_api_child_comments_response_spec.rb +++ b/client/spec/models/moderation_api_child_comments_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationAPIChildCommentsResponse do - let(:instance) { FastCommentsClient::ModerationAPIChildCommentsResponse.new } + #let(:instance) { FastCommentsClient::ModerationAPIChildCommentsResponse.new } describe 'test an instance of ModerationAPIChildCommentsResponse' do it 'should create an instance of ModerationAPIChildCommentsResponse' do diff --git a/client/spec/models/moderation_api_comment_log_spec.rb b/client/spec/models/moderation_api_comment_log_spec.rb index 9deaa10..a415d66 100644 --- a/client/spec/models/moderation_api_comment_log_spec.rb +++ b/client/spec/models/moderation_api_comment_log_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationAPICommentLog do - let(:instance) { FastCommentsClient::ModerationAPICommentLog.new } + #let(:instance) { FastCommentsClient::ModerationAPICommentLog.new } describe 'test an instance of ModerationAPICommentLog' do it 'should create an instance of ModerationAPICommentLog' do diff --git a/client/spec/models/moderation_api_comment_response_spec.rb b/client/spec/models/moderation_api_comment_response_spec.rb index e1f1041..56a250c 100644 --- a/client/spec/models/moderation_api_comment_response_spec.rb +++ b/client/spec/models/moderation_api_comment_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationAPICommentResponse do - let(:instance) { FastCommentsClient::ModerationAPICommentResponse.new } + #let(:instance) { FastCommentsClient::ModerationAPICommentResponse.new } describe 'test an instance of ModerationAPICommentResponse' do it 'should create an instance of ModerationAPICommentResponse' do diff --git a/client/spec/models/moderation_api_comment_spec.rb b/client/spec/models/moderation_api_comment_spec.rb index cee50d4..fa5a397 100644 --- a/client/spec/models/moderation_api_comment_spec.rb +++ b/client/spec/models/moderation_api_comment_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationAPIComment do - let(:instance) { FastCommentsClient::ModerationAPIComment.new } + #let(:instance) { FastCommentsClient::ModerationAPIComment.new } describe 'test an instance of ModerationAPIComment' do it 'should create an instance of ModerationAPIComment' do diff --git a/client/spec/models/moderation_api_count_comments_response_spec.rb b/client/spec/models/moderation_api_count_comments_response_spec.rb index 7239eb6..6cf27ca 100644 --- a/client/spec/models/moderation_api_count_comments_response_spec.rb +++ b/client/spec/models/moderation_api_count_comments_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationAPICountCommentsResponse do - let(:instance) { FastCommentsClient::ModerationAPICountCommentsResponse.new } + #let(:instance) { FastCommentsClient::ModerationAPICountCommentsResponse.new } describe 'test an instance of ModerationAPICountCommentsResponse' do it 'should create an instance of ModerationAPICountCommentsResponse' do diff --git a/client/spec/models/moderation_api_get_comment_ids_response_spec.rb b/client/spec/models/moderation_api_get_comment_ids_response_spec.rb index cb4b943..f50d853 100644 --- a/client/spec/models/moderation_api_get_comment_ids_response_spec.rb +++ b/client/spec/models/moderation_api_get_comment_ids_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationAPIGetCommentIdsResponse do - let(:instance) { FastCommentsClient::ModerationAPIGetCommentIdsResponse.new } + #let(:instance) { FastCommentsClient::ModerationAPIGetCommentIdsResponse.new } describe 'test an instance of ModerationAPIGetCommentIdsResponse' do it 'should create an instance of ModerationAPIGetCommentIdsResponse' do diff --git a/client/spec/models/moderation_api_get_comments_response_spec.rb b/client/spec/models/moderation_api_get_comments_response_spec.rb index 282292b..3f70625 100644 --- a/client/spec/models/moderation_api_get_comments_response_spec.rb +++ b/client/spec/models/moderation_api_get_comments_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationAPIGetCommentsResponse do - let(:instance) { FastCommentsClient::ModerationAPIGetCommentsResponse.new } + #let(:instance) { FastCommentsClient::ModerationAPIGetCommentsResponse.new } describe 'test an instance of ModerationAPIGetCommentsResponse' do it 'should create an instance of ModerationAPIGetCommentsResponse' do diff --git a/client/spec/models/moderation_api_get_logs_response_spec.rb b/client/spec/models/moderation_api_get_logs_response_spec.rb index a34d023..6af79ff 100644 --- a/client/spec/models/moderation_api_get_logs_response_spec.rb +++ b/client/spec/models/moderation_api_get_logs_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationAPIGetLogsResponse do - let(:instance) { FastCommentsClient::ModerationAPIGetLogsResponse.new } + #let(:instance) { FastCommentsClient::ModerationAPIGetLogsResponse.new } describe 'test an instance of ModerationAPIGetLogsResponse' do it 'should create an instance of ModerationAPIGetLogsResponse' do diff --git a/client/spec/models/moderation_comment_search_response_spec.rb b/client/spec/models/moderation_comment_search_response_spec.rb index b096054..8edc6da 100644 --- a/client/spec/models/moderation_comment_search_response_spec.rb +++ b/client/spec/models/moderation_comment_search_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationCommentSearchResponse do - let(:instance) { FastCommentsClient::ModerationCommentSearchResponse.new } + #let(:instance) { FastCommentsClient::ModerationCommentSearchResponse.new } describe 'test an instance of ModerationCommentSearchResponse' do it 'should create an instance of ModerationCommentSearchResponse' do diff --git a/client/spec/models/moderation_export_response_spec.rb b/client/spec/models/moderation_export_response_spec.rb index 5322f4c..43ff580 100644 --- a/client/spec/models/moderation_export_response_spec.rb +++ b/client/spec/models/moderation_export_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationExportResponse do - let(:instance) { FastCommentsClient::ModerationExportResponse.new } + #let(:instance) { FastCommentsClient::ModerationExportResponse.new } describe 'test an instance of ModerationExportResponse' do it 'should create an instance of ModerationExportResponse' do diff --git a/client/spec/models/moderation_export_status_response_spec.rb b/client/spec/models/moderation_export_status_response_spec.rb index 707118e..45adc8f 100644 --- a/client/spec/models/moderation_export_status_response_spec.rb +++ b/client/spec/models/moderation_export_status_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationExportStatusResponse do - let(:instance) { FastCommentsClient::ModerationExportStatusResponse.new } + #let(:instance) { FastCommentsClient::ModerationExportStatusResponse.new } describe 'test an instance of ModerationExportStatusResponse' do it 'should create an instance of ModerationExportStatusResponse' do diff --git a/client/spec/models/moderation_filter_spec.rb b/client/spec/models/moderation_filter_spec.rb index 1669eeb..0438268 100644 --- a/client/spec/models/moderation_filter_spec.rb +++ b/client/spec/models/moderation_filter_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationFilter do - let(:instance) { FastCommentsClient::ModerationFilter.new } + #let(:instance) { FastCommentsClient::ModerationFilter.new } describe 'test an instance of ModerationFilter' do it 'should create an instance of ModerationFilter' do diff --git a/client/spec/models/moderation_page_search_projected_spec.rb b/client/spec/models/moderation_page_search_projected_spec.rb index 1faeac0..c9dd948 100644 --- a/client/spec/models/moderation_page_search_projected_spec.rb +++ b/client/spec/models/moderation_page_search_projected_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationPageSearchProjected do - let(:instance) { FastCommentsClient::ModerationPageSearchProjected.new } + #let(:instance) { FastCommentsClient::ModerationPageSearchProjected.new } describe 'test an instance of ModerationPageSearchProjected' do it 'should create an instance of ModerationPageSearchProjected' do diff --git a/client/spec/models/moderation_page_search_response_spec.rb b/client/spec/models/moderation_page_search_response_spec.rb index 449f861..1ac04bc 100644 --- a/client/spec/models/moderation_page_search_response_spec.rb +++ b/client/spec/models/moderation_page_search_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationPageSearchResponse do - let(:instance) { FastCommentsClient::ModerationPageSearchResponse.new } + #let(:instance) { FastCommentsClient::ModerationPageSearchResponse.new } describe 'test an instance of ModerationPageSearchResponse' do it 'should create an instance of ModerationPageSearchResponse' do diff --git a/client/spec/models/moderation_site_search_projected_spec.rb b/client/spec/models/moderation_site_search_projected_spec.rb index d197af7..58d2dfa 100644 --- a/client/spec/models/moderation_site_search_projected_spec.rb +++ b/client/spec/models/moderation_site_search_projected_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationSiteSearchProjected do - let(:instance) { FastCommentsClient::ModerationSiteSearchProjected.new } + #let(:instance) { FastCommentsClient::ModerationSiteSearchProjected.new } describe 'test an instance of ModerationSiteSearchProjected' do it 'should create an instance of ModerationSiteSearchProjected' do diff --git a/client/spec/models/moderation_site_search_response_spec.rb b/client/spec/models/moderation_site_search_response_spec.rb index 6c7cc06..409a5d8 100644 --- a/client/spec/models/moderation_site_search_response_spec.rb +++ b/client/spec/models/moderation_site_search_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationSiteSearchResponse do - let(:instance) { FastCommentsClient::ModerationSiteSearchResponse.new } + #let(:instance) { FastCommentsClient::ModerationSiteSearchResponse.new } describe 'test an instance of ModerationSiteSearchResponse' do it 'should create an instance of ModerationSiteSearchResponse' do diff --git a/client/spec/models/moderation_suggest_response_spec.rb b/client/spec/models/moderation_suggest_response_spec.rb index 0659a03..b23a982 100644 --- a/client/spec/models/moderation_suggest_response_spec.rb +++ b/client/spec/models/moderation_suggest_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationSuggestResponse do - let(:instance) { FastCommentsClient::ModerationSuggestResponse.new } + #let(:instance) { FastCommentsClient::ModerationSuggestResponse.new } describe 'test an instance of ModerationSuggestResponse' do it 'should create an instance of ModerationSuggestResponse' do diff --git a/client/spec/models/moderation_user_search_projected_spec.rb b/client/spec/models/moderation_user_search_projected_spec.rb index d81cbf7..c521d2a 100644 --- a/client/spec/models/moderation_user_search_projected_spec.rb +++ b/client/spec/models/moderation_user_search_projected_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationUserSearchProjected do - let(:instance) { FastCommentsClient::ModerationUserSearchProjected.new } + #let(:instance) { FastCommentsClient::ModerationUserSearchProjected.new } describe 'test an instance of ModerationUserSearchProjected' do it 'should create an instance of ModerationUserSearchProjected' do diff --git a/client/spec/models/moderation_user_search_response_spec.rb b/client/spec/models/moderation_user_search_response_spec.rb index 56b3df4..2d787e6 100644 --- a/client/spec/models/moderation_user_search_response_spec.rb +++ b/client/spec/models/moderation_user_search_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationUserSearchResponse do - let(:instance) { FastCommentsClient::ModerationUserSearchResponse.new } + #let(:instance) { FastCommentsClient::ModerationUserSearchResponse.new } describe 'test an instance of ModerationUserSearchResponse' do it 'should create an instance of ModerationUserSearchResponse' do diff --git a/client/spec/models/moderator_spec.rb b/client/spec/models/moderator_spec.rb index fbfe703..fd1173a 100644 --- a/client/spec/models/moderator_spec.rb +++ b/client/spec/models/moderator_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::Moderator do - let(:instance) { FastCommentsClient::Moderator.new } + #let(:instance) { FastCommentsClient::Moderator.new } describe 'test an instance of Moderator' do it 'should create an instance of Moderator' do diff --git a/client/spec/models/notification_and_count_spec.rb b/client/spec/models/notification_and_count_spec.rb index fe2da82..c6c7fab 100644 --- a/client/spec/models/notification_and_count_spec.rb +++ b/client/spec/models/notification_and_count_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::NotificationAndCount do - let(:instance) { FastCommentsClient::NotificationAndCount.new } + #let(:instance) { FastCommentsClient::NotificationAndCount.new } describe 'test an instance of NotificationAndCount' do it 'should create an instance of NotificationAndCount' do diff --git a/client/spec/models/notification_object_type_spec.rb b/client/spec/models/notification_object_type_spec.rb index b701589..50aa378 100644 --- a/client/spec/models/notification_object_type_spec.rb +++ b/client/spec/models/notification_object_type_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::NotificationObjectType do - let(:instance) { FastCommentsClient::NotificationObjectType.new } + #let(:instance) { FastCommentsClient::NotificationObjectType.new } describe 'test an instance of NotificationObjectType' do it 'should create an instance of NotificationObjectType' do diff --git a/client/spec/models/notification_type_spec.rb b/client/spec/models/notification_type_spec.rb index 6c40678..ace387a 100644 --- a/client/spec/models/notification_type_spec.rb +++ b/client/spec/models/notification_type_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::NotificationType do - let(:instance) { FastCommentsClient::NotificationType.new } + #let(:instance) { FastCommentsClient::NotificationType.new } describe 'test an instance of NotificationType' do it 'should create an instance of NotificationType' do diff --git a/client/spec/models/page_user_entry_spec.rb b/client/spec/models/page_user_entry_spec.rb index 358518d..84fd61b 100644 --- a/client/spec/models/page_user_entry_spec.rb +++ b/client/spec/models/page_user_entry_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PageUserEntry do - let(:instance) { FastCommentsClient::PageUserEntry.new } + #let(:instance) { FastCommentsClient::PageUserEntry.new } describe 'test an instance of PageUserEntry' do it 'should create an instance of PageUserEntry' do diff --git a/client/spec/models/page_users_info_response_spec.rb b/client/spec/models/page_users_info_response_spec.rb index 0534c8f..aad32f9 100644 --- a/client/spec/models/page_users_info_response_spec.rb +++ b/client/spec/models/page_users_info_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PageUsersInfoResponse do - let(:instance) { FastCommentsClient::PageUsersInfoResponse.new } + #let(:instance) { FastCommentsClient::PageUsersInfoResponse.new } describe 'test an instance of PageUsersInfoResponse' do it 'should create an instance of PageUsersInfoResponse' do diff --git a/client/spec/models/page_users_offline_response_spec.rb b/client/spec/models/page_users_offline_response_spec.rb index dd4f6ce..0fe80d7 100644 --- a/client/spec/models/page_users_offline_response_spec.rb +++ b/client/spec/models/page_users_offline_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PageUsersOfflineResponse do - let(:instance) { FastCommentsClient::PageUsersOfflineResponse.new } + #let(:instance) { FastCommentsClient::PageUsersOfflineResponse.new } describe 'test an instance of PageUsersOfflineResponse' do it 'should create an instance of PageUsersOfflineResponse' do diff --git a/client/spec/models/page_users_online_response_spec.rb b/client/spec/models/page_users_online_response_spec.rb index effb885..2293b3f 100644 --- a/client/spec/models/page_users_online_response_spec.rb +++ b/client/spec/models/page_users_online_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PageUsersOnlineResponse do - let(:instance) { FastCommentsClient::PageUsersOnlineResponse.new } + #let(:instance) { FastCommentsClient::PageUsersOnlineResponse.new } describe 'test an instance of PageUsersOnlineResponse' do it 'should create an instance of PageUsersOnlineResponse' do diff --git a/client/spec/models/pages_sort_by_spec.rb b/client/spec/models/pages_sort_by_spec.rb index dca4fce..f04fa60 100644 --- a/client/spec/models/pages_sort_by_spec.rb +++ b/client/spec/models/pages_sort_by_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PagesSortBy do - let(:instance) { FastCommentsClient::PagesSortBy.new } + #let(:instance) { FastCommentsClient::PagesSortBy.new } describe 'test an instance of PagesSortBy' do it 'should create an instance of PagesSortBy' do diff --git a/client/spec/models/patch_domain_config_params_spec.rb b/client/spec/models/patch_domain_config_params_spec.rb index 5f145a9..67d8ae0 100644 --- a/client/spec/models/patch_domain_config_params_spec.rb +++ b/client/spec/models/patch_domain_config_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PatchDomainConfigParams do - let(:instance) { FastCommentsClient::PatchDomainConfigParams.new } + #let(:instance) { FastCommentsClient::PatchDomainConfigParams.new } describe 'test an instance of PatchDomainConfigParams' do it 'should create an instance of PatchDomainConfigParams' do diff --git a/client/spec/models/patch_domain_config_response_spec.rb b/client/spec/models/patch_domain_config_response_spec.rb index 8f442bb..67af55c 100644 --- a/client/spec/models/patch_domain_config_response_spec.rb +++ b/client/spec/models/patch_domain_config_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/patch_hash_tag_response_spec.rb b/client/spec/models/patch_hash_tag_response_spec.rb new file mode 100644 index 0000000..ab3afbd --- /dev/null +++ b/client/spec/models/patch_hash_tag_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::PatchHashTagResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::PatchHashTagResponse do +end diff --git a/client/spec/models/patch_page_api_response_spec.rb b/client/spec/models/patch_page_api_response_spec.rb index f2ce6bf..1def25d 100644 --- a/client/spec/models/patch_page_api_response_spec.rb +++ b/client/spec/models/patch_page_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PatchPageAPIResponse do - let(:instance) { FastCommentsClient::PatchPageAPIResponse.new } + #let(:instance) { FastCommentsClient::PatchPageAPIResponse.new } describe 'test an instance of PatchPageAPIResponse' do it 'should create an instance of PatchPageAPIResponse' do diff --git a/client/spec/models/patch_sso_user_api_response_spec.rb b/client/spec/models/patch_sso_user_api_response_spec.rb index b775c54..3b25b5b 100644 --- a/client/spec/models/patch_sso_user_api_response_spec.rb +++ b/client/spec/models/patch_sso_user_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PatchSSOUserAPIResponse do - let(:instance) { FastCommentsClient::PatchSSOUserAPIResponse.new } + #let(:instance) { FastCommentsClient::PatchSSOUserAPIResponse.new } describe 'test an instance of PatchSSOUserAPIResponse' do it 'should create an instance of PatchSSOUserAPIResponse' do diff --git a/client/spec/models/pending_comment_to_sync_outbound_spec.rb b/client/spec/models/pending_comment_to_sync_outbound_spec.rb index 4189751..7969d9f 100644 --- a/client/spec/models/pending_comment_to_sync_outbound_spec.rb +++ b/client/spec/models/pending_comment_to_sync_outbound_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PendingCommentToSyncOutbound do - let(:instance) { FastCommentsClient::PendingCommentToSyncOutbound.new } + #let(:instance) { FastCommentsClient::PendingCommentToSyncOutbound.new } describe 'test an instance of PendingCommentToSyncOutbound' do it 'should create an instance of PendingCommentToSyncOutbound' do diff --git a/client/spec/models/pin_comment_response_spec.rb b/client/spec/models/pin_comment_response_spec.rb new file mode 100644 index 0000000..a9f84a9 --- /dev/null +++ b/client/spec/models/pin_comment_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::PinCommentResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::PinCommentResponse do +end diff --git a/client/spec/models/post_adjust_comment_votes_response_spec.rb b/client/spec/models/post_adjust_comment_votes_response_spec.rb new file mode 100644 index 0000000..0a60df3 --- /dev/null +++ b/client/spec/models/post_adjust_comment_votes_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::PostAdjustCommentVotesResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::PostAdjustCommentVotesResponse do +end diff --git a/client/spec/models/post_api_export_response_spec.rb b/client/spec/models/post_api_export_response_spec.rb new file mode 100644 index 0000000..942a627 --- /dev/null +++ b/client/spec/models/post_api_export_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::PostApiExportResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::PostApiExportResponse do +end diff --git a/client/spec/models/post_ban_user_from_comment_response_spec.rb b/client/spec/models/post_ban_user_from_comment_response_spec.rb new file mode 100644 index 0000000..90cbd63 --- /dev/null +++ b/client/spec/models/post_ban_user_from_comment_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::PostBanUserFromCommentResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::PostBanUserFromCommentResponse do +end diff --git a/client/spec/models/post_ban_user_undo_response_spec.rb b/client/spec/models/post_ban_user_undo_response_spec.rb new file mode 100644 index 0000000..c68680a --- /dev/null +++ b/client/spec/models/post_ban_user_undo_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::PostBanUserUndoResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::PostBanUserUndoResponse do +end diff --git a/client/spec/models/post_bulk_pre_ban_summary_response_spec.rb b/client/spec/models/post_bulk_pre_ban_summary_response_spec.rb new file mode 100644 index 0000000..aee26f0 --- /dev/null +++ b/client/spec/models/post_bulk_pre_ban_summary_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::PostBulkPreBanSummaryResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::PostBulkPreBanSummaryResponse do +end diff --git a/client/spec/models/post_comments_by_ids_response_spec.rb b/client/spec/models/post_comments_by_ids_response_spec.rb new file mode 100644 index 0000000..4f90383 --- /dev/null +++ b/client/spec/models/post_comments_by_ids_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::PostCommentsByIdsResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::PostCommentsByIdsResponse do +end diff --git a/client/spec/models/post_flag_comment_response_spec.rb b/client/spec/models/post_flag_comment_response_spec.rb new file mode 100644 index 0000000..b834743 --- /dev/null +++ b/client/spec/models/post_flag_comment_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::PostFlagCommentResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::PostFlagCommentResponse do +end diff --git a/client/spec/models/post_remove_comment_response_spec.rb b/client/spec/models/post_remove_comment_response_spec.rb index 77a0b22..854a751 100644 --- a/client/spec/models/post_remove_comment_response_spec.rb +++ b/client/spec/models/post_remove_comment_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/post_restore_deleted_comment_response_spec.rb b/client/spec/models/post_restore_deleted_comment_response_spec.rb new file mode 100644 index 0000000..68e4776 --- /dev/null +++ b/client/spec/models/post_restore_deleted_comment_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::PostRestoreDeletedCommentResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::PostRestoreDeletedCommentResponse do +end diff --git a/client/spec/models/post_set_comment_approval_status_response_spec.rb b/client/spec/models/post_set_comment_approval_status_response_spec.rb new file mode 100644 index 0000000..8d8198b --- /dev/null +++ b/client/spec/models/post_set_comment_approval_status_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::PostSetCommentApprovalStatusResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::PostSetCommentApprovalStatusResponse do +end diff --git a/client/spec/models/post_set_comment_review_status_response_spec.rb b/client/spec/models/post_set_comment_review_status_response_spec.rb new file mode 100644 index 0000000..cba1ee2 --- /dev/null +++ b/client/spec/models/post_set_comment_review_status_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::PostSetCommentReviewStatusResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::PostSetCommentReviewStatusResponse do +end diff --git a/client/spec/models/post_set_comment_spam_status_response_spec.rb b/client/spec/models/post_set_comment_spam_status_response_spec.rb new file mode 100644 index 0000000..b4fb47f --- /dev/null +++ b/client/spec/models/post_set_comment_spam_status_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::PostSetCommentSpamStatusResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::PostSetCommentSpamStatusResponse do +end diff --git a/client/spec/models/post_set_comment_text_response_spec.rb b/client/spec/models/post_set_comment_text_response_spec.rb new file mode 100644 index 0000000..8756037 --- /dev/null +++ b/client/spec/models/post_set_comment_text_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::PostSetCommentTextResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::PostSetCommentTextResponse do +end diff --git a/client/spec/models/post_un_flag_comment_response_spec.rb b/client/spec/models/post_un_flag_comment_response_spec.rb new file mode 100644 index 0000000..d3bf957 --- /dev/null +++ b/client/spec/models/post_un_flag_comment_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::PostUnFlagCommentResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::PostUnFlagCommentResponse do +end diff --git a/client/spec/models/post_vote_response_spec.rb b/client/spec/models/post_vote_response_spec.rb new file mode 100644 index 0000000..6a25f84 --- /dev/null +++ b/client/spec/models/post_vote_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::PostVoteResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::PostVoteResponse do +end diff --git a/client/spec/models/pre_ban_summary_spec.rb b/client/spec/models/pre_ban_summary_spec.rb index 152e19f..ebc1dd9 100644 --- a/client/spec/models/pre_ban_summary_spec.rb +++ b/client/spec/models/pre_ban_summary_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PreBanSummary do - let(:instance) { FastCommentsClient::PreBanSummary.new } + #let(:instance) { FastCommentsClient::PreBanSummary.new } describe 'test an instance of PreBanSummary' do it 'should create an instance of PreBanSummary' do diff --git a/client/spec/models/pub_sub_comment_base_spec.rb b/client/spec/models/pub_sub_comment_base_spec.rb index 05997f3..bbf1f3b 100644 --- a/client/spec/models/pub_sub_comment_base_spec.rb +++ b/client/spec/models/pub_sub_comment_base_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PubSubCommentBase do - let(:instance) { FastCommentsClient::PubSubCommentBase.new } + #let(:instance) { FastCommentsClient::PubSubCommentBase.new } describe 'test an instance of PubSubCommentBase' do it 'should create an instance of PubSubCommentBase' do diff --git a/client/spec/models/pub_sub_comment_spec.rb b/client/spec/models/pub_sub_comment_spec.rb index 389d56a..af7c247 100644 --- a/client/spec/models/pub_sub_comment_spec.rb +++ b/client/spec/models/pub_sub_comment_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PubSubComment do - let(:instance) { FastCommentsClient::PubSubComment.new } + #let(:instance) { FastCommentsClient::PubSubComment.new } describe 'test an instance of PubSubComment' do it 'should create an instance of PubSubComment' do diff --git a/client/spec/models/pub_sub_vote_spec.rb b/client/spec/models/pub_sub_vote_spec.rb index e02fbeb..f54cf40 100644 --- a/client/spec/models/pub_sub_vote_spec.rb +++ b/client/spec/models/pub_sub_vote_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PubSubVote do - let(:instance) { FastCommentsClient::PubSubVote.new } + #let(:instance) { FastCommentsClient::PubSubVote.new } describe 'test an instance of PubSubVote' do it 'should create an instance of PubSubVote' do diff --git a/client/spec/models/public_api_delete_comment_response_spec.rb b/client/spec/models/public_api_delete_comment_response_spec.rb index 6d1f375..3073ff3 100644 --- a/client/spec/models/public_api_delete_comment_response_spec.rb +++ b/client/spec/models/public_api_delete_comment_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PublicAPIDeleteCommentResponse do - let(:instance) { FastCommentsClient::PublicAPIDeleteCommentResponse.new } + #let(:instance) { FastCommentsClient::PublicAPIDeleteCommentResponse.new } describe 'test an instance of PublicAPIDeleteCommentResponse' do it 'should create an instance of PublicAPIDeleteCommentResponse' do diff --git a/client/spec/models/public_api_get_comment_text_response_spec.rb b/client/spec/models/public_api_get_comment_text_response_spec.rb index 357dc62..58842e2 100644 --- a/client/spec/models/public_api_get_comment_text_response_spec.rb +++ b/client/spec/models/public_api_get_comment_text_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PublicAPIGetCommentTextResponse do - let(:instance) { FastCommentsClient::PublicAPIGetCommentTextResponse.new } + #let(:instance) { FastCommentsClient::PublicAPIGetCommentTextResponse.new } describe 'test an instance of PublicAPIGetCommentTextResponse' do it 'should create an instance of PublicAPIGetCommentTextResponse' do diff --git a/client/spec/models/public_api_set_comment_text_response_spec.rb b/client/spec/models/public_api_set_comment_text_response_spec.rb index accbb3b..45ce6c7 100644 --- a/client/spec/models/public_api_set_comment_text_response_spec.rb +++ b/client/spec/models/public_api_set_comment_text_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PublicAPISetCommentTextResponse do - let(:instance) { FastCommentsClient::PublicAPISetCommentTextResponse.new } + #let(:instance) { FastCommentsClient::PublicAPISetCommentTextResponse.new } describe 'test an instance of PublicAPISetCommentTextResponse' do it 'should create an instance of PublicAPISetCommentTextResponse' do diff --git a/client/spec/models/public_block_from_comment_params_spec.rb b/client/spec/models/public_block_from_comment_params_spec.rb index e456875..b73623f 100644 --- a/client/spec/models/public_block_from_comment_params_spec.rb +++ b/client/spec/models/public_block_from_comment_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PublicBlockFromCommentParams do - let(:instance) { FastCommentsClient::PublicBlockFromCommentParams.new } + #let(:instance) { FastCommentsClient::PublicBlockFromCommentParams.new } describe 'test an instance of PublicBlockFromCommentParams' do it 'should create an instance of PublicBlockFromCommentParams' do diff --git a/client/spec/models/public_comment_base_spec.rb b/client/spec/models/public_comment_base_spec.rb index 5f0065e..11fad0e 100644 --- a/client/spec/models/public_comment_base_spec.rb +++ b/client/spec/models/public_comment_base_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PublicCommentBase do - let(:instance) { FastCommentsClient::PublicCommentBase.new } + #let(:instance) { FastCommentsClient::PublicCommentBase.new } describe 'test an instance of PublicCommentBase' do it 'should create an instance of PublicCommentBase' do diff --git a/client/spec/models/public_comment_spec.rb b/client/spec/models/public_comment_spec.rb index 32b2e7f..1cd25ee 100644 --- a/client/spec/models/public_comment_spec.rb +++ b/client/spec/models/public_comment_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PublicComment do - let(:instance) { FastCommentsClient::PublicComment.new } + #let(:instance) { FastCommentsClient::PublicComment.new } describe 'test an instance of PublicComment' do it 'should create an instance of PublicComment' do diff --git a/client/spec/models/public_feed_posts_response_spec.rb b/client/spec/models/public_feed_posts_response_spec.rb index b18c425..b495745 100644 --- a/client/spec/models/public_feed_posts_response_spec.rb +++ b/client/spec/models/public_feed_posts_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PublicFeedPostsResponse do - let(:instance) { FastCommentsClient::PublicFeedPostsResponse.new } + #let(:instance) { FastCommentsClient::PublicFeedPostsResponse.new } describe 'test an instance of PublicFeedPostsResponse' do it 'should create an instance of PublicFeedPostsResponse' do diff --git a/client/spec/models/public_page_spec.rb b/client/spec/models/public_page_spec.rb index e7841ed..318afa6 100644 --- a/client/spec/models/public_page_spec.rb +++ b/client/spec/models/public_page_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PublicPage do - let(:instance) { FastCommentsClient::PublicPage.new } + #let(:instance) { FastCommentsClient::PublicPage.new } describe 'test an instance of PublicPage' do it 'should create an instance of PublicPage' do diff --git a/client/spec/models/public_vote_spec.rb b/client/spec/models/public_vote_spec.rb index 3944f91..07437de 100644 --- a/client/spec/models/public_vote_spec.rb +++ b/client/spec/models/public_vote_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PublicVote do - let(:instance) { FastCommentsClient::PublicVote.new } + #let(:instance) { FastCommentsClient::PublicVote.new } describe 'test an instance of PublicVote' do it 'should create an instance of PublicVote' do diff --git a/client/spec/models/put_award_badge_response_spec.rb b/client/spec/models/put_award_badge_response_spec.rb new file mode 100644 index 0000000..c03016a --- /dev/null +++ b/client/spec/models/put_award_badge_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::PutAwardBadgeResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::PutAwardBadgeResponse do +end diff --git a/client/spec/models/put_close_thread_response_spec.rb b/client/spec/models/put_close_thread_response_spec.rb new file mode 100644 index 0000000..f86b1fa --- /dev/null +++ b/client/spec/models/put_close_thread_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::PutCloseThreadResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::PutCloseThreadResponse do +end diff --git a/client/spec/models/put_domain_config_response_spec.rb b/client/spec/models/put_domain_config_response_spec.rb index 685f398..145f2c1 100644 --- a/client/spec/models/put_domain_config_response_spec.rb +++ b/client/spec/models/put_domain_config_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/put_remove_badge_response_spec.rb b/client/spec/models/put_remove_badge_response_spec.rb new file mode 100644 index 0000000..7154ef3 --- /dev/null +++ b/client/spec/models/put_remove_badge_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::PutRemoveBadgeResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::PutRemoveBadgeResponse do +end diff --git a/client/spec/models/put_reopen_thread_response_spec.rb b/client/spec/models/put_reopen_thread_response_spec.rb new file mode 100644 index 0000000..1cc8bb9 --- /dev/null +++ b/client/spec/models/put_reopen_thread_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::PutReopenThreadResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::PutReopenThreadResponse do +end diff --git a/client/spec/models/put_sso_user_api_response_spec.rb b/client/spec/models/put_sso_user_api_response_spec.rb index c5b37e9..67fd71d 100644 --- a/client/spec/models/put_sso_user_api_response_spec.rb +++ b/client/spec/models/put_sso_user_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PutSSOUserAPIResponse do - let(:instance) { FastCommentsClient::PutSSOUserAPIResponse.new } + #let(:instance) { FastCommentsClient::PutSSOUserAPIResponse.new } describe 'test an instance of PutSSOUserAPIResponse' do it 'should create an instance of PutSSOUserAPIResponse' do diff --git a/client/spec/models/query_predicate_spec.rb b/client/spec/models/query_predicate_spec.rb index 9390167..aab87a1 100644 --- a/client/spec/models/query_predicate_spec.rb +++ b/client/spec/models/query_predicate_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::QueryPredicate do - let(:instance) { FastCommentsClient::QueryPredicate.new } + #let(:instance) { FastCommentsClient::QueryPredicate.new } describe 'test an instance of QueryPredicate' do it 'should create an instance of QueryPredicate' do diff --git a/client/spec/models/query_predicate_value_spec.rb b/client/spec/models/query_predicate_value_spec.rb index 3216bf1..013b85b 100644 --- a/client/spec/models/query_predicate_value_spec.rb +++ b/client/spec/models/query_predicate_value_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/question_config_custom_options_inner_spec.rb b/client/spec/models/question_config_custom_options_inner_spec.rb index ab4eff5..18fb96f 100644 --- a/client/spec/models/question_config_custom_options_inner_spec.rb +++ b/client/spec/models/question_config_custom_options_inner_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::QuestionConfigCustomOptionsInner do - let(:instance) { FastCommentsClient::QuestionConfigCustomOptionsInner.new } + #let(:instance) { FastCommentsClient::QuestionConfigCustomOptionsInner.new } describe 'test an instance of QuestionConfigCustomOptionsInner' do it 'should create an instance of QuestionConfigCustomOptionsInner' do diff --git a/client/spec/models/question_config_spec.rb b/client/spec/models/question_config_spec.rb index 7d7af22..a41fd15 100644 --- a/client/spec/models/question_config_spec.rb +++ b/client/spec/models/question_config_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::QuestionConfig do - let(:instance) { FastCommentsClient::QuestionConfig.new } + #let(:instance) { FastCommentsClient::QuestionConfig.new } describe 'test an instance of QuestionConfig' do it 'should create an instance of QuestionConfig' do diff --git a/client/spec/models/question_datum_spec.rb b/client/spec/models/question_datum_spec.rb index 893b847..e3289e2 100644 --- a/client/spec/models/question_datum_spec.rb +++ b/client/spec/models/question_datum_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::QuestionDatum do - let(:instance) { FastCommentsClient::QuestionDatum.new } + #let(:instance) { FastCommentsClient::QuestionDatum.new } describe 'test an instance of QuestionDatum' do it 'should create an instance of QuestionDatum' do diff --git a/client/spec/models/question_rendering_type_spec.rb b/client/spec/models/question_rendering_type_spec.rb index dfb08cb..80a4911 100644 --- a/client/spec/models/question_rendering_type_spec.rb +++ b/client/spec/models/question_rendering_type_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::QuestionRenderingType do - let(:instance) { FastCommentsClient::QuestionRenderingType.new } + #let(:instance) { FastCommentsClient::QuestionRenderingType.new } describe 'test an instance of QuestionRenderingType' do it 'should create an instance of QuestionRenderingType' do diff --git a/client/spec/models/question_result_aggregation_overall_spec.rb b/client/spec/models/question_result_aggregation_overall_spec.rb index 0670df6..1b21e7b 100644 --- a/client/spec/models/question_result_aggregation_overall_spec.rb +++ b/client/spec/models/question_result_aggregation_overall_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::QuestionResultAggregationOverall do - let(:instance) { FastCommentsClient::QuestionResultAggregationOverall.new } + #let(:instance) { FastCommentsClient::QuestionResultAggregationOverall.new } describe 'test an instance of QuestionResultAggregationOverall' do it 'should create an instance of QuestionResultAggregationOverall' do diff --git a/client/spec/models/question_result_spec.rb b/client/spec/models/question_result_spec.rb index 8d39c1d..2fe55ea 100644 --- a/client/spec/models/question_result_spec.rb +++ b/client/spec/models/question_result_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::QuestionResult do - let(:instance) { FastCommentsClient::QuestionResult.new } + #let(:instance) { FastCommentsClient::QuestionResult.new } describe 'test an instance of QuestionResult' do it 'should create an instance of QuestionResult' do diff --git a/client/spec/models/question_sub_question_visibility_spec.rb b/client/spec/models/question_sub_question_visibility_spec.rb index d8148e0..8b66abf 100644 --- a/client/spec/models/question_sub_question_visibility_spec.rb +++ b/client/spec/models/question_sub_question_visibility_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::QuestionSubQuestionVisibility do - let(:instance) { FastCommentsClient::QuestionSubQuestionVisibility.new } + #let(:instance) { FastCommentsClient::QuestionSubQuestionVisibility.new } describe 'test an instance of QuestionSubQuestionVisibility' do it 'should create an instance of QuestionSubQuestionVisibility' do diff --git a/client/spec/models/question_when_save_spec.rb b/client/spec/models/question_when_save_spec.rb index 5e385ef..560e05c 100644 --- a/client/spec/models/question_when_save_spec.rb +++ b/client/spec/models/question_when_save_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::QuestionWhenSave do - let(:instance) { FastCommentsClient::QuestionWhenSave.new } + #let(:instance) { FastCommentsClient::QuestionWhenSave.new } describe 'test an instance of QuestionWhenSave' do it 'should create an instance of QuestionWhenSave' do diff --git a/client/spec/models/react_body_params_spec.rb b/client/spec/models/react_body_params_spec.rb index f742982..5513893 100644 --- a/client/spec/models/react_body_params_spec.rb +++ b/client/spec/models/react_body_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ReactBodyParams do - let(:instance) { FastCommentsClient::ReactBodyParams.new } + #let(:instance) { FastCommentsClient::ReactBodyParams.new } describe 'test an instance of ReactBodyParams' do it 'should create an instance of ReactBodyParams' do diff --git a/client/spec/models/react_feed_post_public_response_spec.rb b/client/spec/models/react_feed_post_public_response_spec.rb new file mode 100644 index 0000000..00bd746 --- /dev/null +++ b/client/spec/models/react_feed_post_public_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::ReactFeedPostPublicResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::ReactFeedPostPublicResponse do +end diff --git a/client/spec/models/react_feed_post_response_spec.rb b/client/spec/models/react_feed_post_response_spec.rb index e045a05..6512296 100644 --- a/client/spec/models/react_feed_post_response_spec.rb +++ b/client/spec/models/react_feed_post_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ReactFeedPostResponse do - let(:instance) { FastCommentsClient::ReactFeedPostResponse.new } + #let(:instance) { FastCommentsClient::ReactFeedPostResponse.new } describe 'test an instance of ReactFeedPostResponse' do it 'should create an instance of ReactFeedPostResponse' do diff --git a/client/spec/models/record_string_before_string_or_null_after_string_or_null_value_spec.rb b/client/spec/models/record_string_before_string_or_null_after_string_or_null_value_spec.rb index 54fe5fa..e87551d 100644 --- a/client/spec/models/record_string_before_string_or_null_after_string_or_null_value_spec.rb +++ b/client/spec/models/record_string_before_string_or_null_after_string_or_null_value_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::RecordStringBeforeStringOrNullAfterStringOrNullValue do - let(:instance) { FastCommentsClient::RecordStringBeforeStringOrNullAfterStringOrNullValue.new } + #let(:instance) { FastCommentsClient::RecordStringBeforeStringOrNullAfterStringOrNullValue.new } describe 'test an instance of RecordStringBeforeStringOrNullAfterStringOrNullValue' do it 'should create an instance of RecordStringBeforeStringOrNullAfterStringOrNullValue' do diff --git a/client/spec/models/remove_comment_action_response_spec.rb b/client/spec/models/remove_comment_action_response_spec.rb index fc03d6e..0c54a42 100644 --- a/client/spec/models/remove_comment_action_response_spec.rb +++ b/client/spec/models/remove_comment_action_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::RemoveCommentActionResponse do - let(:instance) { FastCommentsClient::RemoveCommentActionResponse.new } + #let(:instance) { FastCommentsClient::RemoveCommentActionResponse.new } describe 'test an instance of RemoveCommentActionResponse' do it 'should create an instance of RemoveCommentActionResponse' do diff --git a/client/spec/models/remove_user_badge_response_spec.rb b/client/spec/models/remove_user_badge_response_spec.rb index 4cad561..72acfaa 100644 --- a/client/spec/models/remove_user_badge_response_spec.rb +++ b/client/spec/models/remove_user_badge_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::RemoveUserBadgeResponse do - let(:instance) { FastCommentsClient::RemoveUserBadgeResponse.new } + #let(:instance) { FastCommentsClient::RemoveUserBadgeResponse.new } describe 'test an instance of RemoveUserBadgeResponse' do it 'should create an instance of RemoveUserBadgeResponse' do diff --git a/client/spec/models/render_email_template_body_spec.rb b/client/spec/models/render_email_template_body_spec.rb index 305cebc..00baa53 100644 --- a/client/spec/models/render_email_template_body_spec.rb +++ b/client/spec/models/render_email_template_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::RenderEmailTemplateBody do - let(:instance) { FastCommentsClient::RenderEmailTemplateBody.new } + #let(:instance) { FastCommentsClient::RenderEmailTemplateBody.new } describe 'test an instance of RenderEmailTemplateBody' do it 'should create an instance of RenderEmailTemplateBody' do diff --git a/client/spec/models/render_email_template_response1_spec.rb b/client/spec/models/render_email_template_response1_spec.rb new file mode 100644 index 0000000..7fbf6bf --- /dev/null +++ b/client/spec/models/render_email_template_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::RenderEmailTemplateResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::RenderEmailTemplateResponse1 do +end diff --git a/client/spec/models/render_email_template_response_spec.rb b/client/spec/models/render_email_template_response_spec.rb index 9cacd5b..c8a4dd1 100644 --- a/client/spec/models/render_email_template_response_spec.rb +++ b/client/spec/models/render_email_template_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::RenderEmailTemplateResponse do - let(:instance) { FastCommentsClient::RenderEmailTemplateResponse.new } + #let(:instance) { FastCommentsClient::RenderEmailTemplateResponse.new } describe 'test an instance of RenderEmailTemplateResponse' do it 'should create an instance of RenderEmailTemplateResponse' do diff --git a/client/spec/models/renderable_user_notification_spec.rb b/client/spec/models/renderable_user_notification_spec.rb index c48b26b..21acbb8 100644 --- a/client/spec/models/renderable_user_notification_spec.rb +++ b/client/spec/models/renderable_user_notification_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::RenderableUserNotification do - let(:instance) { FastCommentsClient::RenderableUserNotification.new } + #let(:instance) { FastCommentsClient::RenderableUserNotification.new } describe 'test an instance of RenderableUserNotification' do it 'should create an instance of RenderableUserNotification' do diff --git a/client/spec/models/repeat_comment_check_ignored_reason_spec.rb b/client/spec/models/repeat_comment_check_ignored_reason_spec.rb index cdfeaab..4a98d7a 100644 --- a/client/spec/models/repeat_comment_check_ignored_reason_spec.rb +++ b/client/spec/models/repeat_comment_check_ignored_reason_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::RepeatCommentCheckIgnoredReason do - let(:instance) { FastCommentsClient::RepeatCommentCheckIgnoredReason.new } + #let(:instance) { FastCommentsClient::RepeatCommentCheckIgnoredReason.new } describe 'test an instance of RepeatCommentCheckIgnoredReason' do it 'should create an instance of RepeatCommentCheckIgnoredReason' do diff --git a/client/spec/models/repeat_comment_handling_action_spec.rb b/client/spec/models/repeat_comment_handling_action_spec.rb index cd5047c..9b91744 100644 --- a/client/spec/models/repeat_comment_handling_action_spec.rb +++ b/client/spec/models/repeat_comment_handling_action_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::RepeatCommentHandlingAction do - let(:instance) { FastCommentsClient::RepeatCommentHandlingAction.new } + #let(:instance) { FastCommentsClient::RepeatCommentHandlingAction.new } describe 'test an instance of RepeatCommentHandlingAction' do it 'should create an instance of RepeatCommentHandlingAction' do diff --git a/client/spec/models/replace_tenant_package_body_spec.rb b/client/spec/models/replace_tenant_package_body_spec.rb index 890a6a7..c1ee983 100644 --- a/client/spec/models/replace_tenant_package_body_spec.rb +++ b/client/spec/models/replace_tenant_package_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ReplaceTenantPackageBody do - let(:instance) { FastCommentsClient::ReplaceTenantPackageBody.new } + #let(:instance) { FastCommentsClient::ReplaceTenantPackageBody.new } describe 'test an instance of ReplaceTenantPackageBody' do it 'should create an instance of ReplaceTenantPackageBody' do diff --git a/client/spec/models/replace_tenant_package_response_spec.rb b/client/spec/models/replace_tenant_package_response_spec.rb new file mode 100644 index 0000000..80141c6 --- /dev/null +++ b/client/spec/models/replace_tenant_package_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::ReplaceTenantPackageResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::ReplaceTenantPackageResponse do +end diff --git a/client/spec/models/replace_tenant_user_body_spec.rb b/client/spec/models/replace_tenant_user_body_spec.rb index 600ff0e..5dcc328 100644 --- a/client/spec/models/replace_tenant_user_body_spec.rb +++ b/client/spec/models/replace_tenant_user_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ReplaceTenantUserBody do - let(:instance) { FastCommentsClient::ReplaceTenantUserBody.new } + #let(:instance) { FastCommentsClient::ReplaceTenantUserBody.new } describe 'test an instance of ReplaceTenantUserBody' do it 'should create an instance of ReplaceTenantUserBody' do diff --git a/client/spec/models/replace_tenant_user_response_spec.rb b/client/spec/models/replace_tenant_user_response_spec.rb new file mode 100644 index 0000000..26ef0a1 --- /dev/null +++ b/client/spec/models/replace_tenant_user_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::ReplaceTenantUserResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::ReplaceTenantUserResponse do +end diff --git a/client/spec/models/reset_user_notification_count_response_spec.rb b/client/spec/models/reset_user_notification_count_response_spec.rb new file mode 100644 index 0000000..df3a6bb --- /dev/null +++ b/client/spec/models/reset_user_notification_count_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::ResetUserNotificationCountResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::ResetUserNotificationCountResponse do +end diff --git a/client/spec/models/reset_user_notifications_response1_spec.rb b/client/spec/models/reset_user_notifications_response1_spec.rb new file mode 100644 index 0000000..4dfeabe --- /dev/null +++ b/client/spec/models/reset_user_notifications_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::ResetUserNotificationsResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::ResetUserNotificationsResponse1 do +end diff --git a/client/spec/models/reset_user_notifications_response_spec.rb b/client/spec/models/reset_user_notifications_response_spec.rb index 23a24ed..bf57d61 100644 --- a/client/spec/models/reset_user_notifications_response_spec.rb +++ b/client/spec/models/reset_user_notifications_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ResetUserNotificationsResponse do - let(:instance) { FastCommentsClient::ResetUserNotificationsResponse.new } + #let(:instance) { FastCommentsClient::ResetUserNotificationsResponse.new } describe 'test an instance of ResetUserNotificationsResponse' do it 'should create an instance of ResetUserNotificationsResponse' do diff --git a/client/spec/models/save_comment_response_optimized_spec.rb b/client/spec/models/save_comment_response_optimized_spec.rb index 6791334..24da2e2 100644 --- a/client/spec/models/save_comment_response_optimized_spec.rb +++ b/client/spec/models/save_comment_response_optimized_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SaveCommentResponseOptimized do - let(:instance) { FastCommentsClient::SaveCommentResponseOptimized.new } + #let(:instance) { FastCommentsClient::SaveCommentResponseOptimized.new } describe 'test an instance of SaveCommentResponseOptimized' do it 'should create an instance of SaveCommentResponseOptimized' do diff --git a/client/spec/models/save_comment_response_spec.rb b/client/spec/models/save_comment_response_spec.rb new file mode 100644 index 0000000..b0970f9 --- /dev/null +++ b/client/spec/models/save_comment_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::SaveCommentResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::SaveCommentResponse do +end diff --git a/client/spec/models/save_comments_bulk_response_spec.rb b/client/spec/models/save_comments_bulk_response_spec.rb index 66a4fab..1739ef1 100644 --- a/client/spec/models/save_comments_bulk_response_spec.rb +++ b/client/spec/models/save_comments_bulk_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/save_comments_response_with_presence_spec.rb b/client/spec/models/save_comments_response_with_presence_spec.rb index cbe1ed3..1b96da5 100644 --- a/client/spec/models/save_comments_response_with_presence_spec.rb +++ b/client/spec/models/save_comments_response_with_presence_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SaveCommentsResponseWithPresence do - let(:instance) { FastCommentsClient::SaveCommentsResponseWithPresence.new } + #let(:instance) { FastCommentsClient::SaveCommentsResponseWithPresence.new } describe 'test an instance of SaveCommentsResponseWithPresence' do it 'should create an instance of SaveCommentsResponseWithPresence' do diff --git a/client/spec/models/search_users_response1_spec.rb b/client/spec/models/search_users_response1_spec.rb new file mode 100644 index 0000000..80fa7b3 --- /dev/null +++ b/client/spec/models/search_users_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::SearchUsersResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::SearchUsersResponse1 do +end diff --git a/client/spec/models/search_users_response_spec.rb b/client/spec/models/search_users_response_spec.rb index f366646..975c284 100644 --- a/client/spec/models/search_users_response_spec.rb +++ b/client/spec/models/search_users_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SearchUsersResponse do - let(:instance) { FastCommentsClient::SearchUsersResponse.new } + #let(:instance) { FastCommentsClient::SearchUsersResponse.new } describe 'test an instance of SearchUsersResponse' do it 'should create an instance of SearchUsersResponse' do diff --git a/client/spec/models/search_users_result_spec.rb b/client/spec/models/search_users_result_spec.rb index 39a5394..981e947 100644 --- a/client/spec/models/search_users_result_spec.rb +++ b/client/spec/models/search_users_result_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/search_users_sectioned_response_spec.rb b/client/spec/models/search_users_sectioned_response_spec.rb index c6f05e5..9b70fb3 100644 --- a/client/spec/models/search_users_sectioned_response_spec.rb +++ b/client/spec/models/search_users_sectioned_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SearchUsersSectionedResponse do - let(:instance) { FastCommentsClient::SearchUsersSectionedResponse.new } + #let(:instance) { FastCommentsClient::SearchUsersSectionedResponse.new } describe 'test an instance of SearchUsersSectionedResponse' do it 'should create an instance of SearchUsersSectionedResponse' do diff --git a/client/spec/models/send_invite_response_spec.rb b/client/spec/models/send_invite_response_spec.rb new file mode 100644 index 0000000..b3b1669 --- /dev/null +++ b/client/spec/models/send_invite_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::SendInviteResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::SendInviteResponse do +end diff --git a/client/spec/models/send_login_link_response_spec.rb b/client/spec/models/send_login_link_response_spec.rb new file mode 100644 index 0000000..bf00357 --- /dev/null +++ b/client/spec/models/send_login_link_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::SendLoginLinkResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::SendLoginLinkResponse do +end diff --git a/client/spec/models/set_comment_approved_response_spec.rb b/client/spec/models/set_comment_approved_response_spec.rb index e5ac387..b8deb79 100644 --- a/client/spec/models/set_comment_approved_response_spec.rb +++ b/client/spec/models/set_comment_approved_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SetCommentApprovedResponse do - let(:instance) { FastCommentsClient::SetCommentApprovedResponse.new } + #let(:instance) { FastCommentsClient::SetCommentApprovedResponse.new } describe 'test an instance of SetCommentApprovedResponse' do it 'should create an instance of SetCommentApprovedResponse' do diff --git a/client/spec/models/set_comment_text_params_spec.rb b/client/spec/models/set_comment_text_params_spec.rb index c50df14..29d7a04 100644 --- a/client/spec/models/set_comment_text_params_spec.rb +++ b/client/spec/models/set_comment_text_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SetCommentTextParams do - let(:instance) { FastCommentsClient::SetCommentTextParams.new } + #let(:instance) { FastCommentsClient::SetCommentTextParams.new } describe 'test an instance of SetCommentTextParams' do it 'should create an instance of SetCommentTextParams' do diff --git a/client/spec/models/set_comment_text_response1_spec.rb b/client/spec/models/set_comment_text_response1_spec.rb new file mode 100644 index 0000000..39889e3 --- /dev/null +++ b/client/spec/models/set_comment_text_response1_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::SetCommentTextResponse1 +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::SetCommentTextResponse1 do +end diff --git a/client/spec/models/set_comment_text_response_spec.rb b/client/spec/models/set_comment_text_response_spec.rb index f6dd6ed..e30d79b 100644 --- a/client/spec/models/set_comment_text_response_spec.rb +++ b/client/spec/models/set_comment_text_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SetCommentTextResponse do - let(:instance) { FastCommentsClient::SetCommentTextResponse.new } + #let(:instance) { FastCommentsClient::SetCommentTextResponse.new } describe 'test an instance of SetCommentTextResponse' do it 'should create an instance of SetCommentTextResponse' do diff --git a/client/spec/models/set_comment_text_result_spec.rb b/client/spec/models/set_comment_text_result_spec.rb index c3d5ae4..e9edfe2 100644 --- a/client/spec/models/set_comment_text_result_spec.rb +++ b/client/spec/models/set_comment_text_result_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SetCommentTextResult do - let(:instance) { FastCommentsClient::SetCommentTextResult.new } + #let(:instance) { FastCommentsClient::SetCommentTextResult.new } describe 'test an instance of SetCommentTextResult' do it 'should create an instance of SetCommentTextResult' do diff --git a/client/spec/models/set_trust_factor_response_spec.rb b/client/spec/models/set_trust_factor_response_spec.rb new file mode 100644 index 0000000..be256e0 --- /dev/null +++ b/client/spec/models/set_trust_factor_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::SetTrustFactorResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::SetTrustFactorResponse do +end diff --git a/client/spec/models/set_user_trust_factor_response_spec.rb b/client/spec/models/set_user_trust_factor_response_spec.rb index c070039..729fb87 100644 --- a/client/spec/models/set_user_trust_factor_response_spec.rb +++ b/client/spec/models/set_user_trust_factor_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SetUserTrustFactorResponse do - let(:instance) { FastCommentsClient::SetUserTrustFactorResponse.new } + #let(:instance) { FastCommentsClient::SetUserTrustFactorResponse.new } describe 'test an instance of SetUserTrustFactorResponse' do it 'should create an instance of SetUserTrustFactorResponse' do diff --git a/client/spec/models/size_preset_spec.rb b/client/spec/models/size_preset_spec.rb index 34bbbda..9dcdc74 100644 --- a/client/spec/models/size_preset_spec.rb +++ b/client/spec/models/size_preset_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SizePreset do - let(:instance) { FastCommentsClient::SizePreset.new } + #let(:instance) { FastCommentsClient::SizePreset.new } describe 'test an instance of SizePreset' do it 'should create an instance of SizePreset' do diff --git a/client/spec/models/sort_directions_spec.rb b/client/spec/models/sort_directions_spec.rb index 563094d..1c0cb91 100644 --- a/client/spec/models/sort_directions_spec.rb +++ b/client/spec/models/sort_directions_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SortDirections do - let(:instance) { FastCommentsClient::SortDirections.new } + #let(:instance) { FastCommentsClient::SortDirections.new } describe 'test an instance of SortDirections' do it 'should create an instance of SortDirections' do diff --git a/client/spec/models/sortdir_spec.rb b/client/spec/models/sortdir_spec.rb index 4b48152..bc2b32f 100644 --- a/client/spec/models/sortdir_spec.rb +++ b/client/spec/models/sortdir_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SORTDIR do - let(:instance) { FastCommentsClient::SORTDIR.new } + #let(:instance) { FastCommentsClient::SORTDIR.new } describe 'test an instance of SORTDIR' do it 'should create an instance of SORTDIR' do diff --git a/client/spec/models/spam_rule_spec.rb b/client/spec/models/spam_rule_spec.rb index ee98bc0..c40307a 100644 --- a/client/spec/models/spam_rule_spec.rb +++ b/client/spec/models/spam_rule_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SpamRule do - let(:instance) { FastCommentsClient::SpamRule.new } + #let(:instance) { FastCommentsClient::SpamRule.new } describe 'test an instance of SpamRule' do it 'should create an instance of SpamRule' do diff --git a/client/spec/models/sso_security_level_spec.rb b/client/spec/models/sso_security_level_spec.rb index 6c63521..c3e8355 100644 --- a/client/spec/models/sso_security_level_spec.rb +++ b/client/spec/models/sso_security_level_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SSOSecurityLevel do - let(:instance) { FastCommentsClient::SSOSecurityLevel.new } + #let(:instance) { FastCommentsClient::SSOSecurityLevel.new } describe 'test an instance of SSOSecurityLevel' do it 'should create an instance of SSOSecurityLevel' do diff --git a/client/spec/models/tenant_badge_spec.rb b/client/spec/models/tenant_badge_spec.rb index 0bfc007..95d7d63 100644 --- a/client/spec/models/tenant_badge_spec.rb +++ b/client/spec/models/tenant_badge_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::TenantBadge do - let(:instance) { FastCommentsClient::TenantBadge.new } + #let(:instance) { FastCommentsClient::TenantBadge.new } describe 'test an instance of TenantBadge' do it 'should create an instance of TenantBadge' do diff --git a/client/spec/models/tenant_hash_tag_spec.rb b/client/spec/models/tenant_hash_tag_spec.rb index 7dba7c6..09abc91 100644 --- a/client/spec/models/tenant_hash_tag_spec.rb +++ b/client/spec/models/tenant_hash_tag_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::TenantHashTag do - let(:instance) { FastCommentsClient::TenantHashTag.new } + #let(:instance) { FastCommentsClient::TenantHashTag.new } describe 'test an instance of TenantHashTag' do it 'should create an instance of TenantHashTag' do diff --git a/client/spec/models/tenant_package_spec.rb b/client/spec/models/tenant_package_spec.rb index bdd5c0d..be3fe98 100644 --- a/client/spec/models/tenant_package_spec.rb +++ b/client/spec/models/tenant_package_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::TenantPackage do - let(:instance) { FastCommentsClient::TenantPackage.new } + #let(:instance) { FastCommentsClient::TenantPackage.new } describe 'test an instance of TenantPackage' do it 'should create an instance of TenantPackage' do diff --git a/client/spec/models/tos_config_spec.rb b/client/spec/models/tos_config_spec.rb index c97a0bc..ff93e6a 100644 --- a/client/spec/models/tos_config_spec.rb +++ b/client/spec/models/tos_config_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::TOSConfig do - let(:instance) { FastCommentsClient::TOSConfig.new } + #let(:instance) { FastCommentsClient::TOSConfig.new } describe 'test an instance of TOSConfig' do it 'should create an instance of TOSConfig' do diff --git a/client/spec/models/un_block_comment_public_response_spec.rb b/client/spec/models/un_block_comment_public_response_spec.rb new file mode 100644 index 0000000..f9b099d --- /dev/null +++ b/client/spec/models/un_block_comment_public_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UnBlockCommentPublicResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UnBlockCommentPublicResponse do +end diff --git a/client/spec/models/un_block_from_comment_params_spec.rb b/client/spec/models/un_block_from_comment_params_spec.rb index a48767b..7197202 100644 --- a/client/spec/models/un_block_from_comment_params_spec.rb +++ b/client/spec/models/un_block_from_comment_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UnBlockFromCommentParams do - let(:instance) { FastCommentsClient::UnBlockFromCommentParams.new } + #let(:instance) { FastCommentsClient::UnBlockFromCommentParams.new } describe 'test an instance of UnBlockFromCommentParams' do it 'should create an instance of UnBlockFromCommentParams' do diff --git a/client/spec/models/un_block_user_from_comment_response_spec.rb b/client/spec/models/un_block_user_from_comment_response_spec.rb new file mode 100644 index 0000000..a83a2b1 --- /dev/null +++ b/client/spec/models/un_block_user_from_comment_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UnBlockUserFromCommentResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UnBlockUserFromCommentResponse do +end diff --git a/client/spec/models/un_flag_comment_response_spec.rb b/client/spec/models/un_flag_comment_response_spec.rb new file mode 100644 index 0000000..e5a824f --- /dev/null +++ b/client/spec/models/un_flag_comment_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UnFlagCommentResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UnFlagCommentResponse do +end diff --git a/client/spec/models/un_lock_comment_response_spec.rb b/client/spec/models/un_lock_comment_response_spec.rb new file mode 100644 index 0000000..7c98885 --- /dev/null +++ b/client/spec/models/un_lock_comment_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UnLockCommentResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UnLockCommentResponse do +end diff --git a/client/spec/models/un_pin_comment_response_spec.rb b/client/spec/models/un_pin_comment_response_spec.rb new file mode 100644 index 0000000..174d362 --- /dev/null +++ b/client/spec/models/un_pin_comment_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UnPinCommentResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UnPinCommentResponse do +end diff --git a/client/spec/models/unblock_success_spec.rb b/client/spec/models/unblock_success_spec.rb index d612fae..3c74a7b 100644 --- a/client/spec/models/unblock_success_spec.rb +++ b/client/spec/models/unblock_success_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UnblockSuccess do - let(:instance) { FastCommentsClient::UnblockSuccess.new } + #let(:instance) { FastCommentsClient::UnblockSuccess.new } describe 'test an instance of UnblockSuccess' do it 'should create an instance of UnblockSuccess' do diff --git a/client/spec/models/updatable_comment_params_spec.rb b/client/spec/models/updatable_comment_params_spec.rb index 6df0f3e..4fe15e1 100644 --- a/client/spec/models/updatable_comment_params_spec.rb +++ b/client/spec/models/updatable_comment_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdatableCommentParams do - let(:instance) { FastCommentsClient::UpdatableCommentParams.new } + #let(:instance) { FastCommentsClient::UpdatableCommentParams.new } describe 'test an instance of UpdatableCommentParams' do it 'should create an instance of UpdatableCommentParams' do diff --git a/client/spec/models/update_api_page_data_spec.rb b/client/spec/models/update_api_page_data_spec.rb index c93db77..7ea12b9 100644 --- a/client/spec/models/update_api_page_data_spec.rb +++ b/client/spec/models/update_api_page_data_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateAPIPageData do - let(:instance) { FastCommentsClient::UpdateAPIPageData.new } + #let(:instance) { FastCommentsClient::UpdateAPIPageData.new } describe 'test an instance of UpdateAPIPageData' do it 'should create an instance of UpdateAPIPageData' do diff --git a/client/spec/models/update_api_user_subscription_data_spec.rb b/client/spec/models/update_api_user_subscription_data_spec.rb index 76cdc80..1d447d3 100644 --- a/client/spec/models/update_api_user_subscription_data_spec.rb +++ b/client/spec/models/update_api_user_subscription_data_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateAPIUserSubscriptionData do - let(:instance) { FastCommentsClient::UpdateAPIUserSubscriptionData.new } + #let(:instance) { FastCommentsClient::UpdateAPIUserSubscriptionData.new } describe 'test an instance of UpdateAPIUserSubscriptionData' do it 'should create an instance of UpdateAPIUserSubscriptionData' do diff --git a/client/spec/models/update_apisso_user_data_spec.rb b/client/spec/models/update_apisso_user_data_spec.rb index 9eec718..e27ea36 100644 --- a/client/spec/models/update_apisso_user_data_spec.rb +++ b/client/spec/models/update_apisso_user_data_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateAPISSOUserData do - let(:instance) { FastCommentsClient::UpdateAPISSOUserData.new } + #let(:instance) { FastCommentsClient::UpdateAPISSOUserData.new } describe 'test an instance of UpdateAPISSOUserData' do it 'should create an instance of UpdateAPISSOUserData' do diff --git a/client/spec/models/update_comment_response_spec.rb b/client/spec/models/update_comment_response_spec.rb new file mode 100644 index 0000000..f1a9ed5 --- /dev/null +++ b/client/spec/models/update_comment_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UpdateCommentResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UpdateCommentResponse do +end diff --git a/client/spec/models/update_domain_config_params_spec.rb b/client/spec/models/update_domain_config_params_spec.rb index 02c9d21..dd2f82a 100644 --- a/client/spec/models/update_domain_config_params_spec.rb +++ b/client/spec/models/update_domain_config_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateDomainConfigParams do - let(:instance) { FastCommentsClient::UpdateDomainConfigParams.new } + #let(:instance) { FastCommentsClient::UpdateDomainConfigParams.new } describe 'test an instance of UpdateDomainConfigParams' do it 'should create an instance of UpdateDomainConfigParams' do diff --git a/client/spec/models/update_email_template_body_spec.rb b/client/spec/models/update_email_template_body_spec.rb index 49bdd89..75c17e9 100644 --- a/client/spec/models/update_email_template_body_spec.rb +++ b/client/spec/models/update_email_template_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateEmailTemplateBody do - let(:instance) { FastCommentsClient::UpdateEmailTemplateBody.new } + #let(:instance) { FastCommentsClient::UpdateEmailTemplateBody.new } describe 'test an instance of UpdateEmailTemplateBody' do it 'should create an instance of UpdateEmailTemplateBody' do diff --git a/client/spec/models/update_email_template_response_spec.rb b/client/spec/models/update_email_template_response_spec.rb new file mode 100644 index 0000000..0ed5ccc --- /dev/null +++ b/client/spec/models/update_email_template_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UpdateEmailTemplateResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UpdateEmailTemplateResponse do +end diff --git a/client/spec/models/update_feed_post_params_spec.rb b/client/spec/models/update_feed_post_params_spec.rb index 4b8112c..5525daa 100644 --- a/client/spec/models/update_feed_post_params_spec.rb +++ b/client/spec/models/update_feed_post_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateFeedPostParams do - let(:instance) { FastCommentsClient::UpdateFeedPostParams.new } + #let(:instance) { FastCommentsClient::UpdateFeedPostParams.new } describe 'test an instance of UpdateFeedPostParams' do it 'should create an instance of UpdateFeedPostParams' do diff --git a/client/spec/models/update_feed_post_public_response_spec.rb b/client/spec/models/update_feed_post_public_response_spec.rb new file mode 100644 index 0000000..e438611 --- /dev/null +++ b/client/spec/models/update_feed_post_public_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UpdateFeedPostPublicResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UpdateFeedPostPublicResponse do +end diff --git a/client/spec/models/update_feed_post_response_spec.rb b/client/spec/models/update_feed_post_response_spec.rb new file mode 100644 index 0000000..25d77f5 --- /dev/null +++ b/client/spec/models/update_feed_post_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UpdateFeedPostResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UpdateFeedPostResponse do +end diff --git a/client/spec/models/update_hash_tag_body_spec.rb b/client/spec/models/update_hash_tag_body_spec.rb index 5dd7338..bcf3848 100644 --- a/client/spec/models/update_hash_tag_body_spec.rb +++ b/client/spec/models/update_hash_tag_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateHashTagBody do - let(:instance) { FastCommentsClient::UpdateHashTagBody.new } + #let(:instance) { FastCommentsClient::UpdateHashTagBody.new } describe 'test an instance of UpdateHashTagBody' do it 'should create an instance of UpdateHashTagBody' do diff --git a/client/spec/models/update_hash_tag_response_spec.rb b/client/spec/models/update_hash_tag_response_spec.rb index 26b1fd4..969bffb 100644 --- a/client/spec/models/update_hash_tag_response_spec.rb +++ b/client/spec/models/update_hash_tag_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateHashTagResponse do - let(:instance) { FastCommentsClient::UpdateHashTagResponse.new } + #let(:instance) { FastCommentsClient::UpdateHashTagResponse.new } describe 'test an instance of UpdateHashTagResponse' do it 'should create an instance of UpdateHashTagResponse' do diff --git a/client/spec/models/update_moderator_body_spec.rb b/client/spec/models/update_moderator_body_spec.rb index e420b40..c316477 100644 --- a/client/spec/models/update_moderator_body_spec.rb +++ b/client/spec/models/update_moderator_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateModeratorBody do - let(:instance) { FastCommentsClient::UpdateModeratorBody.new } + #let(:instance) { FastCommentsClient::UpdateModeratorBody.new } describe 'test an instance of UpdateModeratorBody' do it 'should create an instance of UpdateModeratorBody' do diff --git a/client/spec/models/update_moderator_response_spec.rb b/client/spec/models/update_moderator_response_spec.rb new file mode 100644 index 0000000..5f5cf28 --- /dev/null +++ b/client/spec/models/update_moderator_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UpdateModeratorResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UpdateModeratorResponse do +end diff --git a/client/spec/models/update_notification_body_spec.rb b/client/spec/models/update_notification_body_spec.rb index 8372e85..d33d1c9 100644 --- a/client/spec/models/update_notification_body_spec.rb +++ b/client/spec/models/update_notification_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateNotificationBody do - let(:instance) { FastCommentsClient::UpdateNotificationBody.new } + #let(:instance) { FastCommentsClient::UpdateNotificationBody.new } describe 'test an instance of UpdateNotificationBody' do it 'should create an instance of UpdateNotificationBody' do diff --git a/client/spec/models/update_notification_response_spec.rb b/client/spec/models/update_notification_response_spec.rb new file mode 100644 index 0000000..3c39b47 --- /dev/null +++ b/client/spec/models/update_notification_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UpdateNotificationResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UpdateNotificationResponse do +end diff --git a/client/spec/models/update_question_config_body_spec.rb b/client/spec/models/update_question_config_body_spec.rb index 25d6c67..77361ac 100644 --- a/client/spec/models/update_question_config_body_spec.rb +++ b/client/spec/models/update_question_config_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateQuestionConfigBody do - let(:instance) { FastCommentsClient::UpdateQuestionConfigBody.new } + #let(:instance) { FastCommentsClient::UpdateQuestionConfigBody.new } describe 'test an instance of UpdateQuestionConfigBody' do it 'should create an instance of UpdateQuestionConfigBody' do diff --git a/client/spec/models/update_question_config_response_spec.rb b/client/spec/models/update_question_config_response_spec.rb new file mode 100644 index 0000000..29d9604 --- /dev/null +++ b/client/spec/models/update_question_config_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UpdateQuestionConfigResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UpdateQuestionConfigResponse do +end diff --git a/client/spec/models/update_question_result_body_spec.rb b/client/spec/models/update_question_result_body_spec.rb index 07b7ed0..81baf8a 100644 --- a/client/spec/models/update_question_result_body_spec.rb +++ b/client/spec/models/update_question_result_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateQuestionResultBody do - let(:instance) { FastCommentsClient::UpdateQuestionResultBody.new } + #let(:instance) { FastCommentsClient::UpdateQuestionResultBody.new } describe 'test an instance of UpdateQuestionResultBody' do it 'should create an instance of UpdateQuestionResultBody' do diff --git a/client/spec/models/update_question_result_response_spec.rb b/client/spec/models/update_question_result_response_spec.rb new file mode 100644 index 0000000..4c83f4e --- /dev/null +++ b/client/spec/models/update_question_result_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UpdateQuestionResultResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UpdateQuestionResultResponse do +end diff --git a/client/spec/models/update_subscription_api_response_spec.rb b/client/spec/models/update_subscription_api_response_spec.rb index 4878423..9345bad 100644 --- a/client/spec/models/update_subscription_api_response_spec.rb +++ b/client/spec/models/update_subscription_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateSubscriptionAPIResponse do - let(:instance) { FastCommentsClient::UpdateSubscriptionAPIResponse.new } + #let(:instance) { FastCommentsClient::UpdateSubscriptionAPIResponse.new } describe 'test an instance of UpdateSubscriptionAPIResponse' do it 'should create an instance of UpdateSubscriptionAPIResponse' do diff --git a/client/spec/models/update_tenant_body_spec.rb b/client/spec/models/update_tenant_body_spec.rb index 795b198..9b2985b 100644 --- a/client/spec/models/update_tenant_body_spec.rb +++ b/client/spec/models/update_tenant_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateTenantBody do - let(:instance) { FastCommentsClient::UpdateTenantBody.new } + #let(:instance) { FastCommentsClient::UpdateTenantBody.new } describe 'test an instance of UpdateTenantBody' do it 'should create an instance of UpdateTenantBody' do diff --git a/client/spec/models/update_tenant_package_body_spec.rb b/client/spec/models/update_tenant_package_body_spec.rb index ef90b8b..4c47a60 100644 --- a/client/spec/models/update_tenant_package_body_spec.rb +++ b/client/spec/models/update_tenant_package_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateTenantPackageBody do - let(:instance) { FastCommentsClient::UpdateTenantPackageBody.new } + #let(:instance) { FastCommentsClient::UpdateTenantPackageBody.new } describe 'test an instance of UpdateTenantPackageBody' do it 'should create an instance of UpdateTenantPackageBody' do diff --git a/client/spec/models/update_tenant_package_response_spec.rb b/client/spec/models/update_tenant_package_response_spec.rb new file mode 100644 index 0000000..fd1a051 --- /dev/null +++ b/client/spec/models/update_tenant_package_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UpdateTenantPackageResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UpdateTenantPackageResponse do +end diff --git a/client/spec/models/update_tenant_response_spec.rb b/client/spec/models/update_tenant_response_spec.rb new file mode 100644 index 0000000..f7aec90 --- /dev/null +++ b/client/spec/models/update_tenant_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UpdateTenantResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UpdateTenantResponse do +end diff --git a/client/spec/models/update_tenant_user_body_spec.rb b/client/spec/models/update_tenant_user_body_spec.rb index f0e544b..08051a7 100644 --- a/client/spec/models/update_tenant_user_body_spec.rb +++ b/client/spec/models/update_tenant_user_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateTenantUserBody do - let(:instance) { FastCommentsClient::UpdateTenantUserBody.new } + #let(:instance) { FastCommentsClient::UpdateTenantUserBody.new } describe 'test an instance of UpdateTenantUserBody' do it 'should create an instance of UpdateTenantUserBody' do diff --git a/client/spec/models/update_tenant_user_response_spec.rb b/client/spec/models/update_tenant_user_response_spec.rb new file mode 100644 index 0000000..7d3b2e7 --- /dev/null +++ b/client/spec/models/update_tenant_user_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UpdateTenantUserResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UpdateTenantUserResponse do +end diff --git a/client/spec/models/update_user_badge_params_spec.rb b/client/spec/models/update_user_badge_params_spec.rb index fe7bd61..9383d59 100644 --- a/client/spec/models/update_user_badge_params_spec.rb +++ b/client/spec/models/update_user_badge_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateUserBadgeParams do - let(:instance) { FastCommentsClient::UpdateUserBadgeParams.new } + #let(:instance) { FastCommentsClient::UpdateUserBadgeParams.new } describe 'test an instance of UpdateUserBadgeParams' do it 'should create an instance of UpdateUserBadgeParams' do diff --git a/client/spec/models/update_user_badge_response_spec.rb b/client/spec/models/update_user_badge_response_spec.rb new file mode 100644 index 0000000..b92e4be --- /dev/null +++ b/client/spec/models/update_user_badge_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UpdateUserBadgeResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UpdateUserBadgeResponse do +end diff --git a/client/spec/models/update_user_notification_comment_subscription_status_response_spec.rb b/client/spec/models/update_user_notification_comment_subscription_status_response_spec.rb index 343755f..c3aefdf 100644 --- a/client/spec/models/update_user_notification_comment_subscription_status_response_spec.rb +++ b/client/spec/models/update_user_notification_comment_subscription_status_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/update_user_notification_page_subscription_status_response_spec.rb b/client/spec/models/update_user_notification_page_subscription_status_response_spec.rb index ab8b153..f227db1 100644 --- a/client/spec/models/update_user_notification_page_subscription_status_response_spec.rb +++ b/client/spec/models/update_user_notification_page_subscription_status_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/update_user_notification_status_response_spec.rb b/client/spec/models/update_user_notification_status_response_spec.rb index 6af38ea..3e0b519 100644 --- a/client/spec/models/update_user_notification_status_response_spec.rb +++ b/client/spec/models/update_user_notification_status_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/upload_image_response_spec.rb b/client/spec/models/upload_image_response_spec.rb index abfc4bb..f9c3f16 100644 --- a/client/spec/models/upload_image_response_spec.rb +++ b/client/spec/models/upload_image_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UploadImageResponse do - let(:instance) { FastCommentsClient::UploadImageResponse.new } + #let(:instance) { FastCommentsClient::UploadImageResponse.new } describe 'test an instance of UploadImageResponse' do it 'should create an instance of UploadImageResponse' do diff --git a/client/spec/models/user_badge_progress_spec.rb b/client/spec/models/user_badge_progress_spec.rb index a506042..11f15da 100644 --- a/client/spec/models/user_badge_progress_spec.rb +++ b/client/spec/models/user_badge_progress_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UserBadgeProgress do - let(:instance) { FastCommentsClient::UserBadgeProgress.new } + #let(:instance) { FastCommentsClient::UserBadgeProgress.new } describe 'test an instance of UserBadgeProgress' do it 'should create an instance of UserBadgeProgress' do diff --git a/client/spec/models/user_badge_spec.rb b/client/spec/models/user_badge_spec.rb index aaf5756..ff25ae4 100644 --- a/client/spec/models/user_badge_spec.rb +++ b/client/spec/models/user_badge_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UserBadge do - let(:instance) { FastCommentsClient::UserBadge.new } + #let(:instance) { FastCommentsClient::UserBadge.new } describe 'test an instance of UserBadge' do it 'should create an instance of UserBadge' do diff --git a/client/spec/models/user_notification_count_spec.rb b/client/spec/models/user_notification_count_spec.rb index 15eba9e..af2e7a3 100644 --- a/client/spec/models/user_notification_count_spec.rb +++ b/client/spec/models/user_notification_count_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UserNotificationCount do - let(:instance) { FastCommentsClient::UserNotificationCount.new } + #let(:instance) { FastCommentsClient::UserNotificationCount.new } describe 'test an instance of UserNotificationCount' do it 'should create an instance of UserNotificationCount' do diff --git a/client/spec/models/user_notification_spec.rb b/client/spec/models/user_notification_spec.rb index 08b198c..6745ad8 100644 --- a/client/spec/models/user_notification_spec.rb +++ b/client/spec/models/user_notification_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UserNotification do - let(:instance) { FastCommentsClient::UserNotification.new } + #let(:instance) { FastCommentsClient::UserNotification.new } describe 'test an instance of UserNotification' do it 'should create an instance of UserNotification' do diff --git a/client/spec/models/user_notification_write_response_spec.rb b/client/spec/models/user_notification_write_response_spec.rb index 4c649d0..75ac20f 100644 --- a/client/spec/models/user_notification_write_response_spec.rb +++ b/client/spec/models/user_notification_write_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UserNotificationWriteResponse do - let(:instance) { FastCommentsClient::UserNotificationWriteResponse.new } + #let(:instance) { FastCommentsClient::UserNotificationWriteResponse.new } describe 'test an instance of UserNotificationWriteResponse' do it 'should create an instance of UserNotificationWriteResponse' do diff --git a/client/spec/models/user_presence_data_spec.rb b/client/spec/models/user_presence_data_spec.rb index 662b0cc..76a8c04 100644 --- a/client/spec/models/user_presence_data_spec.rb +++ b/client/spec/models/user_presence_data_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UserPresenceData do - let(:instance) { FastCommentsClient::UserPresenceData.new } + #let(:instance) { FastCommentsClient::UserPresenceData.new } describe 'test an instance of UserPresenceData' do it 'should create an instance of UserPresenceData' do diff --git a/client/spec/models/user_reacts_response_spec.rb b/client/spec/models/user_reacts_response_spec.rb index 37c15f2..8143d1f 100644 --- a/client/spec/models/user_reacts_response_spec.rb +++ b/client/spec/models/user_reacts_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UserReactsResponse do - let(:instance) { FastCommentsClient::UserReactsResponse.new } + #let(:instance) { FastCommentsClient::UserReactsResponse.new } describe 'test an instance of UserReactsResponse' do it 'should create an instance of UserReactsResponse' do diff --git a/client/spec/models/user_search_result_spec.rb b/client/spec/models/user_search_result_spec.rb index 906e77a..8aa0fbf 100644 --- a/client/spec/models/user_search_result_spec.rb +++ b/client/spec/models/user_search_result_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UserSearchResult do - let(:instance) { FastCommentsClient::UserSearchResult.new } + #let(:instance) { FastCommentsClient::UserSearchResult.new } describe 'test an instance of UserSearchResult' do it 'should create an instance of UserSearchResult' do diff --git a/client/spec/models/user_search_section_result_spec.rb b/client/spec/models/user_search_section_result_spec.rb index 575e21c..44f030b 100644 --- a/client/spec/models/user_search_section_result_spec.rb +++ b/client/spec/models/user_search_section_result_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UserSearchSectionResult do - let(:instance) { FastCommentsClient::UserSearchSectionResult.new } + #let(:instance) { FastCommentsClient::UserSearchSectionResult.new } describe 'test an instance of UserSearchSectionResult' do it 'should create an instance of UserSearchSectionResult' do diff --git a/client/spec/models/user_search_section_spec.rb b/client/spec/models/user_search_section_spec.rb index b13797e..78bda83 100644 --- a/client/spec/models/user_search_section_spec.rb +++ b/client/spec/models/user_search_section_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UserSearchSection do - let(:instance) { FastCommentsClient::UserSearchSection.new } + #let(:instance) { FastCommentsClient::UserSearchSection.new } describe 'test an instance of UserSearchSection' do it 'should create an instance of UserSearchSection' do diff --git a/client/spec/models/user_session_info_spec.rb b/client/spec/models/user_session_info_spec.rb index eed5734..4ba4e2a 100644 --- a/client/spec/models/user_session_info_spec.rb +++ b/client/spec/models/user_session_info_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UserSessionInfo do - let(:instance) { FastCommentsClient::UserSessionInfo.new } + #let(:instance) { FastCommentsClient::UserSessionInfo.new } describe 'test an instance of UserSessionInfo' do it 'should create an instance of UserSessionInfo' do diff --git a/client/spec/models/user_spec.rb b/client/spec/models/user_spec.rb index 8548c61..f906aed 100644 --- a/client/spec/models/user_spec.rb +++ b/client/spec/models/user_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::User do - let(:instance) { FastCommentsClient::User.new } + #let(:instance) { FastCommentsClient::User.new } describe 'test an instance of User' do it 'should create an instance of User' do diff --git a/client/spec/models/users_list_location_spec.rb b/client/spec/models/users_list_location_spec.rb index d0f6566..9a9198a 100644 --- a/client/spec/models/users_list_location_spec.rb +++ b/client/spec/models/users_list_location_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UsersListLocation do - let(:instance) { FastCommentsClient::UsersListLocation.new } + #let(:instance) { FastCommentsClient::UsersListLocation.new } describe 'test an instance of UsersListLocation' do it 'should create an instance of UsersListLocation' do diff --git a/client/spec/models/vote_body_params_spec.rb b/client/spec/models/vote_body_params_spec.rb index c12e2f8..d1d7620 100644 --- a/client/spec/models/vote_body_params_spec.rb +++ b/client/spec/models/vote_body_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::VoteBodyParams do - let(:instance) { FastCommentsClient::VoteBodyParams.new } + #let(:instance) { FastCommentsClient::VoteBodyParams.new } describe 'test an instance of VoteBodyParams' do it 'should create an instance of VoteBodyParams' do diff --git a/client/spec/models/vote_comment_response_spec.rb b/client/spec/models/vote_comment_response_spec.rb new file mode 100644 index 0000000..8990d14 --- /dev/null +++ b/client/spec/models/vote_comment_response_spec.rb @@ -0,0 +1,21 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::VoteCommentResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::VoteCommentResponse do +end diff --git a/client/spec/models/vote_delete_response_spec.rb b/client/spec/models/vote_delete_response_spec.rb index 7aae048..15da634 100644 --- a/client/spec/models/vote_delete_response_spec.rb +++ b/client/spec/models/vote_delete_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::VoteDeleteResponse do - let(:instance) { FastCommentsClient::VoteDeleteResponse.new } + #let(:instance) { FastCommentsClient::VoteDeleteResponse.new } describe 'test an instance of VoteDeleteResponse' do it 'should create an instance of VoteDeleteResponse' do diff --git a/client/spec/models/vote_response_spec.rb b/client/spec/models/vote_response_spec.rb index c66785f..245362b 100644 --- a/client/spec/models/vote_response_spec.rb +++ b/client/spec/models/vote_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::VoteResponse do - let(:instance) { FastCommentsClient::VoteResponse.new } + #let(:instance) { FastCommentsClient::VoteResponse.new } describe 'test an instance of VoteResponse' do it 'should create an instance of VoteResponse' do @@ -30,6 +30,10 @@ describe 'test attribute "status"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["success", "failed", "pending-verification"]) + # validator.allowable_values.each do |value| + # expect { instance.status = value }.not_to raise_error + # end end end diff --git a/client/spec/models/vote_response_user_spec.rb b/client/spec/models/vote_response_user_spec.rb index 01d5e49..5b266ad 100644 --- a/client/spec/models/vote_response_user_spec.rb +++ b/client/spec/models/vote_response_user_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::VoteResponseUser do - let(:instance) { FastCommentsClient::VoteResponseUser.new } + #let(:instance) { FastCommentsClient::VoteResponseUser.new } describe 'test an instance of VoteResponseUser' do it 'should create an instance of VoteResponseUser' do diff --git a/client/spec/models/vote_style_spec.rb b/client/spec/models/vote_style_spec.rb index 88e29f2..1890b3a 100644 --- a/client/spec/models/vote_style_spec.rb +++ b/client/spec/models/vote_style_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::VoteStyle do - let(:instance) { FastCommentsClient::VoteStyle.new } + #let(:instance) { FastCommentsClient::VoteStyle.new } describe 'test an instance of VoteStyle' do it 'should create an instance of VoteStyle' do diff --git a/client/spec/spec_helper.rb b/client/spec/spec_helper.rb index d62b031..47aef2d 100644 --- a/client/spec/spec_helper.rb +++ b/client/spec/spec_helper.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/openapi.json b/openapi.json index ca0225c..b02430d 100644 --- a/openapi.json +++ b/openapi.json @@ -11528,17 +11528,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SearchUsersResult" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "SearchUsersResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/SearchUsersResult" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -11616,7 +11614,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetUserPresenceStatusesResponse" + "title": "GetUserPresenceStatusesResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetUserPresenceStatusesResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -11630,16 +11636,6 @@ } } } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" - } - } - } } }, "tags": [ @@ -11683,17 +11679,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetMyNotificationsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetUserNotificationsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetMyNotificationsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -11815,17 +11809,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ResetUserNotificationsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "ResetUserNotificationsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ResetUserNotificationsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -11905,17 +11897,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetUserNotificationCountResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetUserNotificationCountResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetUserNotificationCountResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -11954,17 +11944,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ResetUserNotificationsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "ResetUserNotificationCountResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ResetUserNotificationsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -12010,21 +11998,14 @@ }, { "$ref": "#/components/schemas/IgnoredResponse" + }, + { + "$ref": "#/components/schemas/APIError" } ] } } } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" - } - } - } } }, "tags": [ @@ -12087,21 +12068,14 @@ }, { "$ref": "#/components/schemas/IgnoredResponse" + }, + { + "$ref": "#/components/schemas/APIError" } ] } } } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" - } - } - } } }, "description": "Enable or disable notifications for a specific comment.", @@ -12173,21 +12147,14 @@ }, { "$ref": "#/components/schemas/IgnoredResponse" + }, + { + "$ref": "#/components/schemas/APIError" } ] } } } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" - } - } - } } }, "description": "Enable or disable notifications for a page. When users are subscribed to a page, notifications are created\nfor new root comments, and also", @@ -12329,7 +12296,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetTranslationsResponse" + "title": "GetTranslationsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetTranslationsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -12353,16 +12328,6 @@ } } } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" - } - } - } } }, "tags": [ @@ -12414,17 +12379,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetPublicPagesResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetPagesPublicResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetPublicPagesResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -12502,7 +12465,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PageUsersOnlineResponse" + "title": "GetOnlineUsersResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/PageUsersOnlineResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -12526,16 +12497,6 @@ } } } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" - } - } - } } }, "description": "Currently-online viewers of a page: people whose websocket session is subscribed to the page right now.\nReturns anonCount + totalCount (room-wide subscribers, including anon viewers we don't enumerate).", @@ -12591,7 +12552,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PageUsersOfflineResponse" + "title": "GetOfflineUsersResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/PageUsersOfflineResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -12615,16 +12584,6 @@ } } } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" - } - } - } } }, "description": "Past commenters on the page who are NOT currently online. Sorted by displayName.\nUse this after exhausting /users/online to render a \"Members\" section.\nCursor pagination on commenterName: server walks the partial {tenantId, urlId, commenterName}\nindex from afterName forward via $gt, no $skip cost.", @@ -12680,7 +12639,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PageUsersInfoResponse" + "title": "GetUsersInfoResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/PageUsersInfoResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -12694,16 +12661,6 @@ } } } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" - } - } - } } }, "description": "Bulk user info for a tenant. Given userIds, return display info from User / SSOUser.\nUsed by the comment widget to enrich users that just appeared via a presence event.\nNo page context: privacy is enforced uniformly (private profiles are masked).", @@ -12741,17 +12698,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetV1PageLikes" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetV1PageLikesResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetV1PageLikes" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -12788,17 +12743,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateV1PageReact" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateV1PageReactResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateV1PageReact" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -12843,17 +12796,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/DeleteV1PageReact" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteV1PageReactResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/DeleteV1PageReact" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -12892,17 +12843,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetV2PageReactUsersResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetV2PageReactUsersResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetV2PageReactUsersResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -12949,17 +12898,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetV2PageReacts" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetV2PageReactsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetV2PageReacts" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -12996,17 +12943,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateV2PageReact" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateV2PageReactResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateV2PageReact" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13059,17 +13004,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/DeleteV2PageReact" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteV2PageReactResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/DeleteV2PageReact" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13116,17 +13059,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationAPICountCommentsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetCountResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationAPICountCommentsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13177,6 +13118,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13197,17 +13146,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationAPIGetCommentIdsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetApiIdsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationAPIGetCommentIdsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13266,6 +13213,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13286,17 +13241,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationAPIGetCommentsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetApiCommentsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationAPIGetCommentsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13373,6 +13326,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13393,17 +13354,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationExportResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostApiExportResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationExportResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13454,6 +13413,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13474,17 +13441,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationExportStatusResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetApiExportStatusResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationExportStatusResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13503,6 +13468,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13523,17 +13496,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationUserSearchResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetSearchUsersResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationUserSearchResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13552,6 +13523,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13572,17 +13551,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationPageSearchResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetSearchPagesResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationPageSearchResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13601,6 +13578,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13621,17 +13606,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationSiteSearchResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetSearchSitesResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationSiteSearchResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13650,6 +13633,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13670,17 +13661,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationCommentSearchResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetSearchCommentsSummaryResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationCommentSearchResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13715,6 +13704,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13735,17 +13732,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationSuggestResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetSearchSuggestResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationSuggestResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13764,6 +13759,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13784,17 +13787,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PreBanSummary" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetPreBanSummaryResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/PreBanSummary" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13837,6 +13838,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13857,17 +13866,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BulkPreBanSummary" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostBulkPreBanSummaryResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/BulkPreBanSummary" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13902,6 +13909,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13932,17 +13947,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BanUserFromCommentResult" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostBanUserFromCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/BanUserFromCommentResult" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14025,6 +14038,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14045,17 +14066,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetBannedUsersFromCommentResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetBanUsersFromCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetBannedUsersFromCommentResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14074,6 +14093,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14094,17 +14121,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostBanUserUndoResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14115,6 +14140,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14152,21 +14185,14 @@ }, { "$ref": "#/components/schemas/RemoveCommentActionResponse" + }, + { + "$ref": "#/components/schemas/APIError" } ] } } } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" - } - } - } } }, "tags": [ @@ -14182,6 +14208,22 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14202,17 +14244,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostRestoreDeletedCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14231,6 +14271,22 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14251,17 +14307,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostFlagCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14280,6 +14334,22 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14300,17 +14370,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostUnFlagCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14329,6 +14397,22 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14349,17 +14433,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostSetCommentReviewStatusResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14386,6 +14468,22 @@ "type": "boolean" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14406,17 +14504,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostSetCommentSpamStatusResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14451,6 +14547,22 @@ "type": "boolean" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14471,17 +14583,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SetCommentApprovedResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostSetCommentApprovalStatusResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/SetCommentApprovedResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14508,6 +14618,22 @@ "type": "boolean" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14528,17 +14654,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationAPIGetLogsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetLogsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationAPIGetLogsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14557,6 +14681,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14577,17 +14709,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationAPICommentResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetModerationCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationAPICommentResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14622,6 +14752,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14642,17 +14780,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationAPIChildCommentsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostCommentsByIdsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationAPIChildCommentsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14663,6 +14799,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14693,17 +14837,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationAPIChildCommentsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetCommentChildrenResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationAPIChildCommentsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14722,6 +14864,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14742,17 +14892,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetCommentTextResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetModerationCommentTextResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetCommentTextResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14771,6 +14919,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14791,17 +14947,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SetCommentTextResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostSetCommentTextResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/SetCommentTextResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14820,6 +14974,22 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14850,17 +15020,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AdjustVotesResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostAdjustCommentVotesResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/AdjustVotesResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14879,6 +15047,22 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14909,17 +15093,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/VoteResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostVoteResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/VoteResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14946,6 +15128,22 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14966,17 +15164,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/VoteDeleteResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteModerationVoteResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/VoteDeleteResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15003,6 +15199,22 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15023,17 +15235,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetCommentBanStatusResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetCommentBanStatusResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetCommentBanStatusResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15052,6 +15262,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15072,17 +15290,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIModerateGetUserBanPreferencesResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetUserBanPreferenceResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIModerateGetUserBanPreferencesResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15093,6 +15309,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15113,17 +15337,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetTenantManualBadgesResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetManualBadgesResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetTenantManualBadgesResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15134,6 +15356,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15154,17 +15384,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetUserManualBadgesResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetManualBadgesForUserResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetUserManualBadgesResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15191,6 +15419,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15211,17 +15447,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AwardUserBadgeResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PutAwardBadgeResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/AwardUserBadgeResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15264,6 +15498,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15284,17 +15526,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RemoveUserBadgeResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PutRemoveBadgeResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/RemoveUserBadgeResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15337,6 +15577,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15357,17 +15605,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetUserTrustFactorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetTrustFactorResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetUserTrustFactorResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15386,6 +15632,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15406,17 +15660,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SetUserTrustFactorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "SetTrustFactorResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/SetUserTrustFactorResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15443,6 +15695,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15463,17 +15723,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetUserInternalProfileResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetUserInternalProfileResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetUserInternalProfileResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15486,7 +15744,15 @@ "parameters": [ { "in": "query", - "name": "commentId", + "name": "commentId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -15512,17 +15778,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PutReopenThreadResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15541,6 +15805,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15561,17 +15833,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PutCloseThreadResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15590,6 +15860,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15610,17 +15888,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetBannedUsersCountResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetCountsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetBannedUsersCountResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15631,6 +15907,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15722,6 +16006,9 @@ }, { "$ref": "#/components/schemas/GifSearchInternalError" + }, + { + "$ref": "#/components/schemas/APIError" } ] } @@ -15737,16 +16024,6 @@ } } } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" - } - } - } } }, "tags": [ @@ -15807,7 +16084,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GifGetLargeResponse" + "title": "GetGifLargeResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GifGetLargeResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15821,16 +16106,6 @@ } } } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" - } - } - } } }, "tags": [ @@ -15866,17 +16141,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "FlagCommentPublicResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15931,17 +16204,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PublicFeedPostsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetFeedPostsPublicResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/PublicFeedPostsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -16023,17 +16294,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateFeedPostResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateFeedPostPublicResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateFeedPostResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -16090,17 +16359,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ReactFeedPostResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "ReactFeedPostPublicResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ReactFeedPostResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -16173,17 +16440,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UserReactsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetUserReactsPublicResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/UserReactsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -16233,17 +16498,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateFeedPostResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UpdateFeedPostPublicResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateFeedPostResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -16307,25 +16570,22 @@ "application/json": { "schema": { "title": "DeleteFeedPostPublicResponse", - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "anyOf": [ + { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + { + "$ref": "#/components/schemas/APIError" } - }, - "required": [ - "status" - ], - "type": "object" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + ] } } } @@ -16380,17 +16640,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FeedPostsStatsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetFeedPostsStatsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/FeedPostsStatsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -16440,17 +16698,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetEventLogResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetEventLogResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetEventLogResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -16516,17 +16772,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetEventLogResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetGlobalEventLogResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetEventLogResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -16592,17 +16846,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PublicAPIGetCommentTextResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetCommentTextResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/PublicAPIGetCommentTextResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -16657,17 +16909,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PublicAPISetCommentTextResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "SetCommentTextResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/PublicAPISetCommentTextResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -16740,17 +16990,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetCommentsForUserResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetCommentsForUserResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetCommentsForUserResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -16830,17 +17078,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetCommentsResponseWithPresence_PublicComment_" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetCommentsPublicResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetCommentsResponseWithPresence_PublicComment_" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -17095,17 +17341,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SaveCommentsResponseWithPresence" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateCommentPublicResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/SaveCommentsResponseWithPresence" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -17178,17 +17422,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PublicAPIDeleteCommentResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteCommentPublicResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/PublicAPIDeleteCommentResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -17251,17 +17493,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CheckBlockedCommentsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CheckedCommentsForBlockedResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CheckBlockedCommentsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -17309,17 +17549,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/VoteResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "VoteCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/VoteResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -17400,17 +17638,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/VoteDeleteResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteCommentVoteResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/VoteDeleteResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -17489,17 +17725,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetCommentVoteUserNamesSuccessResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetCommentVoteUserNamesResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetCommentVoteUserNamesSuccessResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -17555,17 +17789,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PinCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -17620,17 +17852,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UnPinCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -17685,17 +17915,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "LockCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIError" + }, + { + "$ref": "#/components/schemas/APIEmptyResponse" + } + ] } } } @@ -17750,17 +17978,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UnLockCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIError" + }, + { + "$ref": "#/components/schemas/APIEmptyResponse" + } + ] } } } @@ -17815,17 +18041,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BlockSuccess" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "BlockFromCommentPublicResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/BlockSuccess" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -17880,17 +18104,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UnblockSuccess" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UnBlockCommentPublicResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/UnblockSuccess" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -18698,17 +18920,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetVotesResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetVotesResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetVotesResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -18746,17 +18966,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/VoteResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateVoteResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/VoteResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -18824,17 +19042,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetVotesForUserResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetVotesForUserResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetVotesForUserResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -18890,17 +19106,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/VoteDeleteResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteVoteResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/VoteDeleteResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -18948,17 +19162,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetUserResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetUserResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetUserResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -18998,17 +19210,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIGetUserBadgeResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetUserBadgeResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIGetUserBadgeResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19046,17 +19256,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptySuccessResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UpdateUserBadgeResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptySuccessResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19104,17 +19312,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptySuccessResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteUserBadgeResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptySuccessResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19154,17 +19360,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIGetUserBadgesResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetUserBadgesResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIGetUserBadgesResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19245,17 +19449,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APICreateUserBadgeResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateUserBadgeResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APICreateUserBadgeResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19297,17 +19499,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetUserBadgeProgressByIdResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19347,17 +19547,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIGetUserBadgeProgressListResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetUserBadgeProgressListResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIGetUserBadgeProgressListResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19415,17 +19613,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetUserBadgeProgressByUserIdResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19465,17 +19661,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetTicketsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetTicketsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetTicketsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19540,17 +19734,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateTicketResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateTicketResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateTicketResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19600,17 +19792,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetTicketResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetTicketResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetTicketResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19658,17 +19848,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ChangeTicketStateResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "ChangeTicketStateResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ChangeTicketStateResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19726,17 +19914,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetTenantResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetTenantResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetTenantResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19774,17 +19960,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UpdateTenantResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19832,17 +20016,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteTenantResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19883,24 +20065,22 @@ }, "/api/v1/tenants": { "get": { - "operationId": "GetTenants", - "responses": { - "200": { - "description": "Ok", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetTenantsResponse" - } - } - } - }, - "default": { - "description": "Error", + "operationId": "GetTenants", + "responses": { + "200": { + "description": "Ok", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetTenantsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetTenantsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19947,17 +20127,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateTenantResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateTenantResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateTenantResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19999,17 +20177,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetTenantUserResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetTenantUserResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetTenantUserResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20047,17 +20223,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "ReplaceTenantUserResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20113,17 +20287,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UpdateTenantUserResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20179,17 +20351,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteTenantUserResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20245,17 +20415,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetTenantUsersResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetTenantUsersResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetTenantUsersResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20294,17 +20462,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateTenantUserResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateTenantUserResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateTenantUserResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20346,17 +20512,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "SendLoginLinkResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20404,17 +20568,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetTenantPackageResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetTenantPackageResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetTenantPackageResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20452,17 +20614,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "ReplaceTenantPackageResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20510,17 +20670,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UpdateTenantPackageResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20568,17 +20726,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteTenantPackageResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20618,17 +20774,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetTenantPackagesResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetTenantPackagesResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetTenantPackagesResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20667,17 +20821,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateTenantPackageResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateTenantPackageResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateTenantPackageResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20719,17 +20871,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetTenantDailyUsagesResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetTenantDailyUsagesResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetTenantDailyUsagesResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20797,17 +20947,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetQuestionResultResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetQuestionResultResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetQuestionResultResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20845,17 +20993,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UpdateQuestionResultResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20903,17 +21049,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteQuestionResultResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20953,17 +21097,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetQuestionResultsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetQuestionResultsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetQuestionResultsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21042,17 +21184,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateQuestionResultResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateQuestionResultResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateQuestionResultResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21094,17 +21234,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AggregateQuestionResultsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "AggregateQuestionResultsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/AggregateQuestionResultsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21188,17 +21326,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BulkAggregateQuestionResultsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "BulkAggregateQuestionResultsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/BulkAggregateQuestionResultsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21248,17 +21384,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CombineQuestionResultsWithCommentsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CombineCommentsWithQuestionResultsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CombineQuestionResultsWithCommentsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21361,17 +21495,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetQuestionConfigResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetQuestionConfigResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetQuestionConfigResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21409,17 +21541,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UpdateQuestionConfigResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21467,17 +21597,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteQuestionConfigResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21517,17 +21645,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetQuestionConfigsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetQuestionConfigsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetQuestionConfigsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21566,17 +21692,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateQuestionConfigResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateQuestionConfigResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateQuestionConfigResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21618,17 +21742,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetPendingWebhookEventsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetPendingWebhookEventsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetPendingWebhookEventsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21718,17 +21840,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetPendingWebhookEventCountResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetPendingWebhookEventCountResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetPendingWebhookEventCountResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21809,17 +21929,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeletePendingWebhookEventResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21859,17 +21977,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetNotificationsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetNotificationsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetNotificationsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21950,17 +22066,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetNotificationCountResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetNotificationCountResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetNotificationCountResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22032,17 +22146,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UpdateNotificationResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22092,25 +22204,23 @@ } }, "/api/v1/notification-count/{id}": { - "get": { - "operationId": "GetCachedNotificationCount", - "responses": { - "200": { - "description": "Ok", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetCachedNotificationCountResponse" - } - } - } - }, - "default": { - "description": "Error", + "get": { + "operationId": "GetCachedNotificationCount", + "responses": { + "200": { + "description": "Ok", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetCachedNotificationCountResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetCachedNotificationCountResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22148,17 +22258,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteNotificationCountResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22198,17 +22306,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetModeratorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetModeratorResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetModeratorResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22246,17 +22352,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UpdateModeratorResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22304,17 +22408,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteModeratorResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22362,17 +22464,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetModeratorsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetModeratorsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetModeratorsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22411,17 +22511,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateModeratorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateModeratorResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateModeratorResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22463,17 +22561,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "SendInviteResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22521,17 +22617,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetHashTagsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetHashTagsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetHashTagsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22570,17 +22664,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateHashTagResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "AddHashTagResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateHashTagResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22622,17 +22714,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BulkCreateHashTagsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "AddHashTagsBulkResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/BulkCreateHashTagsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22674,17 +22764,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UpdateHashTagResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PatchHashTagResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/UpdateHashTagResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22732,17 +22820,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteHashTagResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22798,17 +22884,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetFeedPostsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetFeedPostsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetFeedPostsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22867,17 +22951,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateFeedPostsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateFeedPostResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateFeedPostsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22951,17 +23033,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UpdateFeedPostResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -23011,17 +23091,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetEmailTemplateDefinitionsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetEmailTemplateDefinitionsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetEmailTemplateDefinitionsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -23044,26 +23122,24 @@ ] } }, - "/api/v1/email-templates/{id}/render-errors": { - "get": { - "operationId": "GetEmailTemplateRenderErrors", - "responses": { - "200": { - "description": "Ok", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetEmailTemplateRenderErrorsResponse" - } - } - } - }, - "default": { - "description": "Error", + "/api/v1/email-templates/{id}/render-errors": { + "get": { + "operationId": "GetEmailTemplateRenderErrors", + "responses": { + "200": { + "description": "Ok", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetEmailTemplateRenderErrorsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetEmailTemplateRenderErrorsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -23112,17 +23188,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteEmailTemplateRenderErrorResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -23170,17 +23244,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetEmailTemplateResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetEmailTemplateResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetEmailTemplateResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -23218,17 +23290,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UpdateEmailTemplateResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -23276,17 +23346,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteEmailTemplateResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -23326,17 +23394,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetEmailTemplatesResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetEmailTemplatesResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetEmailTemplatesResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -23375,17 +23441,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateEmailTemplateResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateEmailTemplateResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateEmailTemplateResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -23427,17 +23491,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RenderEmailTemplateResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "RenderEmailTemplateResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/RenderEmailTemplateResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -23892,17 +23954,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIGetCommentResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIGetCommentResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -23940,17 +24000,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UpdateCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -24022,17 +24080,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/DeleteCommentResult" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/DeleteCommentResult" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -24088,17 +24144,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIGetCommentsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetCommentsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIGetCommentsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -24264,17 +24318,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APISaveCommentResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "SaveCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APISaveCommentResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -24436,17 +24488,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FlagCommentResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "FlagCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/FlagCommentResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -24502,17 +24552,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FlagCommentResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UnFlagCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/FlagCommentResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -24568,17 +24616,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BlockSuccess" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "BlockUserFromCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/BlockSuccess" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -24644,17 +24690,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UnblockSuccess" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UnBlockUserFromCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/UnblockSuccess" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -24720,17 +24764,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetAuditLogsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetAuditLogsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetAuditLogsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } From 38206054bc3a556a98324248e3e5345096c1a3e4 Mon Sep 17 00:00:00 2001 From: winrid Date: Mon, 22 Jun 2026 14:40:51 -0700 Subject: [PATCH 2/9] Regenerate against corrected spec (tsoa 6.6.8 splits X | APIError response unions) --- client/.openapi-generator/FILES | 531 --- client/README.md | 177 - client/docs/AddHashTagResponse.md | 34 - client/docs/AddHashTagsBulkResponse.md | 34 - .../docs/AggregateQuestionResultsResponse1.md | 34 - client/docs/BlockFromCommentPublicResponse.md | 34 - client/docs/BlockUserFromCommentResponse.md | 34 - .../BulkAggregateQuestionResultsResponse1.md | 34 - client/docs/ChangeTicketStateResponse1.md | 34 - .../docs/CheckedCommentsForBlockedResponse.md | 34 - ...bineCommentsWithQuestionResultsResponse.md | 34 - client/docs/CreateCommentPublicResponse.md | 40 - client/docs/CreateEmailTemplateResponse1.md | 34 - client/docs/CreateFeedPostPublicResponse.md | 34 - client/docs/CreateFeedPostResponse1.md | 34 - client/docs/CreateModeratorResponse1.md | 34 - client/docs/CreateQuestionConfigResponse1.md | 34 - client/docs/CreateQuestionResultResponse1.md | 34 - client/docs/CreateTenantPackageResponse1.md | 34 - client/docs/CreateTenantResponse1.md | 34 - client/docs/CreateTenantUserResponse1.md | 34 - client/docs/CreateTicketResponse1.md | 34 - client/docs/CreateUserBadgeResponse.md | 36 - client/docs/CreateV1PageReactResponse.md | 32 - client/docs/CreateV2PageReactResponse.md | 32 - client/docs/CreateVoteResponse.md | 40 - client/docs/DefaultApi.md | 720 ++-- client/docs/DeleteCommentPublicResponse.md | 36 - client/docs/DeleteCommentResponse.md | 34 - client/docs/DeleteCommentVoteResponse.md | 34 - .../DeleteEmailTemplateRenderErrorResponse.md | 32 - client/docs/DeleteEmailTemplateResponse.md | 32 - client/docs/DeleteFeedPostPublicResponse.md | 16 +- .../docs/DeleteFeedPostPublicResponseAnyOf.md | 18 - client/docs/DeleteHashTagResponse.md | 32 - client/docs/DeleteModerationVoteResponse.md | 34 - client/docs/DeleteModeratorResponse.md | 32 - .../docs/DeleteNotificationCountResponse.md | 32 - .../docs/DeletePendingWebhookEventResponse.md | 32 - client/docs/DeleteQuestionConfigResponse.md | 32 - client/docs/DeleteQuestionResultResponse.md | 32 - client/docs/DeleteTenantPackageResponse.md | 32 - client/docs/DeleteTenantResponse.md | 32 - client/docs/DeleteTenantUserResponse.md | 32 - client/docs/DeleteUserBadgeResponse.md | 32 - client/docs/DeleteV1PageReactResponse.md | 32 - client/docs/DeleteV2PageReactResponse.md | 32 - client/docs/DeleteVoteResponse.md | 34 - client/docs/FlagCommentPublicResponse.md | 32 - client/docs/FlagCommentResponse1.md | 36 - client/docs/GetApiCommentsResponse.md | 38 - client/docs/GetApiExportStatusResponse.md | 38 - client/docs/GetApiIdsResponse.md | 36 - client/docs/GetAuditLogsResponse1.md | 34 - client/docs/GetBanUsersFromCommentResponse.md | 34 - .../GetCachedNotificationCountResponse1.md | 34 - client/docs/GetCommentBanStatusResponse1.md | 36 - client/docs/GetCommentChildrenResponse.md | 34 - client/docs/GetCommentResponse.md | 34 - client/docs/GetCommentTextResponse1.md | 36 - .../docs/GetCommentVoteUserNamesResponse.md | 36 - client/docs/GetCommentsForUserResponse1.md | 34 - client/docs/GetCommentsPublicResponse.md | 78 - client/docs/GetCommentsResponse.md | 34 - client/docs/GetCountResponse.md | 34 - client/docs/GetCountsResponse.md | 34 - .../GetEmailTemplateDefinitionsResponse1.md | 34 - .../GetEmailTemplateRenderErrorsResponse1.md | 34 - client/docs/GetEmailTemplateResponse1.md | 34 - client/docs/GetEmailTemplatesResponse1.md | 34 - client/docs/GetEventLogResponse1.md | 34 - client/docs/GetFeedPostsPublicResponse.md | 44 - client/docs/GetFeedPostsResponse1.md | 34 - client/docs/GetFeedPostsStatsResponse.md | 34 - client/docs/GetGifLargeResponse.md | 34 - client/docs/GetGifsSearchResponse.md | 14 +- client/docs/GetGlobalEventLogResponse.md | 34 - client/docs/GetHashTagsResponse1.md | 34 - client/docs/GetLogsResponse.md | 34 - client/docs/GetManualBadgesForUserResponse.md | 34 - client/docs/GetManualBadgesResponse.md | 34 - client/docs/GetModerationCommentResponse.md | 34 - .../docs/GetModerationCommentTextResponse.md | 34 - client/docs/GetModeratorResponse1.md | 34 - client/docs/GetModeratorsResponse1.md | 34 - client/docs/GetNotificationCountResponse1.md | 34 - client/docs/GetNotificationsResponse1.md | 34 - client/docs/GetOfflineUsersResponse.md | 38 - client/docs/GetOnlineUsersResponse.md | 42 - client/docs/GetPagesPublicResponse.md | 36 - .../GetPendingWebhookEventCountResponse1.md | 34 - .../docs/GetPendingWebhookEventsResponse1.md | 34 - client/docs/GetPreBanSummaryResponse.md | 36 - client/docs/GetQuestionConfigResponse1.md | 34 - client/docs/GetQuestionConfigsResponse1.md | 34 - client/docs/GetQuestionResultResponse1.md | 34 - client/docs/GetQuestionResultsResponse1.md | 34 - .../docs/GetSearchCommentsSummaryResponse.md | 34 - client/docs/GetSearchPagesResponse.md | 34 - client/docs/GetSearchSitesResponse.md | 34 - client/docs/GetSearchSuggestResponse.md | 36 - client/docs/GetSearchUsersResponse.md | 34 - client/docs/GetTenantDailyUsagesResponse1.md | 34 - client/docs/GetTenantPackageResponse1.md | 34 - client/docs/GetTenantPackagesResponse1.md | 34 - client/docs/GetTenantResponse1.md | 34 - client/docs/GetTenantUserResponse1.md | 34 - client/docs/GetTenantUsersResponse1.md | 34 - client/docs/GetTenantsResponse1.md | 34 - client/docs/GetTicketResponse1.md | 36 - client/docs/GetTicketsResponse1.md | 34 - client/docs/GetTranslationsResponse1.md | 34 - client/docs/GetTrustFactorResponse.md | 36 - .../docs/GetUserBadgeProgressByIdResponse.md | 34 - .../GetUserBadgeProgressByUserIdResponse.md | 34 - .../docs/GetUserBadgeProgressListResponse.md | 34 - client/docs/GetUserBadgeResponse.md | 34 - client/docs/GetUserBadgesResponse.md | 34 - client/docs/GetUserBanPreferenceResponse.md | 34 - .../docs/GetUserInternalProfileResponse1.md | 34 - .../docs/GetUserNotificationCountResponse1.md | 34 - client/docs/GetUserNotificationsResponse.md | 40 - .../docs/GetUserPresenceStatusesResponse1.md | 34 - client/docs/GetUserReactsPublicResponse.md | 34 - client/docs/GetUserResponse1.md | 34 - client/docs/GetUsersInfoResponse.md | 34 - client/docs/GetV1PageLikesResponse.md | 40 - client/docs/GetV2PageReactUsersResponse1.md | 34 - client/docs/GetV2PageReactsResponse.md | 36 - client/docs/GetVotesForUserResponse1.md | 38 - client/docs/GetVotesResponse1.md | 38 - client/docs/LockCommentResponse.md | 32 - client/docs/ModerationApi.md | 336 +- client/docs/PatchHashTagResponse.md | 34 - client/docs/PinCommentResponse.md | 34 - client/docs/PostAdjustCommentVotesResponse.md | 34 - client/docs/PostApiExportResponse.md | 34 - client/docs/PostBanUserFromCommentResponse.md | 34 - client/docs/PostBanUserUndoResponse.md | 32 - client/docs/PostBulkPreBanSummaryResponse.md | 42 - client/docs/PostCommentsByIdsResponse.md | 34 - client/docs/PostFlagCommentResponse.md | 32 - client/docs/PostRemoveCommentResponse.md | 20 +- .../docs/PostRestoreDeletedCommentResponse.md | 32 - .../PostSetCommentApprovalStatusResponse.md | 34 - .../PostSetCommentReviewStatusResponse.md | 32 - .../docs/PostSetCommentSpamStatusResponse.md | 32 - client/docs/PostSetCommentTextResponse.md | 34 - client/docs/PostUnFlagCommentResponse.md | 32 - client/docs/PostVoteResponse.md | 40 - client/docs/PublicApi.md | 352 +- client/docs/PutAwardBadgeResponse.md | 36 - client/docs/PutCloseThreadResponse.md | 32 - client/docs/PutRemoveBadgeResponse.md | 34 - client/docs/PutReopenThreadResponse.md | 32 - client/docs/ReactFeedPostPublicResponse.md | 36 - client/docs/RenderEmailTemplateResponse1.md | 34 - client/docs/ReplaceTenantPackageResponse.md | 32 - client/docs/ReplaceTenantUserResponse.md | 32 - .../ResetUserNotificationCountResponse.md | 32 - .../docs/ResetUserNotificationsResponse1.md | 32 - client/docs/SaveCommentResponse.md | 38 - client/docs/SearchUsersResponse1.md | 36 - client/docs/SendInviteResponse.md | 32 - client/docs/SendLoginLinkResponse.md | 32 - client/docs/SetCommentTextResponse1.md | 34 - client/docs/SetTrustFactorResponse.md | 34 - client/docs/UnBlockCommentPublicResponse.md | 34 - client/docs/UnBlockUserFromCommentResponse.md | 34 - client/docs/UnFlagCommentResponse.md | 36 - client/docs/UnLockCommentResponse.md | 32 - client/docs/UnPinCommentResponse.md | 34 - client/docs/UpdateCommentResponse.md | 32 - client/docs/UpdateEmailTemplateResponse.md | 32 - client/docs/UpdateFeedPostPublicResponse.md | 34 - client/docs/UpdateFeedPostResponse.md | 32 - client/docs/UpdateModeratorResponse.md | 32 - client/docs/UpdateNotificationResponse.md | 32 - client/docs/UpdateQuestionConfigResponse.md | 32 - client/docs/UpdateQuestionResultResponse.md | 32 - client/docs/UpdateTenantPackageResponse.md | 32 - client/docs/UpdateTenantResponse.md | 32 - client/docs/UpdateTenantUserResponse.md | 32 - client/docs/UpdateUserBadgeResponse.md | 32 - ...cationCommentSubscriptionStatusResponse.md | 16 +- ...ificationPageSubscriptionStatusResponse.md | 16 +- .../UpdateUserNotificationStatusResponse.md | 16 +- client/docs/VoteCommentResponse.md | 40 - client/lib/fastcomments-client.rb | 177 - .../fastcomments-client/api/default_api.rb | 540 +-- .../fastcomments-client/api/moderation_api.rb | 252 +- .../lib/fastcomments-client/api/public_api.rb | 264 +- .../models/add_hash_tag_response.rb | 103 - .../models/add_hash_tags_bulk_response.rb | 103 - .../aggregate_question_results_response1.rb | 103 - .../block_from_comment_public_response.rb | 103 - .../block_user_from_comment_response.rb | 103 - ...lk_aggregate_question_results_response1.rb | 103 - .../models/change_ticket_state_response1.rb | 103 - .../checked_comments_for_blocked_response.rb | 103 - ...comments_with_question_results_response.rb | 103 - .../models/create_comment_public_response.rb | 103 - .../models/create_email_template_response1.rb | 103 - .../create_feed_post_public_response.rb | 103 - .../models/create_feed_post_response1.rb | 103 - .../models/create_moderator_response1.rb | 103 - .../create_question_config_response1.rb | 103 - .../create_question_result_response1.rb | 103 - .../models/create_tenant_package_response1.rb | 103 - .../models/create_tenant_response1.rb | 103 - .../models/create_tenant_user_response1.rb | 103 - .../models/create_ticket_response1.rb | 103 - .../models/create_user_badge_response.rb | 103 - .../models/create_v1_page_react_response.rb | 103 - .../models/create_v2_page_react_response.rb | 103 - .../models/create_vote_response.rb | 103 - .../models/delete_comment_public_response.rb | 103 - .../models/delete_comment_response.rb | 103 - .../models/delete_comment_vote_response.rb | 103 - ...te_email_template_render_error_response.rb | 103 - .../models/delete_email_template_response.rb | 103 - .../delete_feed_post_public_response.rb | 229 +- ...delete_feed_post_public_response_any_of.rb | 186 - .../models/delete_hash_tag_response.rb | 103 - .../models/delete_moderation_vote_response.rb | 103 - .../models/delete_moderator_response.rb | 103 - .../delete_notification_count_response.rb | 103 - .../delete_pending_webhook_event_response.rb | 103 - .../models/delete_question_config_response.rb | 103 - .../models/delete_question_result_response.rb | 103 - .../models/delete_tenant_package_response.rb | 103 - .../models/delete_tenant_response.rb | 103 - .../models/delete_tenant_user_response.rb | 103 - .../models/delete_user_badge_response.rb | 103 - .../models/delete_v1_page_react_response.rb | 103 - .../models/delete_v2_page_react_response.rb | 103 - .../models/delete_vote_response.rb | 103 - .../models/flag_comment_public_response.rb | 103 - .../models/flag_comment_response1.rb | 103 - .../models/get_api_comments_response.rb | 103 - .../models/get_api_export_status_response.rb | 103 - .../models/get_api_ids_response.rb | 103 - .../models/get_audit_logs_response1.rb | 103 - .../get_ban_users_from_comment_response.rb | 103 - ...get_cached_notification_count_response1.rb | 103 - .../get_comment_ban_status_response1.rb | 103 - .../models/get_comment_children_response.rb | 103 - .../models/get_comment_response.rb | 103 - .../models/get_comment_text_response1.rb | 103 - .../get_comment_vote_user_names_response.rb | 103 - .../models/get_comments_for_user_response1.rb | 103 - .../models/get_comments_public_response.rb | 103 - .../models/get_comments_response.rb | 103 - .../models/get_count_response.rb | 103 - .../models/get_counts_response.rb | 103 - ...et_email_template_definitions_response1.rb | 103 - ..._email_template_render_errors_response1.rb | 103 - .../models/get_email_template_response1.rb | 103 - .../models/get_email_templates_response1.rb | 103 - .../models/get_event_log_response1.rb | 103 - .../models/get_feed_posts_public_response.rb | 103 - .../models/get_feed_posts_response1.rb | 103 - .../models/get_feed_posts_stats_response.rb | 103 - .../models/get_gif_large_response.rb | 103 - .../models/get_gifs_search_response.rb | 1 - .../models/get_global_event_log_response.rb | 103 - .../models/get_hash_tags_response1.rb | 103 - .../models/get_logs_response.rb | 103 - .../get_manual_badges_for_user_response.rb | 103 - .../models/get_manual_badges_response.rb | 103 - .../models/get_moderation_comment_response.rb | 103 - .../get_moderation_comment_text_response.rb | 103 - .../models/get_moderator_response1.rb | 103 - .../models/get_moderators_response1.rb | 103 - .../get_notification_count_response1.rb | 103 - .../models/get_notifications_response1.rb | 103 - .../models/get_offline_users_response.rb | 103 - .../models/get_online_users_response.rb | 103 - .../models/get_pages_public_response.rb | 103 - ...t_pending_webhook_event_count_response1.rb | 103 - .../get_pending_webhook_events_response1.rb | 103 - .../models/get_pre_ban_summary_response.rb | 103 - .../models/get_question_config_response1.rb | 103 - .../models/get_question_configs_response1.rb | 103 - .../models/get_question_result_response1.rb | 103 - .../models/get_question_results_response1.rb | 103 - .../get_search_comments_summary_response.rb | 103 - .../models/get_search_pages_response.rb | 103 - .../models/get_search_sites_response.rb | 103 - .../models/get_search_suggest_response.rb | 103 - .../models/get_search_users_response.rb | 103 - .../get_tenant_daily_usages_response1.rb | 103 - .../models/get_tenant_package_response1.rb | 103 - .../models/get_tenant_packages_response1.rb | 103 - .../models/get_tenant_response1.rb | 103 - .../models/get_tenant_user_response1.rb | 103 - .../models/get_tenant_users_response1.rb | 103 - .../models/get_tenants_response1.rb | 103 - .../models/get_ticket_response1.rb | 103 - .../models/get_tickets_response1.rb | 103 - .../models/get_translations_response1.rb | 103 - .../models/get_trust_factor_response.rb | 103 - .../get_user_badge_progress_by_id_response.rb | 103 - ...user_badge_progress_by_user_id_response.rb | 103 - .../get_user_badge_progress_list_response.rb | 103 - .../models/get_user_badge_response.rb | 103 - .../models/get_user_badges_response.rb | 103 - .../get_user_ban_preference_response.rb | 103 - .../get_user_internal_profile_response1.rb | 103 - .../get_user_notification_count_response1.rb | 103 - .../models/get_user_notifications_response.rb | 103 - .../get_user_presence_statuses_response1.rb | 103 - .../models/get_user_reacts_public_response.rb | 103 - .../models/get_user_response1.rb | 103 - .../models/get_users_info_response.rb | 103 - .../models/get_v1_page_likes_response.rb | 103 - .../get_v2_page_react_users_response1.rb | 103 - .../models/get_v2_page_reacts_response.rb | 103 - .../models/get_votes_for_user_response1.rb | 103 - .../models/get_votes_response1.rb | 103 - .../models/lock_comment_response.rb | 103 - .../models/patch_hash_tag_response.rb | 103 - .../models/pin_comment_response.rb | 103 - .../post_adjust_comment_votes_response.rb | 103 - .../models/post_api_export_response.rb | 103 - .../post_ban_user_from_comment_response.rb | 103 - .../models/post_ban_user_undo_response.rb | 103 - .../post_bulk_pre_ban_summary_response.rb | 103 - .../models/post_comments_by_ids_response.rb | 103 - .../models/post_flag_comment_response.rb | 103 - .../models/post_remove_comment_response.rb | 1 - .../post_restore_deleted_comment_response.rb | 103 - ...st_set_comment_approval_status_response.rb | 103 - ...post_set_comment_review_status_response.rb | 103 - .../post_set_comment_spam_status_response.rb | 103 - .../models/post_set_comment_text_response.rb | 103 - .../models/post_un_flag_comment_response.rb | 103 - .../models/post_vote_response.rb | 103 - .../models/put_award_badge_response.rb | 103 - .../models/put_close_thread_response.rb | 103 - .../models/put_remove_badge_response.rb | 103 - .../models/put_reopen_thread_response.rb | 103 - .../models/react_feed_post_public_response.rb | 103 - .../models/render_email_template_response1.rb | 103 - .../models/replace_tenant_package_response.rb | 103 - .../models/replace_tenant_user_response.rb | 103 - .../reset_user_notification_count_response.rb | 103 - .../reset_user_notifications_response1.rb | 103 - .../models/save_comment_response.rb | 103 - .../models/search_users_response1.rb | 103 - .../models/send_invite_response.rb | 103 - .../models/send_login_link_response.rb | 103 - .../models/set_comment_text_response1.rb | 103 - .../models/set_trust_factor_response.rb | 103 - .../un_block_comment_public_response.rb | 103 - .../un_block_user_from_comment_response.rb | 103 - .../models/un_flag_comment_response.rb | 103 - .../models/un_lock_comment_response.rb | 103 - .../models/un_pin_comment_response.rb | 103 - .../models/update_comment_response.rb | 103 - .../models/update_email_template_response.rb | 103 - .../update_feed_post_public_response.rb | 103 - .../models/update_feed_post_response.rb | 103 - .../models/update_moderator_response.rb | 103 - .../models/update_notification_response.rb | 103 - .../models/update_question_config_response.rb | 103 - .../models/update_question_result_response.rb | 103 - .../models/update_tenant_package_response.rb | 103 - .../models/update_tenant_response.rb | 103 - .../models/update_tenant_user_response.rb | 103 - .../models/update_user_badge_response.rb | 103 - ...on_comment_subscription_status_response.rb | 1 - ...ation_page_subscription_status_response.rb | 1 - ...pdate_user_notification_status_response.rb | 1 - .../models/vote_comment_response.rb | 103 - client/spec/api/default_api_spec.rb | 180 +- client/spec/api/moderation_api_spec.rb | 84 +- client/spec/api/public_api_spec.rb | 88 +- .../spec/models/add_hash_tag_response_spec.rb | 21 - .../add_hash_tags_bulk_response_spec.rb | 21 - ...gregate_question_results_response1_spec.rb | 21 - ...block_from_comment_public_response_spec.rb | 21 - .../block_user_from_comment_response_spec.rb | 21 - ...gregate_question_results_response1_spec.rb | 21 - .../change_ticket_state_response1_spec.rb | 21 - ...cked_comments_for_blocked_response_spec.rb | 21 - ...nts_with_question_results_response_spec.rb | 21 - .../create_comment_public_response_spec.rb | 21 - .../create_email_template_response1_spec.rb | 21 - .../create_feed_post_public_response_spec.rb | 21 - .../models/create_feed_post_response1_spec.rb | 21 - .../models/create_moderator_response1_spec.rb | 21 - .../create_question_config_response1_spec.rb | 21 - .../create_question_result_response1_spec.rb | 21 - .../create_tenant_package_response1_spec.rb | 21 - .../models/create_tenant_response1_spec.rb | 21 - .../create_tenant_user_response1_spec.rb | 21 - .../models/create_ticket_response1_spec.rb | 21 - .../models/create_user_badge_response_spec.rb | 21 - .../create_v1_page_react_response_spec.rb | 21 - .../create_v2_page_react_response_spec.rb | 21 - .../spec/models/create_vote_response_spec.rb | 21 - .../delete_comment_public_response_spec.rb | 21 - .../models/delete_comment_response_spec.rb | 21 - .../delete_comment_vote_response_spec.rb | 21 - ...ail_template_render_error_response_spec.rb | 21 - .../delete_email_template_response_spec.rb | 21 - ...e_feed_post_public_response_any_of_spec.rb | 36 - .../delete_feed_post_public_response_spec.rb | 15 + .../models/delete_hash_tag_response_spec.rb | 21 - .../delete_moderation_vote_response_spec.rb | 21 - .../models/delete_moderator_response_spec.rb | 21 - ...delete_notification_count_response_spec.rb | 21 - ...ete_pending_webhook_event_response_spec.rb | 21 - .../delete_question_config_response_spec.rb | 21 - .../delete_question_result_response_spec.rb | 21 - .../delete_tenant_package_response_spec.rb | 21 - .../models/delete_tenant_response_spec.rb | 21 - .../delete_tenant_user_response_spec.rb | 21 - .../models/delete_user_badge_response_spec.rb | 21 - .../delete_v1_page_react_response_spec.rb | 21 - .../delete_v2_page_react_response_spec.rb | 21 - .../spec/models/delete_vote_response_spec.rb | 21 - .../flag_comment_public_response_spec.rb | 21 - .../models/flag_comment_response1_spec.rb | 21 - .../models/get_api_comments_response_spec.rb | 21 - .../get_api_export_status_response_spec.rb | 21 - .../spec/models/get_api_ids_response_spec.rb | 21 - .../models/get_audit_logs_response1_spec.rb | 21 - ...et_ban_users_from_comment_response_spec.rb | 21 - ...ached_notification_count_response1_spec.rb | 21 - .../get_comment_ban_status_response1_spec.rb | 21 - .../get_comment_children_response_spec.rb | 21 - .../spec/models/get_comment_response_spec.rb | 21 - .../models/get_comment_text_response1_spec.rb | 21 - ...t_comment_vote_user_names_response_spec.rb | 21 - .../get_comments_for_user_response1_spec.rb | 21 - .../get_comments_public_response_spec.rb | 21 - .../spec/models/get_comments_response_spec.rb | 21 - client/spec/models/get_count_response_spec.rb | 21 - .../spec/models/get_counts_response_spec.rb | 21 - ...ail_template_definitions_response1_spec.rb | 21 - ...l_template_render_errors_response1_spec.rb | 21 - .../get_email_template_response1_spec.rb | 21 - .../get_email_templates_response1_spec.rb | 21 - .../models/get_event_log_response1_spec.rb | 21 - .../get_feed_posts_public_response_spec.rb | 21 - .../models/get_feed_posts_response1_spec.rb | 21 - .../get_feed_posts_stats_response_spec.rb | 21 - .../models/get_gif_large_response_spec.rb | 21 - .../get_global_event_log_response_spec.rb | 21 - .../models/get_hash_tags_response1_spec.rb | 21 - client/spec/models/get_logs_response_spec.rb | 21 - ...et_manual_badges_for_user_response_spec.rb | 21 - .../models/get_manual_badges_response_spec.rb | 21 - .../get_moderation_comment_response_spec.rb | 21 - ...t_moderation_comment_text_response_spec.rb | 21 - .../models/get_moderator_response1_spec.rb | 21 - .../models/get_moderators_response1_spec.rb | 21 - .../get_notification_count_response1_spec.rb | 21 - .../get_notifications_response1_spec.rb | 21 - .../models/get_offline_users_response_spec.rb | 21 - .../models/get_online_users_response_spec.rb | 21 - .../models/get_pages_public_response_spec.rb | 21 - ...ding_webhook_event_count_response1_spec.rb | 21 - ...t_pending_webhook_events_response1_spec.rb | 21 - .../get_pre_ban_summary_response_spec.rb | 21 - .../get_question_config_response1_spec.rb | 21 - .../get_question_configs_response1_spec.rb | 21 - .../get_question_result_response1_spec.rb | 21 - .../get_question_results_response1_spec.rb | 21 - ...t_search_comments_summary_response_spec.rb | 21 - .../models/get_search_pages_response_spec.rb | 21 - .../models/get_search_sites_response_spec.rb | 21 - .../get_search_suggest_response_spec.rb | 21 - .../models/get_search_users_response_spec.rb | 21 - .../get_tenant_daily_usages_response1_spec.rb | 21 - .../get_tenant_package_response1_spec.rb | 21 - .../get_tenant_packages_response1_spec.rb | 21 - .../spec/models/get_tenant_response1_spec.rb | 21 - .../models/get_tenant_user_response1_spec.rb | 21 - .../models/get_tenant_users_response1_spec.rb | 21 - .../spec/models/get_tenants_response1_spec.rb | 21 - .../spec/models/get_ticket_response1_spec.rb | 21 - .../spec/models/get_tickets_response1_spec.rb | 21 - .../models/get_translations_response1_spec.rb | 21 - .../models/get_trust_factor_response_spec.rb | 21 - ...user_badge_progress_by_id_response_spec.rb | 21 - ...badge_progress_by_user_id_response_spec.rb | 21 - ..._user_badge_progress_list_response_spec.rb | 21 - .../models/get_user_badge_response_spec.rb | 21 - .../models/get_user_badges_response_spec.rb | 21 - .../get_user_ban_preference_response_spec.rb | 21 - ...et_user_internal_profile_response1_spec.rb | 21 - ..._user_notification_count_response1_spec.rb | 21 - .../get_user_notifications_response_spec.rb | 21 - ...t_user_presence_statuses_response1_spec.rb | 21 - .../get_user_reacts_public_response_spec.rb | 21 - client/spec/models/get_user_response1_spec.rb | 21 - .../models/get_users_info_response_spec.rb | 21 - .../models/get_v1_page_likes_response_spec.rb | 21 - .../get_v2_page_react_users_response1_spec.rb | 21 - .../get_v2_page_reacts_response_spec.rb | 21 - .../get_votes_for_user_response1_spec.rb | 21 - .../spec/models/get_votes_response1_spec.rb | 21 - .../spec/models/lock_comment_response_spec.rb | 21 - .../models/patch_hash_tag_response_spec.rb | 21 - .../spec/models/pin_comment_response_spec.rb | 21 - ...post_adjust_comment_votes_response_spec.rb | 21 - .../models/post_api_export_response_spec.rb | 21 - ...ost_ban_user_from_comment_response_spec.rb | 21 - .../post_ban_user_undo_response_spec.rb | 21 - ...post_bulk_pre_ban_summary_response_spec.rb | 21 - .../post_comments_by_ids_response_spec.rb | 21 - .../models/post_flag_comment_response_spec.rb | 21 - ...t_restore_deleted_comment_response_spec.rb | 21 - ...t_comment_approval_status_response_spec.rb | 21 - ...set_comment_review_status_response_spec.rb | 21 - ...t_set_comment_spam_status_response_spec.rb | 21 - .../post_set_comment_text_response_spec.rb | 21 - .../post_un_flag_comment_response_spec.rb | 21 - client/spec/models/post_vote_response_spec.rb | 21 - .../models/put_award_badge_response_spec.rb | 21 - .../models/put_close_thread_response_spec.rb | 21 - .../models/put_remove_badge_response_spec.rb | 21 - .../models/put_reopen_thread_response_spec.rb | 21 - .../react_feed_post_public_response_spec.rb | 21 - .../render_email_template_response1_spec.rb | 21 - .../replace_tenant_package_response_spec.rb | 21 - .../replace_tenant_user_response_spec.rb | 21 - ...t_user_notification_count_response_spec.rb | 21 - ...reset_user_notifications_response1_spec.rb | 21 - .../spec/models/save_comment_response_spec.rb | 21 - .../models/search_users_response1_spec.rb | 21 - .../spec/models/send_invite_response_spec.rb | 21 - .../models/send_login_link_response_spec.rb | 21 - .../models/set_comment_text_response1_spec.rb | 21 - .../models/set_trust_factor_response_spec.rb | 21 - .../un_block_comment_public_response_spec.rb | 21 - ...n_block_user_from_comment_response_spec.rb | 21 - .../models/un_flag_comment_response_spec.rb | 21 - .../models/un_lock_comment_response_spec.rb | 21 - .../models/un_pin_comment_response_spec.rb | 21 - .../models/update_comment_response_spec.rb | 21 - .../update_email_template_response_spec.rb | 21 - .../update_feed_post_public_response_spec.rb | 21 - .../models/update_feed_post_response_spec.rb | 21 - .../models/update_moderator_response_spec.rb | 21 - .../update_notification_response_spec.rb | 21 - .../update_question_config_response_spec.rb | 21 - .../update_question_result_response_spec.rb | 21 - .../update_tenant_package_response_spec.rb | 21 - .../models/update_tenant_response_spec.rb | 21 - .../update_tenant_user_response_spec.rb | 21 - .../models/update_user_badge_response_spec.rb | 21 - .../spec/models/vote_comment_response_spec.rb | 21 - openapi.json | 3634 +++++++++-------- 557 files changed, 3599 insertions(+), 32207 deletions(-) delete mode 100644 client/docs/AddHashTagResponse.md delete mode 100644 client/docs/AddHashTagsBulkResponse.md delete mode 100644 client/docs/AggregateQuestionResultsResponse1.md delete mode 100644 client/docs/BlockFromCommentPublicResponse.md delete mode 100644 client/docs/BlockUserFromCommentResponse.md delete mode 100644 client/docs/BulkAggregateQuestionResultsResponse1.md delete mode 100644 client/docs/ChangeTicketStateResponse1.md delete mode 100644 client/docs/CheckedCommentsForBlockedResponse.md delete mode 100644 client/docs/CombineCommentsWithQuestionResultsResponse.md delete mode 100644 client/docs/CreateCommentPublicResponse.md delete mode 100644 client/docs/CreateEmailTemplateResponse1.md delete mode 100644 client/docs/CreateFeedPostPublicResponse.md delete mode 100644 client/docs/CreateFeedPostResponse1.md delete mode 100644 client/docs/CreateModeratorResponse1.md delete mode 100644 client/docs/CreateQuestionConfigResponse1.md delete mode 100644 client/docs/CreateQuestionResultResponse1.md delete mode 100644 client/docs/CreateTenantPackageResponse1.md delete mode 100644 client/docs/CreateTenantResponse1.md delete mode 100644 client/docs/CreateTenantUserResponse1.md delete mode 100644 client/docs/CreateTicketResponse1.md delete mode 100644 client/docs/CreateUserBadgeResponse.md delete mode 100644 client/docs/CreateV1PageReactResponse.md delete mode 100644 client/docs/CreateV2PageReactResponse.md delete mode 100644 client/docs/CreateVoteResponse.md delete mode 100644 client/docs/DeleteCommentPublicResponse.md delete mode 100644 client/docs/DeleteCommentResponse.md delete mode 100644 client/docs/DeleteCommentVoteResponse.md delete mode 100644 client/docs/DeleteEmailTemplateRenderErrorResponse.md delete mode 100644 client/docs/DeleteEmailTemplateResponse.md delete mode 100644 client/docs/DeleteFeedPostPublicResponseAnyOf.md delete mode 100644 client/docs/DeleteHashTagResponse.md delete mode 100644 client/docs/DeleteModerationVoteResponse.md delete mode 100644 client/docs/DeleteModeratorResponse.md delete mode 100644 client/docs/DeleteNotificationCountResponse.md delete mode 100644 client/docs/DeletePendingWebhookEventResponse.md delete mode 100644 client/docs/DeleteQuestionConfigResponse.md delete mode 100644 client/docs/DeleteQuestionResultResponse.md delete mode 100644 client/docs/DeleteTenantPackageResponse.md delete mode 100644 client/docs/DeleteTenantResponse.md delete mode 100644 client/docs/DeleteTenantUserResponse.md delete mode 100644 client/docs/DeleteUserBadgeResponse.md delete mode 100644 client/docs/DeleteV1PageReactResponse.md delete mode 100644 client/docs/DeleteV2PageReactResponse.md delete mode 100644 client/docs/DeleteVoteResponse.md delete mode 100644 client/docs/FlagCommentPublicResponse.md delete mode 100644 client/docs/FlagCommentResponse1.md delete mode 100644 client/docs/GetApiCommentsResponse.md delete mode 100644 client/docs/GetApiExportStatusResponse.md delete mode 100644 client/docs/GetApiIdsResponse.md delete mode 100644 client/docs/GetAuditLogsResponse1.md delete mode 100644 client/docs/GetBanUsersFromCommentResponse.md delete mode 100644 client/docs/GetCachedNotificationCountResponse1.md delete mode 100644 client/docs/GetCommentBanStatusResponse1.md delete mode 100644 client/docs/GetCommentChildrenResponse.md delete mode 100644 client/docs/GetCommentResponse.md delete mode 100644 client/docs/GetCommentTextResponse1.md delete mode 100644 client/docs/GetCommentVoteUserNamesResponse.md delete mode 100644 client/docs/GetCommentsForUserResponse1.md delete mode 100644 client/docs/GetCommentsPublicResponse.md delete mode 100644 client/docs/GetCommentsResponse.md delete mode 100644 client/docs/GetCountResponse.md delete mode 100644 client/docs/GetCountsResponse.md delete mode 100644 client/docs/GetEmailTemplateDefinitionsResponse1.md delete mode 100644 client/docs/GetEmailTemplateRenderErrorsResponse1.md delete mode 100644 client/docs/GetEmailTemplateResponse1.md delete mode 100644 client/docs/GetEmailTemplatesResponse1.md delete mode 100644 client/docs/GetEventLogResponse1.md delete mode 100644 client/docs/GetFeedPostsPublicResponse.md delete mode 100644 client/docs/GetFeedPostsResponse1.md delete mode 100644 client/docs/GetFeedPostsStatsResponse.md delete mode 100644 client/docs/GetGifLargeResponse.md delete mode 100644 client/docs/GetGlobalEventLogResponse.md delete mode 100644 client/docs/GetHashTagsResponse1.md delete mode 100644 client/docs/GetLogsResponse.md delete mode 100644 client/docs/GetManualBadgesForUserResponse.md delete mode 100644 client/docs/GetManualBadgesResponse.md delete mode 100644 client/docs/GetModerationCommentResponse.md delete mode 100644 client/docs/GetModerationCommentTextResponse.md delete mode 100644 client/docs/GetModeratorResponse1.md delete mode 100644 client/docs/GetModeratorsResponse1.md delete mode 100644 client/docs/GetNotificationCountResponse1.md delete mode 100644 client/docs/GetNotificationsResponse1.md delete mode 100644 client/docs/GetOfflineUsersResponse.md delete mode 100644 client/docs/GetOnlineUsersResponse.md delete mode 100644 client/docs/GetPagesPublicResponse.md delete mode 100644 client/docs/GetPendingWebhookEventCountResponse1.md delete mode 100644 client/docs/GetPendingWebhookEventsResponse1.md delete mode 100644 client/docs/GetPreBanSummaryResponse.md delete mode 100644 client/docs/GetQuestionConfigResponse1.md delete mode 100644 client/docs/GetQuestionConfigsResponse1.md delete mode 100644 client/docs/GetQuestionResultResponse1.md delete mode 100644 client/docs/GetQuestionResultsResponse1.md delete mode 100644 client/docs/GetSearchCommentsSummaryResponse.md delete mode 100644 client/docs/GetSearchPagesResponse.md delete mode 100644 client/docs/GetSearchSitesResponse.md delete mode 100644 client/docs/GetSearchSuggestResponse.md delete mode 100644 client/docs/GetSearchUsersResponse.md delete mode 100644 client/docs/GetTenantDailyUsagesResponse1.md delete mode 100644 client/docs/GetTenantPackageResponse1.md delete mode 100644 client/docs/GetTenantPackagesResponse1.md delete mode 100644 client/docs/GetTenantResponse1.md delete mode 100644 client/docs/GetTenantUserResponse1.md delete mode 100644 client/docs/GetTenantUsersResponse1.md delete mode 100644 client/docs/GetTenantsResponse1.md delete mode 100644 client/docs/GetTicketResponse1.md delete mode 100644 client/docs/GetTicketsResponse1.md delete mode 100644 client/docs/GetTranslationsResponse1.md delete mode 100644 client/docs/GetTrustFactorResponse.md delete mode 100644 client/docs/GetUserBadgeProgressByIdResponse.md delete mode 100644 client/docs/GetUserBadgeProgressByUserIdResponse.md delete mode 100644 client/docs/GetUserBadgeProgressListResponse.md delete mode 100644 client/docs/GetUserBadgeResponse.md delete mode 100644 client/docs/GetUserBadgesResponse.md delete mode 100644 client/docs/GetUserBanPreferenceResponse.md delete mode 100644 client/docs/GetUserInternalProfileResponse1.md delete mode 100644 client/docs/GetUserNotificationCountResponse1.md delete mode 100644 client/docs/GetUserNotificationsResponse.md delete mode 100644 client/docs/GetUserPresenceStatusesResponse1.md delete mode 100644 client/docs/GetUserReactsPublicResponse.md delete mode 100644 client/docs/GetUserResponse1.md delete mode 100644 client/docs/GetUsersInfoResponse.md delete mode 100644 client/docs/GetV1PageLikesResponse.md delete mode 100644 client/docs/GetV2PageReactUsersResponse1.md delete mode 100644 client/docs/GetV2PageReactsResponse.md delete mode 100644 client/docs/GetVotesForUserResponse1.md delete mode 100644 client/docs/GetVotesResponse1.md delete mode 100644 client/docs/LockCommentResponse.md delete mode 100644 client/docs/PatchHashTagResponse.md delete mode 100644 client/docs/PinCommentResponse.md delete mode 100644 client/docs/PostAdjustCommentVotesResponse.md delete mode 100644 client/docs/PostApiExportResponse.md delete mode 100644 client/docs/PostBanUserFromCommentResponse.md delete mode 100644 client/docs/PostBanUserUndoResponse.md delete mode 100644 client/docs/PostBulkPreBanSummaryResponse.md delete mode 100644 client/docs/PostCommentsByIdsResponse.md delete mode 100644 client/docs/PostFlagCommentResponse.md delete mode 100644 client/docs/PostRestoreDeletedCommentResponse.md delete mode 100644 client/docs/PostSetCommentApprovalStatusResponse.md delete mode 100644 client/docs/PostSetCommentReviewStatusResponse.md delete mode 100644 client/docs/PostSetCommentSpamStatusResponse.md delete mode 100644 client/docs/PostSetCommentTextResponse.md delete mode 100644 client/docs/PostUnFlagCommentResponse.md delete mode 100644 client/docs/PostVoteResponse.md delete mode 100644 client/docs/PutAwardBadgeResponse.md delete mode 100644 client/docs/PutCloseThreadResponse.md delete mode 100644 client/docs/PutRemoveBadgeResponse.md delete mode 100644 client/docs/PutReopenThreadResponse.md delete mode 100644 client/docs/ReactFeedPostPublicResponse.md delete mode 100644 client/docs/RenderEmailTemplateResponse1.md delete mode 100644 client/docs/ReplaceTenantPackageResponse.md delete mode 100644 client/docs/ReplaceTenantUserResponse.md delete mode 100644 client/docs/ResetUserNotificationCountResponse.md delete mode 100644 client/docs/ResetUserNotificationsResponse1.md delete mode 100644 client/docs/SaveCommentResponse.md delete mode 100644 client/docs/SearchUsersResponse1.md delete mode 100644 client/docs/SendInviteResponse.md delete mode 100644 client/docs/SendLoginLinkResponse.md delete mode 100644 client/docs/SetCommentTextResponse1.md delete mode 100644 client/docs/SetTrustFactorResponse.md delete mode 100644 client/docs/UnBlockCommentPublicResponse.md delete mode 100644 client/docs/UnBlockUserFromCommentResponse.md delete mode 100644 client/docs/UnFlagCommentResponse.md delete mode 100644 client/docs/UnLockCommentResponse.md delete mode 100644 client/docs/UnPinCommentResponse.md delete mode 100644 client/docs/UpdateCommentResponse.md delete mode 100644 client/docs/UpdateEmailTemplateResponse.md delete mode 100644 client/docs/UpdateFeedPostPublicResponse.md delete mode 100644 client/docs/UpdateFeedPostResponse.md delete mode 100644 client/docs/UpdateModeratorResponse.md delete mode 100644 client/docs/UpdateNotificationResponse.md delete mode 100644 client/docs/UpdateQuestionConfigResponse.md delete mode 100644 client/docs/UpdateQuestionResultResponse.md delete mode 100644 client/docs/UpdateTenantPackageResponse.md delete mode 100644 client/docs/UpdateTenantResponse.md delete mode 100644 client/docs/UpdateTenantUserResponse.md delete mode 100644 client/docs/UpdateUserBadgeResponse.md delete mode 100644 client/docs/VoteCommentResponse.md delete mode 100644 client/lib/fastcomments-client/models/add_hash_tag_response.rb delete mode 100644 client/lib/fastcomments-client/models/add_hash_tags_bulk_response.rb delete mode 100644 client/lib/fastcomments-client/models/aggregate_question_results_response1.rb delete mode 100644 client/lib/fastcomments-client/models/block_from_comment_public_response.rb delete mode 100644 client/lib/fastcomments-client/models/block_user_from_comment_response.rb delete mode 100644 client/lib/fastcomments-client/models/bulk_aggregate_question_results_response1.rb delete mode 100644 client/lib/fastcomments-client/models/change_ticket_state_response1.rb delete mode 100644 client/lib/fastcomments-client/models/checked_comments_for_blocked_response.rb delete mode 100644 client/lib/fastcomments-client/models/combine_comments_with_question_results_response.rb delete mode 100644 client/lib/fastcomments-client/models/create_comment_public_response.rb delete mode 100644 client/lib/fastcomments-client/models/create_email_template_response1.rb delete mode 100644 client/lib/fastcomments-client/models/create_feed_post_public_response.rb delete mode 100644 client/lib/fastcomments-client/models/create_feed_post_response1.rb delete mode 100644 client/lib/fastcomments-client/models/create_moderator_response1.rb delete mode 100644 client/lib/fastcomments-client/models/create_question_config_response1.rb delete mode 100644 client/lib/fastcomments-client/models/create_question_result_response1.rb delete mode 100644 client/lib/fastcomments-client/models/create_tenant_package_response1.rb delete mode 100644 client/lib/fastcomments-client/models/create_tenant_response1.rb delete mode 100644 client/lib/fastcomments-client/models/create_tenant_user_response1.rb delete mode 100644 client/lib/fastcomments-client/models/create_ticket_response1.rb delete mode 100644 client/lib/fastcomments-client/models/create_user_badge_response.rb delete mode 100644 client/lib/fastcomments-client/models/create_v1_page_react_response.rb delete mode 100644 client/lib/fastcomments-client/models/create_v2_page_react_response.rb delete mode 100644 client/lib/fastcomments-client/models/create_vote_response.rb delete mode 100644 client/lib/fastcomments-client/models/delete_comment_public_response.rb delete mode 100644 client/lib/fastcomments-client/models/delete_comment_response.rb delete mode 100644 client/lib/fastcomments-client/models/delete_comment_vote_response.rb delete mode 100644 client/lib/fastcomments-client/models/delete_email_template_render_error_response.rb delete mode 100644 client/lib/fastcomments-client/models/delete_email_template_response.rb delete mode 100644 client/lib/fastcomments-client/models/delete_feed_post_public_response_any_of.rb delete mode 100644 client/lib/fastcomments-client/models/delete_hash_tag_response.rb delete mode 100644 client/lib/fastcomments-client/models/delete_moderation_vote_response.rb delete mode 100644 client/lib/fastcomments-client/models/delete_moderator_response.rb delete mode 100644 client/lib/fastcomments-client/models/delete_notification_count_response.rb delete mode 100644 client/lib/fastcomments-client/models/delete_pending_webhook_event_response.rb delete mode 100644 client/lib/fastcomments-client/models/delete_question_config_response.rb delete mode 100644 client/lib/fastcomments-client/models/delete_question_result_response.rb delete mode 100644 client/lib/fastcomments-client/models/delete_tenant_package_response.rb delete mode 100644 client/lib/fastcomments-client/models/delete_tenant_response.rb delete mode 100644 client/lib/fastcomments-client/models/delete_tenant_user_response.rb delete mode 100644 client/lib/fastcomments-client/models/delete_user_badge_response.rb delete mode 100644 client/lib/fastcomments-client/models/delete_v1_page_react_response.rb delete mode 100644 client/lib/fastcomments-client/models/delete_v2_page_react_response.rb delete mode 100644 client/lib/fastcomments-client/models/delete_vote_response.rb delete mode 100644 client/lib/fastcomments-client/models/flag_comment_public_response.rb delete mode 100644 client/lib/fastcomments-client/models/flag_comment_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_api_comments_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_api_export_status_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_api_ids_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_audit_logs_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_ban_users_from_comment_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_cached_notification_count_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_comment_ban_status_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_comment_children_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_comment_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_comment_text_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_comment_vote_user_names_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_comments_for_user_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_comments_public_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_comments_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_count_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_counts_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_email_template_definitions_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_email_template_render_errors_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_email_template_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_email_templates_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_event_log_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_feed_posts_public_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_feed_posts_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_feed_posts_stats_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_gif_large_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_global_event_log_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_hash_tags_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_logs_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_manual_badges_for_user_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_manual_badges_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_moderation_comment_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_moderation_comment_text_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_moderator_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_moderators_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_notification_count_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_notifications_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_offline_users_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_online_users_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_pages_public_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_pending_webhook_event_count_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_pending_webhook_events_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_pre_ban_summary_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_question_config_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_question_configs_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_question_result_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_question_results_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_search_comments_summary_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_search_pages_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_search_sites_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_search_suggest_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_search_users_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_tenant_daily_usages_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_tenant_package_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_tenant_packages_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_tenant_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_tenant_user_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_tenant_users_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_tenants_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_ticket_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_tickets_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_translations_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_trust_factor_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_user_badge_progress_by_id_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_user_badge_progress_by_user_id_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_user_badge_progress_list_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_user_badge_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_user_badges_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_user_ban_preference_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_user_internal_profile_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_user_notification_count_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_user_notifications_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_user_presence_statuses_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_user_reacts_public_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_user_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_users_info_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_v1_page_likes_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_v2_page_react_users_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_v2_page_reacts_response.rb delete mode 100644 client/lib/fastcomments-client/models/get_votes_for_user_response1.rb delete mode 100644 client/lib/fastcomments-client/models/get_votes_response1.rb delete mode 100644 client/lib/fastcomments-client/models/lock_comment_response.rb delete mode 100644 client/lib/fastcomments-client/models/patch_hash_tag_response.rb delete mode 100644 client/lib/fastcomments-client/models/pin_comment_response.rb delete mode 100644 client/lib/fastcomments-client/models/post_adjust_comment_votes_response.rb delete mode 100644 client/lib/fastcomments-client/models/post_api_export_response.rb delete mode 100644 client/lib/fastcomments-client/models/post_ban_user_from_comment_response.rb delete mode 100644 client/lib/fastcomments-client/models/post_ban_user_undo_response.rb delete mode 100644 client/lib/fastcomments-client/models/post_bulk_pre_ban_summary_response.rb delete mode 100644 client/lib/fastcomments-client/models/post_comments_by_ids_response.rb delete mode 100644 client/lib/fastcomments-client/models/post_flag_comment_response.rb delete mode 100644 client/lib/fastcomments-client/models/post_restore_deleted_comment_response.rb delete mode 100644 client/lib/fastcomments-client/models/post_set_comment_approval_status_response.rb delete mode 100644 client/lib/fastcomments-client/models/post_set_comment_review_status_response.rb delete mode 100644 client/lib/fastcomments-client/models/post_set_comment_spam_status_response.rb delete mode 100644 client/lib/fastcomments-client/models/post_set_comment_text_response.rb delete mode 100644 client/lib/fastcomments-client/models/post_un_flag_comment_response.rb delete mode 100644 client/lib/fastcomments-client/models/post_vote_response.rb delete mode 100644 client/lib/fastcomments-client/models/put_award_badge_response.rb delete mode 100644 client/lib/fastcomments-client/models/put_close_thread_response.rb delete mode 100644 client/lib/fastcomments-client/models/put_remove_badge_response.rb delete mode 100644 client/lib/fastcomments-client/models/put_reopen_thread_response.rb delete mode 100644 client/lib/fastcomments-client/models/react_feed_post_public_response.rb delete mode 100644 client/lib/fastcomments-client/models/render_email_template_response1.rb delete mode 100644 client/lib/fastcomments-client/models/replace_tenant_package_response.rb delete mode 100644 client/lib/fastcomments-client/models/replace_tenant_user_response.rb delete mode 100644 client/lib/fastcomments-client/models/reset_user_notification_count_response.rb delete mode 100644 client/lib/fastcomments-client/models/reset_user_notifications_response1.rb delete mode 100644 client/lib/fastcomments-client/models/save_comment_response.rb delete mode 100644 client/lib/fastcomments-client/models/search_users_response1.rb delete mode 100644 client/lib/fastcomments-client/models/send_invite_response.rb delete mode 100644 client/lib/fastcomments-client/models/send_login_link_response.rb delete mode 100644 client/lib/fastcomments-client/models/set_comment_text_response1.rb delete mode 100644 client/lib/fastcomments-client/models/set_trust_factor_response.rb delete mode 100644 client/lib/fastcomments-client/models/un_block_comment_public_response.rb delete mode 100644 client/lib/fastcomments-client/models/un_block_user_from_comment_response.rb delete mode 100644 client/lib/fastcomments-client/models/un_flag_comment_response.rb delete mode 100644 client/lib/fastcomments-client/models/un_lock_comment_response.rb delete mode 100644 client/lib/fastcomments-client/models/un_pin_comment_response.rb delete mode 100644 client/lib/fastcomments-client/models/update_comment_response.rb delete mode 100644 client/lib/fastcomments-client/models/update_email_template_response.rb delete mode 100644 client/lib/fastcomments-client/models/update_feed_post_public_response.rb delete mode 100644 client/lib/fastcomments-client/models/update_feed_post_response.rb delete mode 100644 client/lib/fastcomments-client/models/update_moderator_response.rb delete mode 100644 client/lib/fastcomments-client/models/update_notification_response.rb delete mode 100644 client/lib/fastcomments-client/models/update_question_config_response.rb delete mode 100644 client/lib/fastcomments-client/models/update_question_result_response.rb delete mode 100644 client/lib/fastcomments-client/models/update_tenant_package_response.rb delete mode 100644 client/lib/fastcomments-client/models/update_tenant_response.rb delete mode 100644 client/lib/fastcomments-client/models/update_tenant_user_response.rb delete mode 100644 client/lib/fastcomments-client/models/update_user_badge_response.rb delete mode 100644 client/lib/fastcomments-client/models/vote_comment_response.rb delete mode 100644 client/spec/models/add_hash_tag_response_spec.rb delete mode 100644 client/spec/models/add_hash_tags_bulk_response_spec.rb delete mode 100644 client/spec/models/aggregate_question_results_response1_spec.rb delete mode 100644 client/spec/models/block_from_comment_public_response_spec.rb delete mode 100644 client/spec/models/block_user_from_comment_response_spec.rb delete mode 100644 client/spec/models/bulk_aggregate_question_results_response1_spec.rb delete mode 100644 client/spec/models/change_ticket_state_response1_spec.rb delete mode 100644 client/spec/models/checked_comments_for_blocked_response_spec.rb delete mode 100644 client/spec/models/combine_comments_with_question_results_response_spec.rb delete mode 100644 client/spec/models/create_comment_public_response_spec.rb delete mode 100644 client/spec/models/create_email_template_response1_spec.rb delete mode 100644 client/spec/models/create_feed_post_public_response_spec.rb delete mode 100644 client/spec/models/create_feed_post_response1_spec.rb delete mode 100644 client/spec/models/create_moderator_response1_spec.rb delete mode 100644 client/spec/models/create_question_config_response1_spec.rb delete mode 100644 client/spec/models/create_question_result_response1_spec.rb delete mode 100644 client/spec/models/create_tenant_package_response1_spec.rb delete mode 100644 client/spec/models/create_tenant_response1_spec.rb delete mode 100644 client/spec/models/create_tenant_user_response1_spec.rb delete mode 100644 client/spec/models/create_ticket_response1_spec.rb delete mode 100644 client/spec/models/create_user_badge_response_spec.rb delete mode 100644 client/spec/models/create_v1_page_react_response_spec.rb delete mode 100644 client/spec/models/create_v2_page_react_response_spec.rb delete mode 100644 client/spec/models/create_vote_response_spec.rb delete mode 100644 client/spec/models/delete_comment_public_response_spec.rb delete mode 100644 client/spec/models/delete_comment_response_spec.rb delete mode 100644 client/spec/models/delete_comment_vote_response_spec.rb delete mode 100644 client/spec/models/delete_email_template_render_error_response_spec.rb delete mode 100644 client/spec/models/delete_email_template_response_spec.rb delete mode 100644 client/spec/models/delete_feed_post_public_response_any_of_spec.rb delete mode 100644 client/spec/models/delete_hash_tag_response_spec.rb delete mode 100644 client/spec/models/delete_moderation_vote_response_spec.rb delete mode 100644 client/spec/models/delete_moderator_response_spec.rb delete mode 100644 client/spec/models/delete_notification_count_response_spec.rb delete mode 100644 client/spec/models/delete_pending_webhook_event_response_spec.rb delete mode 100644 client/spec/models/delete_question_config_response_spec.rb delete mode 100644 client/spec/models/delete_question_result_response_spec.rb delete mode 100644 client/spec/models/delete_tenant_package_response_spec.rb delete mode 100644 client/spec/models/delete_tenant_response_spec.rb delete mode 100644 client/spec/models/delete_tenant_user_response_spec.rb delete mode 100644 client/spec/models/delete_user_badge_response_spec.rb delete mode 100644 client/spec/models/delete_v1_page_react_response_spec.rb delete mode 100644 client/spec/models/delete_v2_page_react_response_spec.rb delete mode 100644 client/spec/models/delete_vote_response_spec.rb delete mode 100644 client/spec/models/flag_comment_public_response_spec.rb delete mode 100644 client/spec/models/flag_comment_response1_spec.rb delete mode 100644 client/spec/models/get_api_comments_response_spec.rb delete mode 100644 client/spec/models/get_api_export_status_response_spec.rb delete mode 100644 client/spec/models/get_api_ids_response_spec.rb delete mode 100644 client/spec/models/get_audit_logs_response1_spec.rb delete mode 100644 client/spec/models/get_ban_users_from_comment_response_spec.rb delete mode 100644 client/spec/models/get_cached_notification_count_response1_spec.rb delete mode 100644 client/spec/models/get_comment_ban_status_response1_spec.rb delete mode 100644 client/spec/models/get_comment_children_response_spec.rb delete mode 100644 client/spec/models/get_comment_response_spec.rb delete mode 100644 client/spec/models/get_comment_text_response1_spec.rb delete mode 100644 client/spec/models/get_comment_vote_user_names_response_spec.rb delete mode 100644 client/spec/models/get_comments_for_user_response1_spec.rb delete mode 100644 client/spec/models/get_comments_public_response_spec.rb delete mode 100644 client/spec/models/get_comments_response_spec.rb delete mode 100644 client/spec/models/get_count_response_spec.rb delete mode 100644 client/spec/models/get_counts_response_spec.rb delete mode 100644 client/spec/models/get_email_template_definitions_response1_spec.rb delete mode 100644 client/spec/models/get_email_template_render_errors_response1_spec.rb delete mode 100644 client/spec/models/get_email_template_response1_spec.rb delete mode 100644 client/spec/models/get_email_templates_response1_spec.rb delete mode 100644 client/spec/models/get_event_log_response1_spec.rb delete mode 100644 client/spec/models/get_feed_posts_public_response_spec.rb delete mode 100644 client/spec/models/get_feed_posts_response1_spec.rb delete mode 100644 client/spec/models/get_feed_posts_stats_response_spec.rb delete mode 100644 client/spec/models/get_gif_large_response_spec.rb delete mode 100644 client/spec/models/get_global_event_log_response_spec.rb delete mode 100644 client/spec/models/get_hash_tags_response1_spec.rb delete mode 100644 client/spec/models/get_logs_response_spec.rb delete mode 100644 client/spec/models/get_manual_badges_for_user_response_spec.rb delete mode 100644 client/spec/models/get_manual_badges_response_spec.rb delete mode 100644 client/spec/models/get_moderation_comment_response_spec.rb delete mode 100644 client/spec/models/get_moderation_comment_text_response_spec.rb delete mode 100644 client/spec/models/get_moderator_response1_spec.rb delete mode 100644 client/spec/models/get_moderators_response1_spec.rb delete mode 100644 client/spec/models/get_notification_count_response1_spec.rb delete mode 100644 client/spec/models/get_notifications_response1_spec.rb delete mode 100644 client/spec/models/get_offline_users_response_spec.rb delete mode 100644 client/spec/models/get_online_users_response_spec.rb delete mode 100644 client/spec/models/get_pages_public_response_spec.rb delete mode 100644 client/spec/models/get_pending_webhook_event_count_response1_spec.rb delete mode 100644 client/spec/models/get_pending_webhook_events_response1_spec.rb delete mode 100644 client/spec/models/get_pre_ban_summary_response_spec.rb delete mode 100644 client/spec/models/get_question_config_response1_spec.rb delete mode 100644 client/spec/models/get_question_configs_response1_spec.rb delete mode 100644 client/spec/models/get_question_result_response1_spec.rb delete mode 100644 client/spec/models/get_question_results_response1_spec.rb delete mode 100644 client/spec/models/get_search_comments_summary_response_spec.rb delete mode 100644 client/spec/models/get_search_pages_response_spec.rb delete mode 100644 client/spec/models/get_search_sites_response_spec.rb delete mode 100644 client/spec/models/get_search_suggest_response_spec.rb delete mode 100644 client/spec/models/get_search_users_response_spec.rb delete mode 100644 client/spec/models/get_tenant_daily_usages_response1_spec.rb delete mode 100644 client/spec/models/get_tenant_package_response1_spec.rb delete mode 100644 client/spec/models/get_tenant_packages_response1_spec.rb delete mode 100644 client/spec/models/get_tenant_response1_spec.rb delete mode 100644 client/spec/models/get_tenant_user_response1_spec.rb delete mode 100644 client/spec/models/get_tenant_users_response1_spec.rb delete mode 100644 client/spec/models/get_tenants_response1_spec.rb delete mode 100644 client/spec/models/get_ticket_response1_spec.rb delete mode 100644 client/spec/models/get_tickets_response1_spec.rb delete mode 100644 client/spec/models/get_translations_response1_spec.rb delete mode 100644 client/spec/models/get_trust_factor_response_spec.rb delete mode 100644 client/spec/models/get_user_badge_progress_by_id_response_spec.rb delete mode 100644 client/spec/models/get_user_badge_progress_by_user_id_response_spec.rb delete mode 100644 client/spec/models/get_user_badge_progress_list_response_spec.rb delete mode 100644 client/spec/models/get_user_badge_response_spec.rb delete mode 100644 client/spec/models/get_user_badges_response_spec.rb delete mode 100644 client/spec/models/get_user_ban_preference_response_spec.rb delete mode 100644 client/spec/models/get_user_internal_profile_response1_spec.rb delete mode 100644 client/spec/models/get_user_notification_count_response1_spec.rb delete mode 100644 client/spec/models/get_user_notifications_response_spec.rb delete mode 100644 client/spec/models/get_user_presence_statuses_response1_spec.rb delete mode 100644 client/spec/models/get_user_reacts_public_response_spec.rb delete mode 100644 client/spec/models/get_user_response1_spec.rb delete mode 100644 client/spec/models/get_users_info_response_spec.rb delete mode 100644 client/spec/models/get_v1_page_likes_response_spec.rb delete mode 100644 client/spec/models/get_v2_page_react_users_response1_spec.rb delete mode 100644 client/spec/models/get_v2_page_reacts_response_spec.rb delete mode 100644 client/spec/models/get_votes_for_user_response1_spec.rb delete mode 100644 client/spec/models/get_votes_response1_spec.rb delete mode 100644 client/spec/models/lock_comment_response_spec.rb delete mode 100644 client/spec/models/patch_hash_tag_response_spec.rb delete mode 100644 client/spec/models/pin_comment_response_spec.rb delete mode 100644 client/spec/models/post_adjust_comment_votes_response_spec.rb delete mode 100644 client/spec/models/post_api_export_response_spec.rb delete mode 100644 client/spec/models/post_ban_user_from_comment_response_spec.rb delete mode 100644 client/spec/models/post_ban_user_undo_response_spec.rb delete mode 100644 client/spec/models/post_bulk_pre_ban_summary_response_spec.rb delete mode 100644 client/spec/models/post_comments_by_ids_response_spec.rb delete mode 100644 client/spec/models/post_flag_comment_response_spec.rb delete mode 100644 client/spec/models/post_restore_deleted_comment_response_spec.rb delete mode 100644 client/spec/models/post_set_comment_approval_status_response_spec.rb delete mode 100644 client/spec/models/post_set_comment_review_status_response_spec.rb delete mode 100644 client/spec/models/post_set_comment_spam_status_response_spec.rb delete mode 100644 client/spec/models/post_set_comment_text_response_spec.rb delete mode 100644 client/spec/models/post_un_flag_comment_response_spec.rb delete mode 100644 client/spec/models/post_vote_response_spec.rb delete mode 100644 client/spec/models/put_award_badge_response_spec.rb delete mode 100644 client/spec/models/put_close_thread_response_spec.rb delete mode 100644 client/spec/models/put_remove_badge_response_spec.rb delete mode 100644 client/spec/models/put_reopen_thread_response_spec.rb delete mode 100644 client/spec/models/react_feed_post_public_response_spec.rb delete mode 100644 client/spec/models/render_email_template_response1_spec.rb delete mode 100644 client/spec/models/replace_tenant_package_response_spec.rb delete mode 100644 client/spec/models/replace_tenant_user_response_spec.rb delete mode 100644 client/spec/models/reset_user_notification_count_response_spec.rb delete mode 100644 client/spec/models/reset_user_notifications_response1_spec.rb delete mode 100644 client/spec/models/save_comment_response_spec.rb delete mode 100644 client/spec/models/search_users_response1_spec.rb delete mode 100644 client/spec/models/send_invite_response_spec.rb delete mode 100644 client/spec/models/send_login_link_response_spec.rb delete mode 100644 client/spec/models/set_comment_text_response1_spec.rb delete mode 100644 client/spec/models/set_trust_factor_response_spec.rb delete mode 100644 client/spec/models/un_block_comment_public_response_spec.rb delete mode 100644 client/spec/models/un_block_user_from_comment_response_spec.rb delete mode 100644 client/spec/models/un_flag_comment_response_spec.rb delete mode 100644 client/spec/models/un_lock_comment_response_spec.rb delete mode 100644 client/spec/models/un_pin_comment_response_spec.rb delete mode 100644 client/spec/models/update_comment_response_spec.rb delete mode 100644 client/spec/models/update_email_template_response_spec.rb delete mode 100644 client/spec/models/update_feed_post_public_response_spec.rb delete mode 100644 client/spec/models/update_feed_post_response_spec.rb delete mode 100644 client/spec/models/update_moderator_response_spec.rb delete mode 100644 client/spec/models/update_notification_response_spec.rb delete mode 100644 client/spec/models/update_question_config_response_spec.rb delete mode 100644 client/spec/models/update_question_result_response_spec.rb delete mode 100644 client/spec/models/update_tenant_package_response_spec.rb delete mode 100644 client/spec/models/update_tenant_response_spec.rb delete mode 100644 client/spec/models/update_tenant_user_response_spec.rb delete mode 100644 client/spec/models/update_user_badge_response_spec.rb delete mode 100644 client/spec/models/vote_comment_response_spec.rb diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES index 0899d3b..978973d 100644 --- a/client/.openapi-generator/FILES +++ b/client/.openapi-generator/FILES @@ -42,14 +42,11 @@ docs/APIUserSubscription.md docs/AddDomainConfigParams.md docs/AddDomainConfigResponse.md docs/AddDomainConfigResponseAnyOf.md -docs/AddHashTagResponse.md -docs/AddHashTagsBulkResponse.md docs/AddPageAPIResponse.md docs/AddSSOUserAPIResponse.md docs/AdjustCommentVotesParams.md docs/AdjustVotesResponse.md docs/AggregateQuestionResultsResponse.md -docs/AggregateQuestionResultsResponse1.md docs/AggregateResponse.md docs/AggregateTimeBucket.md docs/AggregationAPIError.md @@ -69,15 +66,12 @@ docs/BannedUserMatchMatchedOnValue.md docs/BannedUserMatchType.md docs/BillingInfo.md docs/BlockFromCommentParams.md -docs/BlockFromCommentPublicResponse.md docs/BlockSuccess.md -docs/BlockUserFromCommentResponse.md docs/BuildModerationFilterParams.md docs/BuildModerationFilterResponse.md docs/BulkAggregateQuestionItem.md docs/BulkAggregateQuestionResultsRequest.md docs/BulkAggregateQuestionResultsResponse.md -docs/BulkAggregateQuestionResultsResponse1.md docs/BulkCreateHashTagsBody.md docs/BulkCreateHashTagsBodyTagsInner.md docs/BulkCreateHashTagsResponse.md @@ -87,10 +81,7 @@ docs/BulkPreBanSummary.md docs/ChangeCommentPinStatusResponse.md docs/ChangeTicketStateBody.md docs/ChangeTicketStateResponse.md -docs/ChangeTicketStateResponse1.md docs/CheckBlockedCommentsResponse.md -docs/CheckedCommentsForBlockedResponse.md -docs/CombineCommentsWithQuestionResultsResponse.md docs/CombineQuestionResultsWithCommentsResponse.md docs/CommentData.md docs/CommentHTMLRenderingMode.md @@ -110,76 +101,41 @@ docs/CreateAPIPageData.md docs/CreateAPISSOUserData.md docs/CreateAPIUserSubscriptionData.md docs/CreateCommentParams.md -docs/CreateCommentPublicResponse.md docs/CreateEmailTemplateBody.md docs/CreateEmailTemplateResponse.md -docs/CreateEmailTemplateResponse1.md docs/CreateFeedPostParams.md -docs/CreateFeedPostPublicResponse.md docs/CreateFeedPostResponse.md -docs/CreateFeedPostResponse1.md docs/CreateFeedPostsResponse.md docs/CreateHashTagBody.md docs/CreateHashTagResponse.md docs/CreateModeratorBody.md docs/CreateModeratorResponse.md -docs/CreateModeratorResponse1.md docs/CreateQuestionConfigBody.md docs/CreateQuestionConfigResponse.md -docs/CreateQuestionConfigResponse1.md docs/CreateQuestionResultBody.md docs/CreateQuestionResultResponse.md -docs/CreateQuestionResultResponse1.md docs/CreateSubscriptionAPIResponse.md docs/CreateTenantBody.md docs/CreateTenantPackageBody.md docs/CreateTenantPackageResponse.md -docs/CreateTenantPackageResponse1.md docs/CreateTenantResponse.md -docs/CreateTenantResponse1.md docs/CreateTenantUserBody.md docs/CreateTenantUserResponse.md -docs/CreateTenantUserResponse1.md docs/CreateTicketBody.md docs/CreateTicketResponse.md -docs/CreateTicketResponse1.md docs/CreateUserBadgeParams.md -docs/CreateUserBadgeResponse.md docs/CreateV1PageReact.md -docs/CreateV1PageReactResponse.md -docs/CreateV2PageReactResponse.md -docs/CreateVoteResponse.md docs/CustomConfigParameters.md docs/CustomEmailTemplate.md docs/DefaultApi.md docs/DeleteCommentAction.md -docs/DeleteCommentPublicResponse.md -docs/DeleteCommentResponse.md docs/DeleteCommentResult.md -docs/DeleteCommentVoteResponse.md docs/DeleteDomainConfigResponse.md -docs/DeleteEmailTemplateRenderErrorResponse.md -docs/DeleteEmailTemplateResponse.md docs/DeleteFeedPostPublicResponse.md -docs/DeleteFeedPostPublicResponseAnyOf.md docs/DeleteHashTagRequestBody.md -docs/DeleteHashTagResponse.md -docs/DeleteModerationVoteResponse.md -docs/DeleteModeratorResponse.md -docs/DeleteNotificationCountResponse.md docs/DeletePageAPIResponse.md -docs/DeletePendingWebhookEventResponse.md -docs/DeleteQuestionConfigResponse.md -docs/DeleteQuestionResultResponse.md docs/DeleteSSOUserAPIResponse.md docs/DeleteSubscriptionAPIResponse.md -docs/DeleteTenantPackageResponse.md -docs/DeleteTenantResponse.md -docs/DeleteTenantUserResponse.md -docs/DeleteUserBadgeResponse.md -docs/DeleteV1PageReactResponse.md -docs/DeleteV2PageReactResponse.md -docs/DeleteVoteResponse.md docs/DeletedCommentResultComment.md docs/DigestEmailFrequency.md docs/EmailTemplateDefinition.md @@ -195,154 +151,72 @@ docs/FeedPostStats.md docs/FeedPostsStatsResponse.md docs/FindCommentsByRangeItem.md docs/FindCommentsByRangeResponse.md -docs/FlagCommentPublicResponse.md docs/FlagCommentResponse.md -docs/FlagCommentResponse1.md -docs/GetApiCommentsResponse.md -docs/GetApiExportStatusResponse.md -docs/GetApiIdsResponse.md docs/GetAuditLogsResponse.md -docs/GetAuditLogsResponse1.md -docs/GetBanUsersFromCommentResponse.md docs/GetBannedUsersCountResponse.md docs/GetBannedUsersFromCommentResponse.md docs/GetCachedNotificationCountResponse.md -docs/GetCachedNotificationCountResponse1.md docs/GetCommentBanStatusResponse.md -docs/GetCommentBanStatusResponse1.md -docs/GetCommentChildrenResponse.md -docs/GetCommentResponse.md docs/GetCommentTextResponse.md -docs/GetCommentTextResponse1.md -docs/GetCommentVoteUserNamesResponse.md docs/GetCommentVoteUserNamesSuccessResponse.md docs/GetCommentsForUserResponse.md -docs/GetCommentsForUserResponse1.md -docs/GetCommentsPublicResponse.md -docs/GetCommentsResponse.md docs/GetCommentsResponsePublicComment.md docs/GetCommentsResponseWithPresencePublicComment.md -docs/GetCountResponse.md -docs/GetCountsResponse.md docs/GetDomainConfigResponse.md docs/GetDomainConfigsResponse.md docs/GetDomainConfigsResponseAnyOf.md docs/GetDomainConfigsResponseAnyOf1.md docs/GetEmailTemplateDefinitionsResponse.md -docs/GetEmailTemplateDefinitionsResponse1.md docs/GetEmailTemplateRenderErrorsResponse.md -docs/GetEmailTemplateRenderErrorsResponse1.md docs/GetEmailTemplateResponse.md -docs/GetEmailTemplateResponse1.md docs/GetEmailTemplatesResponse.md -docs/GetEmailTemplatesResponse1.md docs/GetEventLogResponse.md -docs/GetEventLogResponse1.md -docs/GetFeedPostsPublicResponse.md docs/GetFeedPostsResponse.md -docs/GetFeedPostsResponse1.md -docs/GetFeedPostsStatsResponse.md -docs/GetGifLargeResponse.md docs/GetGifsSearchResponse.md docs/GetGifsTrendingResponse.md -docs/GetGlobalEventLogResponse.md docs/GetHashTagsResponse.md -docs/GetHashTagsResponse1.md -docs/GetLogsResponse.md -docs/GetManualBadgesForUserResponse.md -docs/GetManualBadgesResponse.md -docs/GetModerationCommentResponse.md -docs/GetModerationCommentTextResponse.md docs/GetModeratorResponse.md -docs/GetModeratorResponse1.md docs/GetModeratorsResponse.md -docs/GetModeratorsResponse1.md docs/GetMyNotificationsResponse.md docs/GetNotificationCountResponse.md -docs/GetNotificationCountResponse1.md docs/GetNotificationsResponse.md -docs/GetNotificationsResponse1.md -docs/GetOfflineUsersResponse.md -docs/GetOnlineUsersResponse.md docs/GetPageByURLIdAPIResponse.md docs/GetPagesAPIResponse.md -docs/GetPagesPublicResponse.md docs/GetPendingWebhookEventCountResponse.md -docs/GetPendingWebhookEventCountResponse1.md docs/GetPendingWebhookEventsResponse.md -docs/GetPendingWebhookEventsResponse1.md -docs/GetPreBanSummaryResponse.md docs/GetPublicFeedPostsResponse.md docs/GetPublicPagesResponse.md docs/GetQuestionConfigResponse.md -docs/GetQuestionConfigResponse1.md docs/GetQuestionConfigsResponse.md -docs/GetQuestionConfigsResponse1.md docs/GetQuestionResultResponse.md -docs/GetQuestionResultResponse1.md docs/GetQuestionResultsResponse.md -docs/GetQuestionResultsResponse1.md docs/GetSSOUserByEmailAPIResponse.md docs/GetSSOUserByIdAPIResponse.md docs/GetSSOUsersResponse.md -docs/GetSearchCommentsSummaryResponse.md -docs/GetSearchPagesResponse.md -docs/GetSearchSitesResponse.md -docs/GetSearchSuggestResponse.md -docs/GetSearchUsersResponse.md docs/GetSubscriptionsAPIResponse.md docs/GetTenantDailyUsagesResponse.md -docs/GetTenantDailyUsagesResponse1.md docs/GetTenantManualBadgesResponse.md docs/GetTenantPackageResponse.md -docs/GetTenantPackageResponse1.md docs/GetTenantPackagesResponse.md -docs/GetTenantPackagesResponse1.md docs/GetTenantResponse.md -docs/GetTenantResponse1.md docs/GetTenantUserResponse.md -docs/GetTenantUserResponse1.md docs/GetTenantUsersResponse.md -docs/GetTenantUsersResponse1.md docs/GetTenantsResponse.md -docs/GetTenantsResponse1.md docs/GetTicketResponse.md -docs/GetTicketResponse1.md docs/GetTicketsResponse.md -docs/GetTicketsResponse1.md docs/GetTranslationsResponse.md -docs/GetTranslationsResponse1.md -docs/GetTrustFactorResponse.md -docs/GetUserBadgeProgressByIdResponse.md -docs/GetUserBadgeProgressByUserIdResponse.md -docs/GetUserBadgeProgressListResponse.md -docs/GetUserBadgeResponse.md -docs/GetUserBadgesResponse.md -docs/GetUserBanPreferenceResponse.md docs/GetUserInternalProfileResponse.md -docs/GetUserInternalProfileResponse1.md docs/GetUserInternalProfileResponseProfile.md docs/GetUserManualBadgesResponse.md docs/GetUserNotificationCountResponse.md -docs/GetUserNotificationCountResponse1.md -docs/GetUserNotificationsResponse.md docs/GetUserPresenceStatusesResponse.md -docs/GetUserPresenceStatusesResponse1.md -docs/GetUserReactsPublicResponse.md docs/GetUserResponse.md -docs/GetUserResponse1.md docs/GetUserTrustFactorResponse.md -docs/GetUsersInfoResponse.md docs/GetV1PageLikes.md -docs/GetV1PageLikesResponse.md docs/GetV2PageReactUsersResponse.md -docs/GetV2PageReactUsersResponse1.md docs/GetV2PageReacts.md -docs/GetV2PageReactsResponse.md docs/GetVotesForUserResponse.md -docs/GetVotesForUserResponse1.md docs/GetVotesResponse.md -docs/GetVotesResponse1.md docs/GifGetLargeResponse.md docs/GifRating.md docs/GifSearchInternalError.md @@ -357,7 +231,6 @@ docs/ImportedSiteType.md docs/LiveEvent.md docs/LiveEventExtraInfo.md docs/LiveEventType.md -docs/LockCommentResponse.md docs/MediaAsset.md docs/MentionAutoCompleteMode.md docs/MetaItem.md @@ -392,26 +265,10 @@ docs/PageUsersOnlineResponse.md docs/PagesSortBy.md docs/PatchDomainConfigParams.md docs/PatchDomainConfigResponse.md -docs/PatchHashTagResponse.md docs/PatchPageAPIResponse.md docs/PatchSSOUserAPIResponse.md docs/PendingCommentToSyncOutbound.md -docs/PinCommentResponse.md -docs/PostAdjustCommentVotesResponse.md -docs/PostApiExportResponse.md -docs/PostBanUserFromCommentResponse.md -docs/PostBanUserUndoResponse.md -docs/PostBulkPreBanSummaryResponse.md -docs/PostCommentsByIdsResponse.md -docs/PostFlagCommentResponse.md docs/PostRemoveCommentResponse.md -docs/PostRestoreDeletedCommentResponse.md -docs/PostSetCommentApprovalStatusResponse.md -docs/PostSetCommentReviewStatusResponse.md -docs/PostSetCommentSpamStatusResponse.md -docs/PostSetCommentTextResponse.md -docs/PostUnFlagCommentResponse.md -docs/PostVoteResponse.md docs/PreBanSummary.md docs/PubSubComment.md docs/PubSubCommentBase.md @@ -426,11 +283,7 @@ docs/PublicCommentBase.md docs/PublicFeedPostsResponse.md docs/PublicPage.md docs/PublicVote.md -docs/PutAwardBadgeResponse.md -docs/PutCloseThreadResponse.md docs/PutDomainConfigResponse.md -docs/PutRemoveBadgeResponse.md -docs/PutReopenThreadResponse.md docs/PutSSOUserAPIResponse.md docs/QueryPredicate.md docs/QueryPredicateValue.md @@ -443,42 +296,30 @@ docs/QuestionResultAggregationOverall.md docs/QuestionSubQuestionVisibility.md docs/QuestionWhenSave.md docs/ReactBodyParams.md -docs/ReactFeedPostPublicResponse.md docs/ReactFeedPostResponse.md docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md docs/RemoveCommentActionResponse.md docs/RemoveUserBadgeResponse.md docs/RenderEmailTemplateBody.md docs/RenderEmailTemplateResponse.md -docs/RenderEmailTemplateResponse1.md docs/RenderableUserNotification.md docs/RepeatCommentCheckIgnoredReason.md docs/RepeatCommentHandlingAction.md docs/ReplaceTenantPackageBody.md -docs/ReplaceTenantPackageResponse.md docs/ReplaceTenantUserBody.md -docs/ReplaceTenantUserResponse.md -docs/ResetUserNotificationCountResponse.md docs/ResetUserNotificationsResponse.md -docs/ResetUserNotificationsResponse1.md docs/SORTDIR.md docs/SSOSecurityLevel.md -docs/SaveCommentResponse.md docs/SaveCommentResponseOptimized.md docs/SaveCommentsBulkResponse.md docs/SaveCommentsResponseWithPresence.md docs/SearchUsersResponse.md -docs/SearchUsersResponse1.md docs/SearchUsersResult.md docs/SearchUsersSectionedResponse.md -docs/SendInviteResponse.md -docs/SendLoginLinkResponse.md docs/SetCommentApprovedResponse.md docs/SetCommentTextParams.md docs/SetCommentTextResponse.md -docs/SetCommentTextResponse1.md docs/SetCommentTextResult.md -docs/SetTrustFactorResponse.md docs/SetUserTrustFactorResponse.md docs/SizePreset.md docs/SortDirections.md @@ -487,43 +328,26 @@ docs/TOSConfig.md docs/TenantBadge.md docs/TenantHashTag.md docs/TenantPackage.md -docs/UnBlockCommentPublicResponse.md docs/UnBlockFromCommentParams.md -docs/UnBlockUserFromCommentResponse.md -docs/UnFlagCommentResponse.md -docs/UnLockCommentResponse.md -docs/UnPinCommentResponse.md docs/UnblockSuccess.md docs/UpdatableCommentParams.md docs/UpdateAPIPageData.md docs/UpdateAPISSOUserData.md docs/UpdateAPIUserSubscriptionData.md -docs/UpdateCommentResponse.md docs/UpdateDomainConfigParams.md docs/UpdateEmailTemplateBody.md -docs/UpdateEmailTemplateResponse.md docs/UpdateFeedPostParams.md -docs/UpdateFeedPostPublicResponse.md -docs/UpdateFeedPostResponse.md docs/UpdateHashTagBody.md docs/UpdateHashTagResponse.md docs/UpdateModeratorBody.md -docs/UpdateModeratorResponse.md docs/UpdateNotificationBody.md -docs/UpdateNotificationResponse.md docs/UpdateQuestionConfigBody.md -docs/UpdateQuestionConfigResponse.md docs/UpdateQuestionResultBody.md -docs/UpdateQuestionResultResponse.md docs/UpdateSubscriptionAPIResponse.md docs/UpdateTenantBody.md docs/UpdateTenantPackageBody.md -docs/UpdateTenantPackageResponse.md -docs/UpdateTenantResponse.md docs/UpdateTenantUserBody.md -docs/UpdateTenantUserResponse.md docs/UpdateUserBadgeParams.md -docs/UpdateUserBadgeResponse.md docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md docs/UpdateUserNotificationPageSubscriptionStatusResponse.md docs/UpdateUserNotificationStatusResponse.md @@ -542,7 +366,6 @@ docs/UserSearchSectionResult.md docs/UserSessionInfo.md docs/UsersListLocation.md docs/VoteBodyParams.md -docs/VoteCommentResponse.md docs/VoteDeleteResponse.md docs/VoteResponse.md docs/VoteResponseUser.md @@ -560,14 +383,11 @@ lib/fastcomments-client/configuration.rb lib/fastcomments-client/models/add_domain_config_params.rb lib/fastcomments-client/models/add_domain_config_response.rb lib/fastcomments-client/models/add_domain_config_response_any_of.rb -lib/fastcomments-client/models/add_hash_tag_response.rb -lib/fastcomments-client/models/add_hash_tags_bulk_response.rb lib/fastcomments-client/models/add_page_api_response.rb lib/fastcomments-client/models/add_sso_user_api_response.rb lib/fastcomments-client/models/adjust_comment_votes_params.rb lib/fastcomments-client/models/adjust_votes_response.rb lib/fastcomments-client/models/aggregate_question_results_response.rb -lib/fastcomments-client/models/aggregate_question_results_response1.rb lib/fastcomments-client/models/aggregate_response.rb lib/fastcomments-client/models/aggregate_time_bucket.rb lib/fastcomments-client/models/aggregation_api_error.rb @@ -619,15 +439,12 @@ lib/fastcomments-client/models/banned_user_match_matched_on_value.rb lib/fastcomments-client/models/banned_user_match_type.rb lib/fastcomments-client/models/billing_info.rb lib/fastcomments-client/models/block_from_comment_params.rb -lib/fastcomments-client/models/block_from_comment_public_response.rb lib/fastcomments-client/models/block_success.rb -lib/fastcomments-client/models/block_user_from_comment_response.rb lib/fastcomments-client/models/build_moderation_filter_params.rb lib/fastcomments-client/models/build_moderation_filter_response.rb lib/fastcomments-client/models/bulk_aggregate_question_item.rb lib/fastcomments-client/models/bulk_aggregate_question_results_request.rb lib/fastcomments-client/models/bulk_aggregate_question_results_response.rb -lib/fastcomments-client/models/bulk_aggregate_question_results_response1.rb lib/fastcomments-client/models/bulk_create_hash_tags_body.rb lib/fastcomments-client/models/bulk_create_hash_tags_body_tags_inner.rb lib/fastcomments-client/models/bulk_create_hash_tags_response.rb @@ -637,10 +454,7 @@ lib/fastcomments-client/models/bulk_pre_ban_summary.rb lib/fastcomments-client/models/change_comment_pin_status_response.rb lib/fastcomments-client/models/change_ticket_state_body.rb lib/fastcomments-client/models/change_ticket_state_response.rb -lib/fastcomments-client/models/change_ticket_state_response1.rb lib/fastcomments-client/models/check_blocked_comments_response.rb -lib/fastcomments-client/models/checked_comments_for_blocked_response.rb -lib/fastcomments-client/models/combine_comments_with_question_results_response.rb lib/fastcomments-client/models/combine_question_results_with_comments_response.rb lib/fastcomments-client/models/comment_data.rb lib/fastcomments-client/models/comment_html_rendering_mode.rb @@ -660,75 +474,40 @@ lib/fastcomments-client/models/create_api_page_data.rb lib/fastcomments-client/models/create_api_user_subscription_data.rb lib/fastcomments-client/models/create_apisso_user_data.rb lib/fastcomments-client/models/create_comment_params.rb -lib/fastcomments-client/models/create_comment_public_response.rb lib/fastcomments-client/models/create_email_template_body.rb lib/fastcomments-client/models/create_email_template_response.rb -lib/fastcomments-client/models/create_email_template_response1.rb lib/fastcomments-client/models/create_feed_post_params.rb -lib/fastcomments-client/models/create_feed_post_public_response.rb lib/fastcomments-client/models/create_feed_post_response.rb -lib/fastcomments-client/models/create_feed_post_response1.rb lib/fastcomments-client/models/create_feed_posts_response.rb lib/fastcomments-client/models/create_hash_tag_body.rb lib/fastcomments-client/models/create_hash_tag_response.rb lib/fastcomments-client/models/create_moderator_body.rb lib/fastcomments-client/models/create_moderator_response.rb -lib/fastcomments-client/models/create_moderator_response1.rb lib/fastcomments-client/models/create_question_config_body.rb lib/fastcomments-client/models/create_question_config_response.rb -lib/fastcomments-client/models/create_question_config_response1.rb lib/fastcomments-client/models/create_question_result_body.rb lib/fastcomments-client/models/create_question_result_response.rb -lib/fastcomments-client/models/create_question_result_response1.rb lib/fastcomments-client/models/create_subscription_api_response.rb lib/fastcomments-client/models/create_tenant_body.rb lib/fastcomments-client/models/create_tenant_package_body.rb lib/fastcomments-client/models/create_tenant_package_response.rb -lib/fastcomments-client/models/create_tenant_package_response1.rb lib/fastcomments-client/models/create_tenant_response.rb -lib/fastcomments-client/models/create_tenant_response1.rb lib/fastcomments-client/models/create_tenant_user_body.rb lib/fastcomments-client/models/create_tenant_user_response.rb -lib/fastcomments-client/models/create_tenant_user_response1.rb lib/fastcomments-client/models/create_ticket_body.rb lib/fastcomments-client/models/create_ticket_response.rb -lib/fastcomments-client/models/create_ticket_response1.rb lib/fastcomments-client/models/create_user_badge_params.rb -lib/fastcomments-client/models/create_user_badge_response.rb lib/fastcomments-client/models/create_v1_page_react.rb -lib/fastcomments-client/models/create_v1_page_react_response.rb -lib/fastcomments-client/models/create_v2_page_react_response.rb -lib/fastcomments-client/models/create_vote_response.rb lib/fastcomments-client/models/custom_config_parameters.rb lib/fastcomments-client/models/custom_email_template.rb lib/fastcomments-client/models/delete_comment_action.rb -lib/fastcomments-client/models/delete_comment_public_response.rb -lib/fastcomments-client/models/delete_comment_response.rb lib/fastcomments-client/models/delete_comment_result.rb -lib/fastcomments-client/models/delete_comment_vote_response.rb lib/fastcomments-client/models/delete_domain_config_response.rb -lib/fastcomments-client/models/delete_email_template_render_error_response.rb -lib/fastcomments-client/models/delete_email_template_response.rb lib/fastcomments-client/models/delete_feed_post_public_response.rb -lib/fastcomments-client/models/delete_feed_post_public_response_any_of.rb lib/fastcomments-client/models/delete_hash_tag_request_body.rb -lib/fastcomments-client/models/delete_hash_tag_response.rb -lib/fastcomments-client/models/delete_moderation_vote_response.rb -lib/fastcomments-client/models/delete_moderator_response.rb -lib/fastcomments-client/models/delete_notification_count_response.rb lib/fastcomments-client/models/delete_page_api_response.rb -lib/fastcomments-client/models/delete_pending_webhook_event_response.rb -lib/fastcomments-client/models/delete_question_config_response.rb -lib/fastcomments-client/models/delete_question_result_response.rb lib/fastcomments-client/models/delete_sso_user_api_response.rb lib/fastcomments-client/models/delete_subscription_api_response.rb -lib/fastcomments-client/models/delete_tenant_package_response.rb -lib/fastcomments-client/models/delete_tenant_response.rb -lib/fastcomments-client/models/delete_tenant_user_response.rb -lib/fastcomments-client/models/delete_user_badge_response.rb -lib/fastcomments-client/models/delete_v1_page_react_response.rb -lib/fastcomments-client/models/delete_v2_page_react_response.rb -lib/fastcomments-client/models/delete_vote_response.rb lib/fastcomments-client/models/deleted_comment_result_comment.rb lib/fastcomments-client/models/digest_email_frequency.rb lib/fastcomments-client/models/email_template_definition.rb @@ -744,154 +523,72 @@ lib/fastcomments-client/models/feed_post_stats.rb lib/fastcomments-client/models/feed_posts_stats_response.rb lib/fastcomments-client/models/find_comments_by_range_item.rb lib/fastcomments-client/models/find_comments_by_range_response.rb -lib/fastcomments-client/models/flag_comment_public_response.rb lib/fastcomments-client/models/flag_comment_response.rb -lib/fastcomments-client/models/flag_comment_response1.rb -lib/fastcomments-client/models/get_api_comments_response.rb -lib/fastcomments-client/models/get_api_export_status_response.rb -lib/fastcomments-client/models/get_api_ids_response.rb lib/fastcomments-client/models/get_audit_logs_response.rb -lib/fastcomments-client/models/get_audit_logs_response1.rb -lib/fastcomments-client/models/get_ban_users_from_comment_response.rb lib/fastcomments-client/models/get_banned_users_count_response.rb lib/fastcomments-client/models/get_banned_users_from_comment_response.rb lib/fastcomments-client/models/get_cached_notification_count_response.rb -lib/fastcomments-client/models/get_cached_notification_count_response1.rb lib/fastcomments-client/models/get_comment_ban_status_response.rb -lib/fastcomments-client/models/get_comment_ban_status_response1.rb -lib/fastcomments-client/models/get_comment_children_response.rb -lib/fastcomments-client/models/get_comment_response.rb lib/fastcomments-client/models/get_comment_text_response.rb -lib/fastcomments-client/models/get_comment_text_response1.rb -lib/fastcomments-client/models/get_comment_vote_user_names_response.rb lib/fastcomments-client/models/get_comment_vote_user_names_success_response.rb lib/fastcomments-client/models/get_comments_for_user_response.rb -lib/fastcomments-client/models/get_comments_for_user_response1.rb -lib/fastcomments-client/models/get_comments_public_response.rb -lib/fastcomments-client/models/get_comments_response.rb lib/fastcomments-client/models/get_comments_response_public_comment.rb lib/fastcomments-client/models/get_comments_response_with_presence_public_comment.rb -lib/fastcomments-client/models/get_count_response.rb -lib/fastcomments-client/models/get_counts_response.rb lib/fastcomments-client/models/get_domain_config_response.rb lib/fastcomments-client/models/get_domain_configs_response.rb lib/fastcomments-client/models/get_domain_configs_response_any_of.rb lib/fastcomments-client/models/get_domain_configs_response_any_of1.rb lib/fastcomments-client/models/get_email_template_definitions_response.rb -lib/fastcomments-client/models/get_email_template_definitions_response1.rb lib/fastcomments-client/models/get_email_template_render_errors_response.rb -lib/fastcomments-client/models/get_email_template_render_errors_response1.rb lib/fastcomments-client/models/get_email_template_response.rb -lib/fastcomments-client/models/get_email_template_response1.rb lib/fastcomments-client/models/get_email_templates_response.rb -lib/fastcomments-client/models/get_email_templates_response1.rb lib/fastcomments-client/models/get_event_log_response.rb -lib/fastcomments-client/models/get_event_log_response1.rb -lib/fastcomments-client/models/get_feed_posts_public_response.rb lib/fastcomments-client/models/get_feed_posts_response.rb -lib/fastcomments-client/models/get_feed_posts_response1.rb -lib/fastcomments-client/models/get_feed_posts_stats_response.rb -lib/fastcomments-client/models/get_gif_large_response.rb lib/fastcomments-client/models/get_gifs_search_response.rb lib/fastcomments-client/models/get_gifs_trending_response.rb -lib/fastcomments-client/models/get_global_event_log_response.rb lib/fastcomments-client/models/get_hash_tags_response.rb -lib/fastcomments-client/models/get_hash_tags_response1.rb -lib/fastcomments-client/models/get_logs_response.rb -lib/fastcomments-client/models/get_manual_badges_for_user_response.rb -lib/fastcomments-client/models/get_manual_badges_response.rb -lib/fastcomments-client/models/get_moderation_comment_response.rb -lib/fastcomments-client/models/get_moderation_comment_text_response.rb lib/fastcomments-client/models/get_moderator_response.rb -lib/fastcomments-client/models/get_moderator_response1.rb lib/fastcomments-client/models/get_moderators_response.rb -lib/fastcomments-client/models/get_moderators_response1.rb lib/fastcomments-client/models/get_my_notifications_response.rb lib/fastcomments-client/models/get_notification_count_response.rb -lib/fastcomments-client/models/get_notification_count_response1.rb lib/fastcomments-client/models/get_notifications_response.rb -lib/fastcomments-client/models/get_notifications_response1.rb -lib/fastcomments-client/models/get_offline_users_response.rb -lib/fastcomments-client/models/get_online_users_response.rb lib/fastcomments-client/models/get_page_by_urlid_api_response.rb lib/fastcomments-client/models/get_pages_api_response.rb -lib/fastcomments-client/models/get_pages_public_response.rb lib/fastcomments-client/models/get_pending_webhook_event_count_response.rb -lib/fastcomments-client/models/get_pending_webhook_event_count_response1.rb lib/fastcomments-client/models/get_pending_webhook_events_response.rb -lib/fastcomments-client/models/get_pending_webhook_events_response1.rb -lib/fastcomments-client/models/get_pre_ban_summary_response.rb lib/fastcomments-client/models/get_public_feed_posts_response.rb lib/fastcomments-client/models/get_public_pages_response.rb lib/fastcomments-client/models/get_question_config_response.rb -lib/fastcomments-client/models/get_question_config_response1.rb lib/fastcomments-client/models/get_question_configs_response.rb -lib/fastcomments-client/models/get_question_configs_response1.rb lib/fastcomments-client/models/get_question_result_response.rb -lib/fastcomments-client/models/get_question_result_response1.rb lib/fastcomments-client/models/get_question_results_response.rb -lib/fastcomments-client/models/get_question_results_response1.rb -lib/fastcomments-client/models/get_search_comments_summary_response.rb -lib/fastcomments-client/models/get_search_pages_response.rb -lib/fastcomments-client/models/get_search_sites_response.rb -lib/fastcomments-client/models/get_search_suggest_response.rb -lib/fastcomments-client/models/get_search_users_response.rb lib/fastcomments-client/models/get_sso_user_by_email_api_response.rb lib/fastcomments-client/models/get_sso_user_by_id_api_response.rb lib/fastcomments-client/models/get_sso_users_response.rb lib/fastcomments-client/models/get_subscriptions_api_response.rb lib/fastcomments-client/models/get_tenant_daily_usages_response.rb -lib/fastcomments-client/models/get_tenant_daily_usages_response1.rb lib/fastcomments-client/models/get_tenant_manual_badges_response.rb lib/fastcomments-client/models/get_tenant_package_response.rb -lib/fastcomments-client/models/get_tenant_package_response1.rb lib/fastcomments-client/models/get_tenant_packages_response.rb -lib/fastcomments-client/models/get_tenant_packages_response1.rb lib/fastcomments-client/models/get_tenant_response.rb -lib/fastcomments-client/models/get_tenant_response1.rb lib/fastcomments-client/models/get_tenant_user_response.rb -lib/fastcomments-client/models/get_tenant_user_response1.rb lib/fastcomments-client/models/get_tenant_users_response.rb -lib/fastcomments-client/models/get_tenant_users_response1.rb lib/fastcomments-client/models/get_tenants_response.rb -lib/fastcomments-client/models/get_tenants_response1.rb lib/fastcomments-client/models/get_ticket_response.rb -lib/fastcomments-client/models/get_ticket_response1.rb lib/fastcomments-client/models/get_tickets_response.rb -lib/fastcomments-client/models/get_tickets_response1.rb lib/fastcomments-client/models/get_translations_response.rb -lib/fastcomments-client/models/get_translations_response1.rb -lib/fastcomments-client/models/get_trust_factor_response.rb -lib/fastcomments-client/models/get_user_badge_progress_by_id_response.rb -lib/fastcomments-client/models/get_user_badge_progress_by_user_id_response.rb -lib/fastcomments-client/models/get_user_badge_progress_list_response.rb -lib/fastcomments-client/models/get_user_badge_response.rb -lib/fastcomments-client/models/get_user_badges_response.rb -lib/fastcomments-client/models/get_user_ban_preference_response.rb lib/fastcomments-client/models/get_user_internal_profile_response.rb -lib/fastcomments-client/models/get_user_internal_profile_response1.rb lib/fastcomments-client/models/get_user_internal_profile_response_profile.rb lib/fastcomments-client/models/get_user_manual_badges_response.rb lib/fastcomments-client/models/get_user_notification_count_response.rb -lib/fastcomments-client/models/get_user_notification_count_response1.rb -lib/fastcomments-client/models/get_user_notifications_response.rb lib/fastcomments-client/models/get_user_presence_statuses_response.rb -lib/fastcomments-client/models/get_user_presence_statuses_response1.rb -lib/fastcomments-client/models/get_user_reacts_public_response.rb lib/fastcomments-client/models/get_user_response.rb -lib/fastcomments-client/models/get_user_response1.rb lib/fastcomments-client/models/get_user_trust_factor_response.rb -lib/fastcomments-client/models/get_users_info_response.rb lib/fastcomments-client/models/get_v1_page_likes.rb -lib/fastcomments-client/models/get_v1_page_likes_response.rb lib/fastcomments-client/models/get_v2_page_react_users_response.rb -lib/fastcomments-client/models/get_v2_page_react_users_response1.rb lib/fastcomments-client/models/get_v2_page_reacts.rb -lib/fastcomments-client/models/get_v2_page_reacts_response.rb lib/fastcomments-client/models/get_votes_for_user_response.rb -lib/fastcomments-client/models/get_votes_for_user_response1.rb lib/fastcomments-client/models/get_votes_response.rb -lib/fastcomments-client/models/get_votes_response1.rb lib/fastcomments-client/models/gif_get_large_response.rb lib/fastcomments-client/models/gif_rating.rb lib/fastcomments-client/models/gif_search_internal_error.rb @@ -906,7 +603,6 @@ lib/fastcomments-client/models/imported_site_type.rb lib/fastcomments-client/models/live_event.rb lib/fastcomments-client/models/live_event_extra_info.rb lib/fastcomments-client/models/live_event_type.rb -lib/fastcomments-client/models/lock_comment_response.rb lib/fastcomments-client/models/media_asset.rb lib/fastcomments-client/models/mention_auto_complete_mode.rb lib/fastcomments-client/models/meta_item.rb @@ -940,26 +636,10 @@ lib/fastcomments-client/models/page_users_online_response.rb lib/fastcomments-client/models/pages_sort_by.rb lib/fastcomments-client/models/patch_domain_config_params.rb lib/fastcomments-client/models/patch_domain_config_response.rb -lib/fastcomments-client/models/patch_hash_tag_response.rb lib/fastcomments-client/models/patch_page_api_response.rb lib/fastcomments-client/models/patch_sso_user_api_response.rb lib/fastcomments-client/models/pending_comment_to_sync_outbound.rb -lib/fastcomments-client/models/pin_comment_response.rb -lib/fastcomments-client/models/post_adjust_comment_votes_response.rb -lib/fastcomments-client/models/post_api_export_response.rb -lib/fastcomments-client/models/post_ban_user_from_comment_response.rb -lib/fastcomments-client/models/post_ban_user_undo_response.rb -lib/fastcomments-client/models/post_bulk_pre_ban_summary_response.rb -lib/fastcomments-client/models/post_comments_by_ids_response.rb -lib/fastcomments-client/models/post_flag_comment_response.rb lib/fastcomments-client/models/post_remove_comment_response.rb -lib/fastcomments-client/models/post_restore_deleted_comment_response.rb -lib/fastcomments-client/models/post_set_comment_approval_status_response.rb -lib/fastcomments-client/models/post_set_comment_review_status_response.rb -lib/fastcomments-client/models/post_set_comment_spam_status_response.rb -lib/fastcomments-client/models/post_set_comment_text_response.rb -lib/fastcomments-client/models/post_un_flag_comment_response.rb -lib/fastcomments-client/models/post_vote_response.rb lib/fastcomments-client/models/pre_ban_summary.rb lib/fastcomments-client/models/pub_sub_comment.rb lib/fastcomments-client/models/pub_sub_comment_base.rb @@ -973,11 +653,7 @@ lib/fastcomments-client/models/public_comment_base.rb lib/fastcomments-client/models/public_feed_posts_response.rb lib/fastcomments-client/models/public_page.rb lib/fastcomments-client/models/public_vote.rb -lib/fastcomments-client/models/put_award_badge_response.rb -lib/fastcomments-client/models/put_close_thread_response.rb lib/fastcomments-client/models/put_domain_config_response.rb -lib/fastcomments-client/models/put_remove_badge_response.rb -lib/fastcomments-client/models/put_reopen_thread_response.rb lib/fastcomments-client/models/put_sso_user_api_response.rb lib/fastcomments-client/models/query_predicate.rb lib/fastcomments-client/models/query_predicate_value.rb @@ -990,40 +666,28 @@ lib/fastcomments-client/models/question_result_aggregation_overall.rb lib/fastcomments-client/models/question_sub_question_visibility.rb lib/fastcomments-client/models/question_when_save.rb lib/fastcomments-client/models/react_body_params.rb -lib/fastcomments-client/models/react_feed_post_public_response.rb lib/fastcomments-client/models/react_feed_post_response.rb lib/fastcomments-client/models/record_string_before_string_or_null_after_string_or_null_value.rb lib/fastcomments-client/models/remove_comment_action_response.rb lib/fastcomments-client/models/remove_user_badge_response.rb lib/fastcomments-client/models/render_email_template_body.rb lib/fastcomments-client/models/render_email_template_response.rb -lib/fastcomments-client/models/render_email_template_response1.rb lib/fastcomments-client/models/renderable_user_notification.rb lib/fastcomments-client/models/repeat_comment_check_ignored_reason.rb lib/fastcomments-client/models/repeat_comment_handling_action.rb lib/fastcomments-client/models/replace_tenant_package_body.rb -lib/fastcomments-client/models/replace_tenant_package_response.rb lib/fastcomments-client/models/replace_tenant_user_body.rb -lib/fastcomments-client/models/replace_tenant_user_response.rb -lib/fastcomments-client/models/reset_user_notification_count_response.rb lib/fastcomments-client/models/reset_user_notifications_response.rb -lib/fastcomments-client/models/reset_user_notifications_response1.rb -lib/fastcomments-client/models/save_comment_response.rb lib/fastcomments-client/models/save_comment_response_optimized.rb lib/fastcomments-client/models/save_comments_bulk_response.rb lib/fastcomments-client/models/save_comments_response_with_presence.rb lib/fastcomments-client/models/search_users_response.rb -lib/fastcomments-client/models/search_users_response1.rb lib/fastcomments-client/models/search_users_result.rb lib/fastcomments-client/models/search_users_sectioned_response.rb -lib/fastcomments-client/models/send_invite_response.rb -lib/fastcomments-client/models/send_login_link_response.rb lib/fastcomments-client/models/set_comment_approved_response.rb lib/fastcomments-client/models/set_comment_text_params.rb lib/fastcomments-client/models/set_comment_text_response.rb -lib/fastcomments-client/models/set_comment_text_response1.rb lib/fastcomments-client/models/set_comment_text_result.rb -lib/fastcomments-client/models/set_trust_factor_response.rb lib/fastcomments-client/models/set_user_trust_factor_response.rb lib/fastcomments-client/models/size_preset.rb lib/fastcomments-client/models/sort_directions.rb @@ -1034,43 +698,26 @@ lib/fastcomments-client/models/tenant_badge.rb lib/fastcomments-client/models/tenant_hash_tag.rb lib/fastcomments-client/models/tenant_package.rb lib/fastcomments-client/models/tos_config.rb -lib/fastcomments-client/models/un_block_comment_public_response.rb lib/fastcomments-client/models/un_block_from_comment_params.rb -lib/fastcomments-client/models/un_block_user_from_comment_response.rb -lib/fastcomments-client/models/un_flag_comment_response.rb -lib/fastcomments-client/models/un_lock_comment_response.rb -lib/fastcomments-client/models/un_pin_comment_response.rb lib/fastcomments-client/models/unblock_success.rb lib/fastcomments-client/models/updatable_comment_params.rb lib/fastcomments-client/models/update_api_page_data.rb lib/fastcomments-client/models/update_api_user_subscription_data.rb lib/fastcomments-client/models/update_apisso_user_data.rb -lib/fastcomments-client/models/update_comment_response.rb lib/fastcomments-client/models/update_domain_config_params.rb lib/fastcomments-client/models/update_email_template_body.rb -lib/fastcomments-client/models/update_email_template_response.rb lib/fastcomments-client/models/update_feed_post_params.rb -lib/fastcomments-client/models/update_feed_post_public_response.rb -lib/fastcomments-client/models/update_feed_post_response.rb lib/fastcomments-client/models/update_hash_tag_body.rb lib/fastcomments-client/models/update_hash_tag_response.rb lib/fastcomments-client/models/update_moderator_body.rb -lib/fastcomments-client/models/update_moderator_response.rb lib/fastcomments-client/models/update_notification_body.rb -lib/fastcomments-client/models/update_notification_response.rb lib/fastcomments-client/models/update_question_config_body.rb -lib/fastcomments-client/models/update_question_config_response.rb lib/fastcomments-client/models/update_question_result_body.rb -lib/fastcomments-client/models/update_question_result_response.rb lib/fastcomments-client/models/update_subscription_api_response.rb lib/fastcomments-client/models/update_tenant_body.rb lib/fastcomments-client/models/update_tenant_package_body.rb -lib/fastcomments-client/models/update_tenant_package_response.rb -lib/fastcomments-client/models/update_tenant_response.rb lib/fastcomments-client/models/update_tenant_user_body.rb -lib/fastcomments-client/models/update_tenant_user_response.rb lib/fastcomments-client/models/update_user_badge_params.rb -lib/fastcomments-client/models/update_user_badge_response.rb lib/fastcomments-client/models/update_user_notification_comment_subscription_status_response.rb lib/fastcomments-client/models/update_user_notification_page_subscription_status_response.rb lib/fastcomments-client/models/update_user_notification_status_response.rb @@ -1089,7 +736,6 @@ lib/fastcomments-client/models/user_search_section_result.rb lib/fastcomments-client/models/user_session_info.rb lib/fastcomments-client/models/users_list_location.rb lib/fastcomments-client/models/vote_body_params.rb -lib/fastcomments-client/models/vote_comment_response.rb lib/fastcomments-client/models/vote_delete_response.rb lib/fastcomments-client/models/vote_response.rb lib/fastcomments-client/models/vote_response_user.rb @@ -1101,13 +747,10 @@ spec/api/public_api_spec.rb spec/models/add_domain_config_params_spec.rb spec/models/add_domain_config_response_any_of_spec.rb spec/models/add_domain_config_response_spec.rb -spec/models/add_hash_tag_response_spec.rb -spec/models/add_hash_tags_bulk_response_spec.rb spec/models/add_page_api_response_spec.rb spec/models/add_sso_user_api_response_spec.rb spec/models/adjust_comment_votes_params_spec.rb spec/models/adjust_votes_response_spec.rb -spec/models/aggregate_question_results_response1_spec.rb spec/models/aggregate_question_results_response_spec.rb spec/models/aggregate_response_spec.rb spec/models/aggregate_time_bucket_spec.rb @@ -1160,14 +803,11 @@ spec/models/banned_user_match_spec.rb spec/models/banned_user_match_type_spec.rb spec/models/billing_info_spec.rb spec/models/block_from_comment_params_spec.rb -spec/models/block_from_comment_public_response_spec.rb spec/models/block_success_spec.rb -spec/models/block_user_from_comment_response_spec.rb spec/models/build_moderation_filter_params_spec.rb spec/models/build_moderation_filter_response_spec.rb spec/models/bulk_aggregate_question_item_spec.rb spec/models/bulk_aggregate_question_results_request_spec.rb -spec/models/bulk_aggregate_question_results_response1_spec.rb spec/models/bulk_aggregate_question_results_response_spec.rb spec/models/bulk_create_hash_tags_body_spec.rb spec/models/bulk_create_hash_tags_body_tags_inner_spec.rb @@ -1177,11 +817,8 @@ spec/models/bulk_pre_ban_params_spec.rb spec/models/bulk_pre_ban_summary_spec.rb spec/models/change_comment_pin_status_response_spec.rb spec/models/change_ticket_state_body_spec.rb -spec/models/change_ticket_state_response1_spec.rb spec/models/change_ticket_state_response_spec.rb spec/models/check_blocked_comments_response_spec.rb -spec/models/checked_comments_for_blocked_response_spec.rb -spec/models/combine_comments_with_question_results_response_spec.rb spec/models/combine_question_results_with_comments_response_spec.rb spec/models/comment_data_spec.rb spec/models/comment_html_rendering_mode_spec.rb @@ -1201,75 +838,40 @@ spec/models/create_api_page_data_spec.rb spec/models/create_api_user_subscription_data_spec.rb spec/models/create_apisso_user_data_spec.rb spec/models/create_comment_params_spec.rb -spec/models/create_comment_public_response_spec.rb spec/models/create_email_template_body_spec.rb -spec/models/create_email_template_response1_spec.rb spec/models/create_email_template_response_spec.rb spec/models/create_feed_post_params_spec.rb -spec/models/create_feed_post_public_response_spec.rb -spec/models/create_feed_post_response1_spec.rb spec/models/create_feed_post_response_spec.rb spec/models/create_feed_posts_response_spec.rb spec/models/create_hash_tag_body_spec.rb spec/models/create_hash_tag_response_spec.rb spec/models/create_moderator_body_spec.rb -spec/models/create_moderator_response1_spec.rb spec/models/create_moderator_response_spec.rb spec/models/create_question_config_body_spec.rb -spec/models/create_question_config_response1_spec.rb spec/models/create_question_config_response_spec.rb spec/models/create_question_result_body_spec.rb -spec/models/create_question_result_response1_spec.rb spec/models/create_question_result_response_spec.rb spec/models/create_subscription_api_response_spec.rb spec/models/create_tenant_body_spec.rb spec/models/create_tenant_package_body_spec.rb -spec/models/create_tenant_package_response1_spec.rb spec/models/create_tenant_package_response_spec.rb -spec/models/create_tenant_response1_spec.rb spec/models/create_tenant_response_spec.rb spec/models/create_tenant_user_body_spec.rb -spec/models/create_tenant_user_response1_spec.rb spec/models/create_tenant_user_response_spec.rb spec/models/create_ticket_body_spec.rb -spec/models/create_ticket_response1_spec.rb spec/models/create_ticket_response_spec.rb spec/models/create_user_badge_params_spec.rb -spec/models/create_user_badge_response_spec.rb -spec/models/create_v1_page_react_response_spec.rb spec/models/create_v1_page_react_spec.rb -spec/models/create_v2_page_react_response_spec.rb -spec/models/create_vote_response_spec.rb spec/models/custom_config_parameters_spec.rb spec/models/custom_email_template_spec.rb spec/models/delete_comment_action_spec.rb -spec/models/delete_comment_public_response_spec.rb -spec/models/delete_comment_response_spec.rb spec/models/delete_comment_result_spec.rb -spec/models/delete_comment_vote_response_spec.rb spec/models/delete_domain_config_response_spec.rb -spec/models/delete_email_template_render_error_response_spec.rb -spec/models/delete_email_template_response_spec.rb -spec/models/delete_feed_post_public_response_any_of_spec.rb spec/models/delete_feed_post_public_response_spec.rb spec/models/delete_hash_tag_request_body_spec.rb -spec/models/delete_hash_tag_response_spec.rb -spec/models/delete_moderation_vote_response_spec.rb -spec/models/delete_moderator_response_spec.rb -spec/models/delete_notification_count_response_spec.rb spec/models/delete_page_api_response_spec.rb -spec/models/delete_pending_webhook_event_response_spec.rb -spec/models/delete_question_config_response_spec.rb -spec/models/delete_question_result_response_spec.rb spec/models/delete_sso_user_api_response_spec.rb spec/models/delete_subscription_api_response_spec.rb -spec/models/delete_tenant_package_response_spec.rb -spec/models/delete_tenant_response_spec.rb -spec/models/delete_tenant_user_response_spec.rb -spec/models/delete_user_badge_response_spec.rb -spec/models/delete_v1_page_react_response_spec.rb -spec/models/delete_v2_page_react_response_spec.rb -spec/models/delete_vote_response_spec.rb spec/models/deleted_comment_result_comment_spec.rb spec/models/digest_email_frequency_spec.rb spec/models/email_template_definition_spec.rb @@ -1285,153 +887,71 @@ spec/models/feed_post_stats_spec.rb spec/models/feed_posts_stats_response_spec.rb spec/models/find_comments_by_range_item_spec.rb spec/models/find_comments_by_range_response_spec.rb -spec/models/flag_comment_public_response_spec.rb -spec/models/flag_comment_response1_spec.rb spec/models/flag_comment_response_spec.rb -spec/models/get_api_comments_response_spec.rb -spec/models/get_api_export_status_response_spec.rb -spec/models/get_api_ids_response_spec.rb -spec/models/get_audit_logs_response1_spec.rb spec/models/get_audit_logs_response_spec.rb -spec/models/get_ban_users_from_comment_response_spec.rb spec/models/get_banned_users_count_response_spec.rb spec/models/get_banned_users_from_comment_response_spec.rb -spec/models/get_cached_notification_count_response1_spec.rb spec/models/get_cached_notification_count_response_spec.rb -spec/models/get_comment_ban_status_response1_spec.rb spec/models/get_comment_ban_status_response_spec.rb -spec/models/get_comment_children_response_spec.rb -spec/models/get_comment_response_spec.rb -spec/models/get_comment_text_response1_spec.rb spec/models/get_comment_text_response_spec.rb -spec/models/get_comment_vote_user_names_response_spec.rb spec/models/get_comment_vote_user_names_success_response_spec.rb -spec/models/get_comments_for_user_response1_spec.rb spec/models/get_comments_for_user_response_spec.rb -spec/models/get_comments_public_response_spec.rb spec/models/get_comments_response_public_comment_spec.rb -spec/models/get_comments_response_spec.rb spec/models/get_comments_response_with_presence_public_comment_spec.rb -spec/models/get_count_response_spec.rb -spec/models/get_counts_response_spec.rb spec/models/get_domain_config_response_spec.rb spec/models/get_domain_configs_response_any_of1_spec.rb spec/models/get_domain_configs_response_any_of_spec.rb spec/models/get_domain_configs_response_spec.rb -spec/models/get_email_template_definitions_response1_spec.rb spec/models/get_email_template_definitions_response_spec.rb -spec/models/get_email_template_render_errors_response1_spec.rb spec/models/get_email_template_render_errors_response_spec.rb -spec/models/get_email_template_response1_spec.rb spec/models/get_email_template_response_spec.rb -spec/models/get_email_templates_response1_spec.rb spec/models/get_email_templates_response_spec.rb -spec/models/get_event_log_response1_spec.rb spec/models/get_event_log_response_spec.rb -spec/models/get_feed_posts_public_response_spec.rb -spec/models/get_feed_posts_response1_spec.rb spec/models/get_feed_posts_response_spec.rb -spec/models/get_feed_posts_stats_response_spec.rb -spec/models/get_gif_large_response_spec.rb spec/models/get_gifs_search_response_spec.rb spec/models/get_gifs_trending_response_spec.rb -spec/models/get_global_event_log_response_spec.rb -spec/models/get_hash_tags_response1_spec.rb spec/models/get_hash_tags_response_spec.rb -spec/models/get_logs_response_spec.rb -spec/models/get_manual_badges_for_user_response_spec.rb -spec/models/get_manual_badges_response_spec.rb -spec/models/get_moderation_comment_response_spec.rb -spec/models/get_moderation_comment_text_response_spec.rb -spec/models/get_moderator_response1_spec.rb spec/models/get_moderator_response_spec.rb -spec/models/get_moderators_response1_spec.rb spec/models/get_moderators_response_spec.rb spec/models/get_my_notifications_response_spec.rb -spec/models/get_notification_count_response1_spec.rb spec/models/get_notification_count_response_spec.rb -spec/models/get_notifications_response1_spec.rb spec/models/get_notifications_response_spec.rb -spec/models/get_offline_users_response_spec.rb -spec/models/get_online_users_response_spec.rb spec/models/get_page_by_urlid_api_response_spec.rb spec/models/get_pages_api_response_spec.rb -spec/models/get_pages_public_response_spec.rb -spec/models/get_pending_webhook_event_count_response1_spec.rb spec/models/get_pending_webhook_event_count_response_spec.rb -spec/models/get_pending_webhook_events_response1_spec.rb spec/models/get_pending_webhook_events_response_spec.rb -spec/models/get_pre_ban_summary_response_spec.rb spec/models/get_public_feed_posts_response_spec.rb spec/models/get_public_pages_response_spec.rb -spec/models/get_question_config_response1_spec.rb spec/models/get_question_config_response_spec.rb -spec/models/get_question_configs_response1_spec.rb spec/models/get_question_configs_response_spec.rb -spec/models/get_question_result_response1_spec.rb spec/models/get_question_result_response_spec.rb -spec/models/get_question_results_response1_spec.rb spec/models/get_question_results_response_spec.rb -spec/models/get_search_comments_summary_response_spec.rb -spec/models/get_search_pages_response_spec.rb -spec/models/get_search_sites_response_spec.rb -spec/models/get_search_suggest_response_spec.rb -spec/models/get_search_users_response_spec.rb spec/models/get_sso_user_by_email_api_response_spec.rb spec/models/get_sso_user_by_id_api_response_spec.rb spec/models/get_sso_users_response_spec.rb spec/models/get_subscriptions_api_response_spec.rb -spec/models/get_tenant_daily_usages_response1_spec.rb spec/models/get_tenant_daily_usages_response_spec.rb spec/models/get_tenant_manual_badges_response_spec.rb -spec/models/get_tenant_package_response1_spec.rb spec/models/get_tenant_package_response_spec.rb -spec/models/get_tenant_packages_response1_spec.rb spec/models/get_tenant_packages_response_spec.rb -spec/models/get_tenant_response1_spec.rb spec/models/get_tenant_response_spec.rb -spec/models/get_tenant_user_response1_spec.rb spec/models/get_tenant_user_response_spec.rb -spec/models/get_tenant_users_response1_spec.rb spec/models/get_tenant_users_response_spec.rb -spec/models/get_tenants_response1_spec.rb spec/models/get_tenants_response_spec.rb -spec/models/get_ticket_response1_spec.rb spec/models/get_ticket_response_spec.rb -spec/models/get_tickets_response1_spec.rb spec/models/get_tickets_response_spec.rb -spec/models/get_translations_response1_spec.rb spec/models/get_translations_response_spec.rb -spec/models/get_trust_factor_response_spec.rb -spec/models/get_user_badge_progress_by_id_response_spec.rb -spec/models/get_user_badge_progress_by_user_id_response_spec.rb -spec/models/get_user_badge_progress_list_response_spec.rb -spec/models/get_user_badge_response_spec.rb -spec/models/get_user_badges_response_spec.rb -spec/models/get_user_ban_preference_response_spec.rb -spec/models/get_user_internal_profile_response1_spec.rb spec/models/get_user_internal_profile_response_profile_spec.rb spec/models/get_user_internal_profile_response_spec.rb spec/models/get_user_manual_badges_response_spec.rb -spec/models/get_user_notification_count_response1_spec.rb spec/models/get_user_notification_count_response_spec.rb -spec/models/get_user_notifications_response_spec.rb -spec/models/get_user_presence_statuses_response1_spec.rb spec/models/get_user_presence_statuses_response_spec.rb -spec/models/get_user_reacts_public_response_spec.rb -spec/models/get_user_response1_spec.rb spec/models/get_user_response_spec.rb spec/models/get_user_trust_factor_response_spec.rb -spec/models/get_users_info_response_spec.rb -spec/models/get_v1_page_likes_response_spec.rb spec/models/get_v1_page_likes_spec.rb -spec/models/get_v2_page_react_users_response1_spec.rb spec/models/get_v2_page_react_users_response_spec.rb -spec/models/get_v2_page_reacts_response_spec.rb spec/models/get_v2_page_reacts_spec.rb -spec/models/get_votes_for_user_response1_spec.rb spec/models/get_votes_for_user_response_spec.rb -spec/models/get_votes_response1_spec.rb spec/models/get_votes_response_spec.rb spec/models/gif_get_large_response_spec.rb spec/models/gif_rating_spec.rb @@ -1447,7 +967,6 @@ spec/models/imported_site_type_spec.rb spec/models/live_event_extra_info_spec.rb spec/models/live_event_spec.rb spec/models/live_event_type_spec.rb -spec/models/lock_comment_response_spec.rb spec/models/media_asset_spec.rb spec/models/mention_auto_complete_mode_spec.rb spec/models/meta_item_spec.rb @@ -1481,26 +1000,10 @@ spec/models/page_users_online_response_spec.rb spec/models/pages_sort_by_spec.rb spec/models/patch_domain_config_params_spec.rb spec/models/patch_domain_config_response_spec.rb -spec/models/patch_hash_tag_response_spec.rb spec/models/patch_page_api_response_spec.rb spec/models/patch_sso_user_api_response_spec.rb spec/models/pending_comment_to_sync_outbound_spec.rb -spec/models/pin_comment_response_spec.rb -spec/models/post_adjust_comment_votes_response_spec.rb -spec/models/post_api_export_response_spec.rb -spec/models/post_ban_user_from_comment_response_spec.rb -spec/models/post_ban_user_undo_response_spec.rb -spec/models/post_bulk_pre_ban_summary_response_spec.rb -spec/models/post_comments_by_ids_response_spec.rb -spec/models/post_flag_comment_response_spec.rb spec/models/post_remove_comment_response_spec.rb -spec/models/post_restore_deleted_comment_response_spec.rb -spec/models/post_set_comment_approval_status_response_spec.rb -spec/models/post_set_comment_review_status_response_spec.rb -spec/models/post_set_comment_spam_status_response_spec.rb -spec/models/post_set_comment_text_response_spec.rb -spec/models/post_un_flag_comment_response_spec.rb -spec/models/post_vote_response_spec.rb spec/models/pre_ban_summary_spec.rb spec/models/pub_sub_comment_base_spec.rb spec/models/pub_sub_comment_spec.rb @@ -1514,11 +1017,7 @@ spec/models/public_comment_spec.rb spec/models/public_feed_posts_response_spec.rb spec/models/public_page_spec.rb spec/models/public_vote_spec.rb -spec/models/put_award_badge_response_spec.rb -spec/models/put_close_thread_response_spec.rb spec/models/put_domain_config_response_spec.rb -spec/models/put_remove_badge_response_spec.rb -spec/models/put_reopen_thread_response_spec.rb spec/models/put_sso_user_api_response_spec.rb spec/models/query_predicate_spec.rb spec/models/query_predicate_value_spec.rb @@ -1531,40 +1030,28 @@ spec/models/question_result_spec.rb spec/models/question_sub_question_visibility_spec.rb spec/models/question_when_save_spec.rb spec/models/react_body_params_spec.rb -spec/models/react_feed_post_public_response_spec.rb spec/models/react_feed_post_response_spec.rb spec/models/record_string_before_string_or_null_after_string_or_null_value_spec.rb spec/models/remove_comment_action_response_spec.rb spec/models/remove_user_badge_response_spec.rb spec/models/render_email_template_body_spec.rb -spec/models/render_email_template_response1_spec.rb spec/models/render_email_template_response_spec.rb spec/models/renderable_user_notification_spec.rb spec/models/repeat_comment_check_ignored_reason_spec.rb spec/models/repeat_comment_handling_action_spec.rb spec/models/replace_tenant_package_body_spec.rb -spec/models/replace_tenant_package_response_spec.rb spec/models/replace_tenant_user_body_spec.rb -spec/models/replace_tenant_user_response_spec.rb -spec/models/reset_user_notification_count_response_spec.rb -spec/models/reset_user_notifications_response1_spec.rb spec/models/reset_user_notifications_response_spec.rb spec/models/save_comment_response_optimized_spec.rb -spec/models/save_comment_response_spec.rb spec/models/save_comments_bulk_response_spec.rb spec/models/save_comments_response_with_presence_spec.rb -spec/models/search_users_response1_spec.rb spec/models/search_users_response_spec.rb spec/models/search_users_result_spec.rb spec/models/search_users_sectioned_response_spec.rb -spec/models/send_invite_response_spec.rb -spec/models/send_login_link_response_spec.rb spec/models/set_comment_approved_response_spec.rb spec/models/set_comment_text_params_spec.rb -spec/models/set_comment_text_response1_spec.rb spec/models/set_comment_text_response_spec.rb spec/models/set_comment_text_result_spec.rb -spec/models/set_trust_factor_response_spec.rb spec/models/set_user_trust_factor_response_spec.rb spec/models/size_preset_spec.rb spec/models/sort_directions_spec.rb @@ -1575,43 +1062,26 @@ spec/models/tenant_badge_spec.rb spec/models/tenant_hash_tag_spec.rb spec/models/tenant_package_spec.rb spec/models/tos_config_spec.rb -spec/models/un_block_comment_public_response_spec.rb spec/models/un_block_from_comment_params_spec.rb -spec/models/un_block_user_from_comment_response_spec.rb -spec/models/un_flag_comment_response_spec.rb -spec/models/un_lock_comment_response_spec.rb -spec/models/un_pin_comment_response_spec.rb spec/models/unblock_success_spec.rb spec/models/updatable_comment_params_spec.rb spec/models/update_api_page_data_spec.rb spec/models/update_api_user_subscription_data_spec.rb spec/models/update_apisso_user_data_spec.rb -spec/models/update_comment_response_spec.rb spec/models/update_domain_config_params_spec.rb spec/models/update_email_template_body_spec.rb -spec/models/update_email_template_response_spec.rb spec/models/update_feed_post_params_spec.rb -spec/models/update_feed_post_public_response_spec.rb -spec/models/update_feed_post_response_spec.rb spec/models/update_hash_tag_body_spec.rb spec/models/update_hash_tag_response_spec.rb spec/models/update_moderator_body_spec.rb -spec/models/update_moderator_response_spec.rb spec/models/update_notification_body_spec.rb -spec/models/update_notification_response_spec.rb spec/models/update_question_config_body_spec.rb -spec/models/update_question_config_response_spec.rb spec/models/update_question_result_body_spec.rb -spec/models/update_question_result_response_spec.rb spec/models/update_subscription_api_response_spec.rb spec/models/update_tenant_body_spec.rb spec/models/update_tenant_package_body_spec.rb -spec/models/update_tenant_package_response_spec.rb -spec/models/update_tenant_response_spec.rb spec/models/update_tenant_user_body_spec.rb -spec/models/update_tenant_user_response_spec.rb spec/models/update_user_badge_params_spec.rb -spec/models/update_user_badge_response_spec.rb spec/models/update_user_notification_comment_subscription_status_response_spec.rb spec/models/update_user_notification_page_subscription_status_response_spec.rb spec/models/update_user_notification_status_response_spec.rb @@ -1630,7 +1100,6 @@ spec/models/user_session_info_spec.rb spec/models/user_spec.rb spec/models/users_list_location_spec.rb spec/models/vote_body_params_spec.rb -spec/models/vote_comment_response_spec.rb spec/models/vote_delete_response_spec.rb spec/models/vote_response_spec.rb spec/models/vote_response_user_spec.rb diff --git a/client/README.md b/client/README.md index 98ead94..f366fc6 100644 --- a/client/README.md +++ b/client/README.md @@ -332,14 +332,11 @@ Class | Method | HTTP request | Description - [FastCommentsClient::AddDomainConfigParams](docs/AddDomainConfigParams.md) - [FastCommentsClient::AddDomainConfigResponse](docs/AddDomainConfigResponse.md) - [FastCommentsClient::AddDomainConfigResponseAnyOf](docs/AddDomainConfigResponseAnyOf.md) - - [FastCommentsClient::AddHashTagResponse](docs/AddHashTagResponse.md) - - [FastCommentsClient::AddHashTagsBulkResponse](docs/AddHashTagsBulkResponse.md) - [FastCommentsClient::AddPageAPIResponse](docs/AddPageAPIResponse.md) - [FastCommentsClient::AddSSOUserAPIResponse](docs/AddSSOUserAPIResponse.md) - [FastCommentsClient::AdjustCommentVotesParams](docs/AdjustCommentVotesParams.md) - [FastCommentsClient::AdjustVotesResponse](docs/AdjustVotesResponse.md) - [FastCommentsClient::AggregateQuestionResultsResponse](docs/AggregateQuestionResultsResponse.md) - - [FastCommentsClient::AggregateQuestionResultsResponse1](docs/AggregateQuestionResultsResponse1.md) - [FastCommentsClient::AggregateResponse](docs/AggregateResponse.md) - [FastCommentsClient::AggregateTimeBucket](docs/AggregateTimeBucket.md) - [FastCommentsClient::AggregationAPIError](docs/AggregationAPIError.md) @@ -359,15 +356,12 @@ Class | Method | HTTP request | Description - [FastCommentsClient::BannedUserMatchType](docs/BannedUserMatchType.md) - [FastCommentsClient::BillingInfo](docs/BillingInfo.md) - [FastCommentsClient::BlockFromCommentParams](docs/BlockFromCommentParams.md) - - [FastCommentsClient::BlockFromCommentPublicResponse](docs/BlockFromCommentPublicResponse.md) - [FastCommentsClient::BlockSuccess](docs/BlockSuccess.md) - - [FastCommentsClient::BlockUserFromCommentResponse](docs/BlockUserFromCommentResponse.md) - [FastCommentsClient::BuildModerationFilterParams](docs/BuildModerationFilterParams.md) - [FastCommentsClient::BuildModerationFilterResponse](docs/BuildModerationFilterResponse.md) - [FastCommentsClient::BulkAggregateQuestionItem](docs/BulkAggregateQuestionItem.md) - [FastCommentsClient::BulkAggregateQuestionResultsRequest](docs/BulkAggregateQuestionResultsRequest.md) - [FastCommentsClient::BulkAggregateQuestionResultsResponse](docs/BulkAggregateQuestionResultsResponse.md) - - [FastCommentsClient::BulkAggregateQuestionResultsResponse1](docs/BulkAggregateQuestionResultsResponse1.md) - [FastCommentsClient::BulkCreateHashTagsBody](docs/BulkCreateHashTagsBody.md) - [FastCommentsClient::BulkCreateHashTagsBodyTagsInner](docs/BulkCreateHashTagsBodyTagsInner.md) - [FastCommentsClient::BulkCreateHashTagsResponse](docs/BulkCreateHashTagsResponse.md) @@ -377,10 +371,7 @@ Class | Method | HTTP request | Description - [FastCommentsClient::ChangeCommentPinStatusResponse](docs/ChangeCommentPinStatusResponse.md) - [FastCommentsClient::ChangeTicketStateBody](docs/ChangeTicketStateBody.md) - [FastCommentsClient::ChangeTicketStateResponse](docs/ChangeTicketStateResponse.md) - - [FastCommentsClient::ChangeTicketStateResponse1](docs/ChangeTicketStateResponse1.md) - [FastCommentsClient::CheckBlockedCommentsResponse](docs/CheckBlockedCommentsResponse.md) - - [FastCommentsClient::CheckedCommentsForBlockedResponse](docs/CheckedCommentsForBlockedResponse.md) - - [FastCommentsClient::CombineCommentsWithQuestionResultsResponse](docs/CombineCommentsWithQuestionResultsResponse.md) - [FastCommentsClient::CombineQuestionResultsWithCommentsResponse](docs/CombineQuestionResultsWithCommentsResponse.md) - [FastCommentsClient::CommentData](docs/CommentData.md) - [FastCommentsClient::CommentHTMLRenderingMode](docs/CommentHTMLRenderingMode.md) @@ -400,75 +391,40 @@ Class | Method | HTTP request | Description - [FastCommentsClient::CreateAPISSOUserData](docs/CreateAPISSOUserData.md) - [FastCommentsClient::CreateAPIUserSubscriptionData](docs/CreateAPIUserSubscriptionData.md) - [FastCommentsClient::CreateCommentParams](docs/CreateCommentParams.md) - - [FastCommentsClient::CreateCommentPublicResponse](docs/CreateCommentPublicResponse.md) - [FastCommentsClient::CreateEmailTemplateBody](docs/CreateEmailTemplateBody.md) - [FastCommentsClient::CreateEmailTemplateResponse](docs/CreateEmailTemplateResponse.md) - - [FastCommentsClient::CreateEmailTemplateResponse1](docs/CreateEmailTemplateResponse1.md) - [FastCommentsClient::CreateFeedPostParams](docs/CreateFeedPostParams.md) - - [FastCommentsClient::CreateFeedPostPublicResponse](docs/CreateFeedPostPublicResponse.md) - [FastCommentsClient::CreateFeedPostResponse](docs/CreateFeedPostResponse.md) - - [FastCommentsClient::CreateFeedPostResponse1](docs/CreateFeedPostResponse1.md) - [FastCommentsClient::CreateFeedPostsResponse](docs/CreateFeedPostsResponse.md) - [FastCommentsClient::CreateHashTagBody](docs/CreateHashTagBody.md) - [FastCommentsClient::CreateHashTagResponse](docs/CreateHashTagResponse.md) - [FastCommentsClient::CreateModeratorBody](docs/CreateModeratorBody.md) - [FastCommentsClient::CreateModeratorResponse](docs/CreateModeratorResponse.md) - - [FastCommentsClient::CreateModeratorResponse1](docs/CreateModeratorResponse1.md) - [FastCommentsClient::CreateQuestionConfigBody](docs/CreateQuestionConfigBody.md) - [FastCommentsClient::CreateQuestionConfigResponse](docs/CreateQuestionConfigResponse.md) - - [FastCommentsClient::CreateQuestionConfigResponse1](docs/CreateQuestionConfigResponse1.md) - [FastCommentsClient::CreateQuestionResultBody](docs/CreateQuestionResultBody.md) - [FastCommentsClient::CreateQuestionResultResponse](docs/CreateQuestionResultResponse.md) - - [FastCommentsClient::CreateQuestionResultResponse1](docs/CreateQuestionResultResponse1.md) - [FastCommentsClient::CreateSubscriptionAPIResponse](docs/CreateSubscriptionAPIResponse.md) - [FastCommentsClient::CreateTenantBody](docs/CreateTenantBody.md) - [FastCommentsClient::CreateTenantPackageBody](docs/CreateTenantPackageBody.md) - [FastCommentsClient::CreateTenantPackageResponse](docs/CreateTenantPackageResponse.md) - - [FastCommentsClient::CreateTenantPackageResponse1](docs/CreateTenantPackageResponse1.md) - [FastCommentsClient::CreateTenantResponse](docs/CreateTenantResponse.md) - - [FastCommentsClient::CreateTenantResponse1](docs/CreateTenantResponse1.md) - [FastCommentsClient::CreateTenantUserBody](docs/CreateTenantUserBody.md) - [FastCommentsClient::CreateTenantUserResponse](docs/CreateTenantUserResponse.md) - - [FastCommentsClient::CreateTenantUserResponse1](docs/CreateTenantUserResponse1.md) - [FastCommentsClient::CreateTicketBody](docs/CreateTicketBody.md) - [FastCommentsClient::CreateTicketResponse](docs/CreateTicketResponse.md) - - [FastCommentsClient::CreateTicketResponse1](docs/CreateTicketResponse1.md) - [FastCommentsClient::CreateUserBadgeParams](docs/CreateUserBadgeParams.md) - - [FastCommentsClient::CreateUserBadgeResponse](docs/CreateUserBadgeResponse.md) - [FastCommentsClient::CreateV1PageReact](docs/CreateV1PageReact.md) - - [FastCommentsClient::CreateV1PageReactResponse](docs/CreateV1PageReactResponse.md) - - [FastCommentsClient::CreateV2PageReactResponse](docs/CreateV2PageReactResponse.md) - - [FastCommentsClient::CreateVoteResponse](docs/CreateVoteResponse.md) - [FastCommentsClient::CustomConfigParameters](docs/CustomConfigParameters.md) - [FastCommentsClient::CustomEmailTemplate](docs/CustomEmailTemplate.md) - [FastCommentsClient::DeleteCommentAction](docs/DeleteCommentAction.md) - - [FastCommentsClient::DeleteCommentPublicResponse](docs/DeleteCommentPublicResponse.md) - - [FastCommentsClient::DeleteCommentResponse](docs/DeleteCommentResponse.md) - [FastCommentsClient::DeleteCommentResult](docs/DeleteCommentResult.md) - - [FastCommentsClient::DeleteCommentVoteResponse](docs/DeleteCommentVoteResponse.md) - [FastCommentsClient::DeleteDomainConfigResponse](docs/DeleteDomainConfigResponse.md) - - [FastCommentsClient::DeleteEmailTemplateRenderErrorResponse](docs/DeleteEmailTemplateRenderErrorResponse.md) - - [FastCommentsClient::DeleteEmailTemplateResponse](docs/DeleteEmailTemplateResponse.md) - [FastCommentsClient::DeleteFeedPostPublicResponse](docs/DeleteFeedPostPublicResponse.md) - - [FastCommentsClient::DeleteFeedPostPublicResponseAnyOf](docs/DeleteFeedPostPublicResponseAnyOf.md) - [FastCommentsClient::DeleteHashTagRequestBody](docs/DeleteHashTagRequestBody.md) - - [FastCommentsClient::DeleteHashTagResponse](docs/DeleteHashTagResponse.md) - - [FastCommentsClient::DeleteModerationVoteResponse](docs/DeleteModerationVoteResponse.md) - - [FastCommentsClient::DeleteModeratorResponse](docs/DeleteModeratorResponse.md) - - [FastCommentsClient::DeleteNotificationCountResponse](docs/DeleteNotificationCountResponse.md) - [FastCommentsClient::DeletePageAPIResponse](docs/DeletePageAPIResponse.md) - - [FastCommentsClient::DeletePendingWebhookEventResponse](docs/DeletePendingWebhookEventResponse.md) - - [FastCommentsClient::DeleteQuestionConfigResponse](docs/DeleteQuestionConfigResponse.md) - - [FastCommentsClient::DeleteQuestionResultResponse](docs/DeleteQuestionResultResponse.md) - [FastCommentsClient::DeleteSSOUserAPIResponse](docs/DeleteSSOUserAPIResponse.md) - [FastCommentsClient::DeleteSubscriptionAPIResponse](docs/DeleteSubscriptionAPIResponse.md) - - [FastCommentsClient::DeleteTenantPackageResponse](docs/DeleteTenantPackageResponse.md) - - [FastCommentsClient::DeleteTenantResponse](docs/DeleteTenantResponse.md) - - [FastCommentsClient::DeleteTenantUserResponse](docs/DeleteTenantUserResponse.md) - - [FastCommentsClient::DeleteUserBadgeResponse](docs/DeleteUserBadgeResponse.md) - - [FastCommentsClient::DeleteV1PageReactResponse](docs/DeleteV1PageReactResponse.md) - - [FastCommentsClient::DeleteV2PageReactResponse](docs/DeleteV2PageReactResponse.md) - - [FastCommentsClient::DeleteVoteResponse](docs/DeleteVoteResponse.md) - [FastCommentsClient::DeletedCommentResultComment](docs/DeletedCommentResultComment.md) - [FastCommentsClient::DigestEmailFrequency](docs/DigestEmailFrequency.md) - [FastCommentsClient::EmailTemplateDefinition](docs/EmailTemplateDefinition.md) @@ -484,154 +440,72 @@ Class | Method | HTTP request | Description - [FastCommentsClient::FeedPostsStatsResponse](docs/FeedPostsStatsResponse.md) - [FastCommentsClient::FindCommentsByRangeItem](docs/FindCommentsByRangeItem.md) - [FastCommentsClient::FindCommentsByRangeResponse](docs/FindCommentsByRangeResponse.md) - - [FastCommentsClient::FlagCommentPublicResponse](docs/FlagCommentPublicResponse.md) - [FastCommentsClient::FlagCommentResponse](docs/FlagCommentResponse.md) - - [FastCommentsClient::FlagCommentResponse1](docs/FlagCommentResponse1.md) - - [FastCommentsClient::GetApiCommentsResponse](docs/GetApiCommentsResponse.md) - - [FastCommentsClient::GetApiExportStatusResponse](docs/GetApiExportStatusResponse.md) - - [FastCommentsClient::GetApiIdsResponse](docs/GetApiIdsResponse.md) - [FastCommentsClient::GetAuditLogsResponse](docs/GetAuditLogsResponse.md) - - [FastCommentsClient::GetAuditLogsResponse1](docs/GetAuditLogsResponse1.md) - - [FastCommentsClient::GetBanUsersFromCommentResponse](docs/GetBanUsersFromCommentResponse.md) - [FastCommentsClient::GetBannedUsersCountResponse](docs/GetBannedUsersCountResponse.md) - [FastCommentsClient::GetBannedUsersFromCommentResponse](docs/GetBannedUsersFromCommentResponse.md) - [FastCommentsClient::GetCachedNotificationCountResponse](docs/GetCachedNotificationCountResponse.md) - - [FastCommentsClient::GetCachedNotificationCountResponse1](docs/GetCachedNotificationCountResponse1.md) - [FastCommentsClient::GetCommentBanStatusResponse](docs/GetCommentBanStatusResponse.md) - - [FastCommentsClient::GetCommentBanStatusResponse1](docs/GetCommentBanStatusResponse1.md) - - [FastCommentsClient::GetCommentChildrenResponse](docs/GetCommentChildrenResponse.md) - - [FastCommentsClient::GetCommentResponse](docs/GetCommentResponse.md) - [FastCommentsClient::GetCommentTextResponse](docs/GetCommentTextResponse.md) - - [FastCommentsClient::GetCommentTextResponse1](docs/GetCommentTextResponse1.md) - - [FastCommentsClient::GetCommentVoteUserNamesResponse](docs/GetCommentVoteUserNamesResponse.md) - [FastCommentsClient::GetCommentVoteUserNamesSuccessResponse](docs/GetCommentVoteUserNamesSuccessResponse.md) - [FastCommentsClient::GetCommentsForUserResponse](docs/GetCommentsForUserResponse.md) - - [FastCommentsClient::GetCommentsForUserResponse1](docs/GetCommentsForUserResponse1.md) - - [FastCommentsClient::GetCommentsPublicResponse](docs/GetCommentsPublicResponse.md) - - [FastCommentsClient::GetCommentsResponse](docs/GetCommentsResponse.md) - [FastCommentsClient::GetCommentsResponsePublicComment](docs/GetCommentsResponsePublicComment.md) - [FastCommentsClient::GetCommentsResponseWithPresencePublicComment](docs/GetCommentsResponseWithPresencePublicComment.md) - - [FastCommentsClient::GetCountResponse](docs/GetCountResponse.md) - - [FastCommentsClient::GetCountsResponse](docs/GetCountsResponse.md) - [FastCommentsClient::GetDomainConfigResponse](docs/GetDomainConfigResponse.md) - [FastCommentsClient::GetDomainConfigsResponse](docs/GetDomainConfigsResponse.md) - [FastCommentsClient::GetDomainConfigsResponseAnyOf](docs/GetDomainConfigsResponseAnyOf.md) - [FastCommentsClient::GetDomainConfigsResponseAnyOf1](docs/GetDomainConfigsResponseAnyOf1.md) - [FastCommentsClient::GetEmailTemplateDefinitionsResponse](docs/GetEmailTemplateDefinitionsResponse.md) - - [FastCommentsClient::GetEmailTemplateDefinitionsResponse1](docs/GetEmailTemplateDefinitionsResponse1.md) - [FastCommentsClient::GetEmailTemplateRenderErrorsResponse](docs/GetEmailTemplateRenderErrorsResponse.md) - - [FastCommentsClient::GetEmailTemplateRenderErrorsResponse1](docs/GetEmailTemplateRenderErrorsResponse1.md) - [FastCommentsClient::GetEmailTemplateResponse](docs/GetEmailTemplateResponse.md) - - [FastCommentsClient::GetEmailTemplateResponse1](docs/GetEmailTemplateResponse1.md) - [FastCommentsClient::GetEmailTemplatesResponse](docs/GetEmailTemplatesResponse.md) - - [FastCommentsClient::GetEmailTemplatesResponse1](docs/GetEmailTemplatesResponse1.md) - [FastCommentsClient::GetEventLogResponse](docs/GetEventLogResponse.md) - - [FastCommentsClient::GetEventLogResponse1](docs/GetEventLogResponse1.md) - - [FastCommentsClient::GetFeedPostsPublicResponse](docs/GetFeedPostsPublicResponse.md) - [FastCommentsClient::GetFeedPostsResponse](docs/GetFeedPostsResponse.md) - - [FastCommentsClient::GetFeedPostsResponse1](docs/GetFeedPostsResponse1.md) - - [FastCommentsClient::GetFeedPostsStatsResponse](docs/GetFeedPostsStatsResponse.md) - - [FastCommentsClient::GetGifLargeResponse](docs/GetGifLargeResponse.md) - [FastCommentsClient::GetGifsSearchResponse](docs/GetGifsSearchResponse.md) - [FastCommentsClient::GetGifsTrendingResponse](docs/GetGifsTrendingResponse.md) - - [FastCommentsClient::GetGlobalEventLogResponse](docs/GetGlobalEventLogResponse.md) - [FastCommentsClient::GetHashTagsResponse](docs/GetHashTagsResponse.md) - - [FastCommentsClient::GetHashTagsResponse1](docs/GetHashTagsResponse1.md) - - [FastCommentsClient::GetLogsResponse](docs/GetLogsResponse.md) - - [FastCommentsClient::GetManualBadgesForUserResponse](docs/GetManualBadgesForUserResponse.md) - - [FastCommentsClient::GetManualBadgesResponse](docs/GetManualBadgesResponse.md) - - [FastCommentsClient::GetModerationCommentResponse](docs/GetModerationCommentResponse.md) - - [FastCommentsClient::GetModerationCommentTextResponse](docs/GetModerationCommentTextResponse.md) - [FastCommentsClient::GetModeratorResponse](docs/GetModeratorResponse.md) - - [FastCommentsClient::GetModeratorResponse1](docs/GetModeratorResponse1.md) - [FastCommentsClient::GetModeratorsResponse](docs/GetModeratorsResponse.md) - - [FastCommentsClient::GetModeratorsResponse1](docs/GetModeratorsResponse1.md) - [FastCommentsClient::GetMyNotificationsResponse](docs/GetMyNotificationsResponse.md) - [FastCommentsClient::GetNotificationCountResponse](docs/GetNotificationCountResponse.md) - - [FastCommentsClient::GetNotificationCountResponse1](docs/GetNotificationCountResponse1.md) - [FastCommentsClient::GetNotificationsResponse](docs/GetNotificationsResponse.md) - - [FastCommentsClient::GetNotificationsResponse1](docs/GetNotificationsResponse1.md) - - [FastCommentsClient::GetOfflineUsersResponse](docs/GetOfflineUsersResponse.md) - - [FastCommentsClient::GetOnlineUsersResponse](docs/GetOnlineUsersResponse.md) - [FastCommentsClient::GetPageByURLIdAPIResponse](docs/GetPageByURLIdAPIResponse.md) - [FastCommentsClient::GetPagesAPIResponse](docs/GetPagesAPIResponse.md) - - [FastCommentsClient::GetPagesPublicResponse](docs/GetPagesPublicResponse.md) - [FastCommentsClient::GetPendingWebhookEventCountResponse](docs/GetPendingWebhookEventCountResponse.md) - - [FastCommentsClient::GetPendingWebhookEventCountResponse1](docs/GetPendingWebhookEventCountResponse1.md) - [FastCommentsClient::GetPendingWebhookEventsResponse](docs/GetPendingWebhookEventsResponse.md) - - [FastCommentsClient::GetPendingWebhookEventsResponse1](docs/GetPendingWebhookEventsResponse1.md) - - [FastCommentsClient::GetPreBanSummaryResponse](docs/GetPreBanSummaryResponse.md) - [FastCommentsClient::GetPublicFeedPostsResponse](docs/GetPublicFeedPostsResponse.md) - [FastCommentsClient::GetPublicPagesResponse](docs/GetPublicPagesResponse.md) - [FastCommentsClient::GetQuestionConfigResponse](docs/GetQuestionConfigResponse.md) - - [FastCommentsClient::GetQuestionConfigResponse1](docs/GetQuestionConfigResponse1.md) - [FastCommentsClient::GetQuestionConfigsResponse](docs/GetQuestionConfigsResponse.md) - - [FastCommentsClient::GetQuestionConfigsResponse1](docs/GetQuestionConfigsResponse1.md) - [FastCommentsClient::GetQuestionResultResponse](docs/GetQuestionResultResponse.md) - - [FastCommentsClient::GetQuestionResultResponse1](docs/GetQuestionResultResponse1.md) - [FastCommentsClient::GetQuestionResultsResponse](docs/GetQuestionResultsResponse.md) - - [FastCommentsClient::GetQuestionResultsResponse1](docs/GetQuestionResultsResponse1.md) - [FastCommentsClient::GetSSOUserByEmailAPIResponse](docs/GetSSOUserByEmailAPIResponse.md) - [FastCommentsClient::GetSSOUserByIdAPIResponse](docs/GetSSOUserByIdAPIResponse.md) - [FastCommentsClient::GetSSOUsersResponse](docs/GetSSOUsersResponse.md) - - [FastCommentsClient::GetSearchCommentsSummaryResponse](docs/GetSearchCommentsSummaryResponse.md) - - [FastCommentsClient::GetSearchPagesResponse](docs/GetSearchPagesResponse.md) - - [FastCommentsClient::GetSearchSitesResponse](docs/GetSearchSitesResponse.md) - - [FastCommentsClient::GetSearchSuggestResponse](docs/GetSearchSuggestResponse.md) - - [FastCommentsClient::GetSearchUsersResponse](docs/GetSearchUsersResponse.md) - [FastCommentsClient::GetSubscriptionsAPIResponse](docs/GetSubscriptionsAPIResponse.md) - [FastCommentsClient::GetTenantDailyUsagesResponse](docs/GetTenantDailyUsagesResponse.md) - - [FastCommentsClient::GetTenantDailyUsagesResponse1](docs/GetTenantDailyUsagesResponse1.md) - [FastCommentsClient::GetTenantManualBadgesResponse](docs/GetTenantManualBadgesResponse.md) - [FastCommentsClient::GetTenantPackageResponse](docs/GetTenantPackageResponse.md) - - [FastCommentsClient::GetTenantPackageResponse1](docs/GetTenantPackageResponse1.md) - [FastCommentsClient::GetTenantPackagesResponse](docs/GetTenantPackagesResponse.md) - - [FastCommentsClient::GetTenantPackagesResponse1](docs/GetTenantPackagesResponse1.md) - [FastCommentsClient::GetTenantResponse](docs/GetTenantResponse.md) - - [FastCommentsClient::GetTenantResponse1](docs/GetTenantResponse1.md) - [FastCommentsClient::GetTenantUserResponse](docs/GetTenantUserResponse.md) - - [FastCommentsClient::GetTenantUserResponse1](docs/GetTenantUserResponse1.md) - [FastCommentsClient::GetTenantUsersResponse](docs/GetTenantUsersResponse.md) - - [FastCommentsClient::GetTenantUsersResponse1](docs/GetTenantUsersResponse1.md) - [FastCommentsClient::GetTenantsResponse](docs/GetTenantsResponse.md) - - [FastCommentsClient::GetTenantsResponse1](docs/GetTenantsResponse1.md) - [FastCommentsClient::GetTicketResponse](docs/GetTicketResponse.md) - - [FastCommentsClient::GetTicketResponse1](docs/GetTicketResponse1.md) - [FastCommentsClient::GetTicketsResponse](docs/GetTicketsResponse.md) - - [FastCommentsClient::GetTicketsResponse1](docs/GetTicketsResponse1.md) - [FastCommentsClient::GetTranslationsResponse](docs/GetTranslationsResponse.md) - - [FastCommentsClient::GetTranslationsResponse1](docs/GetTranslationsResponse1.md) - - [FastCommentsClient::GetTrustFactorResponse](docs/GetTrustFactorResponse.md) - - [FastCommentsClient::GetUserBadgeProgressByIdResponse](docs/GetUserBadgeProgressByIdResponse.md) - - [FastCommentsClient::GetUserBadgeProgressByUserIdResponse](docs/GetUserBadgeProgressByUserIdResponse.md) - - [FastCommentsClient::GetUserBadgeProgressListResponse](docs/GetUserBadgeProgressListResponse.md) - - [FastCommentsClient::GetUserBadgeResponse](docs/GetUserBadgeResponse.md) - - [FastCommentsClient::GetUserBadgesResponse](docs/GetUserBadgesResponse.md) - - [FastCommentsClient::GetUserBanPreferenceResponse](docs/GetUserBanPreferenceResponse.md) - [FastCommentsClient::GetUserInternalProfileResponse](docs/GetUserInternalProfileResponse.md) - - [FastCommentsClient::GetUserInternalProfileResponse1](docs/GetUserInternalProfileResponse1.md) - [FastCommentsClient::GetUserInternalProfileResponseProfile](docs/GetUserInternalProfileResponseProfile.md) - [FastCommentsClient::GetUserManualBadgesResponse](docs/GetUserManualBadgesResponse.md) - [FastCommentsClient::GetUserNotificationCountResponse](docs/GetUserNotificationCountResponse.md) - - [FastCommentsClient::GetUserNotificationCountResponse1](docs/GetUserNotificationCountResponse1.md) - - [FastCommentsClient::GetUserNotificationsResponse](docs/GetUserNotificationsResponse.md) - [FastCommentsClient::GetUserPresenceStatusesResponse](docs/GetUserPresenceStatusesResponse.md) - - [FastCommentsClient::GetUserPresenceStatusesResponse1](docs/GetUserPresenceStatusesResponse1.md) - - [FastCommentsClient::GetUserReactsPublicResponse](docs/GetUserReactsPublicResponse.md) - [FastCommentsClient::GetUserResponse](docs/GetUserResponse.md) - - [FastCommentsClient::GetUserResponse1](docs/GetUserResponse1.md) - [FastCommentsClient::GetUserTrustFactorResponse](docs/GetUserTrustFactorResponse.md) - - [FastCommentsClient::GetUsersInfoResponse](docs/GetUsersInfoResponse.md) - [FastCommentsClient::GetV1PageLikes](docs/GetV1PageLikes.md) - - [FastCommentsClient::GetV1PageLikesResponse](docs/GetV1PageLikesResponse.md) - [FastCommentsClient::GetV2PageReactUsersResponse](docs/GetV2PageReactUsersResponse.md) - - [FastCommentsClient::GetV2PageReactUsersResponse1](docs/GetV2PageReactUsersResponse1.md) - [FastCommentsClient::GetV2PageReacts](docs/GetV2PageReacts.md) - - [FastCommentsClient::GetV2PageReactsResponse](docs/GetV2PageReactsResponse.md) - [FastCommentsClient::GetVotesForUserResponse](docs/GetVotesForUserResponse.md) - - [FastCommentsClient::GetVotesForUserResponse1](docs/GetVotesForUserResponse1.md) - [FastCommentsClient::GetVotesResponse](docs/GetVotesResponse.md) - - [FastCommentsClient::GetVotesResponse1](docs/GetVotesResponse1.md) - [FastCommentsClient::GifGetLargeResponse](docs/GifGetLargeResponse.md) - [FastCommentsClient::GifRating](docs/GifRating.md) - [FastCommentsClient::GifSearchInternalError](docs/GifSearchInternalError.md) @@ -646,7 +520,6 @@ Class | Method | HTTP request | Description - [FastCommentsClient::LiveEvent](docs/LiveEvent.md) - [FastCommentsClient::LiveEventExtraInfo](docs/LiveEventExtraInfo.md) - [FastCommentsClient::LiveEventType](docs/LiveEventType.md) - - [FastCommentsClient::LockCommentResponse](docs/LockCommentResponse.md) - [FastCommentsClient::MediaAsset](docs/MediaAsset.md) - [FastCommentsClient::MentionAutoCompleteMode](docs/MentionAutoCompleteMode.md) - [FastCommentsClient::MetaItem](docs/MetaItem.md) @@ -680,26 +553,10 @@ Class | Method | HTTP request | Description - [FastCommentsClient::PagesSortBy](docs/PagesSortBy.md) - [FastCommentsClient::PatchDomainConfigParams](docs/PatchDomainConfigParams.md) - [FastCommentsClient::PatchDomainConfigResponse](docs/PatchDomainConfigResponse.md) - - [FastCommentsClient::PatchHashTagResponse](docs/PatchHashTagResponse.md) - [FastCommentsClient::PatchPageAPIResponse](docs/PatchPageAPIResponse.md) - [FastCommentsClient::PatchSSOUserAPIResponse](docs/PatchSSOUserAPIResponse.md) - [FastCommentsClient::PendingCommentToSyncOutbound](docs/PendingCommentToSyncOutbound.md) - - [FastCommentsClient::PinCommentResponse](docs/PinCommentResponse.md) - - [FastCommentsClient::PostAdjustCommentVotesResponse](docs/PostAdjustCommentVotesResponse.md) - - [FastCommentsClient::PostApiExportResponse](docs/PostApiExportResponse.md) - - [FastCommentsClient::PostBanUserFromCommentResponse](docs/PostBanUserFromCommentResponse.md) - - [FastCommentsClient::PostBanUserUndoResponse](docs/PostBanUserUndoResponse.md) - - [FastCommentsClient::PostBulkPreBanSummaryResponse](docs/PostBulkPreBanSummaryResponse.md) - - [FastCommentsClient::PostCommentsByIdsResponse](docs/PostCommentsByIdsResponse.md) - - [FastCommentsClient::PostFlagCommentResponse](docs/PostFlagCommentResponse.md) - [FastCommentsClient::PostRemoveCommentResponse](docs/PostRemoveCommentResponse.md) - - [FastCommentsClient::PostRestoreDeletedCommentResponse](docs/PostRestoreDeletedCommentResponse.md) - - [FastCommentsClient::PostSetCommentApprovalStatusResponse](docs/PostSetCommentApprovalStatusResponse.md) - - [FastCommentsClient::PostSetCommentReviewStatusResponse](docs/PostSetCommentReviewStatusResponse.md) - - [FastCommentsClient::PostSetCommentSpamStatusResponse](docs/PostSetCommentSpamStatusResponse.md) - - [FastCommentsClient::PostSetCommentTextResponse](docs/PostSetCommentTextResponse.md) - - [FastCommentsClient::PostUnFlagCommentResponse](docs/PostUnFlagCommentResponse.md) - - [FastCommentsClient::PostVoteResponse](docs/PostVoteResponse.md) - [FastCommentsClient::PreBanSummary](docs/PreBanSummary.md) - [FastCommentsClient::PubSubComment](docs/PubSubComment.md) - [FastCommentsClient::PubSubCommentBase](docs/PubSubCommentBase.md) @@ -713,11 +570,7 @@ Class | Method | HTTP request | Description - [FastCommentsClient::PublicFeedPostsResponse](docs/PublicFeedPostsResponse.md) - [FastCommentsClient::PublicPage](docs/PublicPage.md) - [FastCommentsClient::PublicVote](docs/PublicVote.md) - - [FastCommentsClient::PutAwardBadgeResponse](docs/PutAwardBadgeResponse.md) - - [FastCommentsClient::PutCloseThreadResponse](docs/PutCloseThreadResponse.md) - [FastCommentsClient::PutDomainConfigResponse](docs/PutDomainConfigResponse.md) - - [FastCommentsClient::PutRemoveBadgeResponse](docs/PutRemoveBadgeResponse.md) - - [FastCommentsClient::PutReopenThreadResponse](docs/PutReopenThreadResponse.md) - [FastCommentsClient::PutSSOUserAPIResponse](docs/PutSSOUserAPIResponse.md) - [FastCommentsClient::QueryPredicate](docs/QueryPredicate.md) - [FastCommentsClient::QueryPredicateValue](docs/QueryPredicateValue.md) @@ -730,42 +583,30 @@ Class | Method | HTTP request | Description - [FastCommentsClient::QuestionSubQuestionVisibility](docs/QuestionSubQuestionVisibility.md) - [FastCommentsClient::QuestionWhenSave](docs/QuestionWhenSave.md) - [FastCommentsClient::ReactBodyParams](docs/ReactBodyParams.md) - - [FastCommentsClient::ReactFeedPostPublicResponse](docs/ReactFeedPostPublicResponse.md) - [FastCommentsClient::ReactFeedPostResponse](docs/ReactFeedPostResponse.md) - [FastCommentsClient::RecordStringBeforeStringOrNullAfterStringOrNullValue](docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md) - [FastCommentsClient::RemoveCommentActionResponse](docs/RemoveCommentActionResponse.md) - [FastCommentsClient::RemoveUserBadgeResponse](docs/RemoveUserBadgeResponse.md) - [FastCommentsClient::RenderEmailTemplateBody](docs/RenderEmailTemplateBody.md) - [FastCommentsClient::RenderEmailTemplateResponse](docs/RenderEmailTemplateResponse.md) - - [FastCommentsClient::RenderEmailTemplateResponse1](docs/RenderEmailTemplateResponse1.md) - [FastCommentsClient::RenderableUserNotification](docs/RenderableUserNotification.md) - [FastCommentsClient::RepeatCommentCheckIgnoredReason](docs/RepeatCommentCheckIgnoredReason.md) - [FastCommentsClient::RepeatCommentHandlingAction](docs/RepeatCommentHandlingAction.md) - [FastCommentsClient::ReplaceTenantPackageBody](docs/ReplaceTenantPackageBody.md) - - [FastCommentsClient::ReplaceTenantPackageResponse](docs/ReplaceTenantPackageResponse.md) - [FastCommentsClient::ReplaceTenantUserBody](docs/ReplaceTenantUserBody.md) - - [FastCommentsClient::ReplaceTenantUserResponse](docs/ReplaceTenantUserResponse.md) - - [FastCommentsClient::ResetUserNotificationCountResponse](docs/ResetUserNotificationCountResponse.md) - [FastCommentsClient::ResetUserNotificationsResponse](docs/ResetUserNotificationsResponse.md) - - [FastCommentsClient::ResetUserNotificationsResponse1](docs/ResetUserNotificationsResponse1.md) - [FastCommentsClient::SORTDIR](docs/SORTDIR.md) - [FastCommentsClient::SSOSecurityLevel](docs/SSOSecurityLevel.md) - - [FastCommentsClient::SaveCommentResponse](docs/SaveCommentResponse.md) - [FastCommentsClient::SaveCommentResponseOptimized](docs/SaveCommentResponseOptimized.md) - [FastCommentsClient::SaveCommentsBulkResponse](docs/SaveCommentsBulkResponse.md) - [FastCommentsClient::SaveCommentsResponseWithPresence](docs/SaveCommentsResponseWithPresence.md) - [FastCommentsClient::SearchUsersResponse](docs/SearchUsersResponse.md) - - [FastCommentsClient::SearchUsersResponse1](docs/SearchUsersResponse1.md) - [FastCommentsClient::SearchUsersResult](docs/SearchUsersResult.md) - [FastCommentsClient::SearchUsersSectionedResponse](docs/SearchUsersSectionedResponse.md) - - [FastCommentsClient::SendInviteResponse](docs/SendInviteResponse.md) - - [FastCommentsClient::SendLoginLinkResponse](docs/SendLoginLinkResponse.md) - [FastCommentsClient::SetCommentApprovedResponse](docs/SetCommentApprovedResponse.md) - [FastCommentsClient::SetCommentTextParams](docs/SetCommentTextParams.md) - [FastCommentsClient::SetCommentTextResponse](docs/SetCommentTextResponse.md) - - [FastCommentsClient::SetCommentTextResponse1](docs/SetCommentTextResponse1.md) - [FastCommentsClient::SetCommentTextResult](docs/SetCommentTextResult.md) - - [FastCommentsClient::SetTrustFactorResponse](docs/SetTrustFactorResponse.md) - [FastCommentsClient::SetUserTrustFactorResponse](docs/SetUserTrustFactorResponse.md) - [FastCommentsClient::SizePreset](docs/SizePreset.md) - [FastCommentsClient::SortDirections](docs/SortDirections.md) @@ -774,43 +615,26 @@ Class | Method | HTTP request | Description - [FastCommentsClient::TenantBadge](docs/TenantBadge.md) - [FastCommentsClient::TenantHashTag](docs/TenantHashTag.md) - [FastCommentsClient::TenantPackage](docs/TenantPackage.md) - - [FastCommentsClient::UnBlockCommentPublicResponse](docs/UnBlockCommentPublicResponse.md) - [FastCommentsClient::UnBlockFromCommentParams](docs/UnBlockFromCommentParams.md) - - [FastCommentsClient::UnBlockUserFromCommentResponse](docs/UnBlockUserFromCommentResponse.md) - - [FastCommentsClient::UnFlagCommentResponse](docs/UnFlagCommentResponse.md) - - [FastCommentsClient::UnLockCommentResponse](docs/UnLockCommentResponse.md) - - [FastCommentsClient::UnPinCommentResponse](docs/UnPinCommentResponse.md) - [FastCommentsClient::UnblockSuccess](docs/UnblockSuccess.md) - [FastCommentsClient::UpdatableCommentParams](docs/UpdatableCommentParams.md) - [FastCommentsClient::UpdateAPIPageData](docs/UpdateAPIPageData.md) - [FastCommentsClient::UpdateAPISSOUserData](docs/UpdateAPISSOUserData.md) - [FastCommentsClient::UpdateAPIUserSubscriptionData](docs/UpdateAPIUserSubscriptionData.md) - - [FastCommentsClient::UpdateCommentResponse](docs/UpdateCommentResponse.md) - [FastCommentsClient::UpdateDomainConfigParams](docs/UpdateDomainConfigParams.md) - [FastCommentsClient::UpdateEmailTemplateBody](docs/UpdateEmailTemplateBody.md) - - [FastCommentsClient::UpdateEmailTemplateResponse](docs/UpdateEmailTemplateResponse.md) - [FastCommentsClient::UpdateFeedPostParams](docs/UpdateFeedPostParams.md) - - [FastCommentsClient::UpdateFeedPostPublicResponse](docs/UpdateFeedPostPublicResponse.md) - - [FastCommentsClient::UpdateFeedPostResponse](docs/UpdateFeedPostResponse.md) - [FastCommentsClient::UpdateHashTagBody](docs/UpdateHashTagBody.md) - [FastCommentsClient::UpdateHashTagResponse](docs/UpdateHashTagResponse.md) - [FastCommentsClient::UpdateModeratorBody](docs/UpdateModeratorBody.md) - - [FastCommentsClient::UpdateModeratorResponse](docs/UpdateModeratorResponse.md) - [FastCommentsClient::UpdateNotificationBody](docs/UpdateNotificationBody.md) - - [FastCommentsClient::UpdateNotificationResponse](docs/UpdateNotificationResponse.md) - [FastCommentsClient::UpdateQuestionConfigBody](docs/UpdateQuestionConfigBody.md) - - [FastCommentsClient::UpdateQuestionConfigResponse](docs/UpdateQuestionConfigResponse.md) - [FastCommentsClient::UpdateQuestionResultBody](docs/UpdateQuestionResultBody.md) - - [FastCommentsClient::UpdateQuestionResultResponse](docs/UpdateQuestionResultResponse.md) - [FastCommentsClient::UpdateSubscriptionAPIResponse](docs/UpdateSubscriptionAPIResponse.md) - [FastCommentsClient::UpdateTenantBody](docs/UpdateTenantBody.md) - [FastCommentsClient::UpdateTenantPackageBody](docs/UpdateTenantPackageBody.md) - - [FastCommentsClient::UpdateTenantPackageResponse](docs/UpdateTenantPackageResponse.md) - - [FastCommentsClient::UpdateTenantResponse](docs/UpdateTenantResponse.md) - [FastCommentsClient::UpdateTenantUserBody](docs/UpdateTenantUserBody.md) - - [FastCommentsClient::UpdateTenantUserResponse](docs/UpdateTenantUserResponse.md) - [FastCommentsClient::UpdateUserBadgeParams](docs/UpdateUserBadgeParams.md) - - [FastCommentsClient::UpdateUserBadgeResponse](docs/UpdateUserBadgeResponse.md) - [FastCommentsClient::UpdateUserNotificationCommentSubscriptionStatusResponse](docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md) - [FastCommentsClient::UpdateUserNotificationPageSubscriptionStatusResponse](docs/UpdateUserNotificationPageSubscriptionStatusResponse.md) - [FastCommentsClient::UpdateUserNotificationStatusResponse](docs/UpdateUserNotificationStatusResponse.md) @@ -829,7 +653,6 @@ Class | Method | HTTP request | Description - [FastCommentsClient::UserSessionInfo](docs/UserSessionInfo.md) - [FastCommentsClient::UsersListLocation](docs/UsersListLocation.md) - [FastCommentsClient::VoteBodyParams](docs/VoteBodyParams.md) - - [FastCommentsClient::VoteCommentResponse](docs/VoteCommentResponse.md) - [FastCommentsClient::VoteDeleteResponse](docs/VoteDeleteResponse.md) - [FastCommentsClient::VoteResponse](docs/VoteResponse.md) - [FastCommentsClient::VoteResponseUser](docs/VoteResponseUser.md) diff --git a/client/docs/AddHashTagResponse.md b/client/docs/AddHashTagResponse.md deleted file mode 100644 index b5f7d8e..0000000 --- a/client/docs/AddHashTagResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::AddHashTagResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **hash_tag** | [**TenantHashTag**](TenantHashTag.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::AddHashTagResponse.new( - status: null, - hash_tag: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/AddHashTagsBulkResponse.md b/client/docs/AddHashTagsBulkResponse.md deleted file mode 100644 index aae7216..0000000 --- a/client/docs/AddHashTagsBulkResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::AddHashTagsBulkResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **results** | [**Array<BulkCreateHashTagsResponseResultsInner>**](BulkCreateHashTagsResponseResultsInner.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::AddHashTagsBulkResponse.new( - status: null, - results: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/AggregateQuestionResultsResponse1.md b/client/docs/AggregateQuestionResultsResponse1.md deleted file mode 100644 index 663dcb5..0000000 --- a/client/docs/AggregateQuestionResultsResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::AggregateQuestionResultsResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **data** | [**QuestionResultAggregationOverall**](QuestionResultAggregationOverall.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::AggregateQuestionResultsResponse1.new( - status: null, - data: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/BlockFromCommentPublicResponse.md b/client/docs/BlockFromCommentPublicResponse.md deleted file mode 100644 index af133f6..0000000 --- a/client/docs/BlockFromCommentPublicResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::BlockFromCommentPublicResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **comment_statuses** | **Hash<String, Boolean>** | Construct a type with a set of properties K of type T | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::BlockFromCommentPublicResponse.new( - status: null, - comment_statuses: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/BlockUserFromCommentResponse.md b/client/docs/BlockUserFromCommentResponse.md deleted file mode 100644 index f748566..0000000 --- a/client/docs/BlockUserFromCommentResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::BlockUserFromCommentResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **comment_statuses** | **Hash<String, Boolean>** | Construct a type with a set of properties K of type T | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::BlockUserFromCommentResponse.new( - status: null, - comment_statuses: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/BulkAggregateQuestionResultsResponse1.md b/client/docs/BulkAggregateQuestionResultsResponse1.md deleted file mode 100644 index df695fc..0000000 --- a/client/docs/BulkAggregateQuestionResultsResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::BulkAggregateQuestionResultsResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **data** | [**Hash<String, QuestionResultAggregationOverall>**](QuestionResultAggregationOverall.md) | Construct a type with a set of properties K of type T | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::BulkAggregateQuestionResultsResponse1.new( - status: null, - data: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/ChangeTicketStateResponse1.md b/client/docs/ChangeTicketStateResponse1.md deleted file mode 100644 index c74e5ca..0000000 --- a/client/docs/ChangeTicketStateResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::ChangeTicketStateResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **ticket** | [**APITicket**](APITicket.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::ChangeTicketStateResponse1.new( - status: null, - ticket: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/CheckedCommentsForBlockedResponse.md b/client/docs/CheckedCommentsForBlockedResponse.md deleted file mode 100644 index 9ff4cd8..0000000 --- a/client/docs/CheckedCommentsForBlockedResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::CheckedCommentsForBlockedResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **comment_statuses** | **Hash<String, Boolean>** | Construct a type with a set of properties K of type T | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::CheckedCommentsForBlockedResponse.new( - comment_statuses: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/CombineCommentsWithQuestionResultsResponse.md b/client/docs/CombineCommentsWithQuestionResultsResponse.md deleted file mode 100644 index b7c104a..0000000 --- a/client/docs/CombineCommentsWithQuestionResultsResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::CombineCommentsWithQuestionResultsResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **data** | [**FindCommentsByRangeResponse**](FindCommentsByRangeResponse.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::CombineCommentsWithQuestionResultsResponse.new( - status: null, - data: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/CreateCommentPublicResponse.md b/client/docs/CreateCommentPublicResponse.md deleted file mode 100644 index 9ef16af..0000000 --- a/client/docs/CreateCommentPublicResponse.md +++ /dev/null @@ -1,40 +0,0 @@ -# FastCommentsClient::CreateCommentPublicResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **comment** | [**PublicComment**](PublicComment.md) | | [optional] | -| **user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] | -| **module_data** | **Hash<String, Object>** | Construct a type with a set of properties K of type T | [optional] | -| **user_id_ws** | **String** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::CreateCommentPublicResponse.new( - status: null, - comment: null, - user: null, - module_data: null, - user_id_ws: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/CreateEmailTemplateResponse1.md b/client/docs/CreateEmailTemplateResponse1.md deleted file mode 100644 index 17f19fd..0000000 --- a/client/docs/CreateEmailTemplateResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::CreateEmailTemplateResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **email_template** | [**CustomEmailTemplate**](CustomEmailTemplate.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::CreateEmailTemplateResponse1.new( - status: null, - email_template: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/CreateFeedPostPublicResponse.md b/client/docs/CreateFeedPostPublicResponse.md deleted file mode 100644 index 28257d2..0000000 --- a/client/docs/CreateFeedPostPublicResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::CreateFeedPostPublicResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **feed_post** | [**FeedPost**](FeedPost.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::CreateFeedPostPublicResponse.new( - status: null, - feed_post: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/CreateFeedPostResponse1.md b/client/docs/CreateFeedPostResponse1.md deleted file mode 100644 index 3ccc4a1..0000000 --- a/client/docs/CreateFeedPostResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::CreateFeedPostResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **feed_post** | [**FeedPost**](FeedPost.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::CreateFeedPostResponse1.new( - status: null, - feed_post: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/CreateModeratorResponse1.md b/client/docs/CreateModeratorResponse1.md deleted file mode 100644 index 13d52ab..0000000 --- a/client/docs/CreateModeratorResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::CreateModeratorResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **moderator** | [**Moderator**](Moderator.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::CreateModeratorResponse1.new( - status: null, - moderator: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/CreateQuestionConfigResponse1.md b/client/docs/CreateQuestionConfigResponse1.md deleted file mode 100644 index 98b6726..0000000 --- a/client/docs/CreateQuestionConfigResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::CreateQuestionConfigResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **question_config** | [**QuestionConfig**](QuestionConfig.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::CreateQuestionConfigResponse1.new( - status: null, - question_config: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/CreateQuestionResultResponse1.md b/client/docs/CreateQuestionResultResponse1.md deleted file mode 100644 index 9da6820..0000000 --- a/client/docs/CreateQuestionResultResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::CreateQuestionResultResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **question_result** | [**QuestionResult**](QuestionResult.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::CreateQuestionResultResponse1.new( - status: null, - question_result: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/CreateTenantPackageResponse1.md b/client/docs/CreateTenantPackageResponse1.md deleted file mode 100644 index 7f048d5..0000000 --- a/client/docs/CreateTenantPackageResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::CreateTenantPackageResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **tenant_package** | [**TenantPackage**](TenantPackage.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::CreateTenantPackageResponse1.new( - status: null, - tenant_package: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/CreateTenantResponse1.md b/client/docs/CreateTenantResponse1.md deleted file mode 100644 index 77b8eae..0000000 --- a/client/docs/CreateTenantResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::CreateTenantResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **tenant** | [**APITenant**](APITenant.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::CreateTenantResponse1.new( - status: null, - tenant: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/CreateTenantUserResponse1.md b/client/docs/CreateTenantUserResponse1.md deleted file mode 100644 index 9e5ab3c..0000000 --- a/client/docs/CreateTenantUserResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::CreateTenantUserResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **tenant_user** | [**User**](User.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::CreateTenantUserResponse1.new( - status: null, - tenant_user: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/CreateTicketResponse1.md b/client/docs/CreateTicketResponse1.md deleted file mode 100644 index effa241..0000000 --- a/client/docs/CreateTicketResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::CreateTicketResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **ticket** | [**APITicket**](APITicket.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::CreateTicketResponse1.new( - status: null, - ticket: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/CreateUserBadgeResponse.md b/client/docs/CreateUserBadgeResponse.md deleted file mode 100644 index 2faa505..0000000 --- a/client/docs/CreateUserBadgeResponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# FastCommentsClient::CreateUserBadgeResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **user_badge** | [**UserBadge**](UserBadge.md) | | [optional] | -| **notes** | **Array<String>** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::CreateUserBadgeResponse.new( - status: null, - user_badge: null, - notes: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/CreateV1PageReactResponse.md b/client/docs/CreateV1PageReactResponse.md deleted file mode 100644 index 386bb07..0000000 --- a/client/docs/CreateV1PageReactResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::CreateV1PageReactResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **code** | **String** | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::CreateV1PageReactResponse.new( - code: null, - status: null, - reason: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/CreateV2PageReactResponse.md b/client/docs/CreateV2PageReactResponse.md deleted file mode 100644 index c499cce..0000000 --- a/client/docs/CreateV2PageReactResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::CreateV2PageReactResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **code** | **String** | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::CreateV2PageReactResponse.new( - code: null, - status: null, - reason: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/CreateVoteResponse.md b/client/docs/CreateVoteResponse.md deleted file mode 100644 index 9961a04..0000000 --- a/client/docs/CreateVoteResponse.md +++ /dev/null @@ -1,40 +0,0 @@ -# FastCommentsClient::CreateVoteResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **vote_id** | **String** | | [optional] | -| **is_verified** | **Boolean** | | [optional] | -| **user** | [**VoteResponseUser**](VoteResponseUser.md) | | [optional] | -| **edit_key** | **String** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::CreateVoteResponse.new( - status: null, - vote_id: null, - is_verified: null, - user: null, - edit_key: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/DefaultApi.md b/client/docs/DefaultApi.md index fecc64a..7b9d22b 100644 --- a/client/docs/DefaultApi.md +++ b/client/docs/DefaultApi.md @@ -193,7 +193,7 @@ end ## add_hash_tag -> add_hash_tag(opts) +> add_hash_tag(opts) @@ -229,7 +229,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> add_hash_tag_with_http_info(opts) +> , Integer, Hash)> add_hash_tag_with_http_info(opts) ```ruby begin @@ -237,7 +237,7 @@ begin data, status_code, headers = api_instance.add_hash_tag_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->add_hash_tag_with_http_info: #{e}" end @@ -252,7 +252,7 @@ end ### Return type -[**AddHashTagResponse**](AddHashTagResponse.md) +[**CreateHashTagResponse**](CreateHashTagResponse.md) ### Authorization @@ -266,7 +266,7 @@ end ## add_hash_tags_bulk -> add_hash_tags_bulk(opts) +> add_hash_tags_bulk(opts) @@ -302,7 +302,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> add_hash_tags_bulk_with_http_info(opts) +> , Integer, Hash)> add_hash_tags_bulk_with_http_info(opts) ```ruby begin @@ -310,7 +310,7 @@ begin data, status_code, headers = api_instance.add_hash_tags_bulk_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->add_hash_tags_bulk_with_http_info: #{e}" end @@ -325,7 +325,7 @@ end ### Return type -[**AddHashTagsBulkResponse**](AddHashTagsBulkResponse.md) +[**BulkCreateHashTagsResponse**](BulkCreateHashTagsResponse.md) ### Authorization @@ -560,7 +560,7 @@ end ## aggregate_question_results -> aggregate_question_results(tenant_id, opts) +> aggregate_question_results(tenant_id, opts) @@ -601,7 +601,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> aggregate_question_results_with_http_info(tenant_id, opts) +> , Integer, Hash)> aggregate_question_results_with_http_info(tenant_id, opts) ```ruby begin @@ -609,7 +609,7 @@ begin data, status_code, headers = api_instance.aggregate_question_results_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->aggregate_question_results_with_http_info: #{e}" end @@ -629,7 +629,7 @@ end ### Return type -[**AggregateQuestionResultsResponse1**](AggregateQuestionResultsResponse1.md) +[**AggregateQuestionResultsResponse**](AggregateQuestionResultsResponse.md) ### Authorization @@ -643,7 +643,7 @@ end ## block_user_from_comment -> block_user_from_comment(tenant_id, id, block_from_comment_params, opts) +> block_user_from_comment(tenant_id, id, block_from_comment_params, opts) @@ -682,7 +682,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> block_user_from_comment_with_http_info(tenant_id, id, block_from_comment_params, opts) +> , Integer, Hash)> block_user_from_comment_with_http_info(tenant_id, id, block_from_comment_params, opts) ```ruby begin @@ -690,7 +690,7 @@ begin data, status_code, headers = api_instance.block_user_from_comment_with_http_info(tenant_id, id, block_from_comment_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->block_user_from_comment_with_http_info: #{e}" end @@ -708,7 +708,7 @@ end ### Return type -[**BlockUserFromCommentResponse**](BlockUserFromCommentResponse.md) +[**BlockSuccess**](BlockSuccess.md) ### Authorization @@ -722,7 +722,7 @@ end ## bulk_aggregate_question_results -> bulk_aggregate_question_results(tenant_id, bulk_aggregate_question_results_request, opts) +> bulk_aggregate_question_results(tenant_id, bulk_aggregate_question_results_request, opts) @@ -759,7 +759,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> bulk_aggregate_question_results_with_http_info(tenant_id, bulk_aggregate_question_results_request, opts) +> , Integer, Hash)> bulk_aggregate_question_results_with_http_info(tenant_id, bulk_aggregate_question_results_request, opts) ```ruby begin @@ -767,7 +767,7 @@ begin data, status_code, headers = api_instance.bulk_aggregate_question_results_with_http_info(tenant_id, bulk_aggregate_question_results_request, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->bulk_aggregate_question_results_with_http_info: #{e}" end @@ -783,7 +783,7 @@ end ### Return type -[**BulkAggregateQuestionResultsResponse1**](BulkAggregateQuestionResultsResponse1.md) +[**BulkAggregateQuestionResultsResponse**](BulkAggregateQuestionResultsResponse.md) ### Authorization @@ -797,7 +797,7 @@ end ## change_ticket_state -> change_ticket_state(tenant_id, user_id, id, change_ticket_state_body) +> change_ticket_state(tenant_id, user_id, id, change_ticket_state_body) @@ -833,7 +833,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_state_body) +> , Integer, Hash)> change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_state_body) ```ruby begin @@ -841,7 +841,7 @@ begin data, status_code, headers = api_instance.change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_state_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->change_ticket_state_with_http_info: #{e}" end @@ -858,7 +858,7 @@ end ### Return type -[**ChangeTicketStateResponse1**](ChangeTicketStateResponse1.md) +[**ChangeTicketStateResponse**](ChangeTicketStateResponse.md) ### Authorization @@ -872,7 +872,7 @@ end ## combine_comments_with_question_results -> combine_comments_with_question_results(tenant_id, opts) +> combine_comments_with_question_results(tenant_id, opts) @@ -915,7 +915,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> combine_comments_with_question_results_with_http_info(tenant_id, opts) +> , Integer, Hash)> combine_comments_with_question_results_with_http_info(tenant_id, opts) ```ruby begin @@ -923,7 +923,7 @@ begin data, status_code, headers = api_instance.combine_comments_with_question_results_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->combine_comments_with_question_results_with_http_info: #{e}" end @@ -945,7 +945,7 @@ end ### Return type -[**CombineCommentsWithQuestionResultsResponse**](CombineCommentsWithQuestionResultsResponse.md) +[**CombineQuestionResultsWithCommentsResponse**](CombineQuestionResultsWithCommentsResponse.md) ### Authorization @@ -959,7 +959,7 @@ end ## create_email_template -> create_email_template(tenant_id, create_email_template_body) +> create_email_template(tenant_id, create_email_template_body) @@ -993,7 +993,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_email_template_with_http_info(tenant_id, create_email_template_body) +> , Integer, Hash)> create_email_template_with_http_info(tenant_id, create_email_template_body) ```ruby begin @@ -1001,7 +1001,7 @@ begin data, status_code, headers = api_instance.create_email_template_with_http_info(tenant_id, create_email_template_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_email_template_with_http_info: #{e}" end @@ -1016,7 +1016,7 @@ end ### Return type -[**CreateEmailTemplateResponse1**](CreateEmailTemplateResponse1.md) +[**CreateEmailTemplateResponse**](CreateEmailTemplateResponse.md) ### Authorization @@ -1030,7 +1030,7 @@ end ## create_feed_post -> create_feed_post(tenant_id, create_feed_post_params, opts) +> create_feed_post(tenant_id, create_feed_post_params, opts) @@ -1070,7 +1070,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_feed_post_with_http_info(tenant_id, create_feed_post_params, opts) +> , Integer, Hash)> create_feed_post_with_http_info(tenant_id, create_feed_post_params, opts) ```ruby begin @@ -1078,7 +1078,7 @@ begin data, status_code, headers = api_instance.create_feed_post_with_http_info(tenant_id, create_feed_post_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_feed_post_with_http_info: #{e}" end @@ -1097,7 +1097,7 @@ end ### Return type -[**CreateFeedPostResponse1**](CreateFeedPostResponse1.md) +[**CreateFeedPostsResponse**](CreateFeedPostsResponse.md) ### Authorization @@ -1111,7 +1111,7 @@ end ## create_moderator -> create_moderator(tenant_id, create_moderator_body) +> create_moderator(tenant_id, create_moderator_body) @@ -1145,7 +1145,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_moderator_with_http_info(tenant_id, create_moderator_body) +> , Integer, Hash)> create_moderator_with_http_info(tenant_id, create_moderator_body) ```ruby begin @@ -1153,7 +1153,7 @@ begin data, status_code, headers = api_instance.create_moderator_with_http_info(tenant_id, create_moderator_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_moderator_with_http_info: #{e}" end @@ -1168,7 +1168,7 @@ end ### Return type -[**CreateModeratorResponse1**](CreateModeratorResponse1.md) +[**CreateModeratorResponse**](CreateModeratorResponse.md) ### Authorization @@ -1182,7 +1182,7 @@ end ## create_question_config -> create_question_config(tenant_id, create_question_config_body) +> create_question_config(tenant_id, create_question_config_body) @@ -1216,7 +1216,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_question_config_with_http_info(tenant_id, create_question_config_body) +> , Integer, Hash)> create_question_config_with_http_info(tenant_id, create_question_config_body) ```ruby begin @@ -1224,7 +1224,7 @@ begin data, status_code, headers = api_instance.create_question_config_with_http_info(tenant_id, create_question_config_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_question_config_with_http_info: #{e}" end @@ -1239,7 +1239,7 @@ end ### Return type -[**CreateQuestionConfigResponse1**](CreateQuestionConfigResponse1.md) +[**CreateQuestionConfigResponse**](CreateQuestionConfigResponse.md) ### Authorization @@ -1253,7 +1253,7 @@ end ## create_question_result -> create_question_result(tenant_id, create_question_result_body) +> create_question_result(tenant_id, create_question_result_body) @@ -1287,7 +1287,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_question_result_with_http_info(tenant_id, create_question_result_body) +> , Integer, Hash)> create_question_result_with_http_info(tenant_id, create_question_result_body) ```ruby begin @@ -1295,7 +1295,7 @@ begin data, status_code, headers = api_instance.create_question_result_with_http_info(tenant_id, create_question_result_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_question_result_with_http_info: #{e}" end @@ -1310,7 +1310,7 @@ end ### Return type -[**CreateQuestionResultResponse1**](CreateQuestionResultResponse1.md) +[**CreateQuestionResultResponse**](CreateQuestionResultResponse.md) ### Authorization @@ -1395,7 +1395,7 @@ end ## create_tenant -> create_tenant(tenant_id, create_tenant_body) +> create_tenant(tenant_id, create_tenant_body) @@ -1429,7 +1429,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_tenant_with_http_info(tenant_id, create_tenant_body) +> , Integer, Hash)> create_tenant_with_http_info(tenant_id, create_tenant_body) ```ruby begin @@ -1437,7 +1437,7 @@ begin data, status_code, headers = api_instance.create_tenant_with_http_info(tenant_id, create_tenant_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_tenant_with_http_info: #{e}" end @@ -1452,7 +1452,7 @@ end ### Return type -[**CreateTenantResponse1**](CreateTenantResponse1.md) +[**CreateTenantResponse**](CreateTenantResponse.md) ### Authorization @@ -1466,7 +1466,7 @@ end ## create_tenant_package -> create_tenant_package(tenant_id, create_tenant_package_body) +> create_tenant_package(tenant_id, create_tenant_package_body) @@ -1500,7 +1500,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_tenant_package_with_http_info(tenant_id, create_tenant_package_body) +> , Integer, Hash)> create_tenant_package_with_http_info(tenant_id, create_tenant_package_body) ```ruby begin @@ -1508,7 +1508,7 @@ begin data, status_code, headers = api_instance.create_tenant_package_with_http_info(tenant_id, create_tenant_package_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_tenant_package_with_http_info: #{e}" end @@ -1523,7 +1523,7 @@ end ### Return type -[**CreateTenantPackageResponse1**](CreateTenantPackageResponse1.md) +[**CreateTenantPackageResponse**](CreateTenantPackageResponse.md) ### Authorization @@ -1537,7 +1537,7 @@ end ## create_tenant_user -> create_tenant_user(tenant_id, create_tenant_user_body) +> create_tenant_user(tenant_id, create_tenant_user_body) @@ -1571,7 +1571,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_tenant_user_with_http_info(tenant_id, create_tenant_user_body) +> , Integer, Hash)> create_tenant_user_with_http_info(tenant_id, create_tenant_user_body) ```ruby begin @@ -1579,7 +1579,7 @@ begin data, status_code, headers = api_instance.create_tenant_user_with_http_info(tenant_id, create_tenant_user_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_tenant_user_with_http_info: #{e}" end @@ -1594,7 +1594,7 @@ end ### Return type -[**CreateTenantUserResponse1**](CreateTenantUserResponse1.md) +[**CreateTenantUserResponse**](CreateTenantUserResponse.md) ### Authorization @@ -1608,7 +1608,7 @@ end ## create_ticket -> create_ticket(tenant_id, user_id, create_ticket_body) +> create_ticket(tenant_id, user_id, create_ticket_body) @@ -1643,7 +1643,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_ticket_with_http_info(tenant_id, user_id, create_ticket_body) +> , Integer, Hash)> create_ticket_with_http_info(tenant_id, user_id, create_ticket_body) ```ruby begin @@ -1651,7 +1651,7 @@ begin data, status_code, headers = api_instance.create_ticket_with_http_info(tenant_id, user_id, create_ticket_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_ticket_with_http_info: #{e}" end @@ -1667,7 +1667,7 @@ end ### Return type -[**CreateTicketResponse1**](CreateTicketResponse1.md) +[**CreateTicketResponse**](CreateTicketResponse.md) ### Authorization @@ -1681,7 +1681,7 @@ end ## create_user_badge -> create_user_badge(tenant_id, create_user_badge_params) +> create_user_badge(tenant_id, create_user_badge_params) @@ -1715,7 +1715,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_user_badge_with_http_info(tenant_id, create_user_badge_params) +> , Integer, Hash)> create_user_badge_with_http_info(tenant_id, create_user_badge_params) ```ruby begin @@ -1723,7 +1723,7 @@ begin data, status_code, headers = api_instance.create_user_badge_with_http_info(tenant_id, create_user_badge_params) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_user_badge_with_http_info: #{e}" end @@ -1738,7 +1738,7 @@ end ### Return type -[**CreateUserBadgeResponse**](CreateUserBadgeResponse.md) +[**APICreateUserBadgeResponse**](APICreateUserBadgeResponse.md) ### Authorization @@ -1752,7 +1752,7 @@ end ## create_vote -> create_vote(tenant_id, comment_id, direction, opts) +> create_vote(tenant_id, comment_id, direction, opts) @@ -1791,7 +1791,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_vote_with_http_info(tenant_id, comment_id, direction, opts) +> , Integer, Hash)> create_vote_with_http_info(tenant_id, comment_id, direction, opts) ```ruby begin @@ -1799,7 +1799,7 @@ begin data, status_code, headers = api_instance.create_vote_with_http_info(tenant_id, comment_id, direction, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_vote_with_http_info: #{e}" end @@ -1817,7 +1817,7 @@ end ### Return type -[**CreateVoteResponse**](CreateVoteResponse.md) +[**VoteResponse**](VoteResponse.md) ### Authorization @@ -1831,7 +1831,7 @@ end ## delete_comment -> delete_comment(tenant_id, id, opts) +> delete_comment(tenant_id, id, opts) @@ -1869,7 +1869,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_comment_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> delete_comment_with_http_info(tenant_id, id, opts) ```ruby begin @@ -1877,7 +1877,7 @@ begin data, status_code, headers = api_instance.delete_comment_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_comment_with_http_info: #{e}" end @@ -1894,7 +1894,7 @@ end ### Return type -[**DeleteCommentResponse**](DeleteCommentResponse.md) +[**DeleteCommentResult**](DeleteCommentResult.md) ### Authorization @@ -1979,7 +1979,7 @@ end ## delete_email_template -> delete_email_template(tenant_id, id) +> delete_email_template(tenant_id, id) @@ -2013,7 +2013,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_email_template_with_http_info(tenant_id, id) +> , Integer, Hash)> delete_email_template_with_http_info(tenant_id, id) ```ruby begin @@ -2021,7 +2021,7 @@ begin data, status_code, headers = api_instance.delete_email_template_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_email_template_with_http_info: #{e}" end @@ -2036,7 +2036,7 @@ end ### Return type -[**DeleteEmailTemplateResponse**](DeleteEmailTemplateResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2050,7 +2050,7 @@ end ## delete_email_template_render_error -> delete_email_template_render_error(tenant_id, id, error_id) +> delete_email_template_render_error(tenant_id, id, error_id) @@ -2085,7 +2085,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_email_template_render_error_with_http_info(tenant_id, id, error_id) +> , Integer, Hash)> delete_email_template_render_error_with_http_info(tenant_id, id, error_id) ```ruby begin @@ -2093,7 +2093,7 @@ begin data, status_code, headers = api_instance.delete_email_template_render_error_with_http_info(tenant_id, id, error_id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_email_template_render_error_with_http_info: #{e}" end @@ -2109,7 +2109,7 @@ end ### Return type -[**DeleteEmailTemplateRenderErrorResponse**](DeleteEmailTemplateRenderErrorResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2123,7 +2123,7 @@ end ## delete_hash_tag -> delete_hash_tag(tag, opts) +> delete_hash_tag(tag, opts) @@ -2160,7 +2160,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_hash_tag_with_http_info(tag, opts) +> , Integer, Hash)> delete_hash_tag_with_http_info(tag, opts) ```ruby begin @@ -2168,7 +2168,7 @@ begin data, status_code, headers = api_instance.delete_hash_tag_with_http_info(tag, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_hash_tag_with_http_info: #{e}" end @@ -2184,7 +2184,7 @@ end ### Return type -[**DeleteHashTagResponse**](DeleteHashTagResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2198,7 +2198,7 @@ end ## delete_moderator -> delete_moderator(tenant_id, id, opts) +> delete_moderator(tenant_id, id, opts) @@ -2235,7 +2235,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_moderator_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> delete_moderator_with_http_info(tenant_id, id, opts) ```ruby begin @@ -2243,7 +2243,7 @@ begin data, status_code, headers = api_instance.delete_moderator_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_moderator_with_http_info: #{e}" end @@ -2259,7 +2259,7 @@ end ### Return type -[**DeleteModeratorResponse**](DeleteModeratorResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2273,7 +2273,7 @@ end ## delete_notification_count -> delete_notification_count(tenant_id, id) +> delete_notification_count(tenant_id, id) @@ -2307,7 +2307,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_notification_count_with_http_info(tenant_id, id) +> , Integer, Hash)> delete_notification_count_with_http_info(tenant_id, id) ```ruby begin @@ -2315,7 +2315,7 @@ begin data, status_code, headers = api_instance.delete_notification_count_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_notification_count_with_http_info: #{e}" end @@ -2330,7 +2330,7 @@ end ### Return type -[**DeleteNotificationCountResponse**](DeleteNotificationCountResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2415,7 +2415,7 @@ end ## delete_pending_webhook_event -> delete_pending_webhook_event(tenant_id, id) +> delete_pending_webhook_event(tenant_id, id) @@ -2449,7 +2449,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_pending_webhook_event_with_http_info(tenant_id, id) +> , Integer, Hash)> delete_pending_webhook_event_with_http_info(tenant_id, id) ```ruby begin @@ -2457,7 +2457,7 @@ begin data, status_code, headers = api_instance.delete_pending_webhook_event_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_pending_webhook_event_with_http_info: #{e}" end @@ -2472,7 +2472,7 @@ end ### Return type -[**DeletePendingWebhookEventResponse**](DeletePendingWebhookEventResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2486,7 +2486,7 @@ end ## delete_question_config -> delete_question_config(tenant_id, id) +> delete_question_config(tenant_id, id) @@ -2520,7 +2520,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_question_config_with_http_info(tenant_id, id) +> , Integer, Hash)> delete_question_config_with_http_info(tenant_id, id) ```ruby begin @@ -2528,7 +2528,7 @@ begin data, status_code, headers = api_instance.delete_question_config_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_question_config_with_http_info: #{e}" end @@ -2543,7 +2543,7 @@ end ### Return type -[**DeleteQuestionConfigResponse**](DeleteQuestionConfigResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2557,7 +2557,7 @@ end ## delete_question_result -> delete_question_result(tenant_id, id) +> delete_question_result(tenant_id, id) @@ -2591,7 +2591,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_question_result_with_http_info(tenant_id, id) +> , Integer, Hash)> delete_question_result_with_http_info(tenant_id, id) ```ruby begin @@ -2599,7 +2599,7 @@ begin data, status_code, headers = api_instance.delete_question_result_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_question_result_with_http_info: #{e}" end @@ -2614,7 +2614,7 @@ end ### Return type -[**DeleteQuestionResultResponse**](DeleteQuestionResultResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2780,7 +2780,7 @@ end ## delete_tenant -> delete_tenant(tenant_id, id, opts) +> delete_tenant(tenant_id, id, opts) @@ -2817,7 +2817,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_tenant_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> delete_tenant_with_http_info(tenant_id, id, opts) ```ruby begin @@ -2825,7 +2825,7 @@ begin data, status_code, headers = api_instance.delete_tenant_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_tenant_with_http_info: #{e}" end @@ -2841,7 +2841,7 @@ end ### Return type -[**DeleteTenantResponse**](DeleteTenantResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2855,7 +2855,7 @@ end ## delete_tenant_package -> delete_tenant_package(tenant_id, id) +> delete_tenant_package(tenant_id, id) @@ -2889,7 +2889,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_tenant_package_with_http_info(tenant_id, id) +> , Integer, Hash)> delete_tenant_package_with_http_info(tenant_id, id) ```ruby begin @@ -2897,7 +2897,7 @@ begin data, status_code, headers = api_instance.delete_tenant_package_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_tenant_package_with_http_info: #{e}" end @@ -2912,7 +2912,7 @@ end ### Return type -[**DeleteTenantPackageResponse**](DeleteTenantPackageResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2926,7 +2926,7 @@ end ## delete_tenant_user -> delete_tenant_user(tenant_id, id, opts) +> delete_tenant_user(tenant_id, id, opts) @@ -2964,7 +2964,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_tenant_user_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> delete_tenant_user_with_http_info(tenant_id, id, opts) ```ruby begin @@ -2972,7 +2972,7 @@ begin data, status_code, headers = api_instance.delete_tenant_user_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_tenant_user_with_http_info: #{e}" end @@ -2989,7 +2989,7 @@ end ### Return type -[**DeleteTenantUserResponse**](DeleteTenantUserResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -3003,7 +3003,7 @@ end ## delete_user_badge -> delete_user_badge(tenant_id, id) +> delete_user_badge(tenant_id, id) @@ -3037,7 +3037,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_user_badge_with_http_info(tenant_id, id) +> , Integer, Hash)> delete_user_badge_with_http_info(tenant_id, id) ```ruby begin @@ -3045,7 +3045,7 @@ begin data, status_code, headers = api_instance.delete_user_badge_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_user_badge_with_http_info: #{e}" end @@ -3060,7 +3060,7 @@ end ### Return type -[**DeleteUserBadgeResponse**](DeleteUserBadgeResponse.md) +[**APIEmptySuccessResponse**](APIEmptySuccessResponse.md) ### Authorization @@ -3074,7 +3074,7 @@ end ## delete_vote -> delete_vote(tenant_id, id, opts) +> delete_vote(tenant_id, id, opts) @@ -3111,7 +3111,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_vote_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> delete_vote_with_http_info(tenant_id, id, opts) ```ruby begin @@ -3119,7 +3119,7 @@ begin data, status_code, headers = api_instance.delete_vote_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_vote_with_http_info: #{e}" end @@ -3135,7 +3135,7 @@ end ### Return type -[**DeleteVoteResponse**](DeleteVoteResponse.md) +[**VoteDeleteResponse**](VoteDeleteResponse.md) ### Authorization @@ -3149,7 +3149,7 @@ end ## flag_comment -> flag_comment(tenant_id, id, opts) +> flag_comment(tenant_id, id, opts) @@ -3187,7 +3187,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> flag_comment_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> flag_comment_with_http_info(tenant_id, id, opts) ```ruby begin @@ -3195,7 +3195,7 @@ begin data, status_code, headers = api_instance.flag_comment_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->flag_comment_with_http_info: #{e}" end @@ -3212,7 +3212,7 @@ end ### Return type -[**FlagCommentResponse1**](FlagCommentResponse1.md) +[**FlagCommentResponse**](FlagCommentResponse.md) ### Authorization @@ -3226,7 +3226,7 @@ end ## get_audit_logs -> get_audit_logs(tenant_id, opts) +> get_audit_logs(tenant_id, opts) @@ -3266,7 +3266,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_audit_logs_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_audit_logs_with_http_info(tenant_id, opts) ```ruby begin @@ -3274,7 +3274,7 @@ begin data, status_code, headers = api_instance.get_audit_logs_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_audit_logs_with_http_info: #{e}" end @@ -3293,7 +3293,7 @@ end ### Return type -[**GetAuditLogsResponse1**](GetAuditLogsResponse1.md) +[**GetAuditLogsResponse**](GetAuditLogsResponse.md) ### Authorization @@ -3307,7 +3307,7 @@ end ## get_cached_notification_count -> get_cached_notification_count(tenant_id, id) +> get_cached_notification_count(tenant_id, id) @@ -3341,7 +3341,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_cached_notification_count_with_http_info(tenant_id, id) +> , Integer, Hash)> get_cached_notification_count_with_http_info(tenant_id, id) ```ruby begin @@ -3349,7 +3349,7 @@ begin data, status_code, headers = api_instance.get_cached_notification_count_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_cached_notification_count_with_http_info: #{e}" end @@ -3364,7 +3364,7 @@ end ### Return type -[**GetCachedNotificationCountResponse1**](GetCachedNotificationCountResponse1.md) +[**GetCachedNotificationCountResponse**](GetCachedNotificationCountResponse.md) ### Authorization @@ -3378,7 +3378,7 @@ end ## get_comment -> get_comment(tenant_id, id) +> get_comment(tenant_id, id) @@ -3412,7 +3412,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comment_with_http_info(tenant_id, id) +> , Integer, Hash)> get_comment_with_http_info(tenant_id, id) ```ruby begin @@ -3420,7 +3420,7 @@ begin data, status_code, headers = api_instance.get_comment_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_comment_with_http_info: #{e}" end @@ -3435,7 +3435,7 @@ end ### Return type -[**GetCommentResponse**](GetCommentResponse.md) +[**APIGetCommentResponse**](APIGetCommentResponse.md) ### Authorization @@ -3449,7 +3449,7 @@ end ## get_comments -> get_comments(tenant_id, opts) +> get_comments(tenant_id, opts) @@ -3500,7 +3500,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comments_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_comments_with_http_info(tenant_id, opts) ```ruby begin @@ -3508,7 +3508,7 @@ begin data, status_code, headers = api_instance.get_comments_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_comments_with_http_info: #{e}" end @@ -3538,7 +3538,7 @@ end ### Return type -[**GetCommentsResponse**](GetCommentsResponse.md) +[**APIGetCommentsResponse**](APIGetCommentsResponse.md) ### Authorization @@ -3692,7 +3692,7 @@ end ## get_email_template -> get_email_template(tenant_id, id) +> get_email_template(tenant_id, id) @@ -3726,7 +3726,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_email_template_with_http_info(tenant_id, id) +> , Integer, Hash)> get_email_template_with_http_info(tenant_id, id) ```ruby begin @@ -3734,7 +3734,7 @@ begin data, status_code, headers = api_instance.get_email_template_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_email_template_with_http_info: #{e}" end @@ -3749,7 +3749,7 @@ end ### Return type -[**GetEmailTemplateResponse1**](GetEmailTemplateResponse1.md) +[**GetEmailTemplateResponse**](GetEmailTemplateResponse.md) ### Authorization @@ -3763,7 +3763,7 @@ end ## get_email_template_definitions -> get_email_template_definitions(tenant_id) +> get_email_template_definitions(tenant_id) @@ -3796,7 +3796,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_email_template_definitions_with_http_info(tenant_id) +> , Integer, Hash)> get_email_template_definitions_with_http_info(tenant_id) ```ruby begin @@ -3804,7 +3804,7 @@ begin data, status_code, headers = api_instance.get_email_template_definitions_with_http_info(tenant_id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_email_template_definitions_with_http_info: #{e}" end @@ -3818,7 +3818,7 @@ end ### Return type -[**GetEmailTemplateDefinitionsResponse1**](GetEmailTemplateDefinitionsResponse1.md) +[**GetEmailTemplateDefinitionsResponse**](GetEmailTemplateDefinitionsResponse.md) ### Authorization @@ -3832,7 +3832,7 @@ end ## get_email_template_render_errors -> get_email_template_render_errors(tenant_id, id, opts) +> get_email_template_render_errors(tenant_id, id, opts) @@ -3869,7 +3869,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_email_template_render_errors_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> get_email_template_render_errors_with_http_info(tenant_id, id, opts) ```ruby begin @@ -3877,7 +3877,7 @@ begin data, status_code, headers = api_instance.get_email_template_render_errors_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_email_template_render_errors_with_http_info: #{e}" end @@ -3893,7 +3893,7 @@ end ### Return type -[**GetEmailTemplateRenderErrorsResponse1**](GetEmailTemplateRenderErrorsResponse1.md) +[**GetEmailTemplateRenderErrorsResponse**](GetEmailTemplateRenderErrorsResponse.md) ### Authorization @@ -3907,7 +3907,7 @@ end ## get_email_templates -> get_email_templates(tenant_id, opts) +> get_email_templates(tenant_id, opts) @@ -3943,7 +3943,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_email_templates_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_email_templates_with_http_info(tenant_id, opts) ```ruby begin @@ -3951,7 +3951,7 @@ begin data, status_code, headers = api_instance.get_email_templates_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_email_templates_with_http_info: #{e}" end @@ -3966,7 +3966,7 @@ end ### Return type -[**GetEmailTemplatesResponse1**](GetEmailTemplatesResponse1.md) +[**GetEmailTemplatesResponse**](GetEmailTemplatesResponse.md) ### Authorization @@ -3980,7 +3980,7 @@ end ## get_feed_posts -> get_feed_posts(tenant_id, opts) +> get_feed_posts(tenant_id, opts) @@ -4020,7 +4020,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_feed_posts_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_feed_posts_with_http_info(tenant_id, opts) ```ruby begin @@ -4028,7 +4028,7 @@ begin data, status_code, headers = api_instance.get_feed_posts_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_feed_posts_with_http_info: #{e}" end @@ -4045,7 +4045,7 @@ end ### Return type -[**GetFeedPostsResponse1**](GetFeedPostsResponse1.md) +[**GetFeedPostsResponse**](GetFeedPostsResponse.md) ### Authorization @@ -4059,7 +4059,7 @@ end ## get_hash_tags -> get_hash_tags(tenant_id, opts) +> get_hash_tags(tenant_id, opts) @@ -4095,7 +4095,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_hash_tags_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_hash_tags_with_http_info(tenant_id, opts) ```ruby begin @@ -4103,7 +4103,7 @@ begin data, status_code, headers = api_instance.get_hash_tags_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_hash_tags_with_http_info: #{e}" end @@ -4118,7 +4118,7 @@ end ### Return type -[**GetHashTagsResponse1**](GetHashTagsResponse1.md) +[**GetHashTagsResponse**](GetHashTagsResponse.md) ### Authorization @@ -4132,7 +4132,7 @@ end ## get_moderator -> get_moderator(tenant_id, id) +> get_moderator(tenant_id, id) @@ -4166,7 +4166,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_moderator_with_http_info(tenant_id, id) +> , Integer, Hash)> get_moderator_with_http_info(tenant_id, id) ```ruby begin @@ -4174,7 +4174,7 @@ begin data, status_code, headers = api_instance.get_moderator_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_moderator_with_http_info: #{e}" end @@ -4189,7 +4189,7 @@ end ### Return type -[**GetModeratorResponse1**](GetModeratorResponse1.md) +[**GetModeratorResponse**](GetModeratorResponse.md) ### Authorization @@ -4203,7 +4203,7 @@ end ## get_moderators -> get_moderators(tenant_id, opts) +> get_moderators(tenant_id, opts) @@ -4239,7 +4239,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_moderators_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_moderators_with_http_info(tenant_id, opts) ```ruby begin @@ -4247,7 +4247,7 @@ begin data, status_code, headers = api_instance.get_moderators_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_moderators_with_http_info: #{e}" end @@ -4262,7 +4262,7 @@ end ### Return type -[**GetModeratorsResponse1**](GetModeratorsResponse1.md) +[**GetModeratorsResponse**](GetModeratorsResponse.md) ### Authorization @@ -4276,7 +4276,7 @@ end ## get_notification_count -> get_notification_count(tenant_id, opts) +> get_notification_count(tenant_id, opts) @@ -4316,7 +4316,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_notification_count_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_notification_count_with_http_info(tenant_id, opts) ```ruby begin @@ -4324,7 +4324,7 @@ begin data, status_code, headers = api_instance.get_notification_count_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_notification_count_with_http_info: #{e}" end @@ -4343,7 +4343,7 @@ end ### Return type -[**GetNotificationCountResponse1**](GetNotificationCountResponse1.md) +[**GetNotificationCountResponse**](GetNotificationCountResponse.md) ### Authorization @@ -4357,7 +4357,7 @@ end ## get_notifications -> get_notifications(tenant_id, opts) +> get_notifications(tenant_id, opts) @@ -4398,7 +4398,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_notifications_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_notifications_with_http_info(tenant_id, opts) ```ruby begin @@ -4406,7 +4406,7 @@ begin data, status_code, headers = api_instance.get_notifications_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_notifications_with_http_info: #{e}" end @@ -4426,7 +4426,7 @@ end ### Return type -[**GetNotificationsResponse1**](GetNotificationsResponse1.md) +[**GetNotificationsResponse**](GetNotificationsResponse.md) ### Authorization @@ -4580,7 +4580,7 @@ end ## get_pending_webhook_event_count -> get_pending_webhook_event_count(tenant_id, opts) +> get_pending_webhook_event_count(tenant_id, opts) @@ -4621,7 +4621,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_pending_webhook_event_count_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_pending_webhook_event_count_with_http_info(tenant_id, opts) ```ruby begin @@ -4629,7 +4629,7 @@ begin data, status_code, headers = api_instance.get_pending_webhook_event_count_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_pending_webhook_event_count_with_http_info: #{e}" end @@ -4649,7 +4649,7 @@ end ### Return type -[**GetPendingWebhookEventCountResponse1**](GetPendingWebhookEventCountResponse1.md) +[**GetPendingWebhookEventCountResponse**](GetPendingWebhookEventCountResponse.md) ### Authorization @@ -4663,7 +4663,7 @@ end ## get_pending_webhook_events -> get_pending_webhook_events(tenant_id, opts) +> get_pending_webhook_events(tenant_id, opts) @@ -4705,7 +4705,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_pending_webhook_events_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_pending_webhook_events_with_http_info(tenant_id, opts) ```ruby begin @@ -4713,7 +4713,7 @@ begin data, status_code, headers = api_instance.get_pending_webhook_events_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_pending_webhook_events_with_http_info: #{e}" end @@ -4734,7 +4734,7 @@ end ### Return type -[**GetPendingWebhookEventsResponse1**](GetPendingWebhookEventsResponse1.md) +[**GetPendingWebhookEventsResponse**](GetPendingWebhookEventsResponse.md) ### Authorization @@ -4748,7 +4748,7 @@ end ## get_question_config -> get_question_config(tenant_id, id) +> get_question_config(tenant_id, id) @@ -4782,7 +4782,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_question_config_with_http_info(tenant_id, id) +> , Integer, Hash)> get_question_config_with_http_info(tenant_id, id) ```ruby begin @@ -4790,7 +4790,7 @@ begin data, status_code, headers = api_instance.get_question_config_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_question_config_with_http_info: #{e}" end @@ -4805,7 +4805,7 @@ end ### Return type -[**GetQuestionConfigResponse1**](GetQuestionConfigResponse1.md) +[**GetQuestionConfigResponse**](GetQuestionConfigResponse.md) ### Authorization @@ -4819,7 +4819,7 @@ end ## get_question_configs -> get_question_configs(tenant_id, opts) +> get_question_configs(tenant_id, opts) @@ -4855,7 +4855,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_question_configs_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_question_configs_with_http_info(tenant_id, opts) ```ruby begin @@ -4863,7 +4863,7 @@ begin data, status_code, headers = api_instance.get_question_configs_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_question_configs_with_http_info: #{e}" end @@ -4878,7 +4878,7 @@ end ### Return type -[**GetQuestionConfigsResponse1**](GetQuestionConfigsResponse1.md) +[**GetQuestionConfigsResponse**](GetQuestionConfigsResponse.md) ### Authorization @@ -4892,7 +4892,7 @@ end ## get_question_result -> get_question_result(tenant_id, id) +> get_question_result(tenant_id, id) @@ -4926,7 +4926,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_question_result_with_http_info(tenant_id, id) +> , Integer, Hash)> get_question_result_with_http_info(tenant_id, id) ```ruby begin @@ -4934,7 +4934,7 @@ begin data, status_code, headers = api_instance.get_question_result_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_question_result_with_http_info: #{e}" end @@ -4949,7 +4949,7 @@ end ### Return type -[**GetQuestionResultResponse1**](GetQuestionResultResponse1.md) +[**GetQuestionResultResponse**](GetQuestionResultResponse.md) ### Authorization @@ -4963,7 +4963,7 @@ end ## get_question_results -> get_question_results(tenant_id, opts) +> get_question_results(tenant_id, opts) @@ -5004,7 +5004,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_question_results_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_question_results_with_http_info(tenant_id, opts) ```ruby begin @@ -5012,7 +5012,7 @@ begin data, status_code, headers = api_instance.get_question_results_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_question_results_with_http_info: #{e}" end @@ -5032,7 +5032,7 @@ end ### Return type -[**GetQuestionResultsResponse1**](GetQuestionResultsResponse1.md) +[**GetQuestionResultsResponse**](GetQuestionResultsResponse.md) ### Authorization @@ -5334,7 +5334,7 @@ end ## get_tenant -> get_tenant(tenant_id, id) +> get_tenant(tenant_id, id) @@ -5368,7 +5368,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenant_with_http_info(tenant_id, id) +> , Integer, Hash)> get_tenant_with_http_info(tenant_id, id) ```ruby begin @@ -5376,7 +5376,7 @@ begin data, status_code, headers = api_instance.get_tenant_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenant_with_http_info: #{e}" end @@ -5391,7 +5391,7 @@ end ### Return type -[**GetTenantResponse1**](GetTenantResponse1.md) +[**GetTenantResponse**](GetTenantResponse.md) ### Authorization @@ -5405,7 +5405,7 @@ end ## get_tenant_daily_usages -> get_tenant_daily_usages(tenant_id, opts) +> get_tenant_daily_usages(tenant_id, opts) @@ -5444,7 +5444,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenant_daily_usages_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_tenant_daily_usages_with_http_info(tenant_id, opts) ```ruby begin @@ -5452,7 +5452,7 @@ begin data, status_code, headers = api_instance.get_tenant_daily_usages_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenant_daily_usages_with_http_info: #{e}" end @@ -5470,7 +5470,7 @@ end ### Return type -[**GetTenantDailyUsagesResponse1**](GetTenantDailyUsagesResponse1.md) +[**GetTenantDailyUsagesResponse**](GetTenantDailyUsagesResponse.md) ### Authorization @@ -5484,7 +5484,7 @@ end ## get_tenant_package -> get_tenant_package(tenant_id, id) +> get_tenant_package(tenant_id, id) @@ -5518,7 +5518,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenant_package_with_http_info(tenant_id, id) +> , Integer, Hash)> get_tenant_package_with_http_info(tenant_id, id) ```ruby begin @@ -5526,7 +5526,7 @@ begin data, status_code, headers = api_instance.get_tenant_package_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenant_package_with_http_info: #{e}" end @@ -5541,7 +5541,7 @@ end ### Return type -[**GetTenantPackageResponse1**](GetTenantPackageResponse1.md) +[**GetTenantPackageResponse**](GetTenantPackageResponse.md) ### Authorization @@ -5555,7 +5555,7 @@ end ## get_tenant_packages -> get_tenant_packages(tenant_id, opts) +> get_tenant_packages(tenant_id, opts) @@ -5591,7 +5591,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenant_packages_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_tenant_packages_with_http_info(tenant_id, opts) ```ruby begin @@ -5599,7 +5599,7 @@ begin data, status_code, headers = api_instance.get_tenant_packages_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenant_packages_with_http_info: #{e}" end @@ -5614,7 +5614,7 @@ end ### Return type -[**GetTenantPackagesResponse1**](GetTenantPackagesResponse1.md) +[**GetTenantPackagesResponse**](GetTenantPackagesResponse.md) ### Authorization @@ -5628,7 +5628,7 @@ end ## get_tenant_user -> get_tenant_user(tenant_id, id) +> get_tenant_user(tenant_id, id) @@ -5662,7 +5662,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenant_user_with_http_info(tenant_id, id) +> , Integer, Hash)> get_tenant_user_with_http_info(tenant_id, id) ```ruby begin @@ -5670,7 +5670,7 @@ begin data, status_code, headers = api_instance.get_tenant_user_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenant_user_with_http_info: #{e}" end @@ -5685,7 +5685,7 @@ end ### Return type -[**GetTenantUserResponse1**](GetTenantUserResponse1.md) +[**GetTenantUserResponse**](GetTenantUserResponse.md) ### Authorization @@ -5699,7 +5699,7 @@ end ## get_tenant_users -> get_tenant_users(tenant_id, opts) +> get_tenant_users(tenant_id, opts) @@ -5735,7 +5735,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenant_users_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_tenant_users_with_http_info(tenant_id, opts) ```ruby begin @@ -5743,7 +5743,7 @@ begin data, status_code, headers = api_instance.get_tenant_users_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenant_users_with_http_info: #{e}" end @@ -5758,7 +5758,7 @@ end ### Return type -[**GetTenantUsersResponse1**](GetTenantUsersResponse1.md) +[**GetTenantUsersResponse**](GetTenantUsersResponse.md) ### Authorization @@ -5772,7 +5772,7 @@ end ## get_tenants -> get_tenants(tenant_id, opts) +> get_tenants(tenant_id, opts) @@ -5809,7 +5809,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenants_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_tenants_with_http_info(tenant_id, opts) ```ruby begin @@ -5817,7 +5817,7 @@ begin data, status_code, headers = api_instance.get_tenants_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenants_with_http_info: #{e}" end @@ -5833,7 +5833,7 @@ end ### Return type -[**GetTenantsResponse1**](GetTenantsResponse1.md) +[**GetTenantsResponse**](GetTenantsResponse.md) ### Authorization @@ -5847,7 +5847,7 @@ end ## get_ticket -> get_ticket(tenant_id, id, opts) +> get_ticket(tenant_id, id, opts) @@ -5884,7 +5884,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_ticket_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> get_ticket_with_http_info(tenant_id, id, opts) ```ruby begin @@ -5892,7 +5892,7 @@ begin data, status_code, headers = api_instance.get_ticket_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_ticket_with_http_info: #{e}" end @@ -5908,7 +5908,7 @@ end ### Return type -[**GetTicketResponse1**](GetTicketResponse1.md) +[**GetTicketResponse**](GetTicketResponse.md) ### Authorization @@ -5922,7 +5922,7 @@ end ## get_tickets -> get_tickets(tenant_id, opts) +> get_tickets(tenant_id, opts) @@ -5961,7 +5961,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tickets_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_tickets_with_http_info(tenant_id, opts) ```ruby begin @@ -5969,7 +5969,7 @@ begin data, status_code, headers = api_instance.get_tickets_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tickets_with_http_info: #{e}" end @@ -5987,7 +5987,7 @@ end ### Return type -[**GetTicketsResponse1**](GetTicketsResponse1.md) +[**GetTicketsResponse**](GetTicketsResponse.md) ### Authorization @@ -6001,7 +6001,7 @@ end ## get_user -> get_user(tenant_id, id) +> get_user(tenant_id, id) @@ -6035,7 +6035,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_with_http_info(tenant_id, id) +> , Integer, Hash)> get_user_with_http_info(tenant_id, id) ```ruby begin @@ -6043,7 +6043,7 @@ begin data, status_code, headers = api_instance.get_user_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user_with_http_info: #{e}" end @@ -6058,7 +6058,7 @@ end ### Return type -[**GetUserResponse1**](GetUserResponse1.md) +[**GetUserResponse**](GetUserResponse.md) ### Authorization @@ -6072,7 +6072,7 @@ end ## get_user_badge -> get_user_badge(tenant_id, id) +> get_user_badge(tenant_id, id) @@ -6106,7 +6106,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_badge_with_http_info(tenant_id, id) +> , Integer, Hash)> get_user_badge_with_http_info(tenant_id, id) ```ruby begin @@ -6114,7 +6114,7 @@ begin data, status_code, headers = api_instance.get_user_badge_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user_badge_with_http_info: #{e}" end @@ -6129,7 +6129,7 @@ end ### Return type -[**GetUserBadgeResponse**](GetUserBadgeResponse.md) +[**APIGetUserBadgeResponse**](APIGetUserBadgeResponse.md) ### Authorization @@ -6143,7 +6143,7 @@ end ## get_user_badge_progress_by_id -> get_user_badge_progress_by_id(tenant_id, id) +> get_user_badge_progress_by_id(tenant_id, id) @@ -6177,7 +6177,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_badge_progress_by_id_with_http_info(tenant_id, id) +> , Integer, Hash)> get_user_badge_progress_by_id_with_http_info(tenant_id, id) ```ruby begin @@ -6185,7 +6185,7 @@ begin data, status_code, headers = api_instance.get_user_badge_progress_by_id_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user_badge_progress_by_id_with_http_info: #{e}" end @@ -6200,7 +6200,7 @@ end ### Return type -[**GetUserBadgeProgressByIdResponse**](GetUserBadgeProgressByIdResponse.md) +[**APIGetUserBadgeProgressResponse**](APIGetUserBadgeProgressResponse.md) ### Authorization @@ -6214,7 +6214,7 @@ end ## get_user_badge_progress_by_user_id -> get_user_badge_progress_by_user_id(tenant_id, user_id) +> get_user_badge_progress_by_user_id(tenant_id, user_id) @@ -6248,7 +6248,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id) +> , Integer, Hash)> get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id) ```ruby begin @@ -6256,7 +6256,7 @@ begin data, status_code, headers = api_instance.get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user_badge_progress_by_user_id_with_http_info: #{e}" end @@ -6271,7 +6271,7 @@ end ### Return type -[**GetUserBadgeProgressByUserIdResponse**](GetUserBadgeProgressByUserIdResponse.md) +[**APIGetUserBadgeProgressResponse**](APIGetUserBadgeProgressResponse.md) ### Authorization @@ -6285,7 +6285,7 @@ end ## get_user_badge_progress_list -> get_user_badge_progress_list(tenant_id, opts) +> get_user_badge_progress_list(tenant_id, opts) @@ -6323,7 +6323,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_badge_progress_list_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_user_badge_progress_list_with_http_info(tenant_id, opts) ```ruby begin @@ -6331,7 +6331,7 @@ begin data, status_code, headers = api_instance.get_user_badge_progress_list_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user_badge_progress_list_with_http_info: #{e}" end @@ -6348,7 +6348,7 @@ end ### Return type -[**GetUserBadgeProgressListResponse**](GetUserBadgeProgressListResponse.md) +[**APIGetUserBadgeProgressListResponse**](APIGetUserBadgeProgressListResponse.md) ### Authorization @@ -6362,7 +6362,7 @@ end ## get_user_badges -> get_user_badges(tenant_id, opts) +> get_user_badges(tenant_id, opts) @@ -6403,7 +6403,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_badges_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_user_badges_with_http_info(tenant_id, opts) ```ruby begin @@ -6411,7 +6411,7 @@ begin data, status_code, headers = api_instance.get_user_badges_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user_badges_with_http_info: #{e}" end @@ -6431,7 +6431,7 @@ end ### Return type -[**GetUserBadgesResponse**](GetUserBadgesResponse.md) +[**APIGetUserBadgesResponse**](APIGetUserBadgesResponse.md) ### Authorization @@ -6445,7 +6445,7 @@ end ## get_votes -> get_votes(tenant_id, url_id) +> get_votes(tenant_id, url_id) @@ -6479,7 +6479,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_votes_with_http_info(tenant_id, url_id) +> , Integer, Hash)> get_votes_with_http_info(tenant_id, url_id) ```ruby begin @@ -6487,7 +6487,7 @@ begin data, status_code, headers = api_instance.get_votes_with_http_info(tenant_id, url_id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_votes_with_http_info: #{e}" end @@ -6502,7 +6502,7 @@ end ### Return type -[**GetVotesResponse1**](GetVotesResponse1.md) +[**GetVotesResponse**](GetVotesResponse.md) ### Authorization @@ -6516,7 +6516,7 @@ end ## get_votes_for_user -> get_votes_for_user(tenant_id, url_id, opts) +> get_votes_for_user(tenant_id, url_id, opts) @@ -6554,7 +6554,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_votes_for_user_with_http_info(tenant_id, url_id, opts) +> , Integer, Hash)> get_votes_for_user_with_http_info(tenant_id, url_id, opts) ```ruby begin @@ -6562,7 +6562,7 @@ begin data, status_code, headers = api_instance.get_votes_for_user_with_http_info(tenant_id, url_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_votes_for_user_with_http_info: #{e}" end @@ -6579,7 +6579,7 @@ end ### Return type -[**GetVotesForUserResponse1**](GetVotesForUserResponse1.md) +[**GetVotesForUserResponse**](GetVotesForUserResponse.md) ### Authorization @@ -6666,7 +6666,7 @@ end ## patch_hash_tag -> patch_hash_tag(tag, opts) +> patch_hash_tag(tag, opts) @@ -6703,7 +6703,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> patch_hash_tag_with_http_info(tag, opts) +> , Integer, Hash)> patch_hash_tag_with_http_info(tag, opts) ```ruby begin @@ -6711,7 +6711,7 @@ begin data, status_code, headers = api_instance.patch_hash_tag_with_http_info(tag, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->patch_hash_tag_with_http_info: #{e}" end @@ -6727,7 +6727,7 @@ end ### Return type -[**PatchHashTagResponse**](PatchHashTagResponse.md) +[**UpdateHashTagResponse**](UpdateHashTagResponse.md) ### Authorization @@ -7041,7 +7041,7 @@ end ## render_email_template -> render_email_template(tenant_id, render_email_template_body, opts) +> render_email_template(tenant_id, render_email_template_body, opts) @@ -7078,7 +7078,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> render_email_template_with_http_info(tenant_id, render_email_template_body, opts) +> , Integer, Hash)> render_email_template_with_http_info(tenant_id, render_email_template_body, opts) ```ruby begin @@ -7086,7 +7086,7 @@ begin data, status_code, headers = api_instance.render_email_template_with_http_info(tenant_id, render_email_template_body, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->render_email_template_with_http_info: #{e}" end @@ -7102,7 +7102,7 @@ end ### Return type -[**RenderEmailTemplateResponse1**](RenderEmailTemplateResponse1.md) +[**RenderEmailTemplateResponse**](RenderEmailTemplateResponse.md) ### Authorization @@ -7116,7 +7116,7 @@ end ## replace_tenant_package -> replace_tenant_package(tenant_id, id, replace_tenant_package_body) +> replace_tenant_package(tenant_id, id, replace_tenant_package_body) @@ -7151,7 +7151,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_body) +> , Integer, Hash)> replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_body) ```ruby begin @@ -7159,7 +7159,7 @@ begin data, status_code, headers = api_instance.replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->replace_tenant_package_with_http_info: #{e}" end @@ -7175,7 +7175,7 @@ end ### Return type -[**ReplaceTenantPackageResponse**](ReplaceTenantPackageResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7189,7 +7189,7 @@ end ## replace_tenant_user -> replace_tenant_user(tenant_id, id, replace_tenant_user_body, opts) +> replace_tenant_user(tenant_id, id, replace_tenant_user_body, opts) @@ -7227,7 +7227,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> replace_tenant_user_with_http_info(tenant_id, id, replace_tenant_user_body, opts) +> , Integer, Hash)> replace_tenant_user_with_http_info(tenant_id, id, replace_tenant_user_body, opts) ```ruby begin @@ -7235,7 +7235,7 @@ begin data, status_code, headers = api_instance.replace_tenant_user_with_http_info(tenant_id, id, replace_tenant_user_body, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->replace_tenant_user_with_http_info: #{e}" end @@ -7252,7 +7252,7 @@ end ### Return type -[**ReplaceTenantUserResponse**](ReplaceTenantUserResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7266,7 +7266,7 @@ end ## save_comment -> save_comment(tenant_id, create_comment_params, opts) +> save_comment(tenant_id, create_comment_params, opts) @@ -7306,7 +7306,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> save_comment_with_http_info(tenant_id, create_comment_params, opts) +> , Integer, Hash)> save_comment_with_http_info(tenant_id, create_comment_params, opts) ```ruby begin @@ -7314,7 +7314,7 @@ begin data, status_code, headers = api_instance.save_comment_with_http_info(tenant_id, create_comment_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->save_comment_with_http_info: #{e}" end @@ -7333,7 +7333,7 @@ end ### Return type -[**SaveCommentResponse**](SaveCommentResponse.md) +[**APISaveCommentResponse**](APISaveCommentResponse.md) ### Authorization @@ -7428,7 +7428,7 @@ end ## send_invite -> send_invite(tenant_id, id, from_name) +> send_invite(tenant_id, id, from_name) @@ -7463,7 +7463,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> send_invite_with_http_info(tenant_id, id, from_name) +> , Integer, Hash)> send_invite_with_http_info(tenant_id, id, from_name) ```ruby begin @@ -7471,7 +7471,7 @@ begin data, status_code, headers = api_instance.send_invite_with_http_info(tenant_id, id, from_name) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->send_invite_with_http_info: #{e}" end @@ -7487,7 +7487,7 @@ end ### Return type -[**SendInviteResponse**](SendInviteResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7501,7 +7501,7 @@ end ## send_login_link -> send_login_link(tenant_id, id, opts) +> send_login_link(tenant_id, id, opts) @@ -7538,7 +7538,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> send_login_link_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> send_login_link_with_http_info(tenant_id, id, opts) ```ruby begin @@ -7546,7 +7546,7 @@ begin data, status_code, headers = api_instance.send_login_link_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->send_login_link_with_http_info: #{e}" end @@ -7562,7 +7562,7 @@ end ### Return type -[**SendLoginLinkResponse**](SendLoginLinkResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7576,7 +7576,7 @@ end ## un_block_user_from_comment -> un_block_user_from_comment(tenant_id, id, un_block_from_comment_params, opts) +> un_block_user_from_comment(tenant_id, id, un_block_from_comment_params, opts) @@ -7615,7 +7615,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comment_params, opts) +> , Integer, Hash)> un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comment_params, opts) ```ruby begin @@ -7623,7 +7623,7 @@ begin data, status_code, headers = api_instance.un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comment_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->un_block_user_from_comment_with_http_info: #{e}" end @@ -7641,7 +7641,7 @@ end ### Return type -[**UnBlockUserFromCommentResponse**](UnBlockUserFromCommentResponse.md) +[**UnblockSuccess**](UnblockSuccess.md) ### Authorization @@ -7655,7 +7655,7 @@ end ## un_flag_comment -> un_flag_comment(tenant_id, id, opts) +> un_flag_comment(tenant_id, id, opts) @@ -7693,7 +7693,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> un_flag_comment_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> un_flag_comment_with_http_info(tenant_id, id, opts) ```ruby begin @@ -7701,7 +7701,7 @@ begin data, status_code, headers = api_instance.un_flag_comment_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->un_flag_comment_with_http_info: #{e}" end @@ -7718,7 +7718,7 @@ end ### Return type -[**UnFlagCommentResponse**](UnFlagCommentResponse.md) +[**FlagCommentResponse**](FlagCommentResponse.md) ### Authorization @@ -7732,7 +7732,7 @@ end ## update_comment -> update_comment(tenant_id, id, updatable_comment_params, opts) +> update_comment(tenant_id, id, updatable_comment_params, opts) @@ -7772,7 +7772,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts) +> , Integer, Hash)> update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts) ```ruby begin @@ -7780,7 +7780,7 @@ begin data, status_code, headers = api_instance.update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_comment_with_http_info: #{e}" end @@ -7799,7 +7799,7 @@ end ### Return type -[**UpdateCommentResponse**](UpdateCommentResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7813,7 +7813,7 @@ end ## update_email_template -> update_email_template(tenant_id, id, update_email_template_body) +> update_email_template(tenant_id, id, update_email_template_body) @@ -7848,7 +7848,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_email_template_with_http_info(tenant_id, id, update_email_template_body) +> , Integer, Hash)> update_email_template_with_http_info(tenant_id, id, update_email_template_body) ```ruby begin @@ -7856,7 +7856,7 @@ begin data, status_code, headers = api_instance.update_email_template_with_http_info(tenant_id, id, update_email_template_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_email_template_with_http_info: #{e}" end @@ -7872,7 +7872,7 @@ end ### Return type -[**UpdateEmailTemplateResponse**](UpdateEmailTemplateResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7886,7 +7886,7 @@ end ## update_feed_post -> update_feed_post(tenant_id, id, feed_post) +> update_feed_post(tenant_id, id, feed_post) @@ -7921,7 +7921,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_feed_post_with_http_info(tenant_id, id, feed_post) +> , Integer, Hash)> update_feed_post_with_http_info(tenant_id, id, feed_post) ```ruby begin @@ -7929,7 +7929,7 @@ begin data, status_code, headers = api_instance.update_feed_post_with_http_info(tenant_id, id, feed_post) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_feed_post_with_http_info: #{e}" end @@ -7945,7 +7945,7 @@ end ### Return type -[**UpdateFeedPostResponse**](UpdateFeedPostResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7959,7 +7959,7 @@ end ## update_moderator -> update_moderator(tenant_id, id, update_moderator_body) +> update_moderator(tenant_id, id, update_moderator_body) @@ -7994,7 +7994,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_moderator_with_http_info(tenant_id, id, update_moderator_body) +> , Integer, Hash)> update_moderator_with_http_info(tenant_id, id, update_moderator_body) ```ruby begin @@ -8002,7 +8002,7 @@ begin data, status_code, headers = api_instance.update_moderator_with_http_info(tenant_id, id, update_moderator_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_moderator_with_http_info: #{e}" end @@ -8018,7 +8018,7 @@ end ### Return type -[**UpdateModeratorResponse**](UpdateModeratorResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8032,7 +8032,7 @@ end ## update_notification -> update_notification(tenant_id, id, update_notification_body, opts) +> update_notification(tenant_id, id, update_notification_body, opts) @@ -8070,7 +8070,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_notification_with_http_info(tenant_id, id, update_notification_body, opts) +> , Integer, Hash)> update_notification_with_http_info(tenant_id, id, update_notification_body, opts) ```ruby begin @@ -8078,7 +8078,7 @@ begin data, status_code, headers = api_instance.update_notification_with_http_info(tenant_id, id, update_notification_body, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_notification_with_http_info: #{e}" end @@ -8095,7 +8095,7 @@ end ### Return type -[**UpdateNotificationResponse**](UpdateNotificationResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8109,7 +8109,7 @@ end ## update_question_config -> update_question_config(tenant_id, id, update_question_config_body) +> update_question_config(tenant_id, id, update_question_config_body) @@ -8144,7 +8144,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_question_config_with_http_info(tenant_id, id, update_question_config_body) +> , Integer, Hash)> update_question_config_with_http_info(tenant_id, id, update_question_config_body) ```ruby begin @@ -8152,7 +8152,7 @@ begin data, status_code, headers = api_instance.update_question_config_with_http_info(tenant_id, id, update_question_config_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_question_config_with_http_info: #{e}" end @@ -8168,7 +8168,7 @@ end ### Return type -[**UpdateQuestionConfigResponse**](UpdateQuestionConfigResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8182,7 +8182,7 @@ end ## update_question_result -> update_question_result(tenant_id, id, update_question_result_body) +> update_question_result(tenant_id, id, update_question_result_body) @@ -8217,7 +8217,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_question_result_with_http_info(tenant_id, id, update_question_result_body) +> , Integer, Hash)> update_question_result_with_http_info(tenant_id, id, update_question_result_body) ```ruby begin @@ -8225,7 +8225,7 @@ begin data, status_code, headers = api_instance.update_question_result_with_http_info(tenant_id, id, update_question_result_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_question_result_with_http_info: #{e}" end @@ -8241,7 +8241,7 @@ end ### Return type -[**UpdateQuestionResultResponse**](UpdateQuestionResultResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8332,7 +8332,7 @@ end ## update_tenant -> update_tenant(tenant_id, id, update_tenant_body) +> update_tenant(tenant_id, id, update_tenant_body) @@ -8367,7 +8367,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_tenant_with_http_info(tenant_id, id, update_tenant_body) +> , Integer, Hash)> update_tenant_with_http_info(tenant_id, id, update_tenant_body) ```ruby begin @@ -8375,7 +8375,7 @@ begin data, status_code, headers = api_instance.update_tenant_with_http_info(tenant_id, id, update_tenant_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_tenant_with_http_info: #{e}" end @@ -8391,7 +8391,7 @@ end ### Return type -[**UpdateTenantResponse**](UpdateTenantResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8405,7 +8405,7 @@ end ## update_tenant_package -> update_tenant_package(tenant_id, id, update_tenant_package_body) +> update_tenant_package(tenant_id, id, update_tenant_package_body) @@ -8440,7 +8440,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_body) +> , Integer, Hash)> update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_body) ```ruby begin @@ -8448,7 +8448,7 @@ begin data, status_code, headers = api_instance.update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_tenant_package_with_http_info: #{e}" end @@ -8464,7 +8464,7 @@ end ### Return type -[**UpdateTenantPackageResponse**](UpdateTenantPackageResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8478,7 +8478,7 @@ end ## update_tenant_user -> update_tenant_user(tenant_id, id, update_tenant_user_body, opts) +> update_tenant_user(tenant_id, id, update_tenant_user_body, opts) @@ -8516,7 +8516,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_tenant_user_with_http_info(tenant_id, id, update_tenant_user_body, opts) +> , Integer, Hash)> update_tenant_user_with_http_info(tenant_id, id, update_tenant_user_body, opts) ```ruby begin @@ -8524,7 +8524,7 @@ begin data, status_code, headers = api_instance.update_tenant_user_with_http_info(tenant_id, id, update_tenant_user_body, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_tenant_user_with_http_info: #{e}" end @@ -8541,7 +8541,7 @@ end ### Return type -[**UpdateTenantUserResponse**](UpdateTenantUserResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8555,7 +8555,7 @@ end ## update_user_badge -> update_user_badge(tenant_id, id, update_user_badge_params) +> update_user_badge(tenant_id, id, update_user_badge_params) @@ -8590,7 +8590,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_user_badge_with_http_info(tenant_id, id, update_user_badge_params) +> , Integer, Hash)> update_user_badge_with_http_info(tenant_id, id, update_user_badge_params) ```ruby begin @@ -8598,7 +8598,7 @@ begin data, status_code, headers = api_instance.update_user_badge_with_http_info(tenant_id, id, update_user_badge_params) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_user_badge_with_http_info: #{e}" end @@ -8614,7 +8614,7 @@ end ### Return type -[**UpdateUserBadgeResponse**](UpdateUserBadgeResponse.md) +[**APIEmptySuccessResponse**](APIEmptySuccessResponse.md) ### Authorization diff --git a/client/docs/DeleteCommentPublicResponse.md b/client/docs/DeleteCommentPublicResponse.md deleted file mode 100644 index bb47221..0000000 --- a/client/docs/DeleteCommentPublicResponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# FastCommentsClient::DeleteCommentPublicResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **comment** | [**DeletedCommentResultComment**](DeletedCommentResultComment.md) | | [optional] | -| **hard_removed** | **Boolean** | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::DeleteCommentPublicResponse.new( - comment: null, - hard_removed: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/DeleteCommentResponse.md b/client/docs/DeleteCommentResponse.md deleted file mode 100644 index e001d62..0000000 --- a/client/docs/DeleteCommentResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::DeleteCommentResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **action** | [**DeleteCommentAction**](DeleteCommentAction.md) | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::DeleteCommentResponse.new( - action: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/DeleteCommentVoteResponse.md b/client/docs/DeleteCommentVoteResponse.md deleted file mode 100644 index 7e49cab..0000000 --- a/client/docs/DeleteCommentVoteResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::DeleteCommentVoteResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **was_pending_vote** | **Boolean** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::DeleteCommentVoteResponse.new( - status: null, - was_pending_vote: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/DeleteEmailTemplateRenderErrorResponse.md b/client/docs/DeleteEmailTemplateRenderErrorResponse.md deleted file mode 100644 index bf81415..0000000 --- a/client/docs/DeleteEmailTemplateRenderErrorResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::DeleteEmailTemplateRenderErrorResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::DeleteEmailTemplateRenderErrorResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/DeleteEmailTemplateResponse.md b/client/docs/DeleteEmailTemplateResponse.md deleted file mode 100644 index 48d57a3..0000000 --- a/client/docs/DeleteEmailTemplateResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::DeleteEmailTemplateResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::DeleteEmailTemplateResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/DeleteFeedPostPublicResponse.md b/client/docs/DeleteFeedPostPublicResponse.md index a892fb1..567c513 100644 --- a/client/docs/DeleteFeedPostPublicResponse.md +++ b/client/docs/DeleteFeedPostPublicResponse.md @@ -5,13 +5,6 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | ## Example @@ -19,14 +12,7 @@ require 'fastcomments-client' instance = FastCommentsClient::DeleteFeedPostPublicResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null + status: null ) ``` diff --git a/client/docs/DeleteFeedPostPublicResponseAnyOf.md b/client/docs/DeleteFeedPostPublicResponseAnyOf.md deleted file mode 100644 index f021c41..0000000 --- a/client/docs/DeleteFeedPostPublicResponseAnyOf.md +++ /dev/null @@ -1,18 +0,0 @@ -# FastCommentsClient::DeleteFeedPostPublicResponseAnyOf - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::DeleteFeedPostPublicResponseAnyOf.new( - status: null -) -``` - diff --git a/client/docs/DeleteHashTagResponse.md b/client/docs/DeleteHashTagResponse.md deleted file mode 100644 index b21fea0..0000000 --- a/client/docs/DeleteHashTagResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::DeleteHashTagResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::DeleteHashTagResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/DeleteModerationVoteResponse.md b/client/docs/DeleteModerationVoteResponse.md deleted file mode 100644 index a0cda57..0000000 --- a/client/docs/DeleteModerationVoteResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::DeleteModerationVoteResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **was_pending_vote** | **Boolean** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::DeleteModerationVoteResponse.new( - status: null, - was_pending_vote: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/DeleteModeratorResponse.md b/client/docs/DeleteModeratorResponse.md deleted file mode 100644 index f99a7ab..0000000 --- a/client/docs/DeleteModeratorResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::DeleteModeratorResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::DeleteModeratorResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/DeleteNotificationCountResponse.md b/client/docs/DeleteNotificationCountResponse.md deleted file mode 100644 index 4e84d9c..0000000 --- a/client/docs/DeleteNotificationCountResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::DeleteNotificationCountResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::DeleteNotificationCountResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/DeletePendingWebhookEventResponse.md b/client/docs/DeletePendingWebhookEventResponse.md deleted file mode 100644 index 9df6d13..0000000 --- a/client/docs/DeletePendingWebhookEventResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::DeletePendingWebhookEventResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::DeletePendingWebhookEventResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/DeleteQuestionConfigResponse.md b/client/docs/DeleteQuestionConfigResponse.md deleted file mode 100644 index a6d3744..0000000 --- a/client/docs/DeleteQuestionConfigResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::DeleteQuestionConfigResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::DeleteQuestionConfigResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/DeleteQuestionResultResponse.md b/client/docs/DeleteQuestionResultResponse.md deleted file mode 100644 index 92d580c..0000000 --- a/client/docs/DeleteQuestionResultResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::DeleteQuestionResultResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::DeleteQuestionResultResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/DeleteTenantPackageResponse.md b/client/docs/DeleteTenantPackageResponse.md deleted file mode 100644 index 2754e58..0000000 --- a/client/docs/DeleteTenantPackageResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::DeleteTenantPackageResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::DeleteTenantPackageResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/DeleteTenantResponse.md b/client/docs/DeleteTenantResponse.md deleted file mode 100644 index 238d28a..0000000 --- a/client/docs/DeleteTenantResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::DeleteTenantResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::DeleteTenantResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/DeleteTenantUserResponse.md b/client/docs/DeleteTenantUserResponse.md deleted file mode 100644 index 300137c..0000000 --- a/client/docs/DeleteTenantUserResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::DeleteTenantUserResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::DeleteTenantUserResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/DeleteUserBadgeResponse.md b/client/docs/DeleteUserBadgeResponse.md deleted file mode 100644 index 7552615..0000000 --- a/client/docs/DeleteUserBadgeResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::DeleteUserBadgeResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::DeleteUserBadgeResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/DeleteV1PageReactResponse.md b/client/docs/DeleteV1PageReactResponse.md deleted file mode 100644 index 1471724..0000000 --- a/client/docs/DeleteV1PageReactResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::DeleteV1PageReactResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **code** | **String** | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::DeleteV1PageReactResponse.new( - code: null, - status: null, - reason: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/DeleteV2PageReactResponse.md b/client/docs/DeleteV2PageReactResponse.md deleted file mode 100644 index ee7774b..0000000 --- a/client/docs/DeleteV2PageReactResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::DeleteV2PageReactResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **code** | **String** | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::DeleteV2PageReactResponse.new( - code: null, - status: null, - reason: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/DeleteVoteResponse.md b/client/docs/DeleteVoteResponse.md deleted file mode 100644 index df042af..0000000 --- a/client/docs/DeleteVoteResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::DeleteVoteResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **was_pending_vote** | **Boolean** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::DeleteVoteResponse.new( - status: null, - was_pending_vote: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/FlagCommentPublicResponse.md b/client/docs/FlagCommentPublicResponse.md deleted file mode 100644 index ed2782c..0000000 --- a/client/docs/FlagCommentPublicResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::FlagCommentPublicResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::FlagCommentPublicResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/FlagCommentResponse1.md b/client/docs/FlagCommentResponse1.md deleted file mode 100644 index 108def2..0000000 --- a/client/docs/FlagCommentResponse1.md +++ /dev/null @@ -1,36 +0,0 @@ -# FastCommentsClient::FlagCommentResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status_code** | **Integer** | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **code** | **String** | | [optional] | -| **reason** | **String** | | [optional] | -| **was_unapproved** | **Boolean** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::FlagCommentResponse1.new( - status_code: null, - status: null, - code: null, - reason: null, - was_unapproved: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetApiCommentsResponse.md b/client/docs/GetApiCommentsResponse.md deleted file mode 100644 index 2d970df..0000000 --- a/client/docs/GetApiCommentsResponse.md +++ /dev/null @@ -1,38 +0,0 @@ -# FastCommentsClient::GetApiCommentsResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **translations** | **Object** | | [optional] | -| **comments** | [**Array<ModerationAPIComment>**](ModerationAPIComment.md) | | [optional] | -| **moderation_filter** | [**ModerationFilter**](ModerationFilter.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetApiCommentsResponse.new( - status: null, - translations: null, - comments: null, - moderation_filter: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetApiExportStatusResponse.md b/client/docs/GetApiExportStatusResponse.md deleted file mode 100644 index d4ad64f..0000000 --- a/client/docs/GetApiExportStatusResponse.md +++ /dev/null @@ -1,38 +0,0 @@ -# FastCommentsClient::GetApiExportStatusResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **job_status** | **String** | | [optional] | -| **record_count** | **Integer** | | [optional] | -| **download_url** | **String** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetApiExportStatusResponse.new( - status: null, - job_status: null, - record_count: null, - download_url: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetApiIdsResponse.md b/client/docs/GetApiIdsResponse.md deleted file mode 100644 index 49cfaaf..0000000 --- a/client/docs/GetApiIdsResponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# FastCommentsClient::GetApiIdsResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **ids** | **Array<String>** | | [optional] | -| **has_more** | **Boolean** | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetApiIdsResponse.new( - ids: null, - has_more: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetAuditLogsResponse1.md b/client/docs/GetAuditLogsResponse1.md deleted file mode 100644 index 6d2f751..0000000 --- a/client/docs/GetAuditLogsResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetAuditLogsResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **audit_logs** | [**Array<APIAuditLog>**](APIAuditLog.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetAuditLogsResponse1.new( - status: null, - audit_logs: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetBanUsersFromCommentResponse.md b/client/docs/GetBanUsersFromCommentResponse.md deleted file mode 100644 index f87aaf5..0000000 --- a/client/docs/GetBanUsersFromCommentResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetBanUsersFromCommentResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **banned_users** | [**Array<APIBannedUserWithMultiMatchInfo>**](APIBannedUserWithMultiMatchInfo.md) | | [optional] | -| **code** | **String** | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetBanUsersFromCommentResponse.new( - banned_users: null, - code: null, - status: null, - reason: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetCachedNotificationCountResponse1.md b/client/docs/GetCachedNotificationCountResponse1.md deleted file mode 100644 index b10da07..0000000 --- a/client/docs/GetCachedNotificationCountResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetCachedNotificationCountResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **data** | [**UserNotificationCount**](UserNotificationCount.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetCachedNotificationCountResponse1.new( - status: null, - data: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetCommentBanStatusResponse1.md b/client/docs/GetCommentBanStatusResponse1.md deleted file mode 100644 index b93b08b..0000000 --- a/client/docs/GetCommentBanStatusResponse1.md +++ /dev/null @@ -1,36 +0,0 @@ -# FastCommentsClient::GetCommentBanStatusResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **email_domain** | **String** | | [optional] | -| **can_ip_ban** | **Boolean** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetCommentBanStatusResponse1.new( - status: null, - email_domain: null, - can_ip_ban: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetCommentChildrenResponse.md b/client/docs/GetCommentChildrenResponse.md deleted file mode 100644 index 9848885..0000000 --- a/client/docs/GetCommentChildrenResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetCommentChildrenResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **comments** | [**Array<ModerationAPIComment>**](ModerationAPIComment.md) | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetCommentChildrenResponse.new( - comments: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetCommentResponse.md b/client/docs/GetCommentResponse.md deleted file mode 100644 index 41b669c..0000000 --- a/client/docs/GetCommentResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetCommentResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **comment** | [**APIComment**](APIComment.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetCommentResponse.new( - status: null, - comment: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetCommentTextResponse1.md b/client/docs/GetCommentTextResponse1.md deleted file mode 100644 index daa0637..0000000 --- a/client/docs/GetCommentTextResponse1.md +++ /dev/null @@ -1,36 +0,0 @@ -# FastCommentsClient::GetCommentTextResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **comment_text** | **String** | | [optional] | -| **sanitized_comment_text** | **String** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetCommentTextResponse1.new( - status: null, - comment_text: null, - sanitized_comment_text: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetCommentVoteUserNamesResponse.md b/client/docs/GetCommentVoteUserNamesResponse.md deleted file mode 100644 index 4f0b228..0000000 --- a/client/docs/GetCommentVoteUserNamesResponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# FastCommentsClient::GetCommentVoteUserNamesResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **vote_user_names** | **Array<String>** | | [optional] | -| **has_more** | **Boolean** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetCommentVoteUserNamesResponse.new( - status: null, - vote_user_names: null, - has_more: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetCommentsForUserResponse1.md b/client/docs/GetCommentsForUserResponse1.md deleted file mode 100644 index 96d20b2..0000000 --- a/client/docs/GetCommentsForUserResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetCommentsForUserResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **moderating_tenant_ids** | **Array<String>** | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetCommentsForUserResponse1.new( - moderating_tenant_ids: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetCommentsPublicResponse.md b/client/docs/GetCommentsPublicResponse.md deleted file mode 100644 index eb465dd..0000000 --- a/client/docs/GetCommentsPublicResponse.md +++ /dev/null @@ -1,78 +0,0 @@ -# FastCommentsClient::GetCommentsPublicResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status_code** | **Integer** | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **code** | **String** | | [optional] | -| **reason** | **String** | | [optional] | -| **translated_warning** | **String** | | [optional] | -| **comments** | [**Array<PublicComment>**](PublicComment.md) | | [optional] | -| **user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] | -| **url_id_clean** | **String** | | [optional] | -| **last_gen_date** | **Integer** | | [optional] | -| **includes_past_pages** | **Boolean** | | [optional] | -| **is_demo** | **Boolean** | | [optional] | -| **comment_count** | **Integer** | | [optional] | -| **is_site_admin** | **Boolean** | | [optional] | -| **has_billing_issue** | **Boolean** | | [optional] | -| **module_data** | **Hash<String, Object>** | Construct a type with a set of properties K of type T | [optional] | -| **page_number** | **Integer** | | [optional] | -| **is_white_labeled** | **Boolean** | | [optional] | -| **is_prod** | **Boolean** | | [optional] | -| **is_crawler** | **Boolean** | | [optional] | -| **notification_count** | **Integer** | | [optional] | -| **has_more** | **Boolean** | | [optional] | -| **is_closed** | **Boolean** | | [optional] | -| **presence_poll_state** | **Integer** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | -| **url_id_ws** | **String** | | [optional] | -| **user_id_ws** | **String** | | [optional] | -| **tenant_id_ws** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetCommentsPublicResponse.new( - status_code: null, - status: null, - code: null, - reason: null, - translated_warning: null, - comments: null, - user: null, - url_id_clean: null, - last_gen_date: null, - includes_past_pages: null, - is_demo: null, - comment_count: null, - is_site_admin: null, - has_billing_issue: null, - module_data: null, - page_number: null, - is_white_labeled: null, - is_prod: null, - is_crawler: null, - notification_count: null, - has_more: null, - is_closed: null, - presence_poll_state: null, - custom_config: null, - url_id_ws: null, - user_id_ws: null, - tenant_id_ws: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null -) -``` - diff --git a/client/docs/GetCommentsResponse.md b/client/docs/GetCommentsResponse.md deleted file mode 100644 index e87fb22..0000000 --- a/client/docs/GetCommentsResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetCommentsResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **comments** | [**Array<APIComment>**](APIComment.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetCommentsResponse.new( - status: null, - comments: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetCountResponse.md b/client/docs/GetCountResponse.md deleted file mode 100644 index 6809ad8..0000000 --- a/client/docs/GetCountResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetCountResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **count** | **Float** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetCountResponse.new( - status: null, - count: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetCountsResponse.md b/client/docs/GetCountsResponse.md deleted file mode 100644 index 947d708..0000000 --- a/client/docs/GetCountsResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetCountsResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **total_count** | **Float** | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetCountsResponse.new( - total_count: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetEmailTemplateDefinitionsResponse1.md b/client/docs/GetEmailTemplateDefinitionsResponse1.md deleted file mode 100644 index 3e89253..0000000 --- a/client/docs/GetEmailTemplateDefinitionsResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetEmailTemplateDefinitionsResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **definitions** | [**Array<EmailTemplateDefinition>**](EmailTemplateDefinition.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetEmailTemplateDefinitionsResponse1.new( - status: null, - definitions: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetEmailTemplateRenderErrorsResponse1.md b/client/docs/GetEmailTemplateRenderErrorsResponse1.md deleted file mode 100644 index 07e0389..0000000 --- a/client/docs/GetEmailTemplateRenderErrorsResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetEmailTemplateRenderErrorsResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **render_errors** | [**Array<EmailTemplateRenderErrorResponse>**](EmailTemplateRenderErrorResponse.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetEmailTemplateRenderErrorsResponse1.new( - status: null, - render_errors: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetEmailTemplateResponse1.md b/client/docs/GetEmailTemplateResponse1.md deleted file mode 100644 index 5455298..0000000 --- a/client/docs/GetEmailTemplateResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetEmailTemplateResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **email_template** | [**CustomEmailTemplate**](CustomEmailTemplate.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetEmailTemplateResponse1.new( - status: null, - email_template: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetEmailTemplatesResponse1.md b/client/docs/GetEmailTemplatesResponse1.md deleted file mode 100644 index 9820fff..0000000 --- a/client/docs/GetEmailTemplatesResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetEmailTemplatesResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **email_templates** | [**Array<CustomEmailTemplate>**](CustomEmailTemplate.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetEmailTemplatesResponse1.new( - status: null, - email_templates: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetEventLogResponse1.md b/client/docs/GetEventLogResponse1.md deleted file mode 100644 index 2c28a0b..0000000 --- a/client/docs/GetEventLogResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetEventLogResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **events** | [**Array<EventLogEntry>**](EventLogEntry.md) | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetEventLogResponse1.new( - events: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetFeedPostsPublicResponse.md b/client/docs/GetFeedPostsPublicResponse.md deleted file mode 100644 index 1266025..0000000 --- a/client/docs/GetFeedPostsPublicResponse.md +++ /dev/null @@ -1,44 +0,0 @@ -# FastCommentsClient::GetFeedPostsPublicResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **my_reacts** | **Hash<String, Hash<String, Boolean>>** | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **feed_posts** | [**Array<FeedPost>**](FeedPost.md) | | [optional] | -| **user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] | -| **url_id_ws** | **String** | | [optional] | -| **user_id_ws** | **String** | | [optional] | -| **tenant_id_ws** | **String** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetFeedPostsPublicResponse.new( - my_reacts: null, - status: null, - feed_posts: null, - user: null, - url_id_ws: null, - user_id_ws: null, - tenant_id_ws: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetFeedPostsResponse1.md b/client/docs/GetFeedPostsResponse1.md deleted file mode 100644 index d940a67..0000000 --- a/client/docs/GetFeedPostsResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetFeedPostsResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **feed_posts** | [**Array<FeedPost>**](FeedPost.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetFeedPostsResponse1.new( - status: null, - feed_posts: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetFeedPostsStatsResponse.md b/client/docs/GetFeedPostsStatsResponse.md deleted file mode 100644 index 4178acd..0000000 --- a/client/docs/GetFeedPostsStatsResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetFeedPostsStatsResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **stats** | [**Hash<String, FeedPostStats>**](FeedPostStats.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetFeedPostsStatsResponse.new( - status: null, - stats: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetGifLargeResponse.md b/client/docs/GetGifLargeResponse.md deleted file mode 100644 index 3732576..0000000 --- a/client/docs/GetGifLargeResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetGifLargeResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **src** | **String** | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetGifLargeResponse.new( - src: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetGifsSearchResponse.md b/client/docs/GetGifsSearchResponse.md index d8d32c0..fb1fe1e 100644 --- a/client/docs/GetGifsSearchResponse.md +++ b/client/docs/GetGifsSearchResponse.md @@ -7,12 +7,6 @@ | **images** | **Array<Array<GifSearchResponseImagesInnerInner>>** | | [optional] | | **status** | [**APIStatus**](APIStatus.md) | | | | **code** | **String** | | [optional] | -| **reason** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | ## Example @@ -22,13 +16,7 @@ require 'fastcomments-client' instance = FastCommentsClient::GetGifsSearchResponse.new( images: null, status: null, - code: null, - reason: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null + code: null ) ``` diff --git a/client/docs/GetGlobalEventLogResponse.md b/client/docs/GetGlobalEventLogResponse.md deleted file mode 100644 index e8579ab..0000000 --- a/client/docs/GetGlobalEventLogResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetGlobalEventLogResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **events** | [**Array<EventLogEntry>**](EventLogEntry.md) | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetGlobalEventLogResponse.new( - events: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetHashTagsResponse1.md b/client/docs/GetHashTagsResponse1.md deleted file mode 100644 index baee096..0000000 --- a/client/docs/GetHashTagsResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetHashTagsResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **hash_tags** | [**Array<TenantHashTag>**](TenantHashTag.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetHashTagsResponse1.new( - status: null, - hash_tags: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetLogsResponse.md b/client/docs/GetLogsResponse.md deleted file mode 100644 index 33becec..0000000 --- a/client/docs/GetLogsResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetLogsResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **logs** | [**Array<ModerationAPICommentLog>**](ModerationAPICommentLog.md) | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetLogsResponse.new( - logs: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetManualBadgesForUserResponse.md b/client/docs/GetManualBadgesForUserResponse.md deleted file mode 100644 index 34a71a2..0000000 --- a/client/docs/GetManualBadgesForUserResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetManualBadgesForUserResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **badges** | [**Array<UserBadge>**](UserBadge.md) | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetManualBadgesForUserResponse.new( - badges: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetManualBadgesResponse.md b/client/docs/GetManualBadgesResponse.md deleted file mode 100644 index 4e0f8a7..0000000 --- a/client/docs/GetManualBadgesResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetManualBadgesResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **badges** | [**Array<TenantBadge>**](TenantBadge.md) | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetManualBadgesResponse.new( - badges: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetModerationCommentResponse.md b/client/docs/GetModerationCommentResponse.md deleted file mode 100644 index 6a705e0..0000000 --- a/client/docs/GetModerationCommentResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetModerationCommentResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **comment** | [**ModerationAPIComment**](ModerationAPIComment.md) | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetModerationCommentResponse.new( - comment: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetModerationCommentTextResponse.md b/client/docs/GetModerationCommentTextResponse.md deleted file mode 100644 index f9d4165..0000000 --- a/client/docs/GetModerationCommentTextResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetModerationCommentTextResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **comment** | **String** | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetModerationCommentTextResponse.new( - comment: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetModeratorResponse1.md b/client/docs/GetModeratorResponse1.md deleted file mode 100644 index 543fb7d..0000000 --- a/client/docs/GetModeratorResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetModeratorResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **moderator** | [**Moderator**](Moderator.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetModeratorResponse1.new( - status: null, - moderator: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetModeratorsResponse1.md b/client/docs/GetModeratorsResponse1.md deleted file mode 100644 index a759f6c..0000000 --- a/client/docs/GetModeratorsResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetModeratorsResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **moderators** | [**Array<Moderator>**](Moderator.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetModeratorsResponse1.new( - status: null, - moderators: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetNotificationCountResponse1.md b/client/docs/GetNotificationCountResponse1.md deleted file mode 100644 index 13d1544..0000000 --- a/client/docs/GetNotificationCountResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetNotificationCountResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **count** | **Float** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetNotificationCountResponse1.new( - status: null, - count: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetNotificationsResponse1.md b/client/docs/GetNotificationsResponse1.md deleted file mode 100644 index 5f9ed03..0000000 --- a/client/docs/GetNotificationsResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetNotificationsResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **notifications** | [**Array<UserNotification>**](UserNotification.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetNotificationsResponse1.new( - status: null, - notifications: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetOfflineUsersResponse.md b/client/docs/GetOfflineUsersResponse.md deleted file mode 100644 index bd0f224..0000000 --- a/client/docs/GetOfflineUsersResponse.md +++ /dev/null @@ -1,38 +0,0 @@ -# FastCommentsClient::GetOfflineUsersResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **next_after_user_id** | **String** | | [optional] | -| **next_after_name** | **String** | | [optional] | -| **users** | [**Array<PageUserEntry>**](PageUserEntry.md) | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetOfflineUsersResponse.new( - next_after_user_id: null, - next_after_name: null, - users: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetOnlineUsersResponse.md b/client/docs/GetOnlineUsersResponse.md deleted file mode 100644 index e502fd4..0000000 --- a/client/docs/GetOnlineUsersResponse.md +++ /dev/null @@ -1,42 +0,0 @@ -# FastCommentsClient::GetOnlineUsersResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **next_after_user_id** | **String** | | [optional] | -| **next_after_name** | **String** | | [optional] | -| **total_count** | **Float** | | [optional] | -| **anon_count** | **Float** | | [optional] | -| **users** | [**Array<PageUserEntry>**](PageUserEntry.md) | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetOnlineUsersResponse.new( - next_after_user_id: null, - next_after_name: null, - total_count: null, - anon_count: null, - users: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetPagesPublicResponse.md b/client/docs/GetPagesPublicResponse.md deleted file mode 100644 index 93ddadd..0000000 --- a/client/docs/GetPagesPublicResponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# FastCommentsClient::GetPagesPublicResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **next_cursor** | **String** | | [optional] | -| **pages** | [**Array<PublicPage>**](PublicPage.md) | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetPagesPublicResponse.new( - next_cursor: null, - pages: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetPendingWebhookEventCountResponse1.md b/client/docs/GetPendingWebhookEventCountResponse1.md deleted file mode 100644 index d4202ea..0000000 --- a/client/docs/GetPendingWebhookEventCountResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetPendingWebhookEventCountResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **count** | **Float** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetPendingWebhookEventCountResponse1.new( - status: null, - count: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetPendingWebhookEventsResponse1.md b/client/docs/GetPendingWebhookEventsResponse1.md deleted file mode 100644 index f5d417e..0000000 --- a/client/docs/GetPendingWebhookEventsResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetPendingWebhookEventsResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **pending_webhook_events** | [**Array<PendingCommentToSyncOutbound>**](PendingCommentToSyncOutbound.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetPendingWebhookEventsResponse1.new( - status: null, - pending_webhook_events: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetPreBanSummaryResponse.md b/client/docs/GetPreBanSummaryResponse.md deleted file mode 100644 index 241bccb..0000000 --- a/client/docs/GetPreBanSummaryResponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# FastCommentsClient::GetPreBanSummaryResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **usernames** | **Array<String>** | | [optional] | -| **count** | **Float** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetPreBanSummaryResponse.new( - status: null, - usernames: null, - count: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetQuestionConfigResponse1.md b/client/docs/GetQuestionConfigResponse1.md deleted file mode 100644 index 55b13bd..0000000 --- a/client/docs/GetQuestionConfigResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetQuestionConfigResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **question_config** | [**QuestionConfig**](QuestionConfig.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetQuestionConfigResponse1.new( - status: null, - question_config: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetQuestionConfigsResponse1.md b/client/docs/GetQuestionConfigsResponse1.md deleted file mode 100644 index 6a08376..0000000 --- a/client/docs/GetQuestionConfigsResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetQuestionConfigsResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **question_configs** | [**Array<QuestionConfig>**](QuestionConfig.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetQuestionConfigsResponse1.new( - status: null, - question_configs: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetQuestionResultResponse1.md b/client/docs/GetQuestionResultResponse1.md deleted file mode 100644 index 01e1f27..0000000 --- a/client/docs/GetQuestionResultResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetQuestionResultResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **question_result** | [**QuestionResult**](QuestionResult.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetQuestionResultResponse1.new( - status: null, - question_result: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetQuestionResultsResponse1.md b/client/docs/GetQuestionResultsResponse1.md deleted file mode 100644 index 31fa020..0000000 --- a/client/docs/GetQuestionResultsResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetQuestionResultsResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **question_results** | [**Array<QuestionResult>**](QuestionResult.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetQuestionResultsResponse1.new( - status: null, - question_results: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetSearchCommentsSummaryResponse.md b/client/docs/GetSearchCommentsSummaryResponse.md deleted file mode 100644 index ac10ce2..0000000 --- a/client/docs/GetSearchCommentsSummaryResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetSearchCommentsSummaryResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **comment_count** | **Integer** | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetSearchCommentsSummaryResponse.new( - comment_count: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetSearchPagesResponse.md b/client/docs/GetSearchPagesResponse.md deleted file mode 100644 index a173f42..0000000 --- a/client/docs/GetSearchPagesResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetSearchPagesResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **pages** | [**Array<ModerationPageSearchProjected>**](ModerationPageSearchProjected.md) | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetSearchPagesResponse.new( - pages: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetSearchSitesResponse.md b/client/docs/GetSearchSitesResponse.md deleted file mode 100644 index 499443d..0000000 --- a/client/docs/GetSearchSitesResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetSearchSitesResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **sites** | [**Array<ModerationSiteSearchProjected>**](ModerationSiteSearchProjected.md) | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetSearchSitesResponse.new( - sites: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetSearchSuggestResponse.md b/client/docs/GetSearchSuggestResponse.md deleted file mode 100644 index 994086a..0000000 --- a/client/docs/GetSearchSuggestResponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# FastCommentsClient::GetSearchSuggestResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **pages** | [**Array<ModerationPageSearchProjected>**](ModerationPageSearchProjected.md) | | [optional] | -| **users** | [**Array<ModerationUserSearchProjected>**](ModerationUserSearchProjected.md) | | [optional] | -| **code** | **String** | | [optional] | -| **reason** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetSearchSuggestResponse.new( - status: null, - pages: null, - users: null, - code: null, - reason: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetSearchUsersResponse.md b/client/docs/GetSearchUsersResponse.md deleted file mode 100644 index 9ae0ec7..0000000 --- a/client/docs/GetSearchUsersResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetSearchUsersResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **users** | [**Array<ModerationUserSearchProjected>**](ModerationUserSearchProjected.md) | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetSearchUsersResponse.new( - users: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetTenantDailyUsagesResponse1.md b/client/docs/GetTenantDailyUsagesResponse1.md deleted file mode 100644 index c6b433f..0000000 --- a/client/docs/GetTenantDailyUsagesResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetTenantDailyUsagesResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **tenant_daily_usages** | [**Array<APITenantDailyUsage>**](APITenantDailyUsage.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetTenantDailyUsagesResponse1.new( - status: null, - tenant_daily_usages: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetTenantPackageResponse1.md b/client/docs/GetTenantPackageResponse1.md deleted file mode 100644 index ec499b3..0000000 --- a/client/docs/GetTenantPackageResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetTenantPackageResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **tenant_package** | [**TenantPackage**](TenantPackage.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetTenantPackageResponse1.new( - status: null, - tenant_package: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetTenantPackagesResponse1.md b/client/docs/GetTenantPackagesResponse1.md deleted file mode 100644 index 8343bc5..0000000 --- a/client/docs/GetTenantPackagesResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetTenantPackagesResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **tenant_packages** | [**Array<TenantPackage>**](TenantPackage.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetTenantPackagesResponse1.new( - status: null, - tenant_packages: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetTenantResponse1.md b/client/docs/GetTenantResponse1.md deleted file mode 100644 index 10f5681..0000000 --- a/client/docs/GetTenantResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetTenantResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **tenant** | [**APITenant**](APITenant.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetTenantResponse1.new( - status: null, - tenant: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetTenantUserResponse1.md b/client/docs/GetTenantUserResponse1.md deleted file mode 100644 index 0f29bc6..0000000 --- a/client/docs/GetTenantUserResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetTenantUserResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **tenant_user** | [**User**](User.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetTenantUserResponse1.new( - status: null, - tenant_user: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetTenantUsersResponse1.md b/client/docs/GetTenantUsersResponse1.md deleted file mode 100644 index 6b15ef9..0000000 --- a/client/docs/GetTenantUsersResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetTenantUsersResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **tenant_users** | [**Array<User>**](User.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetTenantUsersResponse1.new( - status: null, - tenant_users: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetTenantsResponse1.md b/client/docs/GetTenantsResponse1.md deleted file mode 100644 index c44cf4f..0000000 --- a/client/docs/GetTenantsResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetTenantsResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **tenants** | [**Array<APITenant>**](APITenant.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetTenantsResponse1.new( - status: null, - tenants: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetTicketResponse1.md b/client/docs/GetTicketResponse1.md deleted file mode 100644 index c42a377..0000000 --- a/client/docs/GetTicketResponse1.md +++ /dev/null @@ -1,36 +0,0 @@ -# FastCommentsClient::GetTicketResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **ticket** | [**APITicketDetail**](APITicketDetail.md) | | [optional] | -| **available_states** | **Array<Float>** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetTicketResponse1.new( - status: null, - ticket: null, - available_states: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetTicketsResponse1.md b/client/docs/GetTicketsResponse1.md deleted file mode 100644 index 3301345..0000000 --- a/client/docs/GetTicketsResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetTicketsResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **tickets** | [**Array<APITicket>**](APITicket.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetTicketsResponse1.new( - status: null, - tickets: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetTranslationsResponse1.md b/client/docs/GetTranslationsResponse1.md deleted file mode 100644 index 9f668de..0000000 --- a/client/docs/GetTranslationsResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetTranslationsResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **translations** | **Hash<String, String>** | Construct a type with a set of properties K of type T | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetTranslationsResponse1.new( - translations: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetTrustFactorResponse.md b/client/docs/GetTrustFactorResponse.md deleted file mode 100644 index 3555e95..0000000 --- a/client/docs/GetTrustFactorResponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# FastCommentsClient::GetTrustFactorResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **manual_trust_factor** | **Float** | | [optional] | -| **auto_trust_factor** | **Float** | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetTrustFactorResponse.new( - manual_trust_factor: null, - auto_trust_factor: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetUserBadgeProgressByIdResponse.md b/client/docs/GetUserBadgeProgressByIdResponse.md deleted file mode 100644 index 3ccbf12..0000000 --- a/client/docs/GetUserBadgeProgressByIdResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetUserBadgeProgressByIdResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **user_badge_progress** | [**UserBadgeProgress**](UserBadgeProgress.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetUserBadgeProgressByIdResponse.new( - status: null, - user_badge_progress: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetUserBadgeProgressByUserIdResponse.md b/client/docs/GetUserBadgeProgressByUserIdResponse.md deleted file mode 100644 index 8fda688..0000000 --- a/client/docs/GetUserBadgeProgressByUserIdResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetUserBadgeProgressByUserIdResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **user_badge_progress** | [**UserBadgeProgress**](UserBadgeProgress.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetUserBadgeProgressByUserIdResponse.new( - status: null, - user_badge_progress: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetUserBadgeProgressListResponse.md b/client/docs/GetUserBadgeProgressListResponse.md deleted file mode 100644 index 8b92460..0000000 --- a/client/docs/GetUserBadgeProgressListResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetUserBadgeProgressListResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **user_badge_progresses** | [**Array<UserBadgeProgress>**](UserBadgeProgress.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetUserBadgeProgressListResponse.new( - status: null, - user_badge_progresses: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetUserBadgeResponse.md b/client/docs/GetUserBadgeResponse.md deleted file mode 100644 index 430c4bf..0000000 --- a/client/docs/GetUserBadgeResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetUserBadgeResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **user_badge** | [**UserBadge**](UserBadge.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetUserBadgeResponse.new( - status: null, - user_badge: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetUserBadgesResponse.md b/client/docs/GetUserBadgesResponse.md deleted file mode 100644 index 11bfce5..0000000 --- a/client/docs/GetUserBadgesResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetUserBadgesResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **user_badges** | [**Array<UserBadge>**](UserBadge.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetUserBadgesResponse.new( - status: null, - user_badges: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetUserBanPreferenceResponse.md b/client/docs/GetUserBanPreferenceResponse.md deleted file mode 100644 index 3d6d130..0000000 --- a/client/docs/GetUserBanPreferenceResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetUserBanPreferenceResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **preferences** | [**APIModerateUserBanPreferences**](APIModerateUserBanPreferences.md) | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetUserBanPreferenceResponse.new( - preferences: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetUserInternalProfileResponse1.md b/client/docs/GetUserInternalProfileResponse1.md deleted file mode 100644 index fd979dd..0000000 --- a/client/docs/GetUserInternalProfileResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetUserInternalProfileResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **profile** | [**GetUserInternalProfileResponseProfile**](GetUserInternalProfileResponseProfile.md) | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetUserInternalProfileResponse1.new( - profile: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetUserNotificationCountResponse1.md b/client/docs/GetUserNotificationCountResponse1.md deleted file mode 100644 index 4c209b0..0000000 --- a/client/docs/GetUserNotificationCountResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetUserNotificationCountResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **count** | **Integer** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetUserNotificationCountResponse1.new( - status: null, - count: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetUserNotificationsResponse.md b/client/docs/GetUserNotificationsResponse.md deleted file mode 100644 index 707dbfa..0000000 --- a/client/docs/GetUserNotificationsResponse.md +++ /dev/null @@ -1,40 +0,0 @@ -# FastCommentsClient::GetUserNotificationsResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **translations** | **Hash<String, String>** | Construct a type with a set of properties K of type T | [optional] | -| **is_subscribed** | **Boolean** | | [optional] | -| **has_more** | **Boolean** | | [optional] | -| **notifications** | [**Array<RenderableUserNotification>**](RenderableUserNotification.md) | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetUserNotificationsResponse.new( - translations: null, - is_subscribed: null, - has_more: null, - notifications: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetUserPresenceStatusesResponse1.md b/client/docs/GetUserPresenceStatusesResponse1.md deleted file mode 100644 index 3bbbc81..0000000 --- a/client/docs/GetUserPresenceStatusesResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetUserPresenceStatusesResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **user_ids_online** | **Hash<String, Boolean>** | Construct a type with a set of properties K of type T | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetUserPresenceStatusesResponse1.new( - status: null, - user_ids_online: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetUserReactsPublicResponse.md b/client/docs/GetUserReactsPublicResponse.md deleted file mode 100644 index 59bb9a9..0000000 --- a/client/docs/GetUserReactsPublicResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetUserReactsPublicResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reacts** | **Hash<String, Hash<String, Boolean>>** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetUserReactsPublicResponse.new( - status: null, - reacts: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetUserResponse1.md b/client/docs/GetUserResponse1.md deleted file mode 100644 index cc98169..0000000 --- a/client/docs/GetUserResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetUserResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **user** | [**User**](User.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetUserResponse1.new( - status: null, - user: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetUsersInfoResponse.md b/client/docs/GetUsersInfoResponse.md deleted file mode 100644 index ae7af9f..0000000 --- a/client/docs/GetUsersInfoResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetUsersInfoResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **users** | [**Array<PageUserEntry>**](PageUserEntry.md) | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetUsersInfoResponse.new( - users: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetV1PageLikesResponse.md b/client/docs/GetV1PageLikesResponse.md deleted file mode 100644 index cacf102..0000000 --- a/client/docs/GetV1PageLikesResponse.md +++ /dev/null @@ -1,40 +0,0 @@ -# FastCommentsClient::GetV1PageLikesResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **url_id_ws** | **String** | | [optional] | -| **did_like** | **Boolean** | | [optional] | -| **comment_count** | **Integer** | | [optional] | -| **like_count** | **Integer** | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetV1PageLikesResponse.new( - url_id_ws: null, - did_like: null, - comment_count: null, - like_count: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetV2PageReactUsersResponse1.md b/client/docs/GetV2PageReactUsersResponse1.md deleted file mode 100644 index b5131ab..0000000 --- a/client/docs/GetV2PageReactUsersResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::GetV2PageReactUsersResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **user_names** | **Array<String>** | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetV2PageReactUsersResponse1.new( - user_names: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetV2PageReactsResponse.md b/client/docs/GetV2PageReactsResponse.md deleted file mode 100644 index 62ec485..0000000 --- a/client/docs/GetV2PageReactsResponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# FastCommentsClient::GetV2PageReactsResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **reacted_ids** | **Array<String>** | | [optional] | -| **counts** | **Hash<String, Float>** | Construct a type with a set of properties K of type T | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetV2PageReactsResponse.new( - reacted_ids: null, - counts: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetVotesForUserResponse1.md b/client/docs/GetVotesForUserResponse1.md deleted file mode 100644 index f3be7bb..0000000 --- a/client/docs/GetVotesForUserResponse1.md +++ /dev/null @@ -1,38 +0,0 @@ -# FastCommentsClient::GetVotesForUserResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **applied_authorized_votes** | [**Array<PublicVote>**](PublicVote.md) | | [optional] | -| **applied_anonymous_votes** | [**Array<PublicVote>**](PublicVote.md) | | [optional] | -| **pending_votes** | [**Array<PublicVote>**](PublicVote.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetVotesForUserResponse1.new( - status: null, - applied_authorized_votes: null, - applied_anonymous_votes: null, - pending_votes: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/GetVotesResponse1.md b/client/docs/GetVotesResponse1.md deleted file mode 100644 index c486213..0000000 --- a/client/docs/GetVotesResponse1.md +++ /dev/null @@ -1,38 +0,0 @@ -# FastCommentsClient::GetVotesResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **applied_authorized_votes** | [**Array<PublicVote>**](PublicVote.md) | | [optional] | -| **applied_anonymous_votes** | [**Array<PublicVote>**](PublicVote.md) | | [optional] | -| **pending_votes** | [**Array<PublicVote>**](PublicVote.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::GetVotesResponse1.new( - status: null, - applied_authorized_votes: null, - applied_anonymous_votes: null, - pending_votes: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/LockCommentResponse.md b/client/docs/LockCommentResponse.md deleted file mode 100644 index 29c4b0b..0000000 --- a/client/docs/LockCommentResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::LockCommentResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::LockCommentResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/ModerationApi.md b/client/docs/ModerationApi.md index cbc6a0a..f6c5674 100644 --- a/client/docs/ModerationApi.md +++ b/client/docs/ModerationApi.md @@ -51,7 +51,7 @@ All URIs are relative to *https://fastcomments.com* ## delete_moderation_vote -> delete_moderation_vote(comment_id, vote_id, opts) +> delete_moderation_vote(comment_id, vote_id, opts) @@ -83,7 +83,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_moderation_vote_with_http_info(comment_id, vote_id, opts) +> , Integer, Hash)> delete_moderation_vote_with_http_info(comment_id, vote_id, opts) ```ruby begin @@ -91,7 +91,7 @@ begin data, status_code, headers = api_instance.delete_moderation_vote_with_http_info(comment_id, vote_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->delete_moderation_vote_with_http_info: #{e}" end @@ -109,7 +109,7 @@ end ### Return type -[**DeleteModerationVoteResponse**](DeleteModerationVoteResponse.md) +[**VoteDeleteResponse**](VoteDeleteResponse.md) ### Authorization @@ -123,7 +123,7 @@ No authorization required ## get_api_comments -> get_api_comments(opts) +> get_api_comments(opts) @@ -160,7 +160,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_api_comments_with_http_info(opts) +> , Integer, Hash)> get_api_comments_with_http_info(opts) ```ruby begin @@ -168,7 +168,7 @@ begin data, status_code, headers = api_instance.get_api_comments_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_api_comments_with_http_info: #{e}" end @@ -191,7 +191,7 @@ end ### Return type -[**GetApiCommentsResponse**](GetApiCommentsResponse.md) +[**ModerationAPIGetCommentsResponse**](ModerationAPIGetCommentsResponse.md) ### Authorization @@ -205,7 +205,7 @@ No authorization required ## get_api_export_status -> get_api_export_status(opts) +> get_api_export_status(opts) @@ -235,7 +235,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_api_export_status_with_http_info(opts) +> , Integer, Hash)> get_api_export_status_with_http_info(opts) ```ruby begin @@ -243,7 +243,7 @@ begin data, status_code, headers = api_instance.get_api_export_status_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_api_export_status_with_http_info: #{e}" end @@ -259,7 +259,7 @@ end ### Return type -[**GetApiExportStatusResponse**](GetApiExportStatusResponse.md) +[**ModerationExportStatusResponse**](ModerationExportStatusResponse.md) ### Authorization @@ -273,7 +273,7 @@ No authorization required ## get_api_ids -> get_api_ids(opts) +> get_api_ids(opts) @@ -308,7 +308,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_api_ids_with_http_info(opts) +> , Integer, Hash)> get_api_ids_with_http_info(opts) ```ruby begin @@ -316,7 +316,7 @@ begin data, status_code, headers = api_instance.get_api_ids_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_api_ids_with_http_info: #{e}" end @@ -337,7 +337,7 @@ end ### Return type -[**GetApiIdsResponse**](GetApiIdsResponse.md) +[**ModerationAPIGetCommentIdsResponse**](ModerationAPIGetCommentIdsResponse.md) ### Authorization @@ -351,7 +351,7 @@ No authorization required ## get_ban_users_from_comment -> get_ban_users_from_comment(comment_id, opts) +> get_ban_users_from_comment(comment_id, opts) @@ -381,7 +381,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_ban_users_from_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> get_ban_users_from_comment_with_http_info(comment_id, opts) ```ruby begin @@ -389,7 +389,7 @@ begin data, status_code, headers = api_instance.get_ban_users_from_comment_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_ban_users_from_comment_with_http_info: #{e}" end @@ -405,7 +405,7 @@ end ### Return type -[**GetBanUsersFromCommentResponse**](GetBanUsersFromCommentResponse.md) +[**GetBannedUsersFromCommentResponse**](GetBannedUsersFromCommentResponse.md) ### Authorization @@ -419,7 +419,7 @@ No authorization required ## get_comment_ban_status -> get_comment_ban_status(comment_id, opts) +> get_comment_ban_status(comment_id, opts) @@ -449,7 +449,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comment_ban_status_with_http_info(comment_id, opts) +> , Integer, Hash)> get_comment_ban_status_with_http_info(comment_id, opts) ```ruby begin @@ -457,7 +457,7 @@ begin data, status_code, headers = api_instance.get_comment_ban_status_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_comment_ban_status_with_http_info: #{e}" end @@ -473,7 +473,7 @@ end ### Return type -[**GetCommentBanStatusResponse1**](GetCommentBanStatusResponse1.md) +[**GetCommentBanStatusResponse**](GetCommentBanStatusResponse.md) ### Authorization @@ -487,7 +487,7 @@ No authorization required ## get_comment_children -> get_comment_children(comment_id, opts) +> get_comment_children(comment_id, opts) @@ -517,7 +517,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comment_children_with_http_info(comment_id, opts) +> , Integer, Hash)> get_comment_children_with_http_info(comment_id, opts) ```ruby begin @@ -525,7 +525,7 @@ begin data, status_code, headers = api_instance.get_comment_children_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_comment_children_with_http_info: #{e}" end @@ -541,7 +541,7 @@ end ### Return type -[**GetCommentChildrenResponse**](GetCommentChildrenResponse.md) +[**ModerationAPIChildCommentsResponse**](ModerationAPIChildCommentsResponse.md) ### Authorization @@ -555,7 +555,7 @@ No authorization required ## get_count -> get_count(opts) +> get_count(opts) @@ -589,7 +589,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_count_with_http_info(opts) +> , Integer, Hash)> get_count_with_http_info(opts) ```ruby begin @@ -597,7 +597,7 @@ begin data, status_code, headers = api_instance.get_count_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_count_with_http_info: #{e}" end @@ -617,7 +617,7 @@ end ### Return type -[**GetCountResponse**](GetCountResponse.md) +[**ModerationAPICountCommentsResponse**](ModerationAPICountCommentsResponse.md) ### Authorization @@ -631,7 +631,7 @@ No authorization required ## get_counts -> get_counts(opts) +> get_counts(opts) @@ -660,7 +660,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_counts_with_http_info(opts) +> , Integer, Hash)> get_counts_with_http_info(opts) ```ruby begin @@ -668,7 +668,7 @@ begin data, status_code, headers = api_instance.get_counts_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_counts_with_http_info: #{e}" end @@ -683,7 +683,7 @@ end ### Return type -[**GetCountsResponse**](GetCountsResponse.md) +[**GetBannedUsersCountResponse**](GetBannedUsersCountResponse.md) ### Authorization @@ -697,7 +697,7 @@ No authorization required ## get_logs -> get_logs(comment_id, opts) +> get_logs(comment_id, opts) @@ -727,7 +727,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_logs_with_http_info(comment_id, opts) +> , Integer, Hash)> get_logs_with_http_info(comment_id, opts) ```ruby begin @@ -735,7 +735,7 @@ begin data, status_code, headers = api_instance.get_logs_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_logs_with_http_info: #{e}" end @@ -751,7 +751,7 @@ end ### Return type -[**GetLogsResponse**](GetLogsResponse.md) +[**ModerationAPIGetLogsResponse**](ModerationAPIGetLogsResponse.md) ### Authorization @@ -765,7 +765,7 @@ No authorization required ## get_manual_badges -> get_manual_badges(opts) +> get_manual_badges(opts) @@ -794,7 +794,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_manual_badges_with_http_info(opts) +> , Integer, Hash)> get_manual_badges_with_http_info(opts) ```ruby begin @@ -802,7 +802,7 @@ begin data, status_code, headers = api_instance.get_manual_badges_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_manual_badges_with_http_info: #{e}" end @@ -817,7 +817,7 @@ end ### Return type -[**GetManualBadgesResponse**](GetManualBadgesResponse.md) +[**GetTenantManualBadgesResponse**](GetTenantManualBadgesResponse.md) ### Authorization @@ -831,7 +831,7 @@ No authorization required ## get_manual_badges_for_user -> get_manual_badges_for_user(opts) +> get_manual_badges_for_user(opts) @@ -862,7 +862,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_manual_badges_for_user_with_http_info(opts) +> , Integer, Hash)> get_manual_badges_for_user_with_http_info(opts) ```ruby begin @@ -870,7 +870,7 @@ begin data, status_code, headers = api_instance.get_manual_badges_for_user_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_manual_badges_for_user_with_http_info: #{e}" end @@ -887,7 +887,7 @@ end ### Return type -[**GetManualBadgesForUserResponse**](GetManualBadgesForUserResponse.md) +[**GetUserManualBadgesResponse**](GetUserManualBadgesResponse.md) ### Authorization @@ -901,7 +901,7 @@ No authorization required ## get_moderation_comment -> get_moderation_comment(comment_id, opts) +> get_moderation_comment(comment_id, opts) @@ -933,7 +933,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_moderation_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> get_moderation_comment_with_http_info(comment_id, opts) ```ruby begin @@ -941,7 +941,7 @@ begin data, status_code, headers = api_instance.get_moderation_comment_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_moderation_comment_with_http_info: #{e}" end @@ -959,7 +959,7 @@ end ### Return type -[**GetModerationCommentResponse**](GetModerationCommentResponse.md) +[**ModerationAPICommentResponse**](ModerationAPICommentResponse.md) ### Authorization @@ -973,7 +973,7 @@ No authorization required ## get_moderation_comment_text -> get_moderation_comment_text(comment_id, opts) +> get_moderation_comment_text(comment_id, opts) @@ -1003,7 +1003,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_moderation_comment_text_with_http_info(comment_id, opts) +> , Integer, Hash)> get_moderation_comment_text_with_http_info(comment_id, opts) ```ruby begin @@ -1011,7 +1011,7 @@ begin data, status_code, headers = api_instance.get_moderation_comment_text_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_moderation_comment_text_with_http_info: #{e}" end @@ -1027,7 +1027,7 @@ end ### Return type -[**GetModerationCommentTextResponse**](GetModerationCommentTextResponse.md) +[**GetCommentTextResponse**](GetCommentTextResponse.md) ### Authorization @@ -1041,7 +1041,7 @@ No authorization required ## get_pre_ban_summary -> get_pre_ban_summary(comment_id, opts) +> get_pre_ban_summary(comment_id, opts) @@ -1074,7 +1074,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_pre_ban_summary_with_http_info(comment_id, opts) +> , Integer, Hash)> get_pre_ban_summary_with_http_info(comment_id, opts) ```ruby begin @@ -1082,7 +1082,7 @@ begin data, status_code, headers = api_instance.get_pre_ban_summary_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_pre_ban_summary_with_http_info: #{e}" end @@ -1101,7 +1101,7 @@ end ### Return type -[**GetPreBanSummaryResponse**](GetPreBanSummaryResponse.md) +[**PreBanSummary**](PreBanSummary.md) ### Authorization @@ -1115,7 +1115,7 @@ No authorization required ## get_search_comments_summary -> get_search_comments_summary(opts) +> get_search_comments_summary(opts) @@ -1147,7 +1147,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_search_comments_summary_with_http_info(opts) +> , Integer, Hash)> get_search_comments_summary_with_http_info(opts) ```ruby begin @@ -1155,7 +1155,7 @@ begin data, status_code, headers = api_instance.get_search_comments_summary_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_search_comments_summary_with_http_info: #{e}" end @@ -1173,7 +1173,7 @@ end ### Return type -[**GetSearchCommentsSummaryResponse**](GetSearchCommentsSummaryResponse.md) +[**ModerationCommentSearchResponse**](ModerationCommentSearchResponse.md) ### Authorization @@ -1187,7 +1187,7 @@ No authorization required ## get_search_pages -> get_search_pages(opts) +> get_search_pages(opts) @@ -1217,7 +1217,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_search_pages_with_http_info(opts) +> , Integer, Hash)> get_search_pages_with_http_info(opts) ```ruby begin @@ -1225,7 +1225,7 @@ begin data, status_code, headers = api_instance.get_search_pages_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_search_pages_with_http_info: #{e}" end @@ -1241,7 +1241,7 @@ end ### Return type -[**GetSearchPagesResponse**](GetSearchPagesResponse.md) +[**ModerationPageSearchResponse**](ModerationPageSearchResponse.md) ### Authorization @@ -1255,7 +1255,7 @@ No authorization required ## get_search_sites -> get_search_sites(opts) +> get_search_sites(opts) @@ -1285,7 +1285,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_search_sites_with_http_info(opts) +> , Integer, Hash)> get_search_sites_with_http_info(opts) ```ruby begin @@ -1293,7 +1293,7 @@ begin data, status_code, headers = api_instance.get_search_sites_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_search_sites_with_http_info: #{e}" end @@ -1309,7 +1309,7 @@ end ### Return type -[**GetSearchSitesResponse**](GetSearchSitesResponse.md) +[**ModerationSiteSearchResponse**](ModerationSiteSearchResponse.md) ### Authorization @@ -1323,7 +1323,7 @@ No authorization required ## get_search_suggest -> get_search_suggest(opts) +> get_search_suggest(opts) @@ -1353,7 +1353,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_search_suggest_with_http_info(opts) +> , Integer, Hash)> get_search_suggest_with_http_info(opts) ```ruby begin @@ -1361,7 +1361,7 @@ begin data, status_code, headers = api_instance.get_search_suggest_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_search_suggest_with_http_info: #{e}" end @@ -1377,7 +1377,7 @@ end ### Return type -[**GetSearchSuggestResponse**](GetSearchSuggestResponse.md) +[**ModerationSuggestResponse**](ModerationSuggestResponse.md) ### Authorization @@ -1391,7 +1391,7 @@ No authorization required ## get_search_users -> get_search_users(opts) +> get_search_users(opts) @@ -1421,7 +1421,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_search_users_with_http_info(opts) +> , Integer, Hash)> get_search_users_with_http_info(opts) ```ruby begin @@ -1429,7 +1429,7 @@ begin data, status_code, headers = api_instance.get_search_users_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_search_users_with_http_info: #{e}" end @@ -1445,7 +1445,7 @@ end ### Return type -[**GetSearchUsersResponse**](GetSearchUsersResponse.md) +[**ModerationUserSearchResponse**](ModerationUserSearchResponse.md) ### Authorization @@ -1459,7 +1459,7 @@ No authorization required ## get_trust_factor -> get_trust_factor(opts) +> get_trust_factor(opts) @@ -1489,7 +1489,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_trust_factor_with_http_info(opts) +> , Integer, Hash)> get_trust_factor_with_http_info(opts) ```ruby begin @@ -1497,7 +1497,7 @@ begin data, status_code, headers = api_instance.get_trust_factor_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_trust_factor_with_http_info: #{e}" end @@ -1513,7 +1513,7 @@ end ### Return type -[**GetTrustFactorResponse**](GetTrustFactorResponse.md) +[**GetUserTrustFactorResponse**](GetUserTrustFactorResponse.md) ### Authorization @@ -1527,7 +1527,7 @@ No authorization required ## get_user_ban_preference -> get_user_ban_preference(opts) +> get_user_ban_preference(opts) @@ -1556,7 +1556,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_ban_preference_with_http_info(opts) +> , Integer, Hash)> get_user_ban_preference_with_http_info(opts) ```ruby begin @@ -1564,7 +1564,7 @@ begin data, status_code, headers = api_instance.get_user_ban_preference_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_user_ban_preference_with_http_info: #{e}" end @@ -1579,7 +1579,7 @@ end ### Return type -[**GetUserBanPreferenceResponse**](GetUserBanPreferenceResponse.md) +[**APIModerateGetUserBanPreferencesResponse**](APIModerateGetUserBanPreferencesResponse.md) ### Authorization @@ -1593,7 +1593,7 @@ No authorization required ## get_user_internal_profile -> get_user_internal_profile(opts) +> get_user_internal_profile(opts) @@ -1623,7 +1623,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_internal_profile_with_http_info(opts) +> , Integer, Hash)> get_user_internal_profile_with_http_info(opts) ```ruby begin @@ -1631,7 +1631,7 @@ begin data, status_code, headers = api_instance.get_user_internal_profile_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_user_internal_profile_with_http_info: #{e}" end @@ -1647,7 +1647,7 @@ end ### Return type -[**GetUserInternalProfileResponse1**](GetUserInternalProfileResponse1.md) +[**GetUserInternalProfileResponse**](GetUserInternalProfileResponse.md) ### Authorization @@ -1661,7 +1661,7 @@ No authorization required ## post_adjust_comment_votes -> post_adjust_comment_votes(comment_id, adjust_comment_votes_params, opts) +> post_adjust_comment_votes(comment_id, adjust_comment_votes_params, opts) @@ -1693,7 +1693,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts) +> , Integer, Hash)> post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts) ```ruby begin @@ -1701,7 +1701,7 @@ begin data, status_code, headers = api_instance.post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_adjust_comment_votes_with_http_info: #{e}" end @@ -1719,7 +1719,7 @@ end ### Return type -[**PostAdjustCommentVotesResponse**](PostAdjustCommentVotesResponse.md) +[**AdjustVotesResponse**](AdjustVotesResponse.md) ### Authorization @@ -1733,7 +1733,7 @@ No authorization required ## post_api_export -> post_api_export(opts) +> post_api_export(opts) @@ -1767,7 +1767,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_api_export_with_http_info(opts) +> , Integer, Hash)> post_api_export_with_http_info(opts) ```ruby begin @@ -1775,7 +1775,7 @@ begin data, status_code, headers = api_instance.post_api_export_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_api_export_with_http_info: #{e}" end @@ -1795,7 +1795,7 @@ end ### Return type -[**PostApiExportResponse**](PostApiExportResponse.md) +[**ModerationExportResponse**](ModerationExportResponse.md) ### Authorization @@ -1809,7 +1809,7 @@ No authorization required ## post_ban_user_from_comment -> post_ban_user_from_comment(comment_id, opts) +> post_ban_user_from_comment(comment_id, opts) @@ -1847,7 +1847,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_ban_user_from_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> post_ban_user_from_comment_with_http_info(comment_id, opts) ```ruby begin @@ -1855,7 +1855,7 @@ begin data, status_code, headers = api_instance.post_ban_user_from_comment_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_ban_user_from_comment_with_http_info: #{e}" end @@ -1879,7 +1879,7 @@ end ### Return type -[**PostBanUserFromCommentResponse**](PostBanUserFromCommentResponse.md) +[**BanUserFromCommentResult**](BanUserFromCommentResult.md) ### Authorization @@ -1893,7 +1893,7 @@ No authorization required ## post_ban_user_undo -> post_ban_user_undo(ban_user_undo_params, opts) +> post_ban_user_undo(ban_user_undo_params, opts) @@ -1923,7 +1923,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_ban_user_undo_with_http_info(ban_user_undo_params, opts) +> , Integer, Hash)> post_ban_user_undo_with_http_info(ban_user_undo_params, opts) ```ruby begin @@ -1931,7 +1931,7 @@ begin data, status_code, headers = api_instance.post_ban_user_undo_with_http_info(ban_user_undo_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_ban_user_undo_with_http_info: #{e}" end @@ -1947,7 +1947,7 @@ end ### Return type -[**PostBanUserUndoResponse**](PostBanUserUndoResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1961,7 +1961,7 @@ No authorization required ## post_bulk_pre_ban_summary -> post_bulk_pre_ban_summary(bulk_pre_ban_params, opts) +> post_bulk_pre_ban_summary(bulk_pre_ban_params, opts) @@ -1994,7 +1994,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts) +> , Integer, Hash)> post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts) ```ruby begin @@ -2002,7 +2002,7 @@ begin data, status_code, headers = api_instance.post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_bulk_pre_ban_summary_with_http_info: #{e}" end @@ -2021,7 +2021,7 @@ end ### Return type -[**PostBulkPreBanSummaryResponse**](PostBulkPreBanSummaryResponse.md) +[**BulkPreBanSummary**](BulkPreBanSummary.md) ### Authorization @@ -2035,7 +2035,7 @@ No authorization required ## post_comments_by_ids -> post_comments_by_ids(comments_by_ids_params, opts) +> post_comments_by_ids(comments_by_ids_params, opts) @@ -2065,7 +2065,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_comments_by_ids_with_http_info(comments_by_ids_params, opts) +> , Integer, Hash)> post_comments_by_ids_with_http_info(comments_by_ids_params, opts) ```ruby begin @@ -2073,7 +2073,7 @@ begin data, status_code, headers = api_instance.post_comments_by_ids_with_http_info(comments_by_ids_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_comments_by_ids_with_http_info: #{e}" end @@ -2089,7 +2089,7 @@ end ### Return type -[**PostCommentsByIdsResponse**](PostCommentsByIdsResponse.md) +[**ModerationAPIChildCommentsResponse**](ModerationAPIChildCommentsResponse.md) ### Authorization @@ -2103,7 +2103,7 @@ No authorization required ## post_flag_comment -> post_flag_comment(comment_id, opts) +> post_flag_comment(comment_id, opts) @@ -2134,7 +2134,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_flag_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> post_flag_comment_with_http_info(comment_id, opts) ```ruby begin @@ -2142,7 +2142,7 @@ begin data, status_code, headers = api_instance.post_flag_comment_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_flag_comment_with_http_info: #{e}" end @@ -2159,7 +2159,7 @@ end ### Return type -[**PostFlagCommentResponse**](PostFlagCommentResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2243,7 +2243,7 @@ No authorization required ## post_restore_deleted_comment -> post_restore_deleted_comment(comment_id, opts) +> post_restore_deleted_comment(comment_id, opts) @@ -2274,7 +2274,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_restore_deleted_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> post_restore_deleted_comment_with_http_info(comment_id, opts) ```ruby begin @@ -2282,7 +2282,7 @@ begin data, status_code, headers = api_instance.post_restore_deleted_comment_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_restore_deleted_comment_with_http_info: #{e}" end @@ -2299,7 +2299,7 @@ end ### Return type -[**PostRestoreDeletedCommentResponse**](PostRestoreDeletedCommentResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2313,7 +2313,7 @@ No authorization required ## post_set_comment_approval_status -> post_set_comment_approval_status(comment_id, opts) +> post_set_comment_approval_status(comment_id, opts) @@ -2345,7 +2345,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_set_comment_approval_status_with_http_info(comment_id, opts) +> , Integer, Hash)> post_set_comment_approval_status_with_http_info(comment_id, opts) ```ruby begin @@ -2353,7 +2353,7 @@ begin data, status_code, headers = api_instance.post_set_comment_approval_status_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_set_comment_approval_status_with_http_info: #{e}" end @@ -2371,7 +2371,7 @@ end ### Return type -[**PostSetCommentApprovalStatusResponse**](PostSetCommentApprovalStatusResponse.md) +[**SetCommentApprovedResponse**](SetCommentApprovedResponse.md) ### Authorization @@ -2385,7 +2385,7 @@ No authorization required ## post_set_comment_review_status -> post_set_comment_review_status(comment_id, opts) +> post_set_comment_review_status(comment_id, opts) @@ -2417,7 +2417,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_set_comment_review_status_with_http_info(comment_id, opts) +> , Integer, Hash)> post_set_comment_review_status_with_http_info(comment_id, opts) ```ruby begin @@ -2425,7 +2425,7 @@ begin data, status_code, headers = api_instance.post_set_comment_review_status_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_set_comment_review_status_with_http_info: #{e}" end @@ -2443,7 +2443,7 @@ end ### Return type -[**PostSetCommentReviewStatusResponse**](PostSetCommentReviewStatusResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2457,7 +2457,7 @@ No authorization required ## post_set_comment_spam_status -> post_set_comment_spam_status(comment_id, opts) +> post_set_comment_spam_status(comment_id, opts) @@ -2490,7 +2490,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_set_comment_spam_status_with_http_info(comment_id, opts) +> , Integer, Hash)> post_set_comment_spam_status_with_http_info(comment_id, opts) ```ruby begin @@ -2498,7 +2498,7 @@ begin data, status_code, headers = api_instance.post_set_comment_spam_status_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_set_comment_spam_status_with_http_info: #{e}" end @@ -2517,7 +2517,7 @@ end ### Return type -[**PostSetCommentSpamStatusResponse**](PostSetCommentSpamStatusResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2531,7 +2531,7 @@ No authorization required ## post_set_comment_text -> post_set_comment_text(comment_id, set_comment_text_params, opts) +> post_set_comment_text(comment_id, set_comment_text_params, opts) @@ -2563,7 +2563,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts) +> , Integer, Hash)> post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts) ```ruby begin @@ -2571,7 +2571,7 @@ begin data, status_code, headers = api_instance.post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_set_comment_text_with_http_info: #{e}" end @@ -2589,7 +2589,7 @@ end ### Return type -[**PostSetCommentTextResponse**](PostSetCommentTextResponse.md) +[**SetCommentTextResponse**](SetCommentTextResponse.md) ### Authorization @@ -2603,7 +2603,7 @@ No authorization required ## post_un_flag_comment -> post_un_flag_comment(comment_id, opts) +> post_un_flag_comment(comment_id, opts) @@ -2634,7 +2634,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_un_flag_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> post_un_flag_comment_with_http_info(comment_id, opts) ```ruby begin @@ -2642,7 +2642,7 @@ begin data, status_code, headers = api_instance.post_un_flag_comment_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_un_flag_comment_with_http_info: #{e}" end @@ -2659,7 +2659,7 @@ end ### Return type -[**PostUnFlagCommentResponse**](PostUnFlagCommentResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2673,7 +2673,7 @@ No authorization required ## post_vote -> post_vote(comment_id, opts) +> post_vote(comment_id, opts) @@ -2705,7 +2705,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_vote_with_http_info(comment_id, opts) +> , Integer, Hash)> post_vote_with_http_info(comment_id, opts) ```ruby begin @@ -2713,7 +2713,7 @@ begin data, status_code, headers = api_instance.post_vote_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_vote_with_http_info: #{e}" end @@ -2731,7 +2731,7 @@ end ### Return type -[**PostVoteResponse**](PostVoteResponse.md) +[**VoteResponse**](VoteResponse.md) ### Authorization @@ -2745,7 +2745,7 @@ No authorization required ## put_award_badge -> put_award_badge(badge_id, opts) +> put_award_badge(badge_id, opts) @@ -2778,7 +2778,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_award_badge_with_http_info(badge_id, opts) +> , Integer, Hash)> put_award_badge_with_http_info(badge_id, opts) ```ruby begin @@ -2786,7 +2786,7 @@ begin data, status_code, headers = api_instance.put_award_badge_with_http_info(badge_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->put_award_badge_with_http_info: #{e}" end @@ -2805,7 +2805,7 @@ end ### Return type -[**PutAwardBadgeResponse**](PutAwardBadgeResponse.md) +[**AwardUserBadgeResponse**](AwardUserBadgeResponse.md) ### Authorization @@ -2819,7 +2819,7 @@ No authorization required ## put_close_thread -> put_close_thread(url_id, opts) +> put_close_thread(url_id, opts) @@ -2849,7 +2849,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_close_thread_with_http_info(url_id, opts) +> , Integer, Hash)> put_close_thread_with_http_info(url_id, opts) ```ruby begin @@ -2857,7 +2857,7 @@ begin data, status_code, headers = api_instance.put_close_thread_with_http_info(url_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->put_close_thread_with_http_info: #{e}" end @@ -2873,7 +2873,7 @@ end ### Return type -[**PutCloseThreadResponse**](PutCloseThreadResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2887,7 +2887,7 @@ No authorization required ## put_remove_badge -> put_remove_badge(badge_id, opts) +> put_remove_badge(badge_id, opts) @@ -2920,7 +2920,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_remove_badge_with_http_info(badge_id, opts) +> , Integer, Hash)> put_remove_badge_with_http_info(badge_id, opts) ```ruby begin @@ -2928,7 +2928,7 @@ begin data, status_code, headers = api_instance.put_remove_badge_with_http_info(badge_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->put_remove_badge_with_http_info: #{e}" end @@ -2947,7 +2947,7 @@ end ### Return type -[**PutRemoveBadgeResponse**](PutRemoveBadgeResponse.md) +[**RemoveUserBadgeResponse**](RemoveUserBadgeResponse.md) ### Authorization @@ -2961,7 +2961,7 @@ No authorization required ## put_reopen_thread -> put_reopen_thread(url_id, opts) +> put_reopen_thread(url_id, opts) @@ -2991,7 +2991,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_reopen_thread_with_http_info(url_id, opts) +> , Integer, Hash)> put_reopen_thread_with_http_info(url_id, opts) ```ruby begin @@ -2999,7 +2999,7 @@ begin data, status_code, headers = api_instance.put_reopen_thread_with_http_info(url_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->put_reopen_thread_with_http_info: #{e}" end @@ -3015,7 +3015,7 @@ end ### Return type -[**PutReopenThreadResponse**](PutReopenThreadResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -3029,7 +3029,7 @@ No authorization required ## set_trust_factor -> set_trust_factor(opts) +> set_trust_factor(opts) @@ -3060,7 +3060,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> set_trust_factor_with_http_info(opts) +> , Integer, Hash)> set_trust_factor_with_http_info(opts) ```ruby begin @@ -3068,7 +3068,7 @@ begin data, status_code, headers = api_instance.set_trust_factor_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->set_trust_factor_with_http_info: #{e}" end @@ -3085,7 +3085,7 @@ end ### Return type -[**SetTrustFactorResponse**](SetTrustFactorResponse.md) +[**SetUserTrustFactorResponse**](SetUserTrustFactorResponse.md) ### Authorization diff --git a/client/docs/PatchHashTagResponse.md b/client/docs/PatchHashTagResponse.md deleted file mode 100644 index 44f309a..0000000 --- a/client/docs/PatchHashTagResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::PatchHashTagResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **hash_tag** | [**TenantHashTag**](TenantHashTag.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::PatchHashTagResponse.new( - status: null, - hash_tag: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/PinCommentResponse.md b/client/docs/PinCommentResponse.md deleted file mode 100644 index 7933126..0000000 --- a/client/docs/PinCommentResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::PinCommentResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **comment_positions** | [**Hash<String, RecordStringBeforeStringOrNullAfterStringOrNullValue>**](RecordStringBeforeStringOrNullAfterStringOrNullValue.md) | Construct a type with a set of properties K of type T | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::PinCommentResponse.new( - comment_positions: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/PostAdjustCommentVotesResponse.md b/client/docs/PostAdjustCommentVotesResponse.md deleted file mode 100644 index baff8d2..0000000 --- a/client/docs/PostAdjustCommentVotesResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::PostAdjustCommentVotesResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **new_comment_votes** | **Integer** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::PostAdjustCommentVotesResponse.new( - status: null, - new_comment_votes: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/PostApiExportResponse.md b/client/docs/PostApiExportResponse.md deleted file mode 100644 index 5ddd585..0000000 --- a/client/docs/PostApiExportResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::PostApiExportResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **batch_job_id** | **String** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::PostApiExportResponse.new( - status: null, - batch_job_id: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/PostBanUserFromCommentResponse.md b/client/docs/PostBanUserFromCommentResponse.md deleted file mode 100644 index 5a0238f..0000000 --- a/client/docs/PostBanUserFromCommentResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::PostBanUserFromCommentResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **changelog** | [**APIBanUserChangeLog**](APIBanUserChangeLog.md) | | [optional] | -| **code** | **String** | | [optional] | -| **reason** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::PostBanUserFromCommentResponse.new( - status: null, - changelog: null, - code: null, - reason: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/PostBanUserUndoResponse.md b/client/docs/PostBanUserUndoResponse.md deleted file mode 100644 index b3d44a5..0000000 --- a/client/docs/PostBanUserUndoResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::PostBanUserUndoResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::PostBanUserUndoResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/PostBulkPreBanSummaryResponse.md b/client/docs/PostBulkPreBanSummaryResponse.md deleted file mode 100644 index 6e82b07..0000000 --- a/client/docs/PostBulkPreBanSummaryResponse.md +++ /dev/null @@ -1,42 +0,0 @@ -# FastCommentsClient::PostBulkPreBanSummaryResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **total_related_comment_count** | **Integer** | | [optional] | -| **email_domains** | **Array<String>** | | [optional] | -| **emails** | **Array<String>** | | [optional] | -| **user_ids** | **Array<String>** | | [optional] | -| **ip_hashes** | **Array<String>** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::PostBulkPreBanSummaryResponse.new( - status: null, - total_related_comment_count: null, - email_domains: null, - emails: null, - user_ids: null, - ip_hashes: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/PostCommentsByIdsResponse.md b/client/docs/PostCommentsByIdsResponse.md deleted file mode 100644 index 60b5a3f..0000000 --- a/client/docs/PostCommentsByIdsResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::PostCommentsByIdsResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **comments** | [**Array<ModerationAPIComment>**](ModerationAPIComment.md) | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::PostCommentsByIdsResponse.new( - comments: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/PostFlagCommentResponse.md b/client/docs/PostFlagCommentResponse.md deleted file mode 100644 index 8327412..0000000 --- a/client/docs/PostFlagCommentResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::PostFlagCommentResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::PostFlagCommentResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/PostRemoveCommentResponse.md b/client/docs/PostRemoveCommentResponse.md index 5184f02..2c1425c 100644 --- a/client/docs/PostRemoveCommentResponse.md +++ b/client/docs/PostRemoveCommentResponse.md @@ -4,15 +4,8 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **action** | **String** | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | +| **action** | **String** | | | +| **status** | **String** | | | ## Example @@ -21,14 +14,7 @@ require 'fastcomments-client' instance = FastCommentsClient::PostRemoveCommentResponse.new( action: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null + status: null ) ``` diff --git a/client/docs/PostRestoreDeletedCommentResponse.md b/client/docs/PostRestoreDeletedCommentResponse.md deleted file mode 100644 index df0c6c7..0000000 --- a/client/docs/PostRestoreDeletedCommentResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::PostRestoreDeletedCommentResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::PostRestoreDeletedCommentResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/PostSetCommentApprovalStatusResponse.md b/client/docs/PostSetCommentApprovalStatusResponse.md deleted file mode 100644 index b1c99aa..0000000 --- a/client/docs/PostSetCommentApprovalStatusResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::PostSetCommentApprovalStatusResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **did_reset_flagged_count** | **Boolean** | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::PostSetCommentApprovalStatusResponse.new( - did_reset_flagged_count: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/PostSetCommentReviewStatusResponse.md b/client/docs/PostSetCommentReviewStatusResponse.md deleted file mode 100644 index 05640d9..0000000 --- a/client/docs/PostSetCommentReviewStatusResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::PostSetCommentReviewStatusResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::PostSetCommentReviewStatusResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/PostSetCommentSpamStatusResponse.md b/client/docs/PostSetCommentSpamStatusResponse.md deleted file mode 100644 index 0a4eca2..0000000 --- a/client/docs/PostSetCommentSpamStatusResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::PostSetCommentSpamStatusResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::PostSetCommentSpamStatusResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/PostSetCommentTextResponse.md b/client/docs/PostSetCommentTextResponse.md deleted file mode 100644 index 94f343e..0000000 --- a/client/docs/PostSetCommentTextResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::PostSetCommentTextResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **new_comment_text_html** | **String** | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::PostSetCommentTextResponse.new( - new_comment_text_html: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/PostUnFlagCommentResponse.md b/client/docs/PostUnFlagCommentResponse.md deleted file mode 100644 index 5999949..0000000 --- a/client/docs/PostUnFlagCommentResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::PostUnFlagCommentResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::PostUnFlagCommentResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/PostVoteResponse.md b/client/docs/PostVoteResponse.md deleted file mode 100644 index f284879..0000000 --- a/client/docs/PostVoteResponse.md +++ /dev/null @@ -1,40 +0,0 @@ -# FastCommentsClient::PostVoteResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **vote_id** | **String** | | [optional] | -| **is_verified** | **Boolean** | | [optional] | -| **user** | [**VoteResponseUser**](VoteResponseUser.md) | | [optional] | -| **edit_key** | **String** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::PostVoteResponse.new( - status: null, - vote_id: null, - is_verified: null, - user: null, - edit_key: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/PublicApi.md b/client/docs/PublicApi.md index f313f59..0a55969 100644 --- a/client/docs/PublicApi.md +++ b/client/docs/PublicApi.md @@ -60,7 +60,7 @@ All URIs are relative to *https://fastcomments.com* ## block_from_comment_public -> block_from_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts) +> block_from_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts) @@ -91,7 +91,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> block_from_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) +> , Integer, Hash)> block_from_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) ```ruby begin @@ -99,7 +99,7 @@ begin data, status_code, headers = api_instance.block_from_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->block_from_comment_public_with_http_info: #{e}" end @@ -116,7 +116,7 @@ end ### Return type -[**BlockFromCommentPublicResponse**](BlockFromCommentPublicResponse.md) +[**BlockSuccess**](BlockSuccess.md) ### Authorization @@ -130,7 +130,7 @@ No authorization required ## checked_comments_for_blocked -> checked_comments_for_blocked(tenant_id, comment_ids, opts) +> checked_comments_for_blocked(tenant_id, comment_ids, opts) @@ -160,7 +160,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> checked_comments_for_blocked_with_http_info(tenant_id, comment_ids, opts) +> , Integer, Hash)> checked_comments_for_blocked_with_http_info(tenant_id, comment_ids, opts) ```ruby begin @@ -168,7 +168,7 @@ begin data, status_code, headers = api_instance.checked_comments_for_blocked_with_http_info(tenant_id, comment_ids, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->checked_comments_for_blocked_with_http_info: #{e}" end @@ -184,7 +184,7 @@ end ### Return type -[**CheckedCommentsForBlockedResponse**](CheckedCommentsForBlockedResponse.md) +[**CheckBlockedCommentsResponse**](CheckBlockedCommentsResponse.md) ### Authorization @@ -198,7 +198,7 @@ No authorization required ## create_comment_public -> create_comment_public(tenant_id, url_id, broadcast_id, comment_data, opts) +> create_comment_public(tenant_id, url_id, broadcast_id, comment_data, opts) @@ -231,7 +231,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, comment_data, opts) +> , Integer, Hash)> create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, comment_data, opts) ```ruby begin @@ -239,7 +239,7 @@ begin data, status_code, headers = api_instance.create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, comment_data, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->create_comment_public_with_http_info: #{e}" end @@ -258,7 +258,7 @@ end ### Return type -[**CreateCommentPublicResponse**](CreateCommentPublicResponse.md) +[**SaveCommentsResponseWithPresence**](SaveCommentsResponseWithPresence.md) ### Authorization @@ -272,7 +272,7 @@ No authorization required ## create_feed_post_public -> create_feed_post_public(tenant_id, create_feed_post_params, opts) +> create_feed_post_public(tenant_id, create_feed_post_params, opts) @@ -303,7 +303,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, opts) +> , Integer, Hash)> create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, opts) ```ruby begin @@ -311,7 +311,7 @@ begin data, status_code, headers = api_instance.create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->create_feed_post_public_with_http_info: #{e}" end @@ -328,7 +328,7 @@ end ### Return type -[**CreateFeedPostPublicResponse**](CreateFeedPostPublicResponse.md) +[**CreateFeedPostResponse**](CreateFeedPostResponse.md) ### Authorization @@ -342,7 +342,7 @@ No authorization required ## create_v1_page_react -> create_v1_page_react(tenant_id, url_id, opts) +> create_v1_page_react(tenant_id, url_id, opts) @@ -372,7 +372,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_v1_page_react_with_http_info(tenant_id, url_id, opts) +> , Integer, Hash)> create_v1_page_react_with_http_info(tenant_id, url_id, opts) ```ruby begin @@ -380,7 +380,7 @@ begin data, status_code, headers = api_instance.create_v1_page_react_with_http_info(tenant_id, url_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->create_v1_page_react_with_http_info: #{e}" end @@ -396,7 +396,7 @@ end ### Return type -[**CreateV1PageReactResponse**](CreateV1PageReactResponse.md) +[**CreateV1PageReact**](CreateV1PageReact.md) ### Authorization @@ -410,7 +410,7 @@ No authorization required ## create_v2_page_react -> create_v2_page_react(tenant_id, url_id, id, opts) +> create_v2_page_react(tenant_id, url_id, id, opts) @@ -441,7 +441,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_v2_page_react_with_http_info(tenant_id, url_id, id, opts) +> , Integer, Hash)> create_v2_page_react_with_http_info(tenant_id, url_id, id, opts) ```ruby begin @@ -449,7 +449,7 @@ begin data, status_code, headers = api_instance.create_v2_page_react_with_http_info(tenant_id, url_id, id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->create_v2_page_react_with_http_info: #{e}" end @@ -466,7 +466,7 @@ end ### Return type -[**CreateV2PageReactResponse**](CreateV2PageReactResponse.md) +[**CreateV1PageReact**](CreateV1PageReact.md) ### Authorization @@ -480,7 +480,7 @@ No authorization required ## delete_comment_public -> delete_comment_public(tenant_id, comment_id, broadcast_id, opts) +> delete_comment_public(tenant_id, comment_id, broadcast_id, opts) @@ -512,7 +512,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, opts) +> , Integer, Hash)> delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, opts) ```ruby begin @@ -520,7 +520,7 @@ begin data, status_code, headers = api_instance.delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->delete_comment_public_with_http_info: #{e}" end @@ -538,7 +538,7 @@ end ### Return type -[**DeleteCommentPublicResponse**](DeleteCommentPublicResponse.md) +[**PublicAPIDeleteCommentResponse**](PublicAPIDeleteCommentResponse.md) ### Authorization @@ -552,7 +552,7 @@ No authorization required ## delete_comment_vote -> delete_comment_vote(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts) +> delete_comment_vote(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts) @@ -586,7 +586,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_comment_vote_with_http_info(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts) +> , Integer, Hash)> delete_comment_vote_with_http_info(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts) ```ruby begin @@ -594,7 +594,7 @@ begin data, status_code, headers = api_instance.delete_comment_vote_with_http_info(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->delete_comment_vote_with_http_info: #{e}" end @@ -614,7 +614,7 @@ end ### Return type -[**DeleteCommentVoteResponse**](DeleteCommentVoteResponse.md) +[**VoteDeleteResponse**](VoteDeleteResponse.md) ### Authorization @@ -698,7 +698,7 @@ No authorization required ## delete_v1_page_react -> delete_v1_page_react(tenant_id, url_id) +> delete_v1_page_react(tenant_id, url_id) @@ -725,7 +725,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_v1_page_react_with_http_info(tenant_id, url_id) +> , Integer, Hash)> delete_v1_page_react_with_http_info(tenant_id, url_id) ```ruby begin @@ -733,7 +733,7 @@ begin data, status_code, headers = api_instance.delete_v1_page_react_with_http_info(tenant_id, url_id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->delete_v1_page_react_with_http_info: #{e}" end @@ -748,7 +748,7 @@ end ### Return type -[**DeleteV1PageReactResponse**](DeleteV1PageReactResponse.md) +[**CreateV1PageReact**](CreateV1PageReact.md) ### Authorization @@ -762,7 +762,7 @@ No authorization required ## delete_v2_page_react -> delete_v2_page_react(tenant_id, url_id, id) +> delete_v2_page_react(tenant_id, url_id, id) @@ -790,7 +790,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_v2_page_react_with_http_info(tenant_id, url_id, id) +> , Integer, Hash)> delete_v2_page_react_with_http_info(tenant_id, url_id, id) ```ruby begin @@ -798,7 +798,7 @@ begin data, status_code, headers = api_instance.delete_v2_page_react_with_http_info(tenant_id, url_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->delete_v2_page_react_with_http_info: #{e}" end @@ -814,7 +814,7 @@ end ### Return type -[**DeleteV2PageReactResponse**](DeleteV2PageReactResponse.md) +[**CreateV1PageReact**](CreateV1PageReact.md) ### Authorization @@ -828,7 +828,7 @@ No authorization required ## flag_comment_public -> flag_comment_public(tenant_id, comment_id, is_flagged, opts) +> flag_comment_public(tenant_id, comment_id, is_flagged, opts) @@ -859,7 +859,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts) +> , Integer, Hash)> flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts) ```ruby begin @@ -867,7 +867,7 @@ begin data, status_code, headers = api_instance.flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->flag_comment_public_with_http_info: #{e}" end @@ -884,7 +884,7 @@ end ### Return type -[**FlagCommentPublicResponse**](FlagCommentPublicResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -898,7 +898,7 @@ No authorization required ## get_comment_text -> get_comment_text(tenant_id, comment_id, opts) +> get_comment_text(tenant_id, comment_id, opts) @@ -929,7 +929,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comment_text_with_http_info(tenant_id, comment_id, opts) +> , Integer, Hash)> get_comment_text_with_http_info(tenant_id, comment_id, opts) ```ruby begin @@ -937,7 +937,7 @@ begin data, status_code, headers = api_instance.get_comment_text_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_comment_text_with_http_info: #{e}" end @@ -954,7 +954,7 @@ end ### Return type -[**GetCommentTextResponse1**](GetCommentTextResponse1.md) +[**PublicAPIGetCommentTextResponse**](PublicAPIGetCommentTextResponse.md) ### Authorization @@ -968,7 +968,7 @@ No authorization required ## get_comment_vote_user_names -> get_comment_vote_user_names(tenant_id, comment_id, dir, opts) +> get_comment_vote_user_names(tenant_id, comment_id, dir, opts) @@ -999,7 +999,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts) +> , Integer, Hash)> get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts) ```ruby begin @@ -1007,7 +1007,7 @@ begin data, status_code, headers = api_instance.get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_comment_vote_user_names_with_http_info: #{e}" end @@ -1024,7 +1024,7 @@ end ### Return type -[**GetCommentVoteUserNamesResponse**](GetCommentVoteUserNamesResponse.md) +[**GetCommentVoteUserNamesSuccessResponse**](GetCommentVoteUserNamesSuccessResponse.md) ### Authorization @@ -1038,7 +1038,7 @@ No authorization required ## get_comments_for_user -> get_comments_for_user(opts) +> get_comments_for_user(opts) @@ -1072,7 +1072,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comments_for_user_with_http_info(opts) +> , Integer, Hash)> get_comments_for_user_with_http_info(opts) ```ruby begin @@ -1080,7 +1080,7 @@ begin data, status_code, headers = api_instance.get_comments_for_user_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_comments_for_user_with_http_info: #{e}" end @@ -1100,7 +1100,7 @@ end ### Return type -[**GetCommentsForUserResponse1**](GetCommentsForUserResponse1.md) +[**GetCommentsForUserResponse**](GetCommentsForUserResponse.md) ### Authorization @@ -1114,7 +1114,7 @@ No authorization required ## get_comments_public -> get_comments_public(tenant_id, url_id, opts) +> get_comments_public(tenant_id, url_id, opts) @@ -1171,7 +1171,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comments_public_with_http_info(tenant_id, url_id, opts) +> , Integer, Hash)> get_comments_public_with_http_info(tenant_id, url_id, opts) ```ruby begin @@ -1179,7 +1179,7 @@ begin data, status_code, headers = api_instance.get_comments_public_with_http_info(tenant_id, url_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_comments_public_with_http_info: #{e}" end @@ -1220,7 +1220,7 @@ end ### Return type -[**GetCommentsPublicResponse**](GetCommentsPublicResponse.md) +[**GetCommentsResponseWithPresencePublicComment**](GetCommentsResponseWithPresencePublicComment.md) ### Authorization @@ -1234,7 +1234,7 @@ No authorization required ## get_event_log -> get_event_log(tenant_id, url_id, user_id_ws, start_time, opts) +> get_event_log(tenant_id, url_id, user_id_ws, start_time, opts) @@ -1268,7 +1268,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) +> , Integer, Hash)> get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) ```ruby begin @@ -1276,7 +1276,7 @@ begin data, status_code, headers = api_instance.get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_event_log_with_http_info: #{e}" end @@ -1294,7 +1294,7 @@ end ### Return type -[**GetEventLogResponse1**](GetEventLogResponse1.md) +[**GetEventLogResponse**](GetEventLogResponse.md) ### Authorization @@ -1308,7 +1308,7 @@ No authorization required ## get_feed_posts_public -> get_feed_posts_public(tenant_id, opts) +> get_feed_posts_public(tenant_id, opts) @@ -1344,7 +1344,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_feed_posts_public_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_feed_posts_public_with_http_info(tenant_id, opts) ```ruby begin @@ -1352,7 +1352,7 @@ begin data, status_code, headers = api_instance.get_feed_posts_public_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_feed_posts_public_with_http_info: #{e}" end @@ -1372,7 +1372,7 @@ end ### Return type -[**GetFeedPostsPublicResponse**](GetFeedPostsPublicResponse.md) +[**PublicFeedPostsResponse**](PublicFeedPostsResponse.md) ### Authorization @@ -1386,7 +1386,7 @@ No authorization required ## get_feed_posts_stats -> get_feed_posts_stats(tenant_id, post_ids, opts) +> get_feed_posts_stats(tenant_id, post_ids, opts) @@ -1416,7 +1416,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts) +> , Integer, Hash)> get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts) ```ruby begin @@ -1424,7 +1424,7 @@ begin data, status_code, headers = api_instance.get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_feed_posts_stats_with_http_info: #{e}" end @@ -1440,7 +1440,7 @@ end ### Return type -[**GetFeedPostsStatsResponse**](GetFeedPostsStatsResponse.md) +[**FeedPostsStatsResponse**](FeedPostsStatsResponse.md) ### Authorization @@ -1454,7 +1454,7 @@ No authorization required ## get_gif_large -> get_gif_large(tenant_id, large_internal_url_sanitized) +> get_gif_large(tenant_id, large_internal_url_sanitized) @@ -1481,7 +1481,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_gif_large_with_http_info(tenant_id, large_internal_url_sanitized) +> , Integer, Hash)> get_gif_large_with_http_info(tenant_id, large_internal_url_sanitized) ```ruby begin @@ -1489,7 +1489,7 @@ begin data, status_code, headers = api_instance.get_gif_large_with_http_info(tenant_id, large_internal_url_sanitized) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_gif_large_with_http_info: #{e}" end @@ -1504,7 +1504,7 @@ end ### Return type -[**GetGifLargeResponse**](GetGifLargeResponse.md) +[**GifGetLargeResponse**](GifGetLargeResponse.md) ### Authorization @@ -1660,7 +1660,7 @@ No authorization required ## get_global_event_log -> get_global_event_log(tenant_id, url_id, user_id_ws, start_time, opts) +> get_global_event_log(tenant_id, url_id, user_id_ws, start_time, opts) @@ -1694,7 +1694,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) +> , Integer, Hash)> get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) ```ruby begin @@ -1702,7 +1702,7 @@ begin data, status_code, headers = api_instance.get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_global_event_log_with_http_info: #{e}" end @@ -1720,7 +1720,7 @@ end ### Return type -[**GetGlobalEventLogResponse**](GetGlobalEventLogResponse.md) +[**GetEventLogResponse**](GetEventLogResponse.md) ### Authorization @@ -1734,7 +1734,7 @@ No authorization required ## get_offline_users -> get_offline_users(tenant_id, url_id, opts) +> get_offline_users(tenant_id, url_id, opts) @@ -1767,7 +1767,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_offline_users_with_http_info(tenant_id, url_id, opts) +> , Integer, Hash)> get_offline_users_with_http_info(tenant_id, url_id, opts) ```ruby begin @@ -1775,7 +1775,7 @@ begin data, status_code, headers = api_instance.get_offline_users_with_http_info(tenant_id, url_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_offline_users_with_http_info: #{e}" end @@ -1792,7 +1792,7 @@ end ### Return type -[**GetOfflineUsersResponse**](GetOfflineUsersResponse.md) +[**PageUsersOfflineResponse**](PageUsersOfflineResponse.md) ### Authorization @@ -1806,7 +1806,7 @@ No authorization required ## get_online_users -> get_online_users(tenant_id, url_id, opts) +> get_online_users(tenant_id, url_id, opts) @@ -1839,7 +1839,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_online_users_with_http_info(tenant_id, url_id, opts) +> , Integer, Hash)> get_online_users_with_http_info(tenant_id, url_id, opts) ```ruby begin @@ -1847,7 +1847,7 @@ begin data, status_code, headers = api_instance.get_online_users_with_http_info(tenant_id, url_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_online_users_with_http_info: #{e}" end @@ -1864,7 +1864,7 @@ end ### Return type -[**GetOnlineUsersResponse**](GetOnlineUsersResponse.md) +[**PageUsersOnlineResponse**](PageUsersOnlineResponse.md) ### Authorization @@ -1878,7 +1878,7 @@ No authorization required ## get_pages_public -> get_pages_public(tenant_id, opts) +> get_pages_public(tenant_id, opts) @@ -1913,7 +1913,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_pages_public_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_pages_public_with_http_info(tenant_id, opts) ```ruby begin @@ -1921,7 +1921,7 @@ begin data, status_code, headers = api_instance.get_pages_public_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_pages_public_with_http_info: #{e}" end @@ -1940,7 +1940,7 @@ end ### Return type -[**GetPagesPublicResponse**](GetPagesPublicResponse.md) +[**GetPublicPagesResponse**](GetPublicPagesResponse.md) ### Authorization @@ -1954,7 +1954,7 @@ No authorization required ## get_translations -> get_translations(namespace, component, opts) +> get_translations(namespace, component, opts) @@ -1985,7 +1985,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_translations_with_http_info(namespace, component, opts) +> , Integer, Hash)> get_translations_with_http_info(namespace, component, opts) ```ruby begin @@ -1993,7 +1993,7 @@ begin data, status_code, headers = api_instance.get_translations_with_http_info(namespace, component, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_translations_with_http_info: #{e}" end @@ -2010,7 +2010,7 @@ end ### Return type -[**GetTranslationsResponse1**](GetTranslationsResponse1.md) +[**GetTranslationsResponse**](GetTranslationsResponse.md) ### Authorization @@ -2024,7 +2024,7 @@ No authorization required ## get_user_notification_count -> get_user_notification_count(tenant_id, opts) +> get_user_notification_count(tenant_id, opts) @@ -2053,7 +2053,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_notification_count_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_user_notification_count_with_http_info(tenant_id, opts) ```ruby begin @@ -2061,7 +2061,7 @@ begin data, status_code, headers = api_instance.get_user_notification_count_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_user_notification_count_with_http_info: #{e}" end @@ -2076,7 +2076,7 @@ end ### Return type -[**GetUserNotificationCountResponse1**](GetUserNotificationCountResponse1.md) +[**GetUserNotificationCountResponse**](GetUserNotificationCountResponse.md) ### Authorization @@ -2090,7 +2090,7 @@ No authorization required ## get_user_notifications -> get_user_notifications(tenant_id, opts) +> get_user_notifications(tenant_id, opts) @@ -2129,7 +2129,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_notifications_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_user_notifications_with_http_info(tenant_id, opts) ```ruby begin @@ -2137,7 +2137,7 @@ begin data, status_code, headers = api_instance.get_user_notifications_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_user_notifications_with_http_info: #{e}" end @@ -2162,7 +2162,7 @@ end ### Return type -[**GetUserNotificationsResponse**](GetUserNotificationsResponse.md) +[**GetMyNotificationsResponse**](GetMyNotificationsResponse.md) ### Authorization @@ -2176,7 +2176,7 @@ No authorization required ## get_user_presence_statuses -> get_user_presence_statuses(tenant_id, url_id_ws, user_ids) +> get_user_presence_statuses(tenant_id, url_id_ws, user_ids) @@ -2204,7 +2204,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids) +> , Integer, Hash)> get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids) ```ruby begin @@ -2212,7 +2212,7 @@ begin data, status_code, headers = api_instance.get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_user_presence_statuses_with_http_info: #{e}" end @@ -2228,7 +2228,7 @@ end ### Return type -[**GetUserPresenceStatusesResponse1**](GetUserPresenceStatusesResponse1.md) +[**GetUserPresenceStatusesResponse**](GetUserPresenceStatusesResponse.md) ### Authorization @@ -2242,7 +2242,7 @@ No authorization required ## get_user_reacts_public -> get_user_reacts_public(tenant_id, opts) +> get_user_reacts_public(tenant_id, opts) @@ -2272,7 +2272,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_reacts_public_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_user_reacts_public_with_http_info(tenant_id, opts) ```ruby begin @@ -2280,7 +2280,7 @@ begin data, status_code, headers = api_instance.get_user_reacts_public_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_user_reacts_public_with_http_info: #{e}" end @@ -2296,7 +2296,7 @@ end ### Return type -[**GetUserReactsPublicResponse**](GetUserReactsPublicResponse.md) +[**UserReactsResponse**](UserReactsResponse.md) ### Authorization @@ -2310,7 +2310,7 @@ No authorization required ## get_users_info -> get_users_info(tenant_id, ids) +> get_users_info(tenant_id, ids) @@ -2339,7 +2339,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_users_info_with_http_info(tenant_id, ids) +> , Integer, Hash)> get_users_info_with_http_info(tenant_id, ids) ```ruby begin @@ -2347,7 +2347,7 @@ begin data, status_code, headers = api_instance.get_users_info_with_http_info(tenant_id, ids) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_users_info_with_http_info: #{e}" end @@ -2362,7 +2362,7 @@ end ### Return type -[**GetUsersInfoResponse**](GetUsersInfoResponse.md) +[**PageUsersInfoResponse**](PageUsersInfoResponse.md) ### Authorization @@ -2376,7 +2376,7 @@ No authorization required ## get_v1_page_likes -> get_v1_page_likes(tenant_id, url_id) +> get_v1_page_likes(tenant_id, url_id) @@ -2403,7 +2403,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_v1_page_likes_with_http_info(tenant_id, url_id) +> , Integer, Hash)> get_v1_page_likes_with_http_info(tenant_id, url_id) ```ruby begin @@ -2411,7 +2411,7 @@ begin data, status_code, headers = api_instance.get_v1_page_likes_with_http_info(tenant_id, url_id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_v1_page_likes_with_http_info: #{e}" end @@ -2426,7 +2426,7 @@ end ### Return type -[**GetV1PageLikesResponse**](GetV1PageLikesResponse.md) +[**GetV1PageLikes**](GetV1PageLikes.md) ### Authorization @@ -2440,7 +2440,7 @@ No authorization required ## get_v2_page_react_users -> get_v2_page_react_users(tenant_id, url_id, id) +> get_v2_page_react_users(tenant_id, url_id, id) @@ -2468,7 +2468,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_v2_page_react_users_with_http_info(tenant_id, url_id, id) +> , Integer, Hash)> get_v2_page_react_users_with_http_info(tenant_id, url_id, id) ```ruby begin @@ -2476,7 +2476,7 @@ begin data, status_code, headers = api_instance.get_v2_page_react_users_with_http_info(tenant_id, url_id, id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_v2_page_react_users_with_http_info: #{e}" end @@ -2492,7 +2492,7 @@ end ### Return type -[**GetV2PageReactUsersResponse1**](GetV2PageReactUsersResponse1.md) +[**GetV2PageReactUsersResponse**](GetV2PageReactUsersResponse.md) ### Authorization @@ -2506,7 +2506,7 @@ No authorization required ## get_v2_page_reacts -> get_v2_page_reacts(tenant_id, url_id) +> get_v2_page_reacts(tenant_id, url_id) @@ -2533,7 +2533,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_v2_page_reacts_with_http_info(tenant_id, url_id) +> , Integer, Hash)> get_v2_page_reacts_with_http_info(tenant_id, url_id) ```ruby begin @@ -2541,7 +2541,7 @@ begin data, status_code, headers = api_instance.get_v2_page_reacts_with_http_info(tenant_id, url_id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_v2_page_reacts_with_http_info: #{e}" end @@ -2556,7 +2556,7 @@ end ### Return type -[**GetV2PageReactsResponse**](GetV2PageReactsResponse.md) +[**GetV2PageReacts**](GetV2PageReacts.md) ### Authorization @@ -2570,7 +2570,7 @@ No authorization required ## lock_comment -> lock_comment(tenant_id, comment_id, broadcast_id, opts) +> lock_comment(tenant_id, comment_id, broadcast_id, opts) @@ -2601,7 +2601,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) +> , Integer, Hash)> lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) ```ruby begin @@ -2609,7 +2609,7 @@ begin data, status_code, headers = api_instance.lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->lock_comment_with_http_info: #{e}" end @@ -2626,7 +2626,7 @@ end ### Return type -[**LockCommentResponse**](LockCommentResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2699,7 +2699,7 @@ No authorization required ## pin_comment -> pin_comment(tenant_id, comment_id, broadcast_id, opts) +> pin_comment(tenant_id, comment_id, broadcast_id, opts) @@ -2730,7 +2730,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) +> , Integer, Hash)> pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) ```ruby begin @@ -2738,7 +2738,7 @@ begin data, status_code, headers = api_instance.pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->pin_comment_with_http_info: #{e}" end @@ -2755,7 +2755,7 @@ end ### Return type -[**PinCommentResponse**](PinCommentResponse.md) +[**ChangeCommentPinStatusResponse**](ChangeCommentPinStatusResponse.md) ### Authorization @@ -2769,7 +2769,7 @@ No authorization required ## react_feed_post_public -> react_feed_post_public(tenant_id, post_id, react_body_params, opts) +> react_feed_post_public(tenant_id, post_id, react_body_params, opts) @@ -2802,7 +2802,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, opts) +> , Integer, Hash)> react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, opts) ```ruby begin @@ -2810,7 +2810,7 @@ begin data, status_code, headers = api_instance.react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->react_feed_post_public_with_http_info: #{e}" end @@ -2829,7 +2829,7 @@ end ### Return type -[**ReactFeedPostPublicResponse**](ReactFeedPostPublicResponse.md) +[**ReactFeedPostResponse**](ReactFeedPostResponse.md) ### Authorization @@ -2843,7 +2843,7 @@ No authorization required ## reset_user_notification_count -> reset_user_notification_count(tenant_id, opts) +> reset_user_notification_count(tenant_id, opts) @@ -2872,7 +2872,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> reset_user_notification_count_with_http_info(tenant_id, opts) +> , Integer, Hash)> reset_user_notification_count_with_http_info(tenant_id, opts) ```ruby begin @@ -2880,7 +2880,7 @@ begin data, status_code, headers = api_instance.reset_user_notification_count_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->reset_user_notification_count_with_http_info: #{e}" end @@ -2895,7 +2895,7 @@ end ### Return type -[**ResetUserNotificationCountResponse**](ResetUserNotificationCountResponse.md) +[**ResetUserNotificationsResponse**](ResetUserNotificationsResponse.md) ### Authorization @@ -2909,7 +2909,7 @@ No authorization required ## reset_user_notifications -> reset_user_notifications(tenant_id, opts) +> reset_user_notifications(tenant_id, opts) @@ -2943,7 +2943,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> reset_user_notifications_with_http_info(tenant_id, opts) +> , Integer, Hash)> reset_user_notifications_with_http_info(tenant_id, opts) ```ruby begin @@ -2951,7 +2951,7 @@ begin data, status_code, headers = api_instance.reset_user_notifications_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->reset_user_notifications_with_http_info: #{e}" end @@ -2971,7 +2971,7 @@ end ### Return type -[**ResetUserNotificationsResponse1**](ResetUserNotificationsResponse1.md) +[**ResetUserNotificationsResponse**](ResetUserNotificationsResponse.md) ### Authorization @@ -2985,7 +2985,7 @@ No authorization required ## search_users -> search_users(tenant_id, url_id, opts) +> search_users(tenant_id, url_id, opts) @@ -3018,7 +3018,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> search_users_with_http_info(tenant_id, url_id, opts) +> , Integer, Hash)> search_users_with_http_info(tenant_id, url_id, opts) ```ruby begin @@ -3026,7 +3026,7 @@ begin data, status_code, headers = api_instance.search_users_with_http_info(tenant_id, url_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->search_users_with_http_info: #{e}" end @@ -3045,7 +3045,7 @@ end ### Return type -[**SearchUsersResponse1**](SearchUsersResponse1.md) +[**SearchUsersResult**](SearchUsersResult.md) ### Authorization @@ -3059,7 +3059,7 @@ No authorization required ## set_comment_text -> set_comment_text(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts) +> set_comment_text(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts) @@ -3092,7 +3092,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts) +> , Integer, Hash)> set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts) ```ruby begin @@ -3100,7 +3100,7 @@ begin data, status_code, headers = api_instance.set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->set_comment_text_with_http_info: #{e}" end @@ -3119,7 +3119,7 @@ end ### Return type -[**SetCommentTextResponse1**](SetCommentTextResponse1.md) +[**PublicAPISetCommentTextResponse**](PublicAPISetCommentTextResponse.md) ### Authorization @@ -3133,7 +3133,7 @@ No authorization required ## un_block_comment_public -> un_block_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts) +> un_block_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts) @@ -3164,7 +3164,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) +> , Integer, Hash)> un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) ```ruby begin @@ -3172,7 +3172,7 @@ begin data, status_code, headers = api_instance.un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->un_block_comment_public_with_http_info: #{e}" end @@ -3189,7 +3189,7 @@ end ### Return type -[**UnBlockCommentPublicResponse**](UnBlockCommentPublicResponse.md) +[**UnblockSuccess**](UnblockSuccess.md) ### Authorization @@ -3203,7 +3203,7 @@ No authorization required ## un_lock_comment -> un_lock_comment(tenant_id, comment_id, broadcast_id, opts) +> un_lock_comment(tenant_id, comment_id, broadcast_id, opts) @@ -3234,7 +3234,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) +> , Integer, Hash)> un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) ```ruby begin @@ -3242,7 +3242,7 @@ begin data, status_code, headers = api_instance.un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->un_lock_comment_with_http_info: #{e}" end @@ -3259,7 +3259,7 @@ end ### Return type -[**UnLockCommentResponse**](UnLockCommentResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -3273,7 +3273,7 @@ No authorization required ## un_pin_comment -> un_pin_comment(tenant_id, comment_id, broadcast_id, opts) +> un_pin_comment(tenant_id, comment_id, broadcast_id, opts) @@ -3304,7 +3304,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) +> , Integer, Hash)> un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) ```ruby begin @@ -3312,7 +3312,7 @@ begin data, status_code, headers = api_instance.un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->un_pin_comment_with_http_info: #{e}" end @@ -3329,7 +3329,7 @@ end ### Return type -[**UnPinCommentResponse**](UnPinCommentResponse.md) +[**ChangeCommentPinStatusResponse**](ChangeCommentPinStatusResponse.md) ### Authorization @@ -3343,7 +3343,7 @@ No authorization required ## update_feed_post_public -> update_feed_post_public(tenant_id, post_id, update_feed_post_params, opts) +> update_feed_post_public(tenant_id, post_id, update_feed_post_params, opts) @@ -3375,7 +3375,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_feed_post_public_with_http_info(tenant_id, post_id, update_feed_post_params, opts) +> , Integer, Hash)> update_feed_post_public_with_http_info(tenant_id, post_id, update_feed_post_params, opts) ```ruby begin @@ -3383,7 +3383,7 @@ begin data, status_code, headers = api_instance.update_feed_post_public_with_http_info(tenant_id, post_id, update_feed_post_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->update_feed_post_public_with_http_info: #{e}" end @@ -3401,7 +3401,7 @@ end ### Return type -[**UpdateFeedPostPublicResponse**](UpdateFeedPostPublicResponse.md) +[**CreateFeedPostResponse**](CreateFeedPostResponse.md) ### Authorization @@ -3707,7 +3707,7 @@ No authorization required ## vote_comment -> vote_comment(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts) +> vote_comment(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts) @@ -3741,7 +3741,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> vote_comment_with_http_info(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts) +> , Integer, Hash)> vote_comment_with_http_info(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts) ```ruby begin @@ -3749,7 +3749,7 @@ begin data, status_code, headers = api_instance.vote_comment_with_http_info(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->vote_comment_with_http_info: #{e}" end @@ -3769,7 +3769,7 @@ end ### Return type -[**VoteCommentResponse**](VoteCommentResponse.md) +[**VoteResponse**](VoteResponse.md) ### Authorization diff --git a/client/docs/PutAwardBadgeResponse.md b/client/docs/PutAwardBadgeResponse.md deleted file mode 100644 index 7270467..0000000 --- a/client/docs/PutAwardBadgeResponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# FastCommentsClient::PutAwardBadgeResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **notes** | **Array<String>** | | [optional] | -| **badges** | [**Array<CommentUserBadgeInfo>**](CommentUserBadgeInfo.md) | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::PutAwardBadgeResponse.new( - notes: null, - badges: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/PutCloseThreadResponse.md b/client/docs/PutCloseThreadResponse.md deleted file mode 100644 index 343516e..0000000 --- a/client/docs/PutCloseThreadResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::PutCloseThreadResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::PutCloseThreadResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/PutRemoveBadgeResponse.md b/client/docs/PutRemoveBadgeResponse.md deleted file mode 100644 index 5697122..0000000 --- a/client/docs/PutRemoveBadgeResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::PutRemoveBadgeResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **badges** | [**Array<CommentUserBadgeInfo>**](CommentUserBadgeInfo.md) | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::PutRemoveBadgeResponse.new( - badges: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/PutReopenThreadResponse.md b/client/docs/PutReopenThreadResponse.md deleted file mode 100644 index a59c4c6..0000000 --- a/client/docs/PutReopenThreadResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::PutReopenThreadResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::PutReopenThreadResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/ReactFeedPostPublicResponse.md b/client/docs/ReactFeedPostPublicResponse.md deleted file mode 100644 index e82dbd9..0000000 --- a/client/docs/ReactFeedPostPublicResponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# FastCommentsClient::ReactFeedPostPublicResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **react_type** | **String** | | [optional] | -| **is_undo** | **Boolean** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::ReactFeedPostPublicResponse.new( - status: null, - react_type: null, - is_undo: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/RenderEmailTemplateResponse1.md b/client/docs/RenderEmailTemplateResponse1.md deleted file mode 100644 index 2db7565..0000000 --- a/client/docs/RenderEmailTemplateResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::RenderEmailTemplateResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **html** | **String** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::RenderEmailTemplateResponse1.new( - status: null, - html: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/ReplaceTenantPackageResponse.md b/client/docs/ReplaceTenantPackageResponse.md deleted file mode 100644 index a391b41..0000000 --- a/client/docs/ReplaceTenantPackageResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::ReplaceTenantPackageResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::ReplaceTenantPackageResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/ReplaceTenantUserResponse.md b/client/docs/ReplaceTenantUserResponse.md deleted file mode 100644 index 2ebd5b0..0000000 --- a/client/docs/ReplaceTenantUserResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::ReplaceTenantUserResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::ReplaceTenantUserResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/ResetUserNotificationCountResponse.md b/client/docs/ResetUserNotificationCountResponse.md deleted file mode 100644 index db3cee0..0000000 --- a/client/docs/ResetUserNotificationCountResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::ResetUserNotificationCountResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **code** | **String** | | [optional] | -| **reason** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::ResetUserNotificationCountResponse.new( - status: null, - code: null, - reason: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/ResetUserNotificationsResponse1.md b/client/docs/ResetUserNotificationsResponse1.md deleted file mode 100644 index f6c6178..0000000 --- a/client/docs/ResetUserNotificationsResponse1.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::ResetUserNotificationsResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **code** | **String** | | [optional] | -| **reason** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::ResetUserNotificationsResponse1.new( - status: null, - code: null, - reason: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/SaveCommentResponse.md b/client/docs/SaveCommentResponse.md deleted file mode 100644 index 29a2b96..0000000 --- a/client/docs/SaveCommentResponse.md +++ /dev/null @@ -1,38 +0,0 @@ -# FastCommentsClient::SaveCommentResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **comment** | [**APIComment**](APIComment.md) | | [optional] | -| **user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] | -| **module_data** | **Hash<String, Object>** | Construct a type with a set of properties K of type T | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::SaveCommentResponse.new( - status: null, - comment: null, - user: null, - module_data: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/SearchUsersResponse1.md b/client/docs/SearchUsersResponse1.md deleted file mode 100644 index ffa56da..0000000 --- a/client/docs/SearchUsersResponse1.md +++ /dev/null @@ -1,36 +0,0 @@ -# FastCommentsClient::SearchUsersResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **sections** | [**Array<UserSearchSectionResult>**](UserSearchSectionResult.md) | | [optional] | -| **users** | [**Array<UserSearchResult>**](UserSearchResult.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::SearchUsersResponse1.new( - status: null, - sections: null, - users: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/SendInviteResponse.md b/client/docs/SendInviteResponse.md deleted file mode 100644 index decbb7b..0000000 --- a/client/docs/SendInviteResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::SendInviteResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::SendInviteResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/SendLoginLinkResponse.md b/client/docs/SendLoginLinkResponse.md deleted file mode 100644 index 2e4d108..0000000 --- a/client/docs/SendLoginLinkResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::SendLoginLinkResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::SendLoginLinkResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/SetCommentTextResponse1.md b/client/docs/SetCommentTextResponse1.md deleted file mode 100644 index 448411e..0000000 --- a/client/docs/SetCommentTextResponse1.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::SetCommentTextResponse1 - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **comment** | [**SetCommentTextResult**](SetCommentTextResult.md) | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::SetCommentTextResponse1.new( - comment: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/SetTrustFactorResponse.md b/client/docs/SetTrustFactorResponse.md deleted file mode 100644 index bc276c2..0000000 --- a/client/docs/SetTrustFactorResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::SetTrustFactorResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **previous_manual_trust_factor** | **Float** | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::SetTrustFactorResponse.new( - previous_manual_trust_factor: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/UnBlockCommentPublicResponse.md b/client/docs/UnBlockCommentPublicResponse.md deleted file mode 100644 index 2e05295..0000000 --- a/client/docs/UnBlockCommentPublicResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::UnBlockCommentPublicResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **comment_statuses** | **Hash<String, Boolean>** | Construct a type with a set of properties K of type T | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::UnBlockCommentPublicResponse.new( - status: null, - comment_statuses: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/UnBlockUserFromCommentResponse.md b/client/docs/UnBlockUserFromCommentResponse.md deleted file mode 100644 index 48cf4a8..0000000 --- a/client/docs/UnBlockUserFromCommentResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::UnBlockUserFromCommentResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **comment_statuses** | **Hash<String, Boolean>** | Construct a type with a set of properties K of type T | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::UnBlockUserFromCommentResponse.new( - status: null, - comment_statuses: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/UnFlagCommentResponse.md b/client/docs/UnFlagCommentResponse.md deleted file mode 100644 index a59a598..0000000 --- a/client/docs/UnFlagCommentResponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# FastCommentsClient::UnFlagCommentResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status_code** | **Integer** | | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **code** | **String** | | [optional] | -| **reason** | **String** | | [optional] | -| **was_unapproved** | **Boolean** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::UnFlagCommentResponse.new( - status_code: null, - status: null, - code: null, - reason: null, - was_unapproved: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/UnLockCommentResponse.md b/client/docs/UnLockCommentResponse.md deleted file mode 100644 index 65f085d..0000000 --- a/client/docs/UnLockCommentResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::UnLockCommentResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::UnLockCommentResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/UnPinCommentResponse.md b/client/docs/UnPinCommentResponse.md deleted file mode 100644 index 186205c..0000000 --- a/client/docs/UnPinCommentResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::UnPinCommentResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **comment_positions** | [**Hash<String, RecordStringBeforeStringOrNullAfterStringOrNullValue>**](RecordStringBeforeStringOrNullAfterStringOrNullValue.md) | Construct a type with a set of properties K of type T | [optional] | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::UnPinCommentResponse.new( - comment_positions: null, - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/UpdateCommentResponse.md b/client/docs/UpdateCommentResponse.md deleted file mode 100644 index da45d7c..0000000 --- a/client/docs/UpdateCommentResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::UpdateCommentResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::UpdateCommentResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/UpdateEmailTemplateResponse.md b/client/docs/UpdateEmailTemplateResponse.md deleted file mode 100644 index cdd4b63..0000000 --- a/client/docs/UpdateEmailTemplateResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::UpdateEmailTemplateResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::UpdateEmailTemplateResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/UpdateFeedPostPublicResponse.md b/client/docs/UpdateFeedPostPublicResponse.md deleted file mode 100644 index ebc6eaa..0000000 --- a/client/docs/UpdateFeedPostPublicResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# FastCommentsClient::UpdateFeedPostPublicResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **feed_post** | [**FeedPost**](FeedPost.md) | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::UpdateFeedPostPublicResponse.new( - status: null, - feed_post: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/UpdateFeedPostResponse.md b/client/docs/UpdateFeedPostResponse.md deleted file mode 100644 index ead6b7e..0000000 --- a/client/docs/UpdateFeedPostResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::UpdateFeedPostResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::UpdateFeedPostResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/UpdateModeratorResponse.md b/client/docs/UpdateModeratorResponse.md deleted file mode 100644 index 47ce88c..0000000 --- a/client/docs/UpdateModeratorResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::UpdateModeratorResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::UpdateModeratorResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/UpdateNotificationResponse.md b/client/docs/UpdateNotificationResponse.md deleted file mode 100644 index 0455ed1..0000000 --- a/client/docs/UpdateNotificationResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::UpdateNotificationResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::UpdateNotificationResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/UpdateQuestionConfigResponse.md b/client/docs/UpdateQuestionConfigResponse.md deleted file mode 100644 index a6bc38f..0000000 --- a/client/docs/UpdateQuestionConfigResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::UpdateQuestionConfigResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::UpdateQuestionConfigResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/UpdateQuestionResultResponse.md b/client/docs/UpdateQuestionResultResponse.md deleted file mode 100644 index 2cc0831..0000000 --- a/client/docs/UpdateQuestionResultResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::UpdateQuestionResultResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::UpdateQuestionResultResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/UpdateTenantPackageResponse.md b/client/docs/UpdateTenantPackageResponse.md deleted file mode 100644 index a996def..0000000 --- a/client/docs/UpdateTenantPackageResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::UpdateTenantPackageResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::UpdateTenantPackageResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/UpdateTenantResponse.md b/client/docs/UpdateTenantResponse.md deleted file mode 100644 index 23bdc78..0000000 --- a/client/docs/UpdateTenantResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::UpdateTenantResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::UpdateTenantResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/UpdateTenantUserResponse.md b/client/docs/UpdateTenantUserResponse.md deleted file mode 100644 index 0185720..0000000 --- a/client/docs/UpdateTenantUserResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::UpdateTenantUserResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::UpdateTenantUserResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/UpdateUserBadgeResponse.md b/client/docs/UpdateUserBadgeResponse.md deleted file mode 100644 index 9736757..0000000 --- a/client/docs/UpdateUserBadgeResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FastCommentsClient::UpdateUserBadgeResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::UpdateUserBadgeResponse.new( - status: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md b/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md index c0e3ed9..40740f8 100644 --- a/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md +++ b/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md @@ -8,13 +8,6 @@ | **matched_count** | **Integer** | | [optional] | | **modified_count** | **Integer** | | [optional] | | **note** | **String** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | ## Example @@ -25,14 +18,7 @@ instance = FastCommentsClient::UpdateUserNotificationCommentSubscriptionStatusRe status: null, matched_count: null, modified_count: null, - note: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null + note: null ) ``` diff --git a/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md b/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md index 3b675a3..3c1af69 100644 --- a/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md +++ b/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md @@ -8,13 +8,6 @@ | **matched_count** | **Integer** | | [optional] | | **modified_count** | **Integer** | | [optional] | | **note** | **String** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | ## Example @@ -25,14 +18,7 @@ instance = FastCommentsClient::UpdateUserNotificationPageSubscriptionStatusRespo status: null, matched_count: null, modified_count: null, - note: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null + note: null ) ``` diff --git a/client/docs/UpdateUserNotificationStatusResponse.md b/client/docs/UpdateUserNotificationStatusResponse.md index 79e4c8e..5bc7763 100644 --- a/client/docs/UpdateUserNotificationStatusResponse.md +++ b/client/docs/UpdateUserNotificationStatusResponse.md @@ -8,13 +8,6 @@ | **matched_count** | **Integer** | | [optional] | | **modified_count** | **Integer** | | [optional] | | **note** | **String** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | ## Example @@ -25,14 +18,7 @@ instance = FastCommentsClient::UpdateUserNotificationStatusResponse.new( status: null, matched_count: null, modified_count: null, - note: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null + note: null ) ``` diff --git a/client/docs/VoteCommentResponse.md b/client/docs/VoteCommentResponse.md deleted file mode 100644 index 78f80ae..0000000 --- a/client/docs/VoteCommentResponse.md +++ /dev/null @@ -1,40 +0,0 @@ -# FastCommentsClient::VoteCommentResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **status** | [**APIStatus**](APIStatus.md) | | | -| **vote_id** | **String** | | [optional] | -| **is_verified** | **Boolean** | | [optional] | -| **user** | [**VoteResponseUser**](VoteResponseUser.md) | | [optional] | -| **edit_key** | **String** | | [optional] | -| **reason** | **String** | | [optional] | -| **code** | **String** | | [optional] | -| **secondary_code** | **String** | | [optional] | -| **banned_until** | **Integer** | | [optional] | -| **max_character_length** | **Integer** | | [optional] | -| **translated_error** | **String** | | [optional] | -| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::VoteCommentResponse.new( - status: null, - vote_id: null, - is_verified: null, - user: null, - edit_key: null, - reason: null, - code: null, - secondary_code: null, - banned_until: null, - max_character_length: null, - translated_error: null, - custom_config: null -) -``` - diff --git a/client/lib/fastcomments-client.rb b/client/lib/fastcomments-client.rb index d21446a..1ba34dc 100644 --- a/client/lib/fastcomments-client.rb +++ b/client/lib/fastcomments-client.rb @@ -53,14 +53,11 @@ require 'fastcomments-client/models/add_domain_config_params' require 'fastcomments-client/models/add_domain_config_response' require 'fastcomments-client/models/add_domain_config_response_any_of' -require 'fastcomments-client/models/add_hash_tag_response' -require 'fastcomments-client/models/add_hash_tags_bulk_response' require 'fastcomments-client/models/add_page_api_response' require 'fastcomments-client/models/add_sso_user_api_response' require 'fastcomments-client/models/adjust_comment_votes_params' require 'fastcomments-client/models/adjust_votes_response' require 'fastcomments-client/models/aggregate_question_results_response' -require 'fastcomments-client/models/aggregate_question_results_response1' require 'fastcomments-client/models/aggregate_response' require 'fastcomments-client/models/aggregate_time_bucket' require 'fastcomments-client/models/aggregation_api_error' @@ -80,15 +77,12 @@ require 'fastcomments-client/models/banned_user_match_type' require 'fastcomments-client/models/billing_info' require 'fastcomments-client/models/block_from_comment_params' -require 'fastcomments-client/models/block_from_comment_public_response' require 'fastcomments-client/models/block_success' -require 'fastcomments-client/models/block_user_from_comment_response' require 'fastcomments-client/models/build_moderation_filter_params' require 'fastcomments-client/models/build_moderation_filter_response' require 'fastcomments-client/models/bulk_aggregate_question_item' require 'fastcomments-client/models/bulk_aggregate_question_results_request' require 'fastcomments-client/models/bulk_aggregate_question_results_response' -require 'fastcomments-client/models/bulk_aggregate_question_results_response1' require 'fastcomments-client/models/bulk_create_hash_tags_body' require 'fastcomments-client/models/bulk_create_hash_tags_body_tags_inner' require 'fastcomments-client/models/bulk_create_hash_tags_response' @@ -98,10 +92,7 @@ require 'fastcomments-client/models/change_comment_pin_status_response' require 'fastcomments-client/models/change_ticket_state_body' require 'fastcomments-client/models/change_ticket_state_response' -require 'fastcomments-client/models/change_ticket_state_response1' require 'fastcomments-client/models/check_blocked_comments_response' -require 'fastcomments-client/models/checked_comments_for_blocked_response' -require 'fastcomments-client/models/combine_comments_with_question_results_response' require 'fastcomments-client/models/combine_question_results_with_comments_response' require 'fastcomments-client/models/comment_data' require 'fastcomments-client/models/comment_html_rendering_mode' @@ -121,75 +112,40 @@ require 'fastcomments-client/models/create_apisso_user_data' require 'fastcomments-client/models/create_api_user_subscription_data' require 'fastcomments-client/models/create_comment_params' -require 'fastcomments-client/models/create_comment_public_response' require 'fastcomments-client/models/create_email_template_body' require 'fastcomments-client/models/create_email_template_response' -require 'fastcomments-client/models/create_email_template_response1' require 'fastcomments-client/models/create_feed_post_params' -require 'fastcomments-client/models/create_feed_post_public_response' require 'fastcomments-client/models/create_feed_post_response' -require 'fastcomments-client/models/create_feed_post_response1' require 'fastcomments-client/models/create_feed_posts_response' require 'fastcomments-client/models/create_hash_tag_body' require 'fastcomments-client/models/create_hash_tag_response' require 'fastcomments-client/models/create_moderator_body' require 'fastcomments-client/models/create_moderator_response' -require 'fastcomments-client/models/create_moderator_response1' require 'fastcomments-client/models/create_question_config_body' require 'fastcomments-client/models/create_question_config_response' -require 'fastcomments-client/models/create_question_config_response1' require 'fastcomments-client/models/create_question_result_body' require 'fastcomments-client/models/create_question_result_response' -require 'fastcomments-client/models/create_question_result_response1' require 'fastcomments-client/models/create_subscription_api_response' require 'fastcomments-client/models/create_tenant_body' require 'fastcomments-client/models/create_tenant_package_body' require 'fastcomments-client/models/create_tenant_package_response' -require 'fastcomments-client/models/create_tenant_package_response1' require 'fastcomments-client/models/create_tenant_response' -require 'fastcomments-client/models/create_tenant_response1' require 'fastcomments-client/models/create_tenant_user_body' require 'fastcomments-client/models/create_tenant_user_response' -require 'fastcomments-client/models/create_tenant_user_response1' require 'fastcomments-client/models/create_ticket_body' require 'fastcomments-client/models/create_ticket_response' -require 'fastcomments-client/models/create_ticket_response1' require 'fastcomments-client/models/create_user_badge_params' -require 'fastcomments-client/models/create_user_badge_response' require 'fastcomments-client/models/create_v1_page_react' -require 'fastcomments-client/models/create_v1_page_react_response' -require 'fastcomments-client/models/create_v2_page_react_response' -require 'fastcomments-client/models/create_vote_response' require 'fastcomments-client/models/custom_config_parameters' require 'fastcomments-client/models/custom_email_template' require 'fastcomments-client/models/delete_comment_action' -require 'fastcomments-client/models/delete_comment_public_response' -require 'fastcomments-client/models/delete_comment_response' require 'fastcomments-client/models/delete_comment_result' -require 'fastcomments-client/models/delete_comment_vote_response' require 'fastcomments-client/models/delete_domain_config_response' -require 'fastcomments-client/models/delete_email_template_render_error_response' -require 'fastcomments-client/models/delete_email_template_response' require 'fastcomments-client/models/delete_feed_post_public_response' -require 'fastcomments-client/models/delete_feed_post_public_response_any_of' require 'fastcomments-client/models/delete_hash_tag_request_body' -require 'fastcomments-client/models/delete_hash_tag_response' -require 'fastcomments-client/models/delete_moderation_vote_response' -require 'fastcomments-client/models/delete_moderator_response' -require 'fastcomments-client/models/delete_notification_count_response' require 'fastcomments-client/models/delete_page_api_response' -require 'fastcomments-client/models/delete_pending_webhook_event_response' -require 'fastcomments-client/models/delete_question_config_response' -require 'fastcomments-client/models/delete_question_result_response' require 'fastcomments-client/models/delete_sso_user_api_response' require 'fastcomments-client/models/delete_subscription_api_response' -require 'fastcomments-client/models/delete_tenant_package_response' -require 'fastcomments-client/models/delete_tenant_response' -require 'fastcomments-client/models/delete_tenant_user_response' -require 'fastcomments-client/models/delete_user_badge_response' -require 'fastcomments-client/models/delete_v1_page_react_response' -require 'fastcomments-client/models/delete_v2_page_react_response' -require 'fastcomments-client/models/delete_vote_response' require 'fastcomments-client/models/deleted_comment_result_comment' require 'fastcomments-client/models/digest_email_frequency' require 'fastcomments-client/models/email_template_definition' @@ -205,154 +161,72 @@ require 'fastcomments-client/models/feed_posts_stats_response' require 'fastcomments-client/models/find_comments_by_range_item' require 'fastcomments-client/models/find_comments_by_range_response' -require 'fastcomments-client/models/flag_comment_public_response' require 'fastcomments-client/models/flag_comment_response' -require 'fastcomments-client/models/flag_comment_response1' -require 'fastcomments-client/models/get_api_comments_response' -require 'fastcomments-client/models/get_api_export_status_response' -require 'fastcomments-client/models/get_api_ids_response' require 'fastcomments-client/models/get_audit_logs_response' -require 'fastcomments-client/models/get_audit_logs_response1' -require 'fastcomments-client/models/get_ban_users_from_comment_response' require 'fastcomments-client/models/get_banned_users_count_response' require 'fastcomments-client/models/get_banned_users_from_comment_response' require 'fastcomments-client/models/get_cached_notification_count_response' -require 'fastcomments-client/models/get_cached_notification_count_response1' require 'fastcomments-client/models/get_comment_ban_status_response' -require 'fastcomments-client/models/get_comment_ban_status_response1' -require 'fastcomments-client/models/get_comment_children_response' -require 'fastcomments-client/models/get_comment_response' require 'fastcomments-client/models/get_comment_text_response' -require 'fastcomments-client/models/get_comment_text_response1' -require 'fastcomments-client/models/get_comment_vote_user_names_response' require 'fastcomments-client/models/get_comment_vote_user_names_success_response' require 'fastcomments-client/models/get_comments_for_user_response' -require 'fastcomments-client/models/get_comments_for_user_response1' -require 'fastcomments-client/models/get_comments_public_response' -require 'fastcomments-client/models/get_comments_response' require 'fastcomments-client/models/get_comments_response_public_comment' require 'fastcomments-client/models/get_comments_response_with_presence_public_comment' -require 'fastcomments-client/models/get_count_response' -require 'fastcomments-client/models/get_counts_response' require 'fastcomments-client/models/get_domain_config_response' require 'fastcomments-client/models/get_domain_configs_response' require 'fastcomments-client/models/get_domain_configs_response_any_of' require 'fastcomments-client/models/get_domain_configs_response_any_of1' require 'fastcomments-client/models/get_email_template_definitions_response' -require 'fastcomments-client/models/get_email_template_definitions_response1' require 'fastcomments-client/models/get_email_template_render_errors_response' -require 'fastcomments-client/models/get_email_template_render_errors_response1' require 'fastcomments-client/models/get_email_template_response' -require 'fastcomments-client/models/get_email_template_response1' require 'fastcomments-client/models/get_email_templates_response' -require 'fastcomments-client/models/get_email_templates_response1' require 'fastcomments-client/models/get_event_log_response' -require 'fastcomments-client/models/get_event_log_response1' -require 'fastcomments-client/models/get_feed_posts_public_response' require 'fastcomments-client/models/get_feed_posts_response' -require 'fastcomments-client/models/get_feed_posts_response1' -require 'fastcomments-client/models/get_feed_posts_stats_response' -require 'fastcomments-client/models/get_gif_large_response' require 'fastcomments-client/models/get_gifs_search_response' require 'fastcomments-client/models/get_gifs_trending_response' -require 'fastcomments-client/models/get_global_event_log_response' require 'fastcomments-client/models/get_hash_tags_response' -require 'fastcomments-client/models/get_hash_tags_response1' -require 'fastcomments-client/models/get_logs_response' -require 'fastcomments-client/models/get_manual_badges_for_user_response' -require 'fastcomments-client/models/get_manual_badges_response' -require 'fastcomments-client/models/get_moderation_comment_response' -require 'fastcomments-client/models/get_moderation_comment_text_response' require 'fastcomments-client/models/get_moderator_response' -require 'fastcomments-client/models/get_moderator_response1' require 'fastcomments-client/models/get_moderators_response' -require 'fastcomments-client/models/get_moderators_response1' require 'fastcomments-client/models/get_my_notifications_response' require 'fastcomments-client/models/get_notification_count_response' -require 'fastcomments-client/models/get_notification_count_response1' require 'fastcomments-client/models/get_notifications_response' -require 'fastcomments-client/models/get_notifications_response1' -require 'fastcomments-client/models/get_offline_users_response' -require 'fastcomments-client/models/get_online_users_response' require 'fastcomments-client/models/get_page_by_urlid_api_response' require 'fastcomments-client/models/get_pages_api_response' -require 'fastcomments-client/models/get_pages_public_response' require 'fastcomments-client/models/get_pending_webhook_event_count_response' -require 'fastcomments-client/models/get_pending_webhook_event_count_response1' require 'fastcomments-client/models/get_pending_webhook_events_response' -require 'fastcomments-client/models/get_pending_webhook_events_response1' -require 'fastcomments-client/models/get_pre_ban_summary_response' require 'fastcomments-client/models/get_public_feed_posts_response' require 'fastcomments-client/models/get_public_pages_response' require 'fastcomments-client/models/get_question_config_response' -require 'fastcomments-client/models/get_question_config_response1' require 'fastcomments-client/models/get_question_configs_response' -require 'fastcomments-client/models/get_question_configs_response1' require 'fastcomments-client/models/get_question_result_response' -require 'fastcomments-client/models/get_question_result_response1' require 'fastcomments-client/models/get_question_results_response' -require 'fastcomments-client/models/get_question_results_response1' require 'fastcomments-client/models/get_sso_user_by_email_api_response' require 'fastcomments-client/models/get_sso_user_by_id_api_response' require 'fastcomments-client/models/get_sso_users_response' -require 'fastcomments-client/models/get_search_comments_summary_response' -require 'fastcomments-client/models/get_search_pages_response' -require 'fastcomments-client/models/get_search_sites_response' -require 'fastcomments-client/models/get_search_suggest_response' -require 'fastcomments-client/models/get_search_users_response' require 'fastcomments-client/models/get_subscriptions_api_response' require 'fastcomments-client/models/get_tenant_daily_usages_response' -require 'fastcomments-client/models/get_tenant_daily_usages_response1' require 'fastcomments-client/models/get_tenant_manual_badges_response' require 'fastcomments-client/models/get_tenant_package_response' -require 'fastcomments-client/models/get_tenant_package_response1' require 'fastcomments-client/models/get_tenant_packages_response' -require 'fastcomments-client/models/get_tenant_packages_response1' require 'fastcomments-client/models/get_tenant_response' -require 'fastcomments-client/models/get_tenant_response1' require 'fastcomments-client/models/get_tenant_user_response' -require 'fastcomments-client/models/get_tenant_user_response1' require 'fastcomments-client/models/get_tenant_users_response' -require 'fastcomments-client/models/get_tenant_users_response1' require 'fastcomments-client/models/get_tenants_response' -require 'fastcomments-client/models/get_tenants_response1' require 'fastcomments-client/models/get_ticket_response' -require 'fastcomments-client/models/get_ticket_response1' require 'fastcomments-client/models/get_tickets_response' -require 'fastcomments-client/models/get_tickets_response1' require 'fastcomments-client/models/get_translations_response' -require 'fastcomments-client/models/get_translations_response1' -require 'fastcomments-client/models/get_trust_factor_response' -require 'fastcomments-client/models/get_user_badge_progress_by_id_response' -require 'fastcomments-client/models/get_user_badge_progress_by_user_id_response' -require 'fastcomments-client/models/get_user_badge_progress_list_response' -require 'fastcomments-client/models/get_user_badge_response' -require 'fastcomments-client/models/get_user_badges_response' -require 'fastcomments-client/models/get_user_ban_preference_response' require 'fastcomments-client/models/get_user_internal_profile_response' -require 'fastcomments-client/models/get_user_internal_profile_response1' require 'fastcomments-client/models/get_user_internal_profile_response_profile' require 'fastcomments-client/models/get_user_manual_badges_response' require 'fastcomments-client/models/get_user_notification_count_response' -require 'fastcomments-client/models/get_user_notification_count_response1' -require 'fastcomments-client/models/get_user_notifications_response' require 'fastcomments-client/models/get_user_presence_statuses_response' -require 'fastcomments-client/models/get_user_presence_statuses_response1' -require 'fastcomments-client/models/get_user_reacts_public_response' require 'fastcomments-client/models/get_user_response' -require 'fastcomments-client/models/get_user_response1' require 'fastcomments-client/models/get_user_trust_factor_response' -require 'fastcomments-client/models/get_users_info_response' require 'fastcomments-client/models/get_v1_page_likes' -require 'fastcomments-client/models/get_v1_page_likes_response' require 'fastcomments-client/models/get_v2_page_react_users_response' -require 'fastcomments-client/models/get_v2_page_react_users_response1' require 'fastcomments-client/models/get_v2_page_reacts' -require 'fastcomments-client/models/get_v2_page_reacts_response' require 'fastcomments-client/models/get_votes_for_user_response' -require 'fastcomments-client/models/get_votes_for_user_response1' require 'fastcomments-client/models/get_votes_response' -require 'fastcomments-client/models/get_votes_response1' require 'fastcomments-client/models/gif_get_large_response' require 'fastcomments-client/models/gif_rating' require 'fastcomments-client/models/gif_search_internal_error' @@ -367,7 +241,6 @@ require 'fastcomments-client/models/live_event' require 'fastcomments-client/models/live_event_extra_info' require 'fastcomments-client/models/live_event_type' -require 'fastcomments-client/models/lock_comment_response' require 'fastcomments-client/models/media_asset' require 'fastcomments-client/models/mention_auto_complete_mode' require 'fastcomments-client/models/meta_item' @@ -401,26 +274,10 @@ require 'fastcomments-client/models/pages_sort_by' require 'fastcomments-client/models/patch_domain_config_params' require 'fastcomments-client/models/patch_domain_config_response' -require 'fastcomments-client/models/patch_hash_tag_response' require 'fastcomments-client/models/patch_page_api_response' require 'fastcomments-client/models/patch_sso_user_api_response' require 'fastcomments-client/models/pending_comment_to_sync_outbound' -require 'fastcomments-client/models/pin_comment_response' -require 'fastcomments-client/models/post_adjust_comment_votes_response' -require 'fastcomments-client/models/post_api_export_response' -require 'fastcomments-client/models/post_ban_user_from_comment_response' -require 'fastcomments-client/models/post_ban_user_undo_response' -require 'fastcomments-client/models/post_bulk_pre_ban_summary_response' -require 'fastcomments-client/models/post_comments_by_ids_response' -require 'fastcomments-client/models/post_flag_comment_response' require 'fastcomments-client/models/post_remove_comment_response' -require 'fastcomments-client/models/post_restore_deleted_comment_response' -require 'fastcomments-client/models/post_set_comment_approval_status_response' -require 'fastcomments-client/models/post_set_comment_review_status_response' -require 'fastcomments-client/models/post_set_comment_spam_status_response' -require 'fastcomments-client/models/post_set_comment_text_response' -require 'fastcomments-client/models/post_un_flag_comment_response' -require 'fastcomments-client/models/post_vote_response' require 'fastcomments-client/models/pre_ban_summary' require 'fastcomments-client/models/pub_sub_comment' require 'fastcomments-client/models/pub_sub_comment_base' @@ -434,11 +291,7 @@ require 'fastcomments-client/models/public_feed_posts_response' require 'fastcomments-client/models/public_page' require 'fastcomments-client/models/public_vote' -require 'fastcomments-client/models/put_award_badge_response' -require 'fastcomments-client/models/put_close_thread_response' require 'fastcomments-client/models/put_domain_config_response' -require 'fastcomments-client/models/put_remove_badge_response' -require 'fastcomments-client/models/put_reopen_thread_response' require 'fastcomments-client/models/put_sso_user_api_response' require 'fastcomments-client/models/query_predicate' require 'fastcomments-client/models/query_predicate_value' @@ -451,42 +304,30 @@ require 'fastcomments-client/models/question_sub_question_visibility' require 'fastcomments-client/models/question_when_save' require 'fastcomments-client/models/react_body_params' -require 'fastcomments-client/models/react_feed_post_public_response' require 'fastcomments-client/models/react_feed_post_response' require 'fastcomments-client/models/record_string_before_string_or_null_after_string_or_null_value' require 'fastcomments-client/models/remove_comment_action_response' require 'fastcomments-client/models/remove_user_badge_response' require 'fastcomments-client/models/render_email_template_body' require 'fastcomments-client/models/render_email_template_response' -require 'fastcomments-client/models/render_email_template_response1' require 'fastcomments-client/models/renderable_user_notification' require 'fastcomments-client/models/repeat_comment_check_ignored_reason' require 'fastcomments-client/models/repeat_comment_handling_action' require 'fastcomments-client/models/replace_tenant_package_body' -require 'fastcomments-client/models/replace_tenant_package_response' require 'fastcomments-client/models/replace_tenant_user_body' -require 'fastcomments-client/models/replace_tenant_user_response' -require 'fastcomments-client/models/reset_user_notification_count_response' require 'fastcomments-client/models/reset_user_notifications_response' -require 'fastcomments-client/models/reset_user_notifications_response1' require 'fastcomments-client/models/sortdir' require 'fastcomments-client/models/sso_security_level' -require 'fastcomments-client/models/save_comment_response' require 'fastcomments-client/models/save_comment_response_optimized' require 'fastcomments-client/models/save_comments_bulk_response' require 'fastcomments-client/models/save_comments_response_with_presence' require 'fastcomments-client/models/search_users_response' -require 'fastcomments-client/models/search_users_response1' require 'fastcomments-client/models/search_users_result' require 'fastcomments-client/models/search_users_sectioned_response' -require 'fastcomments-client/models/send_invite_response' -require 'fastcomments-client/models/send_login_link_response' require 'fastcomments-client/models/set_comment_approved_response' require 'fastcomments-client/models/set_comment_text_params' require 'fastcomments-client/models/set_comment_text_response' -require 'fastcomments-client/models/set_comment_text_response1' require 'fastcomments-client/models/set_comment_text_result' -require 'fastcomments-client/models/set_trust_factor_response' require 'fastcomments-client/models/set_user_trust_factor_response' require 'fastcomments-client/models/size_preset' require 'fastcomments-client/models/sort_directions' @@ -495,43 +336,26 @@ require 'fastcomments-client/models/tenant_badge' require 'fastcomments-client/models/tenant_hash_tag' require 'fastcomments-client/models/tenant_package' -require 'fastcomments-client/models/un_block_comment_public_response' require 'fastcomments-client/models/un_block_from_comment_params' -require 'fastcomments-client/models/un_block_user_from_comment_response' -require 'fastcomments-client/models/un_flag_comment_response' -require 'fastcomments-client/models/un_lock_comment_response' -require 'fastcomments-client/models/un_pin_comment_response' require 'fastcomments-client/models/unblock_success' require 'fastcomments-client/models/updatable_comment_params' require 'fastcomments-client/models/update_api_page_data' require 'fastcomments-client/models/update_apisso_user_data' require 'fastcomments-client/models/update_api_user_subscription_data' -require 'fastcomments-client/models/update_comment_response' require 'fastcomments-client/models/update_domain_config_params' require 'fastcomments-client/models/update_email_template_body' -require 'fastcomments-client/models/update_email_template_response' require 'fastcomments-client/models/update_feed_post_params' -require 'fastcomments-client/models/update_feed_post_public_response' -require 'fastcomments-client/models/update_feed_post_response' require 'fastcomments-client/models/update_hash_tag_body' require 'fastcomments-client/models/update_hash_tag_response' require 'fastcomments-client/models/update_moderator_body' -require 'fastcomments-client/models/update_moderator_response' require 'fastcomments-client/models/update_notification_body' -require 'fastcomments-client/models/update_notification_response' require 'fastcomments-client/models/update_question_config_body' -require 'fastcomments-client/models/update_question_config_response' require 'fastcomments-client/models/update_question_result_body' -require 'fastcomments-client/models/update_question_result_response' require 'fastcomments-client/models/update_subscription_api_response' require 'fastcomments-client/models/update_tenant_body' require 'fastcomments-client/models/update_tenant_package_body' -require 'fastcomments-client/models/update_tenant_package_response' -require 'fastcomments-client/models/update_tenant_response' require 'fastcomments-client/models/update_tenant_user_body' -require 'fastcomments-client/models/update_tenant_user_response' require 'fastcomments-client/models/update_user_badge_params' -require 'fastcomments-client/models/update_user_badge_response' require 'fastcomments-client/models/update_user_notification_comment_subscription_status_response' require 'fastcomments-client/models/update_user_notification_page_subscription_status_response' require 'fastcomments-client/models/update_user_notification_status_response' @@ -550,7 +374,6 @@ require 'fastcomments-client/models/user_session_info' require 'fastcomments-client/models/users_list_location' require 'fastcomments-client/models/vote_body_params' -require 'fastcomments-client/models/vote_comment_response' require 'fastcomments-client/models/vote_delete_response' require 'fastcomments-client/models/vote_response' require 'fastcomments-client/models/vote_response_user' diff --git a/client/lib/fastcomments-client/api/default_api.rb b/client/lib/fastcomments-client/api/default_api.rb index 0d1fa87..d3ceddc 100644 --- a/client/lib/fastcomments-client/api/default_api.rb +++ b/client/lib/fastcomments-client/api/default_api.rb @@ -93,7 +93,7 @@ def add_domain_config_with_http_info(tenant_id, add_domain_config_params, opts = # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [CreateHashTagBody] :create_hash_tag_body - # @return [AddHashTagResponse] + # @return [CreateHashTagResponse] def add_hash_tag(opts = {}) data, _status_code, _headers = add_hash_tag_with_http_info(opts) data @@ -102,7 +102,7 @@ def add_hash_tag(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [CreateHashTagBody] :create_hash_tag_body - # @return [Array<(AddHashTagResponse, Integer, Hash)>] AddHashTagResponse data, response status code and response headers + # @return [Array<(CreateHashTagResponse, Integer, Hash)>] CreateHashTagResponse data, response status code and response headers def add_hash_tag_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.add_hash_tag ...' @@ -131,7 +131,7 @@ def add_hash_tag_with_http_info(opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_hash_tag_body']) # return_type - return_type = opts[:debug_return_type] || 'AddHashTagResponse' + return_type = opts[:debug_return_type] || 'CreateHashTagResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -156,7 +156,7 @@ def add_hash_tag_with_http_info(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [BulkCreateHashTagsBody] :bulk_create_hash_tags_body - # @return [AddHashTagsBulkResponse] + # @return [BulkCreateHashTagsResponse] def add_hash_tags_bulk(opts = {}) data, _status_code, _headers = add_hash_tags_bulk_with_http_info(opts) data @@ -165,7 +165,7 @@ def add_hash_tags_bulk(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [BulkCreateHashTagsBody] :bulk_create_hash_tags_body - # @return [Array<(AddHashTagsBulkResponse, Integer, Hash)>] AddHashTagsBulkResponse data, response status code and response headers + # @return [Array<(BulkCreateHashTagsResponse, Integer, Hash)>] BulkCreateHashTagsResponse data, response status code and response headers def add_hash_tags_bulk_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.add_hash_tags_bulk ...' @@ -194,7 +194,7 @@ def add_hash_tags_bulk_with_http_info(opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'bulk_create_hash_tags_body']) # return_type - return_type = opts[:debug_return_type] || 'AddHashTagsBulkResponse' + return_type = opts[:debug_return_type] || 'BulkCreateHashTagsResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -445,7 +445,7 @@ def aggregate_with_http_info(tenant_id, aggregation_request, opts = {}) # @option opts [AggregateTimeBucket] :time_bucket # @option opts [Time] :start_date # @option opts [Boolean] :force_recalculate - # @return [AggregateQuestionResultsResponse1] + # @return [AggregateQuestionResultsResponse] def aggregate_question_results(tenant_id, opts = {}) data, _status_code, _headers = aggregate_question_results_with_http_info(tenant_id, opts) data @@ -459,7 +459,7 @@ def aggregate_question_results(tenant_id, opts = {}) # @option opts [AggregateTimeBucket] :time_bucket # @option opts [Time] :start_date # @option opts [Boolean] :force_recalculate - # @return [Array<(AggregateQuestionResultsResponse1, Integer, Hash)>] AggregateQuestionResultsResponse1 data, response status code and response headers + # @return [Array<(AggregateQuestionResultsResponse, Integer, Hash)>] AggregateQuestionResultsResponse data, response status code and response headers def aggregate_question_results_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.aggregate_question_results ...' @@ -493,7 +493,7 @@ def aggregate_question_results_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'AggregateQuestionResultsResponse1' + return_type = opts[:debug_return_type] || 'AggregateQuestionResultsResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -521,7 +521,7 @@ def aggregate_question_results_with_http_info(tenant_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [BlockUserFromCommentResponse] + # @return [BlockSuccess] def block_user_from_comment(tenant_id, id, block_from_comment_params, opts = {}) data, _status_code, _headers = block_user_from_comment_with_http_info(tenant_id, id, block_from_comment_params, opts) data @@ -533,7 +533,7 @@ def block_user_from_comment(tenant_id, id, block_from_comment_params, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [Array<(BlockUserFromCommentResponse, Integer, Hash)>] BlockUserFromCommentResponse data, response status code and response headers + # @return [Array<(BlockSuccess, Integer, Hash)>] BlockSuccess data, response status code and response headers def block_user_from_comment_with_http_info(tenant_id, id, block_from_comment_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.block_user_from_comment ...' @@ -576,7 +576,7 @@ def block_user_from_comment_with_http_info(tenant_id, id, block_from_comment_par post_body = opts[:debug_body] || @api_client.object_to_http_body(block_from_comment_params) # return_type - return_type = opts[:debug_return_type] || 'BlockUserFromCommentResponse' + return_type = opts[:debug_return_type] || 'BlockSuccess' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -602,7 +602,7 @@ def block_user_from_comment_with_http_info(tenant_id, id, block_from_comment_par # @param bulk_aggregate_question_results_request [BulkAggregateQuestionResultsRequest] # @param [Hash] opts the optional parameters # @option opts [Boolean] :force_recalculate - # @return [BulkAggregateQuestionResultsResponse1] + # @return [BulkAggregateQuestionResultsResponse] def bulk_aggregate_question_results(tenant_id, bulk_aggregate_question_results_request, opts = {}) data, _status_code, _headers = bulk_aggregate_question_results_with_http_info(tenant_id, bulk_aggregate_question_results_request, opts) data @@ -612,7 +612,7 @@ def bulk_aggregate_question_results(tenant_id, bulk_aggregate_question_results_r # @param bulk_aggregate_question_results_request [BulkAggregateQuestionResultsRequest] # @param [Hash] opts the optional parameters # @option opts [Boolean] :force_recalculate - # @return [Array<(BulkAggregateQuestionResultsResponse1, Integer, Hash)>] BulkAggregateQuestionResultsResponse1 data, response status code and response headers + # @return [Array<(BulkAggregateQuestionResultsResponse, Integer, Hash)>] BulkAggregateQuestionResultsResponse data, response status code and response headers def bulk_aggregate_question_results_with_http_info(tenant_id, bulk_aggregate_question_results_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.bulk_aggregate_question_results ...' @@ -650,7 +650,7 @@ def bulk_aggregate_question_results_with_http_info(tenant_id, bulk_aggregate_que post_body = opts[:debug_body] || @api_client.object_to_http_body(bulk_aggregate_question_results_request) # return_type - return_type = opts[:debug_return_type] || 'BulkAggregateQuestionResultsResponse1' + return_type = opts[:debug_return_type] || 'BulkAggregateQuestionResultsResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -677,7 +677,7 @@ def bulk_aggregate_question_results_with_http_info(tenant_id, bulk_aggregate_que # @param id [String] # @param change_ticket_state_body [ChangeTicketStateBody] # @param [Hash] opts the optional parameters - # @return [ChangeTicketStateResponse1] + # @return [ChangeTicketStateResponse] def change_ticket_state(tenant_id, user_id, id, change_ticket_state_body, opts = {}) data, _status_code, _headers = change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_state_body, opts) data @@ -688,7 +688,7 @@ def change_ticket_state(tenant_id, user_id, id, change_ticket_state_body, opts = # @param id [String] # @param change_ticket_state_body [ChangeTicketStateBody] # @param [Hash] opts the optional parameters - # @return [Array<(ChangeTicketStateResponse1, Integer, Hash)>] ChangeTicketStateResponse1 data, response status code and response headers + # @return [Array<(ChangeTicketStateResponse, Integer, Hash)>] ChangeTicketStateResponse data, response status code and response headers def change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_state_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.change_ticket_state ...' @@ -734,7 +734,7 @@ def change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_sta post_body = opts[:debug_body] || @api_client.object_to_http_body(change_ticket_state_body) # return_type - return_type = opts[:debug_return_type] || 'ChangeTicketStateResponse1' + return_type = opts[:debug_return_type] || 'ChangeTicketStateResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -766,7 +766,7 @@ def change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_sta # @option opts [Float] :min_value # @option opts [Float] :max_value # @option opts [Float] :limit - # @return [CombineCommentsWithQuestionResultsResponse] + # @return [CombineQuestionResultsWithCommentsResponse] def combine_comments_with_question_results(tenant_id, opts = {}) data, _status_code, _headers = combine_comments_with_question_results_with_http_info(tenant_id, opts) data @@ -782,7 +782,7 @@ def combine_comments_with_question_results(tenant_id, opts = {}) # @option opts [Float] :min_value # @option opts [Float] :max_value # @option opts [Float] :limit - # @return [Array<(CombineCommentsWithQuestionResultsResponse, Integer, Hash)>] CombineCommentsWithQuestionResultsResponse data, response status code and response headers + # @return [Array<(CombineQuestionResultsWithCommentsResponse, Integer, Hash)>] CombineQuestionResultsWithCommentsResponse data, response status code and response headers def combine_comments_with_question_results_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.combine_comments_with_question_results ...' @@ -818,7 +818,7 @@ def combine_comments_with_question_results_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'CombineCommentsWithQuestionResultsResponse' + return_type = opts[:debug_return_type] || 'CombineQuestionResultsWithCommentsResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -843,7 +843,7 @@ def combine_comments_with_question_results_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param create_email_template_body [CreateEmailTemplateBody] # @param [Hash] opts the optional parameters - # @return [CreateEmailTemplateResponse1] + # @return [CreateEmailTemplateResponse] def create_email_template(tenant_id, create_email_template_body, opts = {}) data, _status_code, _headers = create_email_template_with_http_info(tenant_id, create_email_template_body, opts) data @@ -852,7 +852,7 @@ def create_email_template(tenant_id, create_email_template_body, opts = {}) # @param tenant_id [String] # @param create_email_template_body [CreateEmailTemplateBody] # @param [Hash] opts the optional parameters - # @return [Array<(CreateEmailTemplateResponse1, Integer, Hash)>] CreateEmailTemplateResponse1 data, response status code and response headers + # @return [Array<(CreateEmailTemplateResponse, Integer, Hash)>] CreateEmailTemplateResponse data, response status code and response headers def create_email_template_with_http_info(tenant_id, create_email_template_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_email_template ...' @@ -889,7 +889,7 @@ def create_email_template_with_http_info(tenant_id, create_email_template_body, post_body = opts[:debug_body] || @api_client.object_to_http_body(create_email_template_body) # return_type - return_type = opts[:debug_return_type] || 'CreateEmailTemplateResponse1' + return_type = opts[:debug_return_type] || 'CreateEmailTemplateResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -918,7 +918,7 @@ def create_email_template_with_http_info(tenant_id, create_email_template_body, # @option opts [Boolean] :is_live # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :skip_dup_check - # @return [CreateFeedPostResponse1] + # @return [CreateFeedPostsResponse] def create_feed_post(tenant_id, create_feed_post_params, opts = {}) data, _status_code, _headers = create_feed_post_with_http_info(tenant_id, create_feed_post_params, opts) data @@ -931,7 +931,7 @@ def create_feed_post(tenant_id, create_feed_post_params, opts = {}) # @option opts [Boolean] :is_live # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :skip_dup_check - # @return [Array<(CreateFeedPostResponse1, Integer, Hash)>] CreateFeedPostResponse1 data, response status code and response headers + # @return [Array<(CreateFeedPostsResponse, Integer, Hash)>] CreateFeedPostsResponse data, response status code and response headers def create_feed_post_with_http_info(tenant_id, create_feed_post_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_feed_post ...' @@ -972,7 +972,7 @@ def create_feed_post_with_http_info(tenant_id, create_feed_post_params, opts = { post_body = opts[:debug_body] || @api_client.object_to_http_body(create_feed_post_params) # return_type - return_type = opts[:debug_return_type] || 'CreateFeedPostResponse1' + return_type = opts[:debug_return_type] || 'CreateFeedPostsResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -997,7 +997,7 @@ def create_feed_post_with_http_info(tenant_id, create_feed_post_params, opts = { # @param tenant_id [String] # @param create_moderator_body [CreateModeratorBody] # @param [Hash] opts the optional parameters - # @return [CreateModeratorResponse1] + # @return [CreateModeratorResponse] def create_moderator(tenant_id, create_moderator_body, opts = {}) data, _status_code, _headers = create_moderator_with_http_info(tenant_id, create_moderator_body, opts) data @@ -1006,7 +1006,7 @@ def create_moderator(tenant_id, create_moderator_body, opts = {}) # @param tenant_id [String] # @param create_moderator_body [CreateModeratorBody] # @param [Hash] opts the optional parameters - # @return [Array<(CreateModeratorResponse1, Integer, Hash)>] CreateModeratorResponse1 data, response status code and response headers + # @return [Array<(CreateModeratorResponse, Integer, Hash)>] CreateModeratorResponse data, response status code and response headers def create_moderator_with_http_info(tenant_id, create_moderator_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_moderator ...' @@ -1043,7 +1043,7 @@ def create_moderator_with_http_info(tenant_id, create_moderator_body, opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(create_moderator_body) # return_type - return_type = opts[:debug_return_type] || 'CreateModeratorResponse1' + return_type = opts[:debug_return_type] || 'CreateModeratorResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -1068,7 +1068,7 @@ def create_moderator_with_http_info(tenant_id, create_moderator_body, opts = {}) # @param tenant_id [String] # @param create_question_config_body [CreateQuestionConfigBody] # @param [Hash] opts the optional parameters - # @return [CreateQuestionConfigResponse1] + # @return [CreateQuestionConfigResponse] def create_question_config(tenant_id, create_question_config_body, opts = {}) data, _status_code, _headers = create_question_config_with_http_info(tenant_id, create_question_config_body, opts) data @@ -1077,7 +1077,7 @@ def create_question_config(tenant_id, create_question_config_body, opts = {}) # @param tenant_id [String] # @param create_question_config_body [CreateQuestionConfigBody] # @param [Hash] opts the optional parameters - # @return [Array<(CreateQuestionConfigResponse1, Integer, Hash)>] CreateQuestionConfigResponse1 data, response status code and response headers + # @return [Array<(CreateQuestionConfigResponse, Integer, Hash)>] CreateQuestionConfigResponse data, response status code and response headers def create_question_config_with_http_info(tenant_id, create_question_config_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_question_config ...' @@ -1114,7 +1114,7 @@ def create_question_config_with_http_info(tenant_id, create_question_config_body post_body = opts[:debug_body] || @api_client.object_to_http_body(create_question_config_body) # return_type - return_type = opts[:debug_return_type] || 'CreateQuestionConfigResponse1' + return_type = opts[:debug_return_type] || 'CreateQuestionConfigResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -1139,7 +1139,7 @@ def create_question_config_with_http_info(tenant_id, create_question_config_body # @param tenant_id [String] # @param create_question_result_body [CreateQuestionResultBody] # @param [Hash] opts the optional parameters - # @return [CreateQuestionResultResponse1] + # @return [CreateQuestionResultResponse] def create_question_result(tenant_id, create_question_result_body, opts = {}) data, _status_code, _headers = create_question_result_with_http_info(tenant_id, create_question_result_body, opts) data @@ -1148,7 +1148,7 @@ def create_question_result(tenant_id, create_question_result_body, opts = {}) # @param tenant_id [String] # @param create_question_result_body [CreateQuestionResultBody] # @param [Hash] opts the optional parameters - # @return [Array<(CreateQuestionResultResponse1, Integer, Hash)>] CreateQuestionResultResponse1 data, response status code and response headers + # @return [Array<(CreateQuestionResultResponse, Integer, Hash)>] CreateQuestionResultResponse data, response status code and response headers def create_question_result_with_http_info(tenant_id, create_question_result_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_question_result ...' @@ -1185,7 +1185,7 @@ def create_question_result_with_http_info(tenant_id, create_question_result_body post_body = opts[:debug_body] || @api_client.object_to_http_body(create_question_result_body) # return_type - return_type = opts[:debug_return_type] || 'CreateQuestionResultResponse1' + return_type = opts[:debug_return_type] || 'CreateQuestionResultResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -1281,7 +1281,7 @@ def create_subscription_with_http_info(tenant_id, create_api_user_subscription_d # @param tenant_id [String] # @param create_tenant_body [CreateTenantBody] # @param [Hash] opts the optional parameters - # @return [CreateTenantResponse1] + # @return [CreateTenantResponse] def create_tenant(tenant_id, create_tenant_body, opts = {}) data, _status_code, _headers = create_tenant_with_http_info(tenant_id, create_tenant_body, opts) data @@ -1290,7 +1290,7 @@ def create_tenant(tenant_id, create_tenant_body, opts = {}) # @param tenant_id [String] # @param create_tenant_body [CreateTenantBody] # @param [Hash] opts the optional parameters - # @return [Array<(CreateTenantResponse1, Integer, Hash)>] CreateTenantResponse1 data, response status code and response headers + # @return [Array<(CreateTenantResponse, Integer, Hash)>] CreateTenantResponse data, response status code and response headers def create_tenant_with_http_info(tenant_id, create_tenant_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_tenant ...' @@ -1327,7 +1327,7 @@ def create_tenant_with_http_info(tenant_id, create_tenant_body, opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(create_tenant_body) # return_type - return_type = opts[:debug_return_type] || 'CreateTenantResponse1' + return_type = opts[:debug_return_type] || 'CreateTenantResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -1352,7 +1352,7 @@ def create_tenant_with_http_info(tenant_id, create_tenant_body, opts = {}) # @param tenant_id [String] # @param create_tenant_package_body [CreateTenantPackageBody] # @param [Hash] opts the optional parameters - # @return [CreateTenantPackageResponse1] + # @return [CreateTenantPackageResponse] def create_tenant_package(tenant_id, create_tenant_package_body, opts = {}) data, _status_code, _headers = create_tenant_package_with_http_info(tenant_id, create_tenant_package_body, opts) data @@ -1361,7 +1361,7 @@ def create_tenant_package(tenant_id, create_tenant_package_body, opts = {}) # @param tenant_id [String] # @param create_tenant_package_body [CreateTenantPackageBody] # @param [Hash] opts the optional parameters - # @return [Array<(CreateTenantPackageResponse1, Integer, Hash)>] CreateTenantPackageResponse1 data, response status code and response headers + # @return [Array<(CreateTenantPackageResponse, Integer, Hash)>] CreateTenantPackageResponse data, response status code and response headers def create_tenant_package_with_http_info(tenant_id, create_tenant_package_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_tenant_package ...' @@ -1398,7 +1398,7 @@ def create_tenant_package_with_http_info(tenant_id, create_tenant_package_body, post_body = opts[:debug_body] || @api_client.object_to_http_body(create_tenant_package_body) # return_type - return_type = opts[:debug_return_type] || 'CreateTenantPackageResponse1' + return_type = opts[:debug_return_type] || 'CreateTenantPackageResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -1423,7 +1423,7 @@ def create_tenant_package_with_http_info(tenant_id, create_tenant_package_body, # @param tenant_id [String] # @param create_tenant_user_body [CreateTenantUserBody] # @param [Hash] opts the optional parameters - # @return [CreateTenantUserResponse1] + # @return [CreateTenantUserResponse] def create_tenant_user(tenant_id, create_tenant_user_body, opts = {}) data, _status_code, _headers = create_tenant_user_with_http_info(tenant_id, create_tenant_user_body, opts) data @@ -1432,7 +1432,7 @@ def create_tenant_user(tenant_id, create_tenant_user_body, opts = {}) # @param tenant_id [String] # @param create_tenant_user_body [CreateTenantUserBody] # @param [Hash] opts the optional parameters - # @return [Array<(CreateTenantUserResponse1, Integer, Hash)>] CreateTenantUserResponse1 data, response status code and response headers + # @return [Array<(CreateTenantUserResponse, Integer, Hash)>] CreateTenantUserResponse data, response status code and response headers def create_tenant_user_with_http_info(tenant_id, create_tenant_user_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_tenant_user ...' @@ -1469,7 +1469,7 @@ def create_tenant_user_with_http_info(tenant_id, create_tenant_user_body, opts = post_body = opts[:debug_body] || @api_client.object_to_http_body(create_tenant_user_body) # return_type - return_type = opts[:debug_return_type] || 'CreateTenantUserResponse1' + return_type = opts[:debug_return_type] || 'CreateTenantUserResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -1495,7 +1495,7 @@ def create_tenant_user_with_http_info(tenant_id, create_tenant_user_body, opts = # @param user_id [String] # @param create_ticket_body [CreateTicketBody] # @param [Hash] opts the optional parameters - # @return [CreateTicketResponse1] + # @return [CreateTicketResponse] def create_ticket(tenant_id, user_id, create_ticket_body, opts = {}) data, _status_code, _headers = create_ticket_with_http_info(tenant_id, user_id, create_ticket_body, opts) data @@ -1505,7 +1505,7 @@ def create_ticket(tenant_id, user_id, create_ticket_body, opts = {}) # @param user_id [String] # @param create_ticket_body [CreateTicketBody] # @param [Hash] opts the optional parameters - # @return [Array<(CreateTicketResponse1, Integer, Hash)>] CreateTicketResponse1 data, response status code and response headers + # @return [Array<(CreateTicketResponse, Integer, Hash)>] CreateTicketResponse data, response status code and response headers def create_ticket_with_http_info(tenant_id, user_id, create_ticket_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_ticket ...' @@ -1547,7 +1547,7 @@ def create_ticket_with_http_info(tenant_id, user_id, create_ticket_body, opts = post_body = opts[:debug_body] || @api_client.object_to_http_body(create_ticket_body) # return_type - return_type = opts[:debug_return_type] || 'CreateTicketResponse1' + return_type = opts[:debug_return_type] || 'CreateTicketResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -1572,7 +1572,7 @@ def create_ticket_with_http_info(tenant_id, user_id, create_ticket_body, opts = # @param tenant_id [String] # @param create_user_badge_params [CreateUserBadgeParams] # @param [Hash] opts the optional parameters - # @return [CreateUserBadgeResponse] + # @return [APICreateUserBadgeResponse] def create_user_badge(tenant_id, create_user_badge_params, opts = {}) data, _status_code, _headers = create_user_badge_with_http_info(tenant_id, create_user_badge_params, opts) data @@ -1581,7 +1581,7 @@ def create_user_badge(tenant_id, create_user_badge_params, opts = {}) # @param tenant_id [String] # @param create_user_badge_params [CreateUserBadgeParams] # @param [Hash] opts the optional parameters - # @return [Array<(CreateUserBadgeResponse, Integer, Hash)>] CreateUserBadgeResponse data, response status code and response headers + # @return [Array<(APICreateUserBadgeResponse, Integer, Hash)>] APICreateUserBadgeResponse data, response status code and response headers def create_user_badge_with_http_info(tenant_id, create_user_badge_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_user_badge ...' @@ -1618,7 +1618,7 @@ def create_user_badge_with_http_info(tenant_id, create_user_badge_params, opts = post_body = opts[:debug_body] || @api_client.object_to_http_body(create_user_badge_params) # return_type - return_type = opts[:debug_return_type] || 'CreateUserBadgeResponse' + return_type = opts[:debug_return_type] || 'APICreateUserBadgeResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -1646,7 +1646,7 @@ def create_user_badge_with_http_info(tenant_id, create_user_badge_params, opts = # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [CreateVoteResponse] + # @return [VoteResponse] def create_vote(tenant_id, comment_id, direction, opts = {}) data, _status_code, _headers = create_vote_with_http_info(tenant_id, comment_id, direction, opts) data @@ -1658,7 +1658,7 @@ def create_vote(tenant_id, comment_id, direction, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [Array<(CreateVoteResponse, Integer, Hash)>] CreateVoteResponse data, response status code and response headers + # @return [Array<(VoteResponse, Integer, Hash)>] VoteResponse data, response status code and response headers def create_vote_with_http_info(tenant_id, comment_id, direction, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_vote ...' @@ -1703,7 +1703,7 @@ def create_vote_with_http_info(tenant_id, comment_id, direction, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'CreateVoteResponse' + return_type = opts[:debug_return_type] || 'VoteResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -1730,7 +1730,7 @@ def create_vote_with_http_info(tenant_id, comment_id, direction, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :context_user_id # @option opts [Boolean] :is_live - # @return [DeleteCommentResponse] + # @return [DeleteCommentResult] def delete_comment(tenant_id, id, opts = {}) data, _status_code, _headers = delete_comment_with_http_info(tenant_id, id, opts) data @@ -1741,7 +1741,7 @@ def delete_comment(tenant_id, id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :context_user_id # @option opts [Boolean] :is_live - # @return [Array<(DeleteCommentResponse, Integer, Hash)>] DeleteCommentResponse data, response status code and response headers + # @return [Array<(DeleteCommentResult, Integer, Hash)>] DeleteCommentResult data, response status code and response headers def delete_comment_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_comment ...' @@ -1775,7 +1775,7 @@ def delete_comment_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'DeleteCommentResponse' + return_type = opts[:debug_return_type] || 'DeleteCommentResult' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -1866,7 +1866,7 @@ def delete_domain_config_with_http_info(tenant_id, domain, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [DeleteEmailTemplateResponse] + # @return [APIEmptyResponse] def delete_email_template(tenant_id, id, opts = {}) data, _status_code, _headers = delete_email_template_with_http_info(tenant_id, id, opts) data @@ -1875,7 +1875,7 @@ def delete_email_template(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(DeleteEmailTemplateResponse, Integer, Hash)>] DeleteEmailTemplateResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def delete_email_template_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_email_template ...' @@ -1907,7 +1907,7 @@ def delete_email_template_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'DeleteEmailTemplateResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -1933,7 +1933,7 @@ def delete_email_template_with_http_info(tenant_id, id, opts = {}) # @param id [String] # @param error_id [String] # @param [Hash] opts the optional parameters - # @return [DeleteEmailTemplateRenderErrorResponse] + # @return [APIEmptyResponse] def delete_email_template_render_error(tenant_id, id, error_id, opts = {}) data, _status_code, _headers = delete_email_template_render_error_with_http_info(tenant_id, id, error_id, opts) data @@ -1943,7 +1943,7 @@ def delete_email_template_render_error(tenant_id, id, error_id, opts = {}) # @param id [String] # @param error_id [String] # @param [Hash] opts the optional parameters - # @return [Array<(DeleteEmailTemplateRenderErrorResponse, Integer, Hash)>] DeleteEmailTemplateRenderErrorResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def delete_email_template_render_error_with_http_info(tenant_id, id, error_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_email_template_render_error ...' @@ -1979,7 +1979,7 @@ def delete_email_template_render_error_with_http_info(tenant_id, id, error_id, o post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'DeleteEmailTemplateRenderErrorResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -2005,7 +2005,7 @@ def delete_email_template_render_error_with_http_info(tenant_id, id, error_id, o # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [DeleteHashTagRequestBody] :delete_hash_tag_request_body - # @return [DeleteHashTagResponse] + # @return [APIEmptyResponse] def delete_hash_tag(tag, opts = {}) data, _status_code, _headers = delete_hash_tag_with_http_info(tag, opts) data @@ -2015,7 +2015,7 @@ def delete_hash_tag(tag, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [DeleteHashTagRequestBody] :delete_hash_tag_request_body - # @return [Array<(DeleteHashTagResponse, Integer, Hash)>] DeleteHashTagResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def delete_hash_tag_with_http_info(tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_hash_tag ...' @@ -2048,7 +2048,7 @@ def delete_hash_tag_with_http_info(tag, opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'delete_hash_tag_request_body']) # return_type - return_type = opts[:debug_return_type] || 'DeleteHashTagResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -2074,7 +2074,7 @@ def delete_hash_tag_with_http_info(tag, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [String] :send_email - # @return [DeleteModeratorResponse] + # @return [APIEmptyResponse] def delete_moderator(tenant_id, id, opts = {}) data, _status_code, _headers = delete_moderator_with_http_info(tenant_id, id, opts) data @@ -2084,7 +2084,7 @@ def delete_moderator(tenant_id, id, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [String] :send_email - # @return [Array<(DeleteModeratorResponse, Integer, Hash)>] DeleteModeratorResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def delete_moderator_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_moderator ...' @@ -2117,7 +2117,7 @@ def delete_moderator_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'DeleteModeratorResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -2142,7 +2142,7 @@ def delete_moderator_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [DeleteNotificationCountResponse] + # @return [APIEmptyResponse] def delete_notification_count(tenant_id, id, opts = {}) data, _status_code, _headers = delete_notification_count_with_http_info(tenant_id, id, opts) data @@ -2151,7 +2151,7 @@ def delete_notification_count(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(DeleteNotificationCountResponse, Integer, Hash)>] DeleteNotificationCountResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def delete_notification_count_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_notification_count ...' @@ -2183,7 +2183,7 @@ def delete_notification_count_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'DeleteNotificationCountResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -2274,7 +2274,7 @@ def delete_page_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [DeletePendingWebhookEventResponse] + # @return [APIEmptyResponse] def delete_pending_webhook_event(tenant_id, id, opts = {}) data, _status_code, _headers = delete_pending_webhook_event_with_http_info(tenant_id, id, opts) data @@ -2283,7 +2283,7 @@ def delete_pending_webhook_event(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(DeletePendingWebhookEventResponse, Integer, Hash)>] DeletePendingWebhookEventResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def delete_pending_webhook_event_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_pending_webhook_event ...' @@ -2315,7 +2315,7 @@ def delete_pending_webhook_event_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'DeletePendingWebhookEventResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -2340,7 +2340,7 @@ def delete_pending_webhook_event_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [DeleteQuestionConfigResponse] + # @return [APIEmptyResponse] def delete_question_config(tenant_id, id, opts = {}) data, _status_code, _headers = delete_question_config_with_http_info(tenant_id, id, opts) data @@ -2349,7 +2349,7 @@ def delete_question_config(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(DeleteQuestionConfigResponse, Integer, Hash)>] DeleteQuestionConfigResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def delete_question_config_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_question_config ...' @@ -2381,7 +2381,7 @@ def delete_question_config_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'DeleteQuestionConfigResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -2406,7 +2406,7 @@ def delete_question_config_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [DeleteQuestionResultResponse] + # @return [APIEmptyResponse] def delete_question_result(tenant_id, id, opts = {}) data, _status_code, _headers = delete_question_result_with_http_info(tenant_id, id, opts) data @@ -2415,7 +2415,7 @@ def delete_question_result(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(DeleteQuestionResultResponse, Integer, Hash)>] DeleteQuestionResultResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def delete_question_result_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_question_result ...' @@ -2447,7 +2447,7 @@ def delete_question_result_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'DeleteQuestionResultResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -2614,7 +2614,7 @@ def delete_subscription_with_http_info(tenant_id, id, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sure - # @return [DeleteTenantResponse] + # @return [APIEmptyResponse] def delete_tenant(tenant_id, id, opts = {}) data, _status_code, _headers = delete_tenant_with_http_info(tenant_id, id, opts) data @@ -2624,7 +2624,7 @@ def delete_tenant(tenant_id, id, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sure - # @return [Array<(DeleteTenantResponse, Integer, Hash)>] DeleteTenantResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def delete_tenant_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_tenant ...' @@ -2657,7 +2657,7 @@ def delete_tenant_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'DeleteTenantResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -2682,7 +2682,7 @@ def delete_tenant_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [DeleteTenantPackageResponse] + # @return [APIEmptyResponse] def delete_tenant_package(tenant_id, id, opts = {}) data, _status_code, _headers = delete_tenant_package_with_http_info(tenant_id, id, opts) data @@ -2691,7 +2691,7 @@ def delete_tenant_package(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(DeleteTenantPackageResponse, Integer, Hash)>] DeleteTenantPackageResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def delete_tenant_package_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_tenant_package ...' @@ -2723,7 +2723,7 @@ def delete_tenant_package_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'DeleteTenantPackageResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -2750,7 +2750,7 @@ def delete_tenant_package_with_http_info(tenant_id, id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :delete_comments # @option opts [String] :comment_delete_mode - # @return [DeleteTenantUserResponse] + # @return [APIEmptyResponse] def delete_tenant_user(tenant_id, id, opts = {}) data, _status_code, _headers = delete_tenant_user_with_http_info(tenant_id, id, opts) data @@ -2761,7 +2761,7 @@ def delete_tenant_user(tenant_id, id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :delete_comments # @option opts [String] :comment_delete_mode - # @return [Array<(DeleteTenantUserResponse, Integer, Hash)>] DeleteTenantUserResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def delete_tenant_user_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_tenant_user ...' @@ -2795,7 +2795,7 @@ def delete_tenant_user_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'DeleteTenantUserResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -2820,7 +2820,7 @@ def delete_tenant_user_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [DeleteUserBadgeResponse] + # @return [APIEmptySuccessResponse] def delete_user_badge(tenant_id, id, opts = {}) data, _status_code, _headers = delete_user_badge_with_http_info(tenant_id, id, opts) data @@ -2829,7 +2829,7 @@ def delete_user_badge(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(DeleteUserBadgeResponse, Integer, Hash)>] DeleteUserBadgeResponse data, response status code and response headers + # @return [Array<(APIEmptySuccessResponse, Integer, Hash)>] APIEmptySuccessResponse data, response status code and response headers def delete_user_badge_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_user_badge ...' @@ -2861,7 +2861,7 @@ def delete_user_badge_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'DeleteUserBadgeResponse' + return_type = opts[:debug_return_type] || 'APIEmptySuccessResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -2887,7 +2887,7 @@ def delete_user_badge_with_http_info(tenant_id, id, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [String] :edit_key - # @return [DeleteVoteResponse] + # @return [VoteDeleteResponse] def delete_vote(tenant_id, id, opts = {}) data, _status_code, _headers = delete_vote_with_http_info(tenant_id, id, opts) data @@ -2897,7 +2897,7 @@ def delete_vote(tenant_id, id, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [String] :edit_key - # @return [Array<(DeleteVoteResponse, Integer, Hash)>] DeleteVoteResponse data, response status code and response headers + # @return [Array<(VoteDeleteResponse, Integer, Hash)>] VoteDeleteResponse data, response status code and response headers def delete_vote_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_vote ...' @@ -2930,7 +2930,7 @@ def delete_vote_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'DeleteVoteResponse' + return_type = opts[:debug_return_type] || 'VoteDeleteResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -2957,7 +2957,7 @@ def delete_vote_with_http_info(tenant_id, id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [FlagCommentResponse1] + # @return [FlagCommentResponse] def flag_comment(tenant_id, id, opts = {}) data, _status_code, _headers = flag_comment_with_http_info(tenant_id, id, opts) data @@ -2968,7 +2968,7 @@ def flag_comment(tenant_id, id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [Array<(FlagCommentResponse1, Integer, Hash)>] FlagCommentResponse1 data, response status code and response headers + # @return [Array<(FlagCommentResponse, Integer, Hash)>] FlagCommentResponse data, response status code and response headers def flag_comment_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.flag_comment ...' @@ -3002,7 +3002,7 @@ def flag_comment_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'FlagCommentResponse1' + return_type = opts[:debug_return_type] || 'FlagCommentResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -3031,7 +3031,7 @@ def flag_comment_with_http_info(tenant_id, id, opts = {}) # @option opts [SORTDIR] :order # @option opts [Float] :after # @option opts [Float] :before - # @return [GetAuditLogsResponse1] + # @return [GetAuditLogsResponse] def get_audit_logs(tenant_id, opts = {}) data, _status_code, _headers = get_audit_logs_with_http_info(tenant_id, opts) data @@ -3044,7 +3044,7 @@ def get_audit_logs(tenant_id, opts = {}) # @option opts [SORTDIR] :order # @option opts [Float] :after # @option opts [Float] :before - # @return [Array<(GetAuditLogsResponse1, Integer, Hash)>] GetAuditLogsResponse1 data, response status code and response headers + # @return [Array<(GetAuditLogsResponse, Integer, Hash)>] GetAuditLogsResponse data, response status code and response headers def get_audit_logs_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_audit_logs ...' @@ -3077,7 +3077,7 @@ def get_audit_logs_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetAuditLogsResponse1' + return_type = opts[:debug_return_type] || 'GetAuditLogsResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -3102,7 +3102,7 @@ def get_audit_logs_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [GetCachedNotificationCountResponse1] + # @return [GetCachedNotificationCountResponse] def get_cached_notification_count(tenant_id, id, opts = {}) data, _status_code, _headers = get_cached_notification_count_with_http_info(tenant_id, id, opts) data @@ -3111,7 +3111,7 @@ def get_cached_notification_count(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetCachedNotificationCountResponse1, Integer, Hash)>] GetCachedNotificationCountResponse1 data, response status code and response headers + # @return [Array<(GetCachedNotificationCountResponse, Integer, Hash)>] GetCachedNotificationCountResponse data, response status code and response headers def get_cached_notification_count_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_cached_notification_count ...' @@ -3143,7 +3143,7 @@ def get_cached_notification_count_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetCachedNotificationCountResponse1' + return_type = opts[:debug_return_type] || 'GetCachedNotificationCountResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -3168,7 +3168,7 @@ def get_cached_notification_count_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [GetCommentResponse] + # @return [APIGetCommentResponse] def get_comment(tenant_id, id, opts = {}) data, _status_code, _headers = get_comment_with_http_info(tenant_id, id, opts) data @@ -3177,7 +3177,7 @@ def get_comment(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetCommentResponse, Integer, Hash)>] GetCommentResponse data, response status code and response headers + # @return [Array<(APIGetCommentResponse, Integer, Hash)>] APIGetCommentResponse data, response status code and response headers def get_comment_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_comment ...' @@ -3209,7 +3209,7 @@ def get_comment_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetCommentResponse' + return_type = opts[:debug_return_type] || 'APIGetCommentResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -3249,7 +3249,7 @@ def get_comment_with_http_info(tenant_id, id, opts = {}) # @option opts [SortDirections] :direction # @option opts [Integer] :from_date # @option opts [Integer] :to_date - # @return [GetCommentsResponse] + # @return [APIGetCommentsResponse] def get_comments(tenant_id, opts = {}) data, _status_code, _headers = get_comments_with_http_info(tenant_id, opts) data @@ -3273,7 +3273,7 @@ def get_comments(tenant_id, opts = {}) # @option opts [SortDirections] :direction # @option opts [Integer] :from_date # @option opts [Integer] :to_date - # @return [Array<(GetCommentsResponse, Integer, Hash)>] GetCommentsResponse data, response status code and response headers + # @return [Array<(APIGetCommentsResponse, Integer, Hash)>] APIGetCommentsResponse data, response status code and response headers def get_comments_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_comments ...' @@ -3317,7 +3317,7 @@ def get_comments_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetCommentsResponse' + return_type = opts[:debug_return_type] || 'APIGetCommentsResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -3468,7 +3468,7 @@ def get_domain_configs_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [GetEmailTemplateResponse1] + # @return [GetEmailTemplateResponse] def get_email_template(tenant_id, id, opts = {}) data, _status_code, _headers = get_email_template_with_http_info(tenant_id, id, opts) data @@ -3477,7 +3477,7 @@ def get_email_template(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetEmailTemplateResponse1, Integer, Hash)>] GetEmailTemplateResponse1 data, response status code and response headers + # @return [Array<(GetEmailTemplateResponse, Integer, Hash)>] GetEmailTemplateResponse data, response status code and response headers def get_email_template_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_email_template ...' @@ -3509,7 +3509,7 @@ def get_email_template_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetEmailTemplateResponse1' + return_type = opts[:debug_return_type] || 'GetEmailTemplateResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -3533,7 +3533,7 @@ def get_email_template_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters - # @return [GetEmailTemplateDefinitionsResponse1] + # @return [GetEmailTemplateDefinitionsResponse] def get_email_template_definitions(tenant_id, opts = {}) data, _status_code, _headers = get_email_template_definitions_with_http_info(tenant_id, opts) data @@ -3541,7 +3541,7 @@ def get_email_template_definitions(tenant_id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetEmailTemplateDefinitionsResponse1, Integer, Hash)>] GetEmailTemplateDefinitionsResponse1 data, response status code and response headers + # @return [Array<(GetEmailTemplateDefinitionsResponse, Integer, Hash)>] GetEmailTemplateDefinitionsResponse data, response status code and response headers def get_email_template_definitions_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_email_template_definitions ...' @@ -3569,7 +3569,7 @@ def get_email_template_definitions_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetEmailTemplateDefinitionsResponse1' + return_type = opts[:debug_return_type] || 'GetEmailTemplateDefinitionsResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -3595,7 +3595,7 @@ def get_email_template_definitions_with_http_info(tenant_id, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [GetEmailTemplateRenderErrorsResponse1] + # @return [GetEmailTemplateRenderErrorsResponse] def get_email_template_render_errors(tenant_id, id, opts = {}) data, _status_code, _headers = get_email_template_render_errors_with_http_info(tenant_id, id, opts) data @@ -3605,7 +3605,7 @@ def get_email_template_render_errors(tenant_id, id, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [Array<(GetEmailTemplateRenderErrorsResponse1, Integer, Hash)>] GetEmailTemplateRenderErrorsResponse1 data, response status code and response headers + # @return [Array<(GetEmailTemplateRenderErrorsResponse, Integer, Hash)>] GetEmailTemplateRenderErrorsResponse data, response status code and response headers def get_email_template_render_errors_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_email_template_render_errors ...' @@ -3638,7 +3638,7 @@ def get_email_template_render_errors_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetEmailTemplateRenderErrorsResponse1' + return_type = opts[:debug_return_type] || 'GetEmailTemplateRenderErrorsResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -3663,7 +3663,7 @@ def get_email_template_render_errors_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [GetEmailTemplatesResponse1] + # @return [GetEmailTemplatesResponse] def get_email_templates(tenant_id, opts = {}) data, _status_code, _headers = get_email_templates_with_http_info(tenant_id, opts) data @@ -3672,7 +3672,7 @@ def get_email_templates(tenant_id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [Array<(GetEmailTemplatesResponse1, Integer, Hash)>] GetEmailTemplatesResponse1 data, response status code and response headers + # @return [Array<(GetEmailTemplatesResponse, Integer, Hash)>] GetEmailTemplatesResponse data, response status code and response headers def get_email_templates_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_email_templates ...' @@ -3701,7 +3701,7 @@ def get_email_templates_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetEmailTemplatesResponse1' + return_type = opts[:debug_return_type] || 'GetEmailTemplatesResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -3729,7 +3729,7 @@ def get_email_templates_with_http_info(tenant_id, opts = {}) # @option opts [String] :after_id # @option opts [Integer] :limit # @option opts [Array] :tags - # @return [GetFeedPostsResponse1] + # @return [GetFeedPostsResponse] def get_feed_posts(tenant_id, opts = {}) data, _status_code, _headers = get_feed_posts_with_http_info(tenant_id, opts) data @@ -3741,7 +3741,7 @@ def get_feed_posts(tenant_id, opts = {}) # @option opts [String] :after_id # @option opts [Integer] :limit # @option opts [Array] :tags - # @return [Array<(GetFeedPostsResponse1, Integer, Hash)>] GetFeedPostsResponse1 data, response status code and response headers + # @return [Array<(GetFeedPostsResponse, Integer, Hash)>] GetFeedPostsResponse data, response status code and response headers def get_feed_posts_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_feed_posts ...' @@ -3772,7 +3772,7 @@ def get_feed_posts_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetFeedPostsResponse1' + return_type = opts[:debug_return_type] || 'GetFeedPostsResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -3797,7 +3797,7 @@ def get_feed_posts_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :page - # @return [GetHashTagsResponse1] + # @return [GetHashTagsResponse] def get_hash_tags(tenant_id, opts = {}) data, _status_code, _headers = get_hash_tags_with_http_info(tenant_id, opts) data @@ -3806,7 +3806,7 @@ def get_hash_tags(tenant_id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :page - # @return [Array<(GetHashTagsResponse1, Integer, Hash)>] GetHashTagsResponse1 data, response status code and response headers + # @return [Array<(GetHashTagsResponse, Integer, Hash)>] GetHashTagsResponse data, response status code and response headers def get_hash_tags_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_hash_tags ...' @@ -3835,7 +3835,7 @@ def get_hash_tags_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetHashTagsResponse1' + return_type = opts[:debug_return_type] || 'GetHashTagsResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -3860,7 +3860,7 @@ def get_hash_tags_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [GetModeratorResponse1] + # @return [GetModeratorResponse] def get_moderator(tenant_id, id, opts = {}) data, _status_code, _headers = get_moderator_with_http_info(tenant_id, id, opts) data @@ -3869,7 +3869,7 @@ def get_moderator(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetModeratorResponse1, Integer, Hash)>] GetModeratorResponse1 data, response status code and response headers + # @return [Array<(GetModeratorResponse, Integer, Hash)>] GetModeratorResponse data, response status code and response headers def get_moderator_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_moderator ...' @@ -3901,7 +3901,7 @@ def get_moderator_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetModeratorResponse1' + return_type = opts[:debug_return_type] || 'GetModeratorResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -3926,7 +3926,7 @@ def get_moderator_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [GetModeratorsResponse1] + # @return [GetModeratorsResponse] def get_moderators(tenant_id, opts = {}) data, _status_code, _headers = get_moderators_with_http_info(tenant_id, opts) data @@ -3935,7 +3935,7 @@ def get_moderators(tenant_id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [Array<(GetModeratorsResponse1, Integer, Hash)>] GetModeratorsResponse1 data, response status code and response headers + # @return [Array<(GetModeratorsResponse, Integer, Hash)>] GetModeratorsResponse data, response status code and response headers def get_moderators_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_moderators ...' @@ -3964,7 +3964,7 @@ def get_moderators_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetModeratorsResponse1' + return_type = opts[:debug_return_type] || 'GetModeratorsResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -3993,7 +3993,7 @@ def get_moderators_with_http_info(tenant_id, opts = {}) # @option opts [String] :from_comment_id # @option opts [Boolean] :viewed # @option opts [String] :type - # @return [GetNotificationCountResponse1] + # @return [GetNotificationCountResponse] def get_notification_count(tenant_id, opts = {}) data, _status_code, _headers = get_notification_count_with_http_info(tenant_id, opts) data @@ -4006,7 +4006,7 @@ def get_notification_count(tenant_id, opts = {}) # @option opts [String] :from_comment_id # @option opts [Boolean] :viewed # @option opts [String] :type - # @return [Array<(GetNotificationCountResponse1, Integer, Hash)>] GetNotificationCountResponse1 data, response status code and response headers + # @return [Array<(GetNotificationCountResponse, Integer, Hash)>] GetNotificationCountResponse data, response status code and response headers def get_notification_count_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_notification_count ...' @@ -4039,7 +4039,7 @@ def get_notification_count_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetNotificationCountResponse1' + return_type = opts[:debug_return_type] || 'GetNotificationCountResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -4069,7 +4069,7 @@ def get_notification_count_with_http_info(tenant_id, opts = {}) # @option opts [Boolean] :viewed # @option opts [String] :type # @option opts [Float] :skip - # @return [GetNotificationsResponse1] + # @return [GetNotificationsResponse] def get_notifications(tenant_id, opts = {}) data, _status_code, _headers = get_notifications_with_http_info(tenant_id, opts) data @@ -4083,7 +4083,7 @@ def get_notifications(tenant_id, opts = {}) # @option opts [Boolean] :viewed # @option opts [String] :type # @option opts [Float] :skip - # @return [Array<(GetNotificationsResponse1, Integer, Hash)>] GetNotificationsResponse1 data, response status code and response headers + # @return [Array<(GetNotificationsResponse, Integer, Hash)>] GetNotificationsResponse data, response status code and response headers def get_notifications_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_notifications ...' @@ -4117,7 +4117,7 @@ def get_notifications_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetNotificationsResponse1' + return_type = opts[:debug_return_type] || 'GetNotificationsResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -4274,7 +4274,7 @@ def get_pages_with_http_info(tenant_id, opts = {}) # @option opts [String] :type # @option opts [String] :domain # @option opts [Float] :attempt_count_gt - # @return [GetPendingWebhookEventCountResponse1] + # @return [GetPendingWebhookEventCountResponse] def get_pending_webhook_event_count(tenant_id, opts = {}) data, _status_code, _headers = get_pending_webhook_event_count_with_http_info(tenant_id, opts) data @@ -4288,7 +4288,7 @@ def get_pending_webhook_event_count(tenant_id, opts = {}) # @option opts [String] :type # @option opts [String] :domain # @option opts [Float] :attempt_count_gt - # @return [Array<(GetPendingWebhookEventCountResponse1, Integer, Hash)>] GetPendingWebhookEventCountResponse1 data, response status code and response headers + # @return [Array<(GetPendingWebhookEventCountResponse, Integer, Hash)>] GetPendingWebhookEventCountResponse data, response status code and response headers def get_pending_webhook_event_count_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_pending_webhook_event_count ...' @@ -4322,7 +4322,7 @@ def get_pending_webhook_event_count_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetPendingWebhookEventCountResponse1' + return_type = opts[:debug_return_type] || 'GetPendingWebhookEventCountResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -4353,7 +4353,7 @@ def get_pending_webhook_event_count_with_http_info(tenant_id, opts = {}) # @option opts [String] :domain # @option opts [Float] :attempt_count_gt # @option opts [Float] :skip - # @return [GetPendingWebhookEventsResponse1] + # @return [GetPendingWebhookEventsResponse] def get_pending_webhook_events(tenant_id, opts = {}) data, _status_code, _headers = get_pending_webhook_events_with_http_info(tenant_id, opts) data @@ -4368,7 +4368,7 @@ def get_pending_webhook_events(tenant_id, opts = {}) # @option opts [String] :domain # @option opts [Float] :attempt_count_gt # @option opts [Float] :skip - # @return [Array<(GetPendingWebhookEventsResponse1, Integer, Hash)>] GetPendingWebhookEventsResponse1 data, response status code and response headers + # @return [Array<(GetPendingWebhookEventsResponse, Integer, Hash)>] GetPendingWebhookEventsResponse data, response status code and response headers def get_pending_webhook_events_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_pending_webhook_events ...' @@ -4403,7 +4403,7 @@ def get_pending_webhook_events_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetPendingWebhookEventsResponse1' + return_type = opts[:debug_return_type] || 'GetPendingWebhookEventsResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -4428,7 +4428,7 @@ def get_pending_webhook_events_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [GetQuestionConfigResponse1] + # @return [GetQuestionConfigResponse] def get_question_config(tenant_id, id, opts = {}) data, _status_code, _headers = get_question_config_with_http_info(tenant_id, id, opts) data @@ -4437,7 +4437,7 @@ def get_question_config(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetQuestionConfigResponse1, Integer, Hash)>] GetQuestionConfigResponse1 data, response status code and response headers + # @return [Array<(GetQuestionConfigResponse, Integer, Hash)>] GetQuestionConfigResponse data, response status code and response headers def get_question_config_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_question_config ...' @@ -4469,7 +4469,7 @@ def get_question_config_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetQuestionConfigResponse1' + return_type = opts[:debug_return_type] || 'GetQuestionConfigResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -4494,7 +4494,7 @@ def get_question_config_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [GetQuestionConfigsResponse1] + # @return [GetQuestionConfigsResponse] def get_question_configs(tenant_id, opts = {}) data, _status_code, _headers = get_question_configs_with_http_info(tenant_id, opts) data @@ -4503,7 +4503,7 @@ def get_question_configs(tenant_id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [Array<(GetQuestionConfigsResponse1, Integer, Hash)>] GetQuestionConfigsResponse1 data, response status code and response headers + # @return [Array<(GetQuestionConfigsResponse, Integer, Hash)>] GetQuestionConfigsResponse data, response status code and response headers def get_question_configs_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_question_configs ...' @@ -4532,7 +4532,7 @@ def get_question_configs_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetQuestionConfigsResponse1' + return_type = opts[:debug_return_type] || 'GetQuestionConfigsResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -4557,7 +4557,7 @@ def get_question_configs_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [GetQuestionResultResponse1] + # @return [GetQuestionResultResponse] def get_question_result(tenant_id, id, opts = {}) data, _status_code, _headers = get_question_result_with_http_info(tenant_id, id, opts) data @@ -4566,7 +4566,7 @@ def get_question_result(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetQuestionResultResponse1, Integer, Hash)>] GetQuestionResultResponse1 data, response status code and response headers + # @return [Array<(GetQuestionResultResponse, Integer, Hash)>] GetQuestionResultResponse data, response status code and response headers def get_question_result_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_question_result ...' @@ -4598,7 +4598,7 @@ def get_question_result_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetQuestionResultResponse1' + return_type = opts[:debug_return_type] || 'GetQuestionResultResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -4628,7 +4628,7 @@ def get_question_result_with_http_info(tenant_id, id, opts = {}) # @option opts [String] :question_id # @option opts [String] :question_ids # @option opts [Float] :skip - # @return [GetQuestionResultsResponse1] + # @return [GetQuestionResultsResponse] def get_question_results(tenant_id, opts = {}) data, _status_code, _headers = get_question_results_with_http_info(tenant_id, opts) data @@ -4642,7 +4642,7 @@ def get_question_results(tenant_id, opts = {}) # @option opts [String] :question_id # @option opts [String] :question_ids # @option opts [Float] :skip - # @return [Array<(GetQuestionResultsResponse1, Integer, Hash)>] GetQuestionResultsResponse1 data, response status code and response headers + # @return [Array<(GetQuestionResultsResponse, Integer, Hash)>] GetQuestionResultsResponse data, response status code and response headers def get_question_results_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_question_results ...' @@ -4676,7 +4676,7 @@ def get_question_results_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetQuestionResultsResponse1' + return_type = opts[:debug_return_type] || 'GetQuestionResultsResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -4959,7 +4959,7 @@ def get_subscriptions_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [GetTenantResponse1] + # @return [GetTenantResponse] def get_tenant(tenant_id, id, opts = {}) data, _status_code, _headers = get_tenant_with_http_info(tenant_id, id, opts) data @@ -4968,7 +4968,7 @@ def get_tenant(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetTenantResponse1, Integer, Hash)>] GetTenantResponse1 data, response status code and response headers + # @return [Array<(GetTenantResponse, Integer, Hash)>] GetTenantResponse data, response status code and response headers def get_tenant_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenant ...' @@ -5000,7 +5000,7 @@ def get_tenant_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetTenantResponse1' + return_type = opts[:debug_return_type] || 'GetTenantResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5028,7 +5028,7 @@ def get_tenant_with_http_info(tenant_id, id, opts = {}) # @option opts [Float] :month_number # @option opts [Float] :day_number # @option opts [Float] :skip - # @return [GetTenantDailyUsagesResponse1] + # @return [GetTenantDailyUsagesResponse] def get_tenant_daily_usages(tenant_id, opts = {}) data, _status_code, _headers = get_tenant_daily_usages_with_http_info(tenant_id, opts) data @@ -5040,7 +5040,7 @@ def get_tenant_daily_usages(tenant_id, opts = {}) # @option opts [Float] :month_number # @option opts [Float] :day_number # @option opts [Float] :skip - # @return [Array<(GetTenantDailyUsagesResponse1, Integer, Hash)>] GetTenantDailyUsagesResponse1 data, response status code and response headers + # @return [Array<(GetTenantDailyUsagesResponse, Integer, Hash)>] GetTenantDailyUsagesResponse data, response status code and response headers def get_tenant_daily_usages_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenant_daily_usages ...' @@ -5072,7 +5072,7 @@ def get_tenant_daily_usages_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetTenantDailyUsagesResponse1' + return_type = opts[:debug_return_type] || 'GetTenantDailyUsagesResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5097,7 +5097,7 @@ def get_tenant_daily_usages_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [GetTenantPackageResponse1] + # @return [GetTenantPackageResponse] def get_tenant_package(tenant_id, id, opts = {}) data, _status_code, _headers = get_tenant_package_with_http_info(tenant_id, id, opts) data @@ -5106,7 +5106,7 @@ def get_tenant_package(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetTenantPackageResponse1, Integer, Hash)>] GetTenantPackageResponse1 data, response status code and response headers + # @return [Array<(GetTenantPackageResponse, Integer, Hash)>] GetTenantPackageResponse data, response status code and response headers def get_tenant_package_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenant_package ...' @@ -5138,7 +5138,7 @@ def get_tenant_package_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetTenantPackageResponse1' + return_type = opts[:debug_return_type] || 'GetTenantPackageResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5163,7 +5163,7 @@ def get_tenant_package_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [GetTenantPackagesResponse1] + # @return [GetTenantPackagesResponse] def get_tenant_packages(tenant_id, opts = {}) data, _status_code, _headers = get_tenant_packages_with_http_info(tenant_id, opts) data @@ -5172,7 +5172,7 @@ def get_tenant_packages(tenant_id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [Array<(GetTenantPackagesResponse1, Integer, Hash)>] GetTenantPackagesResponse1 data, response status code and response headers + # @return [Array<(GetTenantPackagesResponse, Integer, Hash)>] GetTenantPackagesResponse data, response status code and response headers def get_tenant_packages_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenant_packages ...' @@ -5201,7 +5201,7 @@ def get_tenant_packages_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetTenantPackagesResponse1' + return_type = opts[:debug_return_type] || 'GetTenantPackagesResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5226,7 +5226,7 @@ def get_tenant_packages_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [GetTenantUserResponse1] + # @return [GetTenantUserResponse] def get_tenant_user(tenant_id, id, opts = {}) data, _status_code, _headers = get_tenant_user_with_http_info(tenant_id, id, opts) data @@ -5235,7 +5235,7 @@ def get_tenant_user(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetTenantUserResponse1, Integer, Hash)>] GetTenantUserResponse1 data, response status code and response headers + # @return [Array<(GetTenantUserResponse, Integer, Hash)>] GetTenantUserResponse data, response status code and response headers def get_tenant_user_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenant_user ...' @@ -5267,7 +5267,7 @@ def get_tenant_user_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetTenantUserResponse1' + return_type = opts[:debug_return_type] || 'GetTenantUserResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5292,7 +5292,7 @@ def get_tenant_user_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [GetTenantUsersResponse1] + # @return [GetTenantUsersResponse] def get_tenant_users(tenant_id, opts = {}) data, _status_code, _headers = get_tenant_users_with_http_info(tenant_id, opts) data @@ -5301,7 +5301,7 @@ def get_tenant_users(tenant_id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [Array<(GetTenantUsersResponse1, Integer, Hash)>] GetTenantUsersResponse1 data, response status code and response headers + # @return [Array<(GetTenantUsersResponse, Integer, Hash)>] GetTenantUsersResponse data, response status code and response headers def get_tenant_users_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenant_users ...' @@ -5330,7 +5330,7 @@ def get_tenant_users_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetTenantUsersResponse1' + return_type = opts[:debug_return_type] || 'GetTenantUsersResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5356,7 +5356,7 @@ def get_tenant_users_with_http_info(tenant_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :meta # @option opts [Float] :skip - # @return [GetTenantsResponse1] + # @return [GetTenantsResponse] def get_tenants(tenant_id, opts = {}) data, _status_code, _headers = get_tenants_with_http_info(tenant_id, opts) data @@ -5366,7 +5366,7 @@ def get_tenants(tenant_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :meta # @option opts [Float] :skip - # @return [Array<(GetTenantsResponse1, Integer, Hash)>] GetTenantsResponse1 data, response status code and response headers + # @return [Array<(GetTenantsResponse, Integer, Hash)>] GetTenantsResponse data, response status code and response headers def get_tenants_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenants ...' @@ -5396,7 +5396,7 @@ def get_tenants_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetTenantsResponse1' + return_type = opts[:debug_return_type] || 'GetTenantsResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5422,7 +5422,7 @@ def get_tenants_with_http_info(tenant_id, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [String] :user_id - # @return [GetTicketResponse1] + # @return [GetTicketResponse] def get_ticket(tenant_id, id, opts = {}) data, _status_code, _headers = get_ticket_with_http_info(tenant_id, id, opts) data @@ -5432,7 +5432,7 @@ def get_ticket(tenant_id, id, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [String] :user_id - # @return [Array<(GetTicketResponse1, Integer, Hash)>] GetTicketResponse1 data, response status code and response headers + # @return [Array<(GetTicketResponse, Integer, Hash)>] GetTicketResponse data, response status code and response headers def get_ticket_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_ticket ...' @@ -5465,7 +5465,7 @@ def get_ticket_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetTicketResponse1' + return_type = opts[:debug_return_type] || 'GetTicketResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5493,7 +5493,7 @@ def get_ticket_with_http_info(tenant_id, id, opts = {}) # @option opts [Float] :state # @option opts [Float] :skip # @option opts [Float] :limit - # @return [GetTicketsResponse1] + # @return [GetTicketsResponse] def get_tickets(tenant_id, opts = {}) data, _status_code, _headers = get_tickets_with_http_info(tenant_id, opts) data @@ -5505,7 +5505,7 @@ def get_tickets(tenant_id, opts = {}) # @option opts [Float] :state # @option opts [Float] :skip # @option opts [Float] :limit - # @return [Array<(GetTicketsResponse1, Integer, Hash)>] GetTicketsResponse1 data, response status code and response headers + # @return [Array<(GetTicketsResponse, Integer, Hash)>] GetTicketsResponse data, response status code and response headers def get_tickets_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tickets ...' @@ -5537,7 +5537,7 @@ def get_tickets_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetTicketsResponse1' + return_type = opts[:debug_return_type] || 'GetTicketsResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5562,7 +5562,7 @@ def get_tickets_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [GetUserResponse1] + # @return [GetUserResponse] def get_user(tenant_id, id, opts = {}) data, _status_code, _headers = get_user_with_http_info(tenant_id, id, opts) data @@ -5571,7 +5571,7 @@ def get_user(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetUserResponse1, Integer, Hash)>] GetUserResponse1 data, response status code and response headers + # @return [Array<(GetUserResponse, Integer, Hash)>] GetUserResponse data, response status code and response headers def get_user_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_user ...' @@ -5603,7 +5603,7 @@ def get_user_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetUserResponse1' + return_type = opts[:debug_return_type] || 'GetUserResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5628,7 +5628,7 @@ def get_user_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [GetUserBadgeResponse] + # @return [APIGetUserBadgeResponse] def get_user_badge(tenant_id, id, opts = {}) data, _status_code, _headers = get_user_badge_with_http_info(tenant_id, id, opts) data @@ -5637,7 +5637,7 @@ def get_user_badge(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetUserBadgeResponse, Integer, Hash)>] GetUserBadgeResponse data, response status code and response headers + # @return [Array<(APIGetUserBadgeResponse, Integer, Hash)>] APIGetUserBadgeResponse data, response status code and response headers def get_user_badge_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_user_badge ...' @@ -5669,7 +5669,7 @@ def get_user_badge_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetUserBadgeResponse' + return_type = opts[:debug_return_type] || 'APIGetUserBadgeResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5694,7 +5694,7 @@ def get_user_badge_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [GetUserBadgeProgressByIdResponse] + # @return [APIGetUserBadgeProgressResponse] def get_user_badge_progress_by_id(tenant_id, id, opts = {}) data, _status_code, _headers = get_user_badge_progress_by_id_with_http_info(tenant_id, id, opts) data @@ -5703,7 +5703,7 @@ def get_user_badge_progress_by_id(tenant_id, id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetUserBadgeProgressByIdResponse, Integer, Hash)>] GetUserBadgeProgressByIdResponse data, response status code and response headers + # @return [Array<(APIGetUserBadgeProgressResponse, Integer, Hash)>] APIGetUserBadgeProgressResponse data, response status code and response headers def get_user_badge_progress_by_id_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_user_badge_progress_by_id ...' @@ -5735,7 +5735,7 @@ def get_user_badge_progress_by_id_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetUserBadgeProgressByIdResponse' + return_type = opts[:debug_return_type] || 'APIGetUserBadgeProgressResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5760,7 +5760,7 @@ def get_user_badge_progress_by_id_with_http_info(tenant_id, id, opts = {}) # @param tenant_id [String] # @param user_id [String] # @param [Hash] opts the optional parameters - # @return [GetUserBadgeProgressByUserIdResponse] + # @return [APIGetUserBadgeProgressResponse] def get_user_badge_progress_by_user_id(tenant_id, user_id, opts = {}) data, _status_code, _headers = get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id, opts) data @@ -5769,7 +5769,7 @@ def get_user_badge_progress_by_user_id(tenant_id, user_id, opts = {}) # @param tenant_id [String] # @param user_id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetUserBadgeProgressByUserIdResponse, Integer, Hash)>] GetUserBadgeProgressByUserIdResponse data, response status code and response headers + # @return [Array<(APIGetUserBadgeProgressResponse, Integer, Hash)>] APIGetUserBadgeProgressResponse data, response status code and response headers def get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_user_badge_progress_by_user_id ...' @@ -5801,7 +5801,7 @@ def get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id, opts = post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetUserBadgeProgressByUserIdResponse' + return_type = opts[:debug_return_type] || 'APIGetUserBadgeProgressResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5828,7 +5828,7 @@ def get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id, opts = # @option opts [String] :user_id # @option opts [Float] :limit # @option opts [Float] :skip - # @return [GetUserBadgeProgressListResponse] + # @return [APIGetUserBadgeProgressListResponse] def get_user_badge_progress_list(tenant_id, opts = {}) data, _status_code, _headers = get_user_badge_progress_list_with_http_info(tenant_id, opts) data @@ -5839,7 +5839,7 @@ def get_user_badge_progress_list(tenant_id, opts = {}) # @option opts [String] :user_id # @option opts [Float] :limit # @option opts [Float] :skip - # @return [Array<(GetUserBadgeProgressListResponse, Integer, Hash)>] GetUserBadgeProgressListResponse data, response status code and response headers + # @return [Array<(APIGetUserBadgeProgressListResponse, Integer, Hash)>] APIGetUserBadgeProgressListResponse data, response status code and response headers def get_user_badge_progress_list_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_user_badge_progress_list ...' @@ -5870,7 +5870,7 @@ def get_user_badge_progress_list_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetUserBadgeProgressListResponse' + return_type = opts[:debug_return_type] || 'APIGetUserBadgeProgressListResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5900,7 +5900,7 @@ def get_user_badge_progress_list_with_http_info(tenant_id, opts = {}) # @option opts [Boolean] :displayed_on_comments # @option opts [Float] :limit # @option opts [Float] :skip - # @return [GetUserBadgesResponse] + # @return [APIGetUserBadgesResponse] def get_user_badges(tenant_id, opts = {}) data, _status_code, _headers = get_user_badges_with_http_info(tenant_id, opts) data @@ -5914,7 +5914,7 @@ def get_user_badges(tenant_id, opts = {}) # @option opts [Boolean] :displayed_on_comments # @option opts [Float] :limit # @option opts [Float] :skip - # @return [Array<(GetUserBadgesResponse, Integer, Hash)>] GetUserBadgesResponse data, response status code and response headers + # @return [Array<(APIGetUserBadgesResponse, Integer, Hash)>] APIGetUserBadgesResponse data, response status code and response headers def get_user_badges_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_user_badges ...' @@ -5948,7 +5948,7 @@ def get_user_badges_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetUserBadgesResponse' + return_type = opts[:debug_return_type] || 'APIGetUserBadgesResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -5973,7 +5973,7 @@ def get_user_badges_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param url_id [String] # @param [Hash] opts the optional parameters - # @return [GetVotesResponse1] + # @return [GetVotesResponse] def get_votes(tenant_id, url_id, opts = {}) data, _status_code, _headers = get_votes_with_http_info(tenant_id, url_id, opts) data @@ -5982,7 +5982,7 @@ def get_votes(tenant_id, url_id, opts = {}) # @param tenant_id [String] # @param url_id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetVotesResponse1, Integer, Hash)>] GetVotesResponse1 data, response status code and response headers + # @return [Array<(GetVotesResponse, Integer, Hash)>] GetVotesResponse data, response status code and response headers def get_votes_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_votes ...' @@ -6015,7 +6015,7 @@ def get_votes_with_http_info(tenant_id, url_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetVotesResponse1' + return_type = opts[:debug_return_type] || 'GetVotesResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -6042,7 +6042,7 @@ def get_votes_with_http_info(tenant_id, url_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [GetVotesForUserResponse1] + # @return [GetVotesForUserResponse] def get_votes_for_user(tenant_id, url_id, opts = {}) data, _status_code, _headers = get_votes_for_user_with_http_info(tenant_id, url_id, opts) data @@ -6053,7 +6053,7 @@ def get_votes_for_user(tenant_id, url_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [Array<(GetVotesForUserResponse1, Integer, Hash)>] GetVotesForUserResponse1 data, response status code and response headers + # @return [Array<(GetVotesForUserResponse, Integer, Hash)>] GetVotesForUserResponse data, response status code and response headers def get_votes_for_user_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_votes_for_user ...' @@ -6088,7 +6088,7 @@ def get_votes_for_user_with_http_info(tenant_id, url_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetVotesForUserResponse1' + return_type = opts[:debug_return_type] || 'GetVotesForUserResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -6191,7 +6191,7 @@ def patch_domain_config_with_http_info(tenant_id, domain_to_update, patch_domain # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [UpdateHashTagBody] :update_hash_tag_body - # @return [PatchHashTagResponse] + # @return [UpdateHashTagResponse] def patch_hash_tag(tag, opts = {}) data, _status_code, _headers = patch_hash_tag_with_http_info(tag, opts) data @@ -6201,7 +6201,7 @@ def patch_hash_tag(tag, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [UpdateHashTagBody] :update_hash_tag_body - # @return [Array<(PatchHashTagResponse, Integer, Hash)>] PatchHashTagResponse data, response status code and response headers + # @return [Array<(UpdateHashTagResponse, Integer, Hash)>] UpdateHashTagResponse data, response status code and response headers def patch_hash_tag_with_http_info(tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.patch_hash_tag ...' @@ -6234,7 +6234,7 @@ def patch_hash_tag_with_http_info(tag, opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_hash_tag_body']) # return_type - return_type = opts[:debug_return_type] || 'PatchHashTagResponse' + return_type = opts[:debug_return_type] || 'UpdateHashTagResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -6574,7 +6574,7 @@ def put_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts = { # @param render_email_template_body [RenderEmailTemplateBody] # @param [Hash] opts the optional parameters # @option opts [String] :locale - # @return [RenderEmailTemplateResponse1] + # @return [RenderEmailTemplateResponse] def render_email_template(tenant_id, render_email_template_body, opts = {}) data, _status_code, _headers = render_email_template_with_http_info(tenant_id, render_email_template_body, opts) data @@ -6584,7 +6584,7 @@ def render_email_template(tenant_id, render_email_template_body, opts = {}) # @param render_email_template_body [RenderEmailTemplateBody] # @param [Hash] opts the optional parameters # @option opts [String] :locale - # @return [Array<(RenderEmailTemplateResponse1, Integer, Hash)>] RenderEmailTemplateResponse1 data, response status code and response headers + # @return [Array<(RenderEmailTemplateResponse, Integer, Hash)>] RenderEmailTemplateResponse data, response status code and response headers def render_email_template_with_http_info(tenant_id, render_email_template_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.render_email_template ...' @@ -6622,7 +6622,7 @@ def render_email_template_with_http_info(tenant_id, render_email_template_body, post_body = opts[:debug_body] || @api_client.object_to_http_body(render_email_template_body) # return_type - return_type = opts[:debug_return_type] || 'RenderEmailTemplateResponse1' + return_type = opts[:debug_return_type] || 'RenderEmailTemplateResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -6648,7 +6648,7 @@ def render_email_template_with_http_info(tenant_id, render_email_template_body, # @param id [String] # @param replace_tenant_package_body [ReplaceTenantPackageBody] # @param [Hash] opts the optional parameters - # @return [ReplaceTenantPackageResponse] + # @return [APIEmptyResponse] def replace_tenant_package(tenant_id, id, replace_tenant_package_body, opts = {}) data, _status_code, _headers = replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_body, opts) data @@ -6658,7 +6658,7 @@ def replace_tenant_package(tenant_id, id, replace_tenant_package_body, opts = {} # @param id [String] # @param replace_tenant_package_body [ReplaceTenantPackageBody] # @param [Hash] opts the optional parameters - # @return [Array<(ReplaceTenantPackageResponse, Integer, Hash)>] ReplaceTenantPackageResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.replace_tenant_package ...' @@ -6699,7 +6699,7 @@ def replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_ post_body = opts[:debug_body] || @api_client.object_to_http_body(replace_tenant_package_body) # return_type - return_type = opts[:debug_return_type] || 'ReplaceTenantPackageResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -6726,7 +6726,7 @@ def replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_ # @param replace_tenant_user_body [ReplaceTenantUserBody] # @param [Hash] opts the optional parameters # @option opts [String] :update_comments - # @return [ReplaceTenantUserResponse] + # @return [APIEmptyResponse] def replace_tenant_user(tenant_id, id, replace_tenant_user_body, opts = {}) data, _status_code, _headers = replace_tenant_user_with_http_info(tenant_id, id, replace_tenant_user_body, opts) data @@ -6737,7 +6737,7 @@ def replace_tenant_user(tenant_id, id, replace_tenant_user_body, opts = {}) # @param replace_tenant_user_body [ReplaceTenantUserBody] # @param [Hash] opts the optional parameters # @option opts [String] :update_comments - # @return [Array<(ReplaceTenantUserResponse, Integer, Hash)>] ReplaceTenantUserResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def replace_tenant_user_with_http_info(tenant_id, id, replace_tenant_user_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.replace_tenant_user ...' @@ -6779,7 +6779,7 @@ def replace_tenant_user_with_http_info(tenant_id, id, replace_tenant_user_body, post_body = opts[:debug_body] || @api_client.object_to_http_body(replace_tenant_user_body) # return_type - return_type = opts[:debug_return_type] || 'ReplaceTenantUserResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -6808,7 +6808,7 @@ def replace_tenant_user_with_http_info(tenant_id, id, replace_tenant_user_body, # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :send_emails # @option opts [Boolean] :populate_notifications - # @return [SaveCommentResponse] + # @return [APISaveCommentResponse] def save_comment(tenant_id, create_comment_params, opts = {}) data, _status_code, _headers = save_comment_with_http_info(tenant_id, create_comment_params, opts) data @@ -6821,7 +6821,7 @@ def save_comment(tenant_id, create_comment_params, opts = {}) # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :send_emails # @option opts [Boolean] :populate_notifications - # @return [Array<(SaveCommentResponse, Integer, Hash)>] SaveCommentResponse data, response status code and response headers + # @return [Array<(APISaveCommentResponse, Integer, Hash)>] APISaveCommentResponse data, response status code and response headers def save_comment_with_http_info(tenant_id, create_comment_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.save_comment ...' @@ -6862,7 +6862,7 @@ def save_comment_with_http_info(tenant_id, create_comment_params, opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(create_comment_params) # return_type - return_type = opts[:debug_return_type] || 'SaveCommentResponse' + return_type = opts[:debug_return_type] || 'APISaveCommentResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -6971,7 +6971,7 @@ def save_comments_bulk_with_http_info(tenant_id, create_comment_params, opts = { # @param id [String] # @param from_name [String] # @param [Hash] opts the optional parameters - # @return [SendInviteResponse] + # @return [APIEmptyResponse] def send_invite(tenant_id, id, from_name, opts = {}) data, _status_code, _headers = send_invite_with_http_info(tenant_id, id, from_name, opts) data @@ -6981,7 +6981,7 @@ def send_invite(tenant_id, id, from_name, opts = {}) # @param id [String] # @param from_name [String] # @param [Hash] opts the optional parameters - # @return [Array<(SendInviteResponse, Integer, Hash)>] SendInviteResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def send_invite_with_http_info(tenant_id, id, from_name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.send_invite ...' @@ -7018,7 +7018,7 @@ def send_invite_with_http_info(tenant_id, id, from_name, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'SendInviteResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -7044,7 +7044,7 @@ def send_invite_with_http_info(tenant_id, id, from_name, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [String] :redirect_url - # @return [SendLoginLinkResponse] + # @return [APIEmptyResponse] def send_login_link(tenant_id, id, opts = {}) data, _status_code, _headers = send_login_link_with_http_info(tenant_id, id, opts) data @@ -7054,7 +7054,7 @@ def send_login_link(tenant_id, id, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [String] :redirect_url - # @return [Array<(SendLoginLinkResponse, Integer, Hash)>] SendLoginLinkResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def send_login_link_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.send_login_link ...' @@ -7087,7 +7087,7 @@ def send_login_link_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'SendLoginLinkResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -7115,7 +7115,7 @@ def send_login_link_with_http_info(tenant_id, id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [UnBlockUserFromCommentResponse] + # @return [UnblockSuccess] def un_block_user_from_comment(tenant_id, id, un_block_from_comment_params, opts = {}) data, _status_code, _headers = un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comment_params, opts) data @@ -7127,7 +7127,7 @@ def un_block_user_from_comment(tenant_id, id, un_block_from_comment_params, opts # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [Array<(UnBlockUserFromCommentResponse, Integer, Hash)>] UnBlockUserFromCommentResponse data, response status code and response headers + # @return [Array<(UnblockSuccess, Integer, Hash)>] UnblockSuccess data, response status code and response headers def un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comment_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.un_block_user_from_comment ...' @@ -7170,7 +7170,7 @@ def un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comme post_body = opts[:debug_body] || @api_client.object_to_http_body(un_block_from_comment_params) # return_type - return_type = opts[:debug_return_type] || 'UnBlockUserFromCommentResponse' + return_type = opts[:debug_return_type] || 'UnblockSuccess' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -7197,7 +7197,7 @@ def un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comme # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [UnFlagCommentResponse] + # @return [FlagCommentResponse] def un_flag_comment(tenant_id, id, opts = {}) data, _status_code, _headers = un_flag_comment_with_http_info(tenant_id, id, opts) data @@ -7208,7 +7208,7 @@ def un_flag_comment(tenant_id, id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [Array<(UnFlagCommentResponse, Integer, Hash)>] UnFlagCommentResponse data, response status code and response headers + # @return [Array<(FlagCommentResponse, Integer, Hash)>] FlagCommentResponse data, response status code and response headers def un_flag_comment_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.un_flag_comment ...' @@ -7242,7 +7242,7 @@ def un_flag_comment_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'UnFlagCommentResponse' + return_type = opts[:debug_return_type] || 'FlagCommentResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -7271,7 +7271,7 @@ def un_flag_comment_with_http_info(tenant_id, id, opts = {}) # @option opts [String] :context_user_id # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :is_live - # @return [UpdateCommentResponse] + # @return [APIEmptyResponse] def update_comment(tenant_id, id, updatable_comment_params, opts = {}) data, _status_code, _headers = update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts) data @@ -7284,7 +7284,7 @@ def update_comment(tenant_id, id, updatable_comment_params, opts = {}) # @option opts [String] :context_user_id # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :is_live - # @return [Array<(UpdateCommentResponse, Integer, Hash)>] UpdateCommentResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_comment ...' @@ -7328,7 +7328,7 @@ def update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts post_body = opts[:debug_body] || @api_client.object_to_http_body(updatable_comment_params) # return_type - return_type = opts[:debug_return_type] || 'UpdateCommentResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -7354,7 +7354,7 @@ def update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts # @param id [String] # @param update_email_template_body [UpdateEmailTemplateBody] # @param [Hash] opts the optional parameters - # @return [UpdateEmailTemplateResponse] + # @return [APIEmptyResponse] def update_email_template(tenant_id, id, update_email_template_body, opts = {}) data, _status_code, _headers = update_email_template_with_http_info(tenant_id, id, update_email_template_body, opts) data @@ -7364,7 +7364,7 @@ def update_email_template(tenant_id, id, update_email_template_body, opts = {}) # @param id [String] # @param update_email_template_body [UpdateEmailTemplateBody] # @param [Hash] opts the optional parameters - # @return [Array<(UpdateEmailTemplateResponse, Integer, Hash)>] UpdateEmailTemplateResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def update_email_template_with_http_info(tenant_id, id, update_email_template_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_email_template ...' @@ -7405,7 +7405,7 @@ def update_email_template_with_http_info(tenant_id, id, update_email_template_bo post_body = opts[:debug_body] || @api_client.object_to_http_body(update_email_template_body) # return_type - return_type = opts[:debug_return_type] || 'UpdateEmailTemplateResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -7431,7 +7431,7 @@ def update_email_template_with_http_info(tenant_id, id, update_email_template_bo # @param id [String] # @param feed_post [FeedPost] # @param [Hash] opts the optional parameters - # @return [UpdateFeedPostResponse] + # @return [APIEmptyResponse] def update_feed_post(tenant_id, id, feed_post, opts = {}) data, _status_code, _headers = update_feed_post_with_http_info(tenant_id, id, feed_post, opts) data @@ -7441,7 +7441,7 @@ def update_feed_post(tenant_id, id, feed_post, opts = {}) # @param id [String] # @param feed_post [FeedPost] # @param [Hash] opts the optional parameters - # @return [Array<(UpdateFeedPostResponse, Integer, Hash)>] UpdateFeedPostResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def update_feed_post_with_http_info(tenant_id, id, feed_post, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_feed_post ...' @@ -7482,7 +7482,7 @@ def update_feed_post_with_http_info(tenant_id, id, feed_post, opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(feed_post) # return_type - return_type = opts[:debug_return_type] || 'UpdateFeedPostResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -7508,7 +7508,7 @@ def update_feed_post_with_http_info(tenant_id, id, feed_post, opts = {}) # @param id [String] # @param update_moderator_body [UpdateModeratorBody] # @param [Hash] opts the optional parameters - # @return [UpdateModeratorResponse] + # @return [APIEmptyResponse] def update_moderator(tenant_id, id, update_moderator_body, opts = {}) data, _status_code, _headers = update_moderator_with_http_info(tenant_id, id, update_moderator_body, opts) data @@ -7518,7 +7518,7 @@ def update_moderator(tenant_id, id, update_moderator_body, opts = {}) # @param id [String] # @param update_moderator_body [UpdateModeratorBody] # @param [Hash] opts the optional parameters - # @return [Array<(UpdateModeratorResponse, Integer, Hash)>] UpdateModeratorResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def update_moderator_with_http_info(tenant_id, id, update_moderator_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_moderator ...' @@ -7559,7 +7559,7 @@ def update_moderator_with_http_info(tenant_id, id, update_moderator_body, opts = post_body = opts[:debug_body] || @api_client.object_to_http_body(update_moderator_body) # return_type - return_type = opts[:debug_return_type] || 'UpdateModeratorResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -7586,7 +7586,7 @@ def update_moderator_with_http_info(tenant_id, id, update_moderator_body, opts = # @param update_notification_body [UpdateNotificationBody] # @param [Hash] opts the optional parameters # @option opts [String] :user_id - # @return [UpdateNotificationResponse] + # @return [APIEmptyResponse] def update_notification(tenant_id, id, update_notification_body, opts = {}) data, _status_code, _headers = update_notification_with_http_info(tenant_id, id, update_notification_body, opts) data @@ -7597,7 +7597,7 @@ def update_notification(tenant_id, id, update_notification_body, opts = {}) # @param update_notification_body [UpdateNotificationBody] # @param [Hash] opts the optional parameters # @option opts [String] :user_id - # @return [Array<(UpdateNotificationResponse, Integer, Hash)>] UpdateNotificationResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def update_notification_with_http_info(tenant_id, id, update_notification_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_notification ...' @@ -7639,7 +7639,7 @@ def update_notification_with_http_info(tenant_id, id, update_notification_body, post_body = opts[:debug_body] || @api_client.object_to_http_body(update_notification_body) # return_type - return_type = opts[:debug_return_type] || 'UpdateNotificationResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -7665,7 +7665,7 @@ def update_notification_with_http_info(tenant_id, id, update_notification_body, # @param id [String] # @param update_question_config_body [UpdateQuestionConfigBody] # @param [Hash] opts the optional parameters - # @return [UpdateQuestionConfigResponse] + # @return [APIEmptyResponse] def update_question_config(tenant_id, id, update_question_config_body, opts = {}) data, _status_code, _headers = update_question_config_with_http_info(tenant_id, id, update_question_config_body, opts) data @@ -7675,7 +7675,7 @@ def update_question_config(tenant_id, id, update_question_config_body, opts = {} # @param id [String] # @param update_question_config_body [UpdateQuestionConfigBody] # @param [Hash] opts the optional parameters - # @return [Array<(UpdateQuestionConfigResponse, Integer, Hash)>] UpdateQuestionConfigResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def update_question_config_with_http_info(tenant_id, id, update_question_config_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_question_config ...' @@ -7716,7 +7716,7 @@ def update_question_config_with_http_info(tenant_id, id, update_question_config_ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_question_config_body) # return_type - return_type = opts[:debug_return_type] || 'UpdateQuestionConfigResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -7742,7 +7742,7 @@ def update_question_config_with_http_info(tenant_id, id, update_question_config_ # @param id [String] # @param update_question_result_body [UpdateQuestionResultBody] # @param [Hash] opts the optional parameters - # @return [UpdateQuestionResultResponse] + # @return [APIEmptyResponse] def update_question_result(tenant_id, id, update_question_result_body, opts = {}) data, _status_code, _headers = update_question_result_with_http_info(tenant_id, id, update_question_result_body, opts) data @@ -7752,7 +7752,7 @@ def update_question_result(tenant_id, id, update_question_result_body, opts = {} # @param id [String] # @param update_question_result_body [UpdateQuestionResultBody] # @param [Hash] opts the optional parameters - # @return [Array<(UpdateQuestionResultResponse, Integer, Hash)>] UpdateQuestionResultResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def update_question_result_with_http_info(tenant_id, id, update_question_result_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_question_result ...' @@ -7793,7 +7793,7 @@ def update_question_result_with_http_info(tenant_id, id, update_question_result_ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_question_result_body) # return_type - return_type = opts[:debug_return_type] || 'UpdateQuestionResultResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -7899,7 +7899,7 @@ def update_subscription_with_http_info(tenant_id, id, update_api_user_subscripti # @param id [String] # @param update_tenant_body [UpdateTenantBody] # @param [Hash] opts the optional parameters - # @return [UpdateTenantResponse] + # @return [APIEmptyResponse] def update_tenant(tenant_id, id, update_tenant_body, opts = {}) data, _status_code, _headers = update_tenant_with_http_info(tenant_id, id, update_tenant_body, opts) data @@ -7909,7 +7909,7 @@ def update_tenant(tenant_id, id, update_tenant_body, opts = {}) # @param id [String] # @param update_tenant_body [UpdateTenantBody] # @param [Hash] opts the optional parameters - # @return [Array<(UpdateTenantResponse, Integer, Hash)>] UpdateTenantResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def update_tenant_with_http_info(tenant_id, id, update_tenant_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_tenant ...' @@ -7950,7 +7950,7 @@ def update_tenant_with_http_info(tenant_id, id, update_tenant_body, opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(update_tenant_body) # return_type - return_type = opts[:debug_return_type] || 'UpdateTenantResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -7976,7 +7976,7 @@ def update_tenant_with_http_info(tenant_id, id, update_tenant_body, opts = {}) # @param id [String] # @param update_tenant_package_body [UpdateTenantPackageBody] # @param [Hash] opts the optional parameters - # @return [UpdateTenantPackageResponse] + # @return [APIEmptyResponse] def update_tenant_package(tenant_id, id, update_tenant_package_body, opts = {}) data, _status_code, _headers = update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_body, opts) data @@ -7986,7 +7986,7 @@ def update_tenant_package(tenant_id, id, update_tenant_package_body, opts = {}) # @param id [String] # @param update_tenant_package_body [UpdateTenantPackageBody] # @param [Hash] opts the optional parameters - # @return [Array<(UpdateTenantPackageResponse, Integer, Hash)>] UpdateTenantPackageResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_tenant_package ...' @@ -8027,7 +8027,7 @@ def update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_bo post_body = opts[:debug_body] || @api_client.object_to_http_body(update_tenant_package_body) # return_type - return_type = opts[:debug_return_type] || 'UpdateTenantPackageResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -8054,7 +8054,7 @@ def update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_bo # @param update_tenant_user_body [UpdateTenantUserBody] # @param [Hash] opts the optional parameters # @option opts [String] :update_comments - # @return [UpdateTenantUserResponse] + # @return [APIEmptyResponse] def update_tenant_user(tenant_id, id, update_tenant_user_body, opts = {}) data, _status_code, _headers = update_tenant_user_with_http_info(tenant_id, id, update_tenant_user_body, opts) data @@ -8065,7 +8065,7 @@ def update_tenant_user(tenant_id, id, update_tenant_user_body, opts = {}) # @param update_tenant_user_body [UpdateTenantUserBody] # @param [Hash] opts the optional parameters # @option opts [String] :update_comments - # @return [Array<(UpdateTenantUserResponse, Integer, Hash)>] UpdateTenantUserResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def update_tenant_user_with_http_info(tenant_id, id, update_tenant_user_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_tenant_user ...' @@ -8107,7 +8107,7 @@ def update_tenant_user_with_http_info(tenant_id, id, update_tenant_user_body, op post_body = opts[:debug_body] || @api_client.object_to_http_body(update_tenant_user_body) # return_type - return_type = opts[:debug_return_type] || 'UpdateTenantUserResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] @@ -8133,7 +8133,7 @@ def update_tenant_user_with_http_info(tenant_id, id, update_tenant_user_body, op # @param id [String] # @param update_user_badge_params [UpdateUserBadgeParams] # @param [Hash] opts the optional parameters - # @return [UpdateUserBadgeResponse] + # @return [APIEmptySuccessResponse] def update_user_badge(tenant_id, id, update_user_badge_params, opts = {}) data, _status_code, _headers = update_user_badge_with_http_info(tenant_id, id, update_user_badge_params, opts) data @@ -8143,7 +8143,7 @@ def update_user_badge(tenant_id, id, update_user_badge_params, opts = {}) # @param id [String] # @param update_user_badge_params [UpdateUserBadgeParams] # @param [Hash] opts the optional parameters - # @return [Array<(UpdateUserBadgeResponse, Integer, Hash)>] UpdateUserBadgeResponse data, response status code and response headers + # @return [Array<(APIEmptySuccessResponse, Integer, Hash)>] APIEmptySuccessResponse data, response status code and response headers def update_user_badge_with_http_info(tenant_id, id, update_user_badge_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_user_badge ...' @@ -8184,7 +8184,7 @@ def update_user_badge_with_http_info(tenant_id, id, update_user_badge_params, op post_body = opts[:debug_body] || @api_client.object_to_http_body(update_user_badge_params) # return_type - return_type = opts[:debug_return_type] || 'UpdateUserBadgeResponse' + return_type = opts[:debug_return_type] || 'APIEmptySuccessResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] diff --git a/client/lib/fastcomments-client/api/moderation_api.rb b/client/lib/fastcomments-client/api/moderation_api.rb index af6d702..1c6d05d 100644 --- a/client/lib/fastcomments-client/api/moderation_api.rb +++ b/client/lib/fastcomments-client/api/moderation_api.rb @@ -25,7 +25,7 @@ def initialize(api_client = ApiClient.default) # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [DeleteModerationVoteResponse] + # @return [VoteDeleteResponse] def delete_moderation_vote(comment_id, vote_id, opts = {}) data, _status_code, _headers = delete_moderation_vote_with_http_info(comment_id, vote_id, opts) data @@ -37,7 +37,7 @@ def delete_moderation_vote(comment_id, vote_id, opts = {}) # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(DeleteModerationVoteResponse, Integer, Hash)>] DeleteModerationVoteResponse data, response status code and response headers + # @return [Array<(VoteDeleteResponse, Integer, Hash)>] VoteDeleteResponse data, response status code and response headers def delete_moderation_vote_with_http_info(comment_id, vote_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.delete_moderation_vote ...' @@ -71,7 +71,7 @@ def delete_moderation_vote_with_http_info(comment_id, vote_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'DeleteModerationVoteResponse' + return_type = opts[:debug_return_type] || 'VoteDeleteResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -104,7 +104,7 @@ def delete_moderation_vote_with_http_info(comment_id, vote_id, opts = {}) # @option opts [Boolean] :demo # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetApiCommentsResponse] + # @return [ModerationAPIGetCommentsResponse] def get_api_comments(opts = {}) data, _status_code, _headers = get_api_comments_with_http_info(opts) data @@ -121,7 +121,7 @@ def get_api_comments(opts = {}) # @option opts [Boolean] :demo # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetApiCommentsResponse, Integer, Hash)>] GetApiCommentsResponse data, response status code and response headers + # @return [Array<(ModerationAPIGetCommentsResponse, Integer, Hash)>] ModerationAPIGetCommentsResponse data, response status code and response headers def get_api_comments_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_api_comments ...' @@ -154,7 +154,7 @@ def get_api_comments_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetApiCommentsResponse' + return_type = opts[:debug_return_type] || 'ModerationAPIGetCommentsResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -180,7 +180,7 @@ def get_api_comments_with_http_info(opts = {}) # @option opts [String] :batch_job_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetApiExportStatusResponse] + # @return [ModerationExportStatusResponse] def get_api_export_status(opts = {}) data, _status_code, _headers = get_api_export_status_with_http_info(opts) data @@ -190,7 +190,7 @@ def get_api_export_status(opts = {}) # @option opts [String] :batch_job_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetApiExportStatusResponse, Integer, Hash)>] GetApiExportStatusResponse data, response status code and response headers + # @return [Array<(ModerationExportStatusResponse, Integer, Hash)>] ModerationExportStatusResponse data, response status code and response headers def get_api_export_status_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_api_export_status ...' @@ -216,7 +216,7 @@ def get_api_export_status_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetApiExportStatusResponse' + return_type = opts[:debug_return_type] || 'ModerationExportStatusResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -247,7 +247,7 @@ def get_api_export_status_with_http_info(opts = {}) # @option opts [Boolean] :demo # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetApiIdsResponse] + # @return [ModerationAPIGetCommentIdsResponse] def get_api_ids(opts = {}) data, _status_code, _headers = get_api_ids_with_http_info(opts) data @@ -262,7 +262,7 @@ def get_api_ids(opts = {}) # @option opts [Boolean] :demo # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetApiIdsResponse, Integer, Hash)>] GetApiIdsResponse data, response status code and response headers + # @return [Array<(ModerationAPIGetCommentIdsResponse, Integer, Hash)>] ModerationAPIGetCommentIdsResponse data, response status code and response headers def get_api_ids_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_api_ids ...' @@ -293,7 +293,7 @@ def get_api_ids_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetApiIdsResponse' + return_type = opts[:debug_return_type] || 'ModerationAPIGetCommentIdsResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -319,7 +319,7 @@ def get_api_ids_with_http_info(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetBanUsersFromCommentResponse] + # @return [GetBannedUsersFromCommentResponse] def get_ban_users_from_comment(comment_id, opts = {}) data, _status_code, _headers = get_ban_users_from_comment_with_http_info(comment_id, opts) data @@ -329,7 +329,7 @@ def get_ban_users_from_comment(comment_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetBanUsersFromCommentResponse, Integer, Hash)>] GetBanUsersFromCommentResponse data, response status code and response headers + # @return [Array<(GetBannedUsersFromCommentResponse, Integer, Hash)>] GetBannedUsersFromCommentResponse data, response status code and response headers def get_ban_users_from_comment_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_ban_users_from_comment ...' @@ -358,7 +358,7 @@ def get_ban_users_from_comment_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetBanUsersFromCommentResponse' + return_type = opts[:debug_return_type] || 'GetBannedUsersFromCommentResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -384,7 +384,7 @@ def get_ban_users_from_comment_with_http_info(comment_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetCommentBanStatusResponse1] + # @return [GetCommentBanStatusResponse] def get_comment_ban_status(comment_id, opts = {}) data, _status_code, _headers = get_comment_ban_status_with_http_info(comment_id, opts) data @@ -394,7 +394,7 @@ def get_comment_ban_status(comment_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetCommentBanStatusResponse1, Integer, Hash)>] GetCommentBanStatusResponse1 data, response status code and response headers + # @return [Array<(GetCommentBanStatusResponse, Integer, Hash)>] GetCommentBanStatusResponse data, response status code and response headers def get_comment_ban_status_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_comment_ban_status ...' @@ -423,7 +423,7 @@ def get_comment_ban_status_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetCommentBanStatusResponse1' + return_type = opts[:debug_return_type] || 'GetCommentBanStatusResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -449,7 +449,7 @@ def get_comment_ban_status_with_http_info(comment_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetCommentChildrenResponse] + # @return [ModerationAPIChildCommentsResponse] def get_comment_children(comment_id, opts = {}) data, _status_code, _headers = get_comment_children_with_http_info(comment_id, opts) data @@ -459,7 +459,7 @@ def get_comment_children(comment_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetCommentChildrenResponse, Integer, Hash)>] GetCommentChildrenResponse data, response status code and response headers + # @return [Array<(ModerationAPIChildCommentsResponse, Integer, Hash)>] ModerationAPIChildCommentsResponse data, response status code and response headers def get_comment_children_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_comment_children ...' @@ -488,7 +488,7 @@ def get_comment_children_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetCommentChildrenResponse' + return_type = opts[:debug_return_type] || 'ModerationAPIChildCommentsResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -518,7 +518,7 @@ def get_comment_children_with_http_info(comment_id, opts = {}) # @option opts [Boolean] :demo # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetCountResponse] + # @return [ModerationAPICountCommentsResponse] def get_count(opts = {}) data, _status_code, _headers = get_count_with_http_info(opts) data @@ -532,7 +532,7 @@ def get_count(opts = {}) # @option opts [Boolean] :demo # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetCountResponse, Integer, Hash)>] GetCountResponse data, response status code and response headers + # @return [Array<(ModerationAPICountCommentsResponse, Integer, Hash)>] ModerationAPICountCommentsResponse data, response status code and response headers def get_count_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_count ...' @@ -562,7 +562,7 @@ def get_count_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetCountResponse' + return_type = opts[:debug_return_type] || 'ModerationAPICountCommentsResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -587,7 +587,7 @@ def get_count_with_http_info(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetCountsResponse] + # @return [GetBannedUsersCountResponse] def get_counts(opts = {}) data, _status_code, _headers = get_counts_with_http_info(opts) data @@ -596,7 +596,7 @@ def get_counts(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetCountsResponse, Integer, Hash)>] GetCountsResponse data, response status code and response headers + # @return [Array<(GetBannedUsersCountResponse, Integer, Hash)>] GetBannedUsersCountResponse data, response status code and response headers def get_counts_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_counts ...' @@ -621,7 +621,7 @@ def get_counts_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetCountsResponse' + return_type = opts[:debug_return_type] || 'GetBannedUsersCountResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -647,7 +647,7 @@ def get_counts_with_http_info(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetLogsResponse] + # @return [ModerationAPIGetLogsResponse] def get_logs(comment_id, opts = {}) data, _status_code, _headers = get_logs_with_http_info(comment_id, opts) data @@ -657,7 +657,7 @@ def get_logs(comment_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetLogsResponse, Integer, Hash)>] GetLogsResponse data, response status code and response headers + # @return [Array<(ModerationAPIGetLogsResponse, Integer, Hash)>] ModerationAPIGetLogsResponse data, response status code and response headers def get_logs_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_logs ...' @@ -686,7 +686,7 @@ def get_logs_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetLogsResponse' + return_type = opts[:debug_return_type] || 'ModerationAPIGetLogsResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -711,7 +711,7 @@ def get_logs_with_http_info(comment_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetManualBadgesResponse] + # @return [GetTenantManualBadgesResponse] def get_manual_badges(opts = {}) data, _status_code, _headers = get_manual_badges_with_http_info(opts) data @@ -720,7 +720,7 @@ def get_manual_badges(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetManualBadgesResponse, Integer, Hash)>] GetManualBadgesResponse data, response status code and response headers + # @return [Array<(GetTenantManualBadgesResponse, Integer, Hash)>] GetTenantManualBadgesResponse data, response status code and response headers def get_manual_badges_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_manual_badges ...' @@ -745,7 +745,7 @@ def get_manual_badges_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetManualBadgesResponse' + return_type = opts[:debug_return_type] || 'GetTenantManualBadgesResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -772,7 +772,7 @@ def get_manual_badges_with_http_info(opts = {}) # @option opts [String] :comment_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetManualBadgesForUserResponse] + # @return [GetUserManualBadgesResponse] def get_manual_badges_for_user(opts = {}) data, _status_code, _headers = get_manual_badges_for_user_with_http_info(opts) data @@ -783,7 +783,7 @@ def get_manual_badges_for_user(opts = {}) # @option opts [String] :comment_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetManualBadgesForUserResponse, Integer, Hash)>] GetManualBadgesForUserResponse data, response status code and response headers + # @return [Array<(GetUserManualBadgesResponse, Integer, Hash)>] GetUserManualBadgesResponse data, response status code and response headers def get_manual_badges_for_user_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_manual_badges_for_user ...' @@ -810,7 +810,7 @@ def get_manual_badges_for_user_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetManualBadgesForUserResponse' + return_type = opts[:debug_return_type] || 'GetUserManualBadgesResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -838,7 +838,7 @@ def get_manual_badges_for_user_with_http_info(opts = {}) # @option opts [Boolean] :include_ip # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetModerationCommentResponse] + # @return [ModerationAPICommentResponse] def get_moderation_comment(comment_id, opts = {}) data, _status_code, _headers = get_moderation_comment_with_http_info(comment_id, opts) data @@ -850,7 +850,7 @@ def get_moderation_comment(comment_id, opts = {}) # @option opts [Boolean] :include_ip # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetModerationCommentResponse, Integer, Hash)>] GetModerationCommentResponse data, response status code and response headers + # @return [Array<(ModerationAPICommentResponse, Integer, Hash)>] ModerationAPICommentResponse data, response status code and response headers def get_moderation_comment_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_moderation_comment ...' @@ -881,7 +881,7 @@ def get_moderation_comment_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetModerationCommentResponse' + return_type = opts[:debug_return_type] || 'ModerationAPICommentResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -907,7 +907,7 @@ def get_moderation_comment_with_http_info(comment_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetModerationCommentTextResponse] + # @return [GetCommentTextResponse] def get_moderation_comment_text(comment_id, opts = {}) data, _status_code, _headers = get_moderation_comment_text_with_http_info(comment_id, opts) data @@ -917,7 +917,7 @@ def get_moderation_comment_text(comment_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetModerationCommentTextResponse, Integer, Hash)>] GetModerationCommentTextResponse data, response status code and response headers + # @return [Array<(GetCommentTextResponse, Integer, Hash)>] GetCommentTextResponse data, response status code and response headers def get_moderation_comment_text_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_moderation_comment_text ...' @@ -946,7 +946,7 @@ def get_moderation_comment_text_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetModerationCommentTextResponse' + return_type = opts[:debug_return_type] || 'GetCommentTextResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -975,7 +975,7 @@ def get_moderation_comment_text_with_http_info(comment_id, opts = {}) # @option opts [Boolean] :include_by_email_domain # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetPreBanSummaryResponse] + # @return [PreBanSummary] def get_pre_ban_summary(comment_id, opts = {}) data, _status_code, _headers = get_pre_ban_summary_with_http_info(comment_id, opts) data @@ -988,7 +988,7 @@ def get_pre_ban_summary(comment_id, opts = {}) # @option opts [Boolean] :include_by_email_domain # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetPreBanSummaryResponse, Integer, Hash)>] GetPreBanSummaryResponse data, response status code and response headers + # @return [Array<(PreBanSummary, Integer, Hash)>] PreBanSummary data, response status code and response headers def get_pre_ban_summary_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_pre_ban_summary ...' @@ -1020,7 +1020,7 @@ def get_pre_ban_summary_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetPreBanSummaryResponse' + return_type = opts[:debug_return_type] || 'PreBanSummary' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1048,7 +1048,7 @@ def get_pre_ban_summary_with_http_info(comment_id, opts = {}) # @option opts [String] :search_filters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetSearchCommentsSummaryResponse] + # @return [ModerationCommentSearchResponse] def get_search_comments_summary(opts = {}) data, _status_code, _headers = get_search_comments_summary_with_http_info(opts) data @@ -1060,7 +1060,7 @@ def get_search_comments_summary(opts = {}) # @option opts [String] :search_filters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetSearchCommentsSummaryResponse, Integer, Hash)>] GetSearchCommentsSummaryResponse data, response status code and response headers + # @return [Array<(ModerationCommentSearchResponse, Integer, Hash)>] ModerationCommentSearchResponse data, response status code and response headers def get_search_comments_summary_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_comments_summary ...' @@ -1088,7 +1088,7 @@ def get_search_comments_summary_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetSearchCommentsSummaryResponse' + return_type = opts[:debug_return_type] || 'ModerationCommentSearchResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1114,7 +1114,7 @@ def get_search_comments_summary_with_http_info(opts = {}) # @option opts [String] :value # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetSearchPagesResponse] + # @return [ModerationPageSearchResponse] def get_search_pages(opts = {}) data, _status_code, _headers = get_search_pages_with_http_info(opts) data @@ -1124,7 +1124,7 @@ def get_search_pages(opts = {}) # @option opts [String] :value # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetSearchPagesResponse, Integer, Hash)>] GetSearchPagesResponse data, response status code and response headers + # @return [Array<(ModerationPageSearchResponse, Integer, Hash)>] ModerationPageSearchResponse data, response status code and response headers def get_search_pages_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_pages ...' @@ -1150,7 +1150,7 @@ def get_search_pages_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetSearchPagesResponse' + return_type = opts[:debug_return_type] || 'ModerationPageSearchResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1176,7 +1176,7 @@ def get_search_pages_with_http_info(opts = {}) # @option opts [String] :value # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetSearchSitesResponse] + # @return [ModerationSiteSearchResponse] def get_search_sites(opts = {}) data, _status_code, _headers = get_search_sites_with_http_info(opts) data @@ -1186,7 +1186,7 @@ def get_search_sites(opts = {}) # @option opts [String] :value # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetSearchSitesResponse, Integer, Hash)>] GetSearchSitesResponse data, response status code and response headers + # @return [Array<(ModerationSiteSearchResponse, Integer, Hash)>] ModerationSiteSearchResponse data, response status code and response headers def get_search_sites_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_sites ...' @@ -1212,7 +1212,7 @@ def get_search_sites_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetSearchSitesResponse' + return_type = opts[:debug_return_type] || 'ModerationSiteSearchResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1238,7 +1238,7 @@ def get_search_sites_with_http_info(opts = {}) # @option opts [String] :text_search # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetSearchSuggestResponse] + # @return [ModerationSuggestResponse] def get_search_suggest(opts = {}) data, _status_code, _headers = get_search_suggest_with_http_info(opts) data @@ -1248,7 +1248,7 @@ def get_search_suggest(opts = {}) # @option opts [String] :text_search # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetSearchSuggestResponse, Integer, Hash)>] GetSearchSuggestResponse data, response status code and response headers + # @return [Array<(ModerationSuggestResponse, Integer, Hash)>] ModerationSuggestResponse data, response status code and response headers def get_search_suggest_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_suggest ...' @@ -1274,7 +1274,7 @@ def get_search_suggest_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetSearchSuggestResponse' + return_type = opts[:debug_return_type] || 'ModerationSuggestResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1300,7 +1300,7 @@ def get_search_suggest_with_http_info(opts = {}) # @option opts [String] :value # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetSearchUsersResponse] + # @return [ModerationUserSearchResponse] def get_search_users(opts = {}) data, _status_code, _headers = get_search_users_with_http_info(opts) data @@ -1310,7 +1310,7 @@ def get_search_users(opts = {}) # @option opts [String] :value # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetSearchUsersResponse, Integer, Hash)>] GetSearchUsersResponse data, response status code and response headers + # @return [Array<(ModerationUserSearchResponse, Integer, Hash)>] ModerationUserSearchResponse data, response status code and response headers def get_search_users_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_users ...' @@ -1336,7 +1336,7 @@ def get_search_users_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetSearchUsersResponse' + return_type = opts[:debug_return_type] || 'ModerationUserSearchResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1362,7 +1362,7 @@ def get_search_users_with_http_info(opts = {}) # @option opts [String] :user_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetTrustFactorResponse] + # @return [GetUserTrustFactorResponse] def get_trust_factor(opts = {}) data, _status_code, _headers = get_trust_factor_with_http_info(opts) data @@ -1372,7 +1372,7 @@ def get_trust_factor(opts = {}) # @option opts [String] :user_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetTrustFactorResponse, Integer, Hash)>] GetTrustFactorResponse data, response status code and response headers + # @return [Array<(GetUserTrustFactorResponse, Integer, Hash)>] GetUserTrustFactorResponse data, response status code and response headers def get_trust_factor_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_trust_factor ...' @@ -1398,7 +1398,7 @@ def get_trust_factor_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetTrustFactorResponse' + return_type = opts[:debug_return_type] || 'GetUserTrustFactorResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1423,7 +1423,7 @@ def get_trust_factor_with_http_info(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetUserBanPreferenceResponse] + # @return [APIModerateGetUserBanPreferencesResponse] def get_user_ban_preference(opts = {}) data, _status_code, _headers = get_user_ban_preference_with_http_info(opts) data @@ -1432,7 +1432,7 @@ def get_user_ban_preference(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetUserBanPreferenceResponse, Integer, Hash)>] GetUserBanPreferenceResponse data, response status code and response headers + # @return [Array<(APIModerateGetUserBanPreferencesResponse, Integer, Hash)>] APIModerateGetUserBanPreferencesResponse data, response status code and response headers def get_user_ban_preference_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_user_ban_preference ...' @@ -1457,7 +1457,7 @@ def get_user_ban_preference_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetUserBanPreferenceResponse' + return_type = opts[:debug_return_type] || 'APIModerateGetUserBanPreferencesResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1483,7 +1483,7 @@ def get_user_ban_preference_with_http_info(opts = {}) # @option opts [String] :comment_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetUserInternalProfileResponse1] + # @return [GetUserInternalProfileResponse] def get_user_internal_profile(opts = {}) data, _status_code, _headers = get_user_internal_profile_with_http_info(opts) data @@ -1493,7 +1493,7 @@ def get_user_internal_profile(opts = {}) # @option opts [String] :comment_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(GetUserInternalProfileResponse1, Integer, Hash)>] GetUserInternalProfileResponse1 data, response status code and response headers + # @return [Array<(GetUserInternalProfileResponse, Integer, Hash)>] GetUserInternalProfileResponse data, response status code and response headers def get_user_internal_profile_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_user_internal_profile ...' @@ -1519,7 +1519,7 @@ def get_user_internal_profile_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetUserInternalProfileResponse1' + return_type = opts[:debug_return_type] || 'GetUserInternalProfileResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1547,7 +1547,7 @@ def get_user_internal_profile_with_http_info(opts = {}) # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostAdjustCommentVotesResponse] + # @return [AdjustVotesResponse] def post_adjust_comment_votes(comment_id, adjust_comment_votes_params, opts = {}) data, _status_code, _headers = post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts) data @@ -1559,7 +1559,7 @@ def post_adjust_comment_votes(comment_id, adjust_comment_votes_params, opts = {} # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(PostAdjustCommentVotesResponse, Integer, Hash)>] PostAdjustCommentVotesResponse data, response status code and response headers + # @return [Array<(AdjustVotesResponse, Integer, Hash)>] AdjustVotesResponse data, response status code and response headers def post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_adjust_comment_votes ...' @@ -1598,7 +1598,7 @@ def post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_pa post_body = opts[:debug_body] || @api_client.object_to_http_body(adjust_comment_votes_params) # return_type - return_type = opts[:debug_return_type] || 'PostAdjustCommentVotesResponse' + return_type = opts[:debug_return_type] || 'AdjustVotesResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1628,7 +1628,7 @@ def post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_pa # @option opts [String] :sorts # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostApiExportResponse] + # @return [ModerationExportResponse] def post_api_export(opts = {}) data, _status_code, _headers = post_api_export_with_http_info(opts) data @@ -1642,7 +1642,7 @@ def post_api_export(opts = {}) # @option opts [String] :sorts # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(PostApiExportResponse, Integer, Hash)>] PostApiExportResponse data, response status code and response headers + # @return [Array<(ModerationExportResponse, Integer, Hash)>] ModerationExportResponse data, response status code and response headers def post_api_export_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_api_export ...' @@ -1672,7 +1672,7 @@ def post_api_export_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'PostApiExportResponse' + return_type = opts[:debug_return_type] || 'ModerationExportResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1706,7 +1706,7 @@ def post_api_export_with_http_info(opts = {}) # @option opts [String] :ban_reason # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostBanUserFromCommentResponse] + # @return [BanUserFromCommentResult] def post_ban_user_from_comment(comment_id, opts = {}) data, _status_code, _headers = post_ban_user_from_comment_with_http_info(comment_id, opts) data @@ -1724,7 +1724,7 @@ def post_ban_user_from_comment(comment_id, opts = {}) # @option opts [String] :ban_reason # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(PostBanUserFromCommentResponse, Integer, Hash)>] PostBanUserFromCommentResponse data, response status code and response headers + # @return [Array<(BanUserFromCommentResult, Integer, Hash)>] BanUserFromCommentResult data, response status code and response headers def post_ban_user_from_comment_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_ban_user_from_comment ...' @@ -1761,7 +1761,7 @@ def post_ban_user_from_comment_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'PostBanUserFromCommentResponse' + return_type = opts[:debug_return_type] || 'BanUserFromCommentResult' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1787,7 +1787,7 @@ def post_ban_user_from_comment_with_http_info(comment_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostBanUserUndoResponse] + # @return [APIEmptyResponse] def post_ban_user_undo(ban_user_undo_params, opts = {}) data, _status_code, _headers = post_ban_user_undo_with_http_info(ban_user_undo_params, opts) data @@ -1797,7 +1797,7 @@ def post_ban_user_undo(ban_user_undo_params, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(PostBanUserUndoResponse, Integer, Hash)>] PostBanUserUndoResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def post_ban_user_undo_with_http_info(ban_user_undo_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_ban_user_undo ...' @@ -1831,7 +1831,7 @@ def post_ban_user_undo_with_http_info(ban_user_undo_params, opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(ban_user_undo_params) # return_type - return_type = opts[:debug_return_type] || 'PostBanUserUndoResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1860,7 +1860,7 @@ def post_ban_user_undo_with_http_info(ban_user_undo_params, opts = {}) # @option opts [Boolean] :include_by_email_domain # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostBulkPreBanSummaryResponse] + # @return [BulkPreBanSummary] def post_bulk_pre_ban_summary(bulk_pre_ban_params, opts = {}) data, _status_code, _headers = post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts) data @@ -1873,7 +1873,7 @@ def post_bulk_pre_ban_summary(bulk_pre_ban_params, opts = {}) # @option opts [Boolean] :include_by_email_domain # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(PostBulkPreBanSummaryResponse, Integer, Hash)>] PostBulkPreBanSummaryResponse data, response status code and response headers + # @return [Array<(BulkPreBanSummary, Integer, Hash)>] BulkPreBanSummary data, response status code and response headers def post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_bulk_pre_ban_summary ...' @@ -1910,7 +1910,7 @@ def post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(bulk_pre_ban_params) # return_type - return_type = opts[:debug_return_type] || 'PostBulkPreBanSummaryResponse' + return_type = opts[:debug_return_type] || 'BulkPreBanSummary' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1936,7 +1936,7 @@ def post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostCommentsByIdsResponse] + # @return [ModerationAPIChildCommentsResponse] def post_comments_by_ids(comments_by_ids_params, opts = {}) data, _status_code, _headers = post_comments_by_ids_with_http_info(comments_by_ids_params, opts) data @@ -1946,7 +1946,7 @@ def post_comments_by_ids(comments_by_ids_params, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(PostCommentsByIdsResponse, Integer, Hash)>] PostCommentsByIdsResponse data, response status code and response headers + # @return [Array<(ModerationAPIChildCommentsResponse, Integer, Hash)>] ModerationAPIChildCommentsResponse data, response status code and response headers def post_comments_by_ids_with_http_info(comments_by_ids_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_comments_by_ids ...' @@ -1980,7 +1980,7 @@ def post_comments_by_ids_with_http_info(comments_by_ids_params, opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(comments_by_ids_params) # return_type - return_type = opts[:debug_return_type] || 'PostCommentsByIdsResponse' + return_type = opts[:debug_return_type] || 'ModerationAPIChildCommentsResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2007,7 +2007,7 @@ def post_comments_by_ids_with_http_info(comments_by_ids_params, opts = {}) # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostFlagCommentResponse] + # @return [APIEmptyResponse] def post_flag_comment(comment_id, opts = {}) data, _status_code, _headers = post_flag_comment_with_http_info(comment_id, opts) data @@ -2018,7 +2018,7 @@ def post_flag_comment(comment_id, opts = {}) # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(PostFlagCommentResponse, Integer, Hash)>] PostFlagCommentResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def post_flag_comment_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_flag_comment ...' @@ -2048,7 +2048,7 @@ def post_flag_comment_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'PostFlagCommentResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2143,7 +2143,7 @@ def post_remove_comment_with_http_info(comment_id, opts = {}) # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostRestoreDeletedCommentResponse] + # @return [APIEmptyResponse] def post_restore_deleted_comment(comment_id, opts = {}) data, _status_code, _headers = post_restore_deleted_comment_with_http_info(comment_id, opts) data @@ -2154,7 +2154,7 @@ def post_restore_deleted_comment(comment_id, opts = {}) # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(PostRestoreDeletedCommentResponse, Integer, Hash)>] PostRestoreDeletedCommentResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def post_restore_deleted_comment_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_restore_deleted_comment ...' @@ -2184,7 +2184,7 @@ def post_restore_deleted_comment_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'PostRestoreDeletedCommentResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2212,7 +2212,7 @@ def post_restore_deleted_comment_with_http_info(comment_id, opts = {}) # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostSetCommentApprovalStatusResponse] + # @return [SetCommentApprovedResponse] def post_set_comment_approval_status(comment_id, opts = {}) data, _status_code, _headers = post_set_comment_approval_status_with_http_info(comment_id, opts) data @@ -2224,7 +2224,7 @@ def post_set_comment_approval_status(comment_id, opts = {}) # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(PostSetCommentApprovalStatusResponse, Integer, Hash)>] PostSetCommentApprovalStatusResponse data, response status code and response headers + # @return [Array<(SetCommentApprovedResponse, Integer, Hash)>] SetCommentApprovedResponse data, response status code and response headers def post_set_comment_approval_status_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_approval_status ...' @@ -2255,7 +2255,7 @@ def post_set_comment_approval_status_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'PostSetCommentApprovalStatusResponse' + return_type = opts[:debug_return_type] || 'SetCommentApprovedResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2283,7 +2283,7 @@ def post_set_comment_approval_status_with_http_info(comment_id, opts = {}) # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostSetCommentReviewStatusResponse] + # @return [APIEmptyResponse] def post_set_comment_review_status(comment_id, opts = {}) data, _status_code, _headers = post_set_comment_review_status_with_http_info(comment_id, opts) data @@ -2295,7 +2295,7 @@ def post_set_comment_review_status(comment_id, opts = {}) # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(PostSetCommentReviewStatusResponse, Integer, Hash)>] PostSetCommentReviewStatusResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def post_set_comment_review_status_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_review_status ...' @@ -2326,7 +2326,7 @@ def post_set_comment_review_status_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'PostSetCommentReviewStatusResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2355,7 +2355,7 @@ def post_set_comment_review_status_with_http_info(comment_id, opts = {}) # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostSetCommentSpamStatusResponse] + # @return [APIEmptyResponse] def post_set_comment_spam_status(comment_id, opts = {}) data, _status_code, _headers = post_set_comment_spam_status_with_http_info(comment_id, opts) data @@ -2368,7 +2368,7 @@ def post_set_comment_spam_status(comment_id, opts = {}) # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(PostSetCommentSpamStatusResponse, Integer, Hash)>] PostSetCommentSpamStatusResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def post_set_comment_spam_status_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_spam_status ...' @@ -2400,7 +2400,7 @@ def post_set_comment_spam_status_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'PostSetCommentSpamStatusResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2428,7 +2428,7 @@ def post_set_comment_spam_status_with_http_info(comment_id, opts = {}) # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostSetCommentTextResponse] + # @return [SetCommentTextResponse] def post_set_comment_text(comment_id, set_comment_text_params, opts = {}) data, _status_code, _headers = post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts) data @@ -2440,7 +2440,7 @@ def post_set_comment_text(comment_id, set_comment_text_params, opts = {}) # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(PostSetCommentTextResponse, Integer, Hash)>] PostSetCommentTextResponse data, response status code and response headers + # @return [Array<(SetCommentTextResponse, Integer, Hash)>] SetCommentTextResponse data, response status code and response headers def post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_text ...' @@ -2479,7 +2479,7 @@ def post_set_comment_text_with_http_info(comment_id, set_comment_text_params, op post_body = opts[:debug_body] || @api_client.object_to_http_body(set_comment_text_params) # return_type - return_type = opts[:debug_return_type] || 'PostSetCommentTextResponse' + return_type = opts[:debug_return_type] || 'SetCommentTextResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2506,7 +2506,7 @@ def post_set_comment_text_with_http_info(comment_id, set_comment_text_params, op # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostUnFlagCommentResponse] + # @return [APIEmptyResponse] def post_un_flag_comment(comment_id, opts = {}) data, _status_code, _headers = post_un_flag_comment_with_http_info(comment_id, opts) data @@ -2517,7 +2517,7 @@ def post_un_flag_comment(comment_id, opts = {}) # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(PostUnFlagCommentResponse, Integer, Hash)>] PostUnFlagCommentResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def post_un_flag_comment_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_un_flag_comment ...' @@ -2547,7 +2547,7 @@ def post_un_flag_comment_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'PostUnFlagCommentResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2575,7 +2575,7 @@ def post_un_flag_comment_with_http_info(comment_id, opts = {}) # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostVoteResponse] + # @return [VoteResponse] def post_vote(comment_id, opts = {}) data, _status_code, _headers = post_vote_with_http_info(comment_id, opts) data @@ -2587,7 +2587,7 @@ def post_vote(comment_id, opts = {}) # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(PostVoteResponse, Integer, Hash)>] PostVoteResponse data, response status code and response headers + # @return [Array<(VoteResponse, Integer, Hash)>] VoteResponse data, response status code and response headers def post_vote_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_vote ...' @@ -2618,7 +2618,7 @@ def post_vote_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'PostVoteResponse' + return_type = opts[:debug_return_type] || 'VoteResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2647,7 +2647,7 @@ def post_vote_with_http_info(comment_id, opts = {}) # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PutAwardBadgeResponse] + # @return [AwardUserBadgeResponse] def put_award_badge(badge_id, opts = {}) data, _status_code, _headers = put_award_badge_with_http_info(badge_id, opts) data @@ -2660,7 +2660,7 @@ def put_award_badge(badge_id, opts = {}) # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(PutAwardBadgeResponse, Integer, Hash)>] PutAwardBadgeResponse data, response status code and response headers + # @return [Array<(AwardUserBadgeResponse, Integer, Hash)>] AwardUserBadgeResponse data, response status code and response headers def put_award_badge_with_http_info(badge_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.put_award_badge ...' @@ -2693,7 +2693,7 @@ def put_award_badge_with_http_info(badge_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'PutAwardBadgeResponse' + return_type = opts[:debug_return_type] || 'AwardUserBadgeResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2719,7 +2719,7 @@ def put_award_badge_with_http_info(badge_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PutCloseThreadResponse] + # @return [APIEmptyResponse] def put_close_thread(url_id, opts = {}) data, _status_code, _headers = put_close_thread_with_http_info(url_id, opts) data @@ -2729,7 +2729,7 @@ def put_close_thread(url_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(PutCloseThreadResponse, Integer, Hash)>] PutCloseThreadResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def put_close_thread_with_http_info(url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.put_close_thread ...' @@ -2759,7 +2759,7 @@ def put_close_thread_with_http_info(url_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'PutCloseThreadResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2788,7 +2788,7 @@ def put_close_thread_with_http_info(url_id, opts = {}) # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PutRemoveBadgeResponse] + # @return [RemoveUserBadgeResponse] def put_remove_badge(badge_id, opts = {}) data, _status_code, _headers = put_remove_badge_with_http_info(badge_id, opts) data @@ -2801,7 +2801,7 @@ def put_remove_badge(badge_id, opts = {}) # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(PutRemoveBadgeResponse, Integer, Hash)>] PutRemoveBadgeResponse data, response status code and response headers + # @return [Array<(RemoveUserBadgeResponse, Integer, Hash)>] RemoveUserBadgeResponse data, response status code and response headers def put_remove_badge_with_http_info(badge_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.put_remove_badge ...' @@ -2834,7 +2834,7 @@ def put_remove_badge_with_http_info(badge_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'PutRemoveBadgeResponse' + return_type = opts[:debug_return_type] || 'RemoveUserBadgeResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2860,7 +2860,7 @@ def put_remove_badge_with_http_info(badge_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PutReopenThreadResponse] + # @return [APIEmptyResponse] def put_reopen_thread(url_id, opts = {}) data, _status_code, _headers = put_reopen_thread_with_http_info(url_id, opts) data @@ -2870,7 +2870,7 @@ def put_reopen_thread(url_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(PutReopenThreadResponse, Integer, Hash)>] PutReopenThreadResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def put_reopen_thread_with_http_info(url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.put_reopen_thread ...' @@ -2900,7 +2900,7 @@ def put_reopen_thread_with_http_info(url_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'PutReopenThreadResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2927,7 +2927,7 @@ def put_reopen_thread_with_http_info(url_id, opts = {}) # @option opts [String] :trust_factor # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [SetTrustFactorResponse] + # @return [SetUserTrustFactorResponse] def set_trust_factor(opts = {}) data, _status_code, _headers = set_trust_factor_with_http_info(opts) data @@ -2938,7 +2938,7 @@ def set_trust_factor(opts = {}) # @option opts [String] :trust_factor # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [Array<(SetTrustFactorResponse, Integer, Hash)>] SetTrustFactorResponse data, response status code and response headers + # @return [Array<(SetUserTrustFactorResponse, Integer, Hash)>] SetUserTrustFactorResponse data, response status code and response headers def set_trust_factor_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.set_trust_factor ...' @@ -2965,7 +2965,7 @@ def set_trust_factor_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'SetTrustFactorResponse' + return_type = opts[:debug_return_type] || 'SetUserTrustFactorResponse' # auth_names auth_names = opts[:debug_auth_names] || [] diff --git a/client/lib/fastcomments-client/api/public_api.rb b/client/lib/fastcomments-client/api/public_api.rb index d738966..4e5e672 100644 --- a/client/lib/fastcomments-client/api/public_api.rb +++ b/client/lib/fastcomments-client/api/public_api.rb @@ -24,7 +24,7 @@ def initialize(api_client = ApiClient.default) # @param public_block_from_comment_params [PublicBlockFromCommentParams] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [BlockFromCommentPublicResponse] + # @return [BlockSuccess] def block_from_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts = {}) data, _status_code, _headers = block_from_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) data @@ -35,7 +35,7 @@ def block_from_comment_public(tenant_id, comment_id, public_block_from_comment_p # @param public_block_from_comment_params [PublicBlockFromCommentParams] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [Array<(BlockFromCommentPublicResponse, Integer, Hash)>] BlockFromCommentPublicResponse data, response status code and response headers + # @return [Array<(BlockSuccess, Integer, Hash)>] BlockSuccess data, response status code and response headers def block_from_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.block_from_comment_public ...' @@ -77,7 +77,7 @@ def block_from_comment_public_with_http_info(tenant_id, comment_id, public_block post_body = opts[:debug_body] || @api_client.object_to_http_body(public_block_from_comment_params) # return_type - return_type = opts[:debug_return_type] || 'BlockFromCommentPublicResponse' + return_type = opts[:debug_return_type] || 'BlockSuccess' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -103,7 +103,7 @@ def block_from_comment_public_with_http_info(tenant_id, comment_id, public_block # @param comment_ids [String] A comma separated list of comment ids. # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [CheckedCommentsForBlockedResponse] + # @return [CheckBlockedCommentsResponse] def checked_comments_for_blocked(tenant_id, comment_ids, opts = {}) data, _status_code, _headers = checked_comments_for_blocked_with_http_info(tenant_id, comment_ids, opts) data @@ -113,7 +113,7 @@ def checked_comments_for_blocked(tenant_id, comment_ids, opts = {}) # @param comment_ids [String] A comma separated list of comment ids. # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [Array<(CheckedCommentsForBlockedResponse, Integer, Hash)>] CheckedCommentsForBlockedResponse data, response status code and response headers + # @return [Array<(CheckBlockedCommentsResponse, Integer, Hash)>] CheckBlockedCommentsResponse data, response status code and response headers def checked_comments_for_blocked_with_http_info(tenant_id, comment_ids, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.checked_comments_for_blocked ...' @@ -147,7 +147,7 @@ def checked_comments_for_blocked_with_http_info(tenant_id, comment_ids, opts = { post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'CheckedCommentsForBlockedResponse' + return_type = opts[:debug_return_type] || 'CheckBlockedCommentsResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -176,7 +176,7 @@ def checked_comments_for_blocked_with_http_info(tenant_id, comment_ids, opts = { # @param [Hash] opts the optional parameters # @option opts [String] :session_id # @option opts [String] :sso - # @return [CreateCommentPublicResponse] + # @return [SaveCommentsResponseWithPresence] def create_comment_public(tenant_id, url_id, broadcast_id, comment_data, opts = {}) data, _status_code, _headers = create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, comment_data, opts) data @@ -189,7 +189,7 @@ def create_comment_public(tenant_id, url_id, broadcast_id, comment_data, opts = # @param [Hash] opts the optional parameters # @option opts [String] :session_id # @option opts [String] :sso - # @return [Array<(CreateCommentPublicResponse, Integer, Hash)>] CreateCommentPublicResponse data, response status code and response headers + # @return [Array<(SaveCommentsResponseWithPresence, Integer, Hash)>] SaveCommentsResponseWithPresence data, response status code and response headers def create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, comment_data, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.create_comment_public ...' @@ -237,7 +237,7 @@ def create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, commen post_body = opts[:debug_body] || @api_client.object_to_http_body(comment_data) # return_type - return_type = opts[:debug_return_type] || 'CreateCommentPublicResponse' + return_type = opts[:debug_return_type] || 'SaveCommentsResponseWithPresence' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -264,7 +264,7 @@ def create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, commen # @param [Hash] opts the optional parameters # @option opts [String] :broadcast_id # @option opts [String] :sso - # @return [CreateFeedPostPublicResponse] + # @return [CreateFeedPostResponse] def create_feed_post_public(tenant_id, create_feed_post_params, opts = {}) data, _status_code, _headers = create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, opts) data @@ -275,7 +275,7 @@ def create_feed_post_public(tenant_id, create_feed_post_params, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :broadcast_id # @option opts [String] :sso - # @return [Array<(CreateFeedPostPublicResponse, Integer, Hash)>] CreateFeedPostPublicResponse data, response status code and response headers + # @return [Array<(CreateFeedPostResponse, Integer, Hash)>] CreateFeedPostResponse data, response status code and response headers def create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.create_feed_post_public ...' @@ -313,7 +313,7 @@ def create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, o post_body = opts[:debug_body] || @api_client.object_to_http_body(create_feed_post_params) # return_type - return_type = opts[:debug_return_type] || 'CreateFeedPostPublicResponse' + return_type = opts[:debug_return_type] || 'CreateFeedPostResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -339,7 +339,7 @@ def create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, o # @param url_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :title - # @return [CreateV1PageReactResponse] + # @return [CreateV1PageReact] def create_v1_page_react(tenant_id, url_id, opts = {}) data, _status_code, _headers = create_v1_page_react_with_http_info(tenant_id, url_id, opts) data @@ -349,7 +349,7 @@ def create_v1_page_react(tenant_id, url_id, opts = {}) # @param url_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :title - # @return [Array<(CreateV1PageReactResponse, Integer, Hash)>] CreateV1PageReactResponse data, response status code and response headers + # @return [Array<(CreateV1PageReact, Integer, Hash)>] CreateV1PageReact data, response status code and response headers def create_v1_page_react_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.create_v1_page_react ...' @@ -382,7 +382,7 @@ def create_v1_page_react_with_http_info(tenant_id, url_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'CreateV1PageReactResponse' + return_type = opts[:debug_return_type] || 'CreateV1PageReact' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -409,7 +409,7 @@ def create_v1_page_react_with_http_info(tenant_id, url_id, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [String] :title - # @return [CreateV2PageReactResponse] + # @return [CreateV1PageReact] def create_v2_page_react(tenant_id, url_id, id, opts = {}) data, _status_code, _headers = create_v2_page_react_with_http_info(tenant_id, url_id, id, opts) data @@ -420,7 +420,7 @@ def create_v2_page_react(tenant_id, url_id, id, opts = {}) # @param id [String] # @param [Hash] opts the optional parameters # @option opts [String] :title - # @return [Array<(CreateV2PageReactResponse, Integer, Hash)>] CreateV2PageReactResponse data, response status code and response headers + # @return [Array<(CreateV1PageReact, Integer, Hash)>] CreateV1PageReact data, response status code and response headers def create_v2_page_react_with_http_info(tenant_id, url_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.create_v2_page_react ...' @@ -458,7 +458,7 @@ def create_v2_page_react_with_http_info(tenant_id, url_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'CreateV2PageReactResponse' + return_type = opts[:debug_return_type] || 'CreateV1PageReact' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -486,7 +486,7 @@ def create_v2_page_react_with_http_info(tenant_id, url_id, id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso - # @return [DeleteCommentPublicResponse] + # @return [PublicAPIDeleteCommentResponse] def delete_comment_public(tenant_id, comment_id, broadcast_id, opts = {}) data, _status_code, _headers = delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, opts) data @@ -498,7 +498,7 @@ def delete_comment_public(tenant_id, comment_id, broadcast_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso - # @return [Array<(DeleteCommentPublicResponse, Integer, Hash)>] DeleteCommentPublicResponse data, response status code and response headers + # @return [Array<(PublicAPIDeleteCommentResponse, Integer, Hash)>] PublicAPIDeleteCommentResponse data, response status code and response headers def delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.delete_comment_public ...' @@ -536,7 +536,7 @@ def delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, op post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'DeleteCommentPublicResponse' + return_type = opts[:debug_return_type] || 'PublicAPIDeleteCommentResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -566,7 +566,7 @@ def delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, op # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso - # @return [DeleteCommentVoteResponse] + # @return [VoteDeleteResponse] def delete_comment_vote(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts = {}) data, _status_code, _headers = delete_comment_vote_with_http_info(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts) data @@ -580,7 +580,7 @@ def delete_comment_vote(tenant_id, comment_id, vote_id, url_id, broadcast_id, op # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso - # @return [Array<(DeleteCommentVoteResponse, Integer, Hash)>] DeleteCommentVoteResponse data, response status code and response headers + # @return [Array<(VoteDeleteResponse, Integer, Hash)>] VoteDeleteResponse data, response status code and response headers def delete_comment_vote_with_http_info(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.delete_comment_vote ...' @@ -627,7 +627,7 @@ def delete_comment_vote_with_http_info(tenant_id, comment_id, vote_id, url_id, b post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'DeleteCommentVoteResponse' + return_type = opts[:debug_return_type] || 'VoteDeleteResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -723,7 +723,7 @@ def delete_feed_post_public_with_http_info(tenant_id, post_id, opts = {}) # @param tenant_id [String] # @param url_id [String] # @param [Hash] opts the optional parameters - # @return [DeleteV1PageReactResponse] + # @return [CreateV1PageReact] def delete_v1_page_react(tenant_id, url_id, opts = {}) data, _status_code, _headers = delete_v1_page_react_with_http_info(tenant_id, url_id, opts) data @@ -732,7 +732,7 @@ def delete_v1_page_react(tenant_id, url_id, opts = {}) # @param tenant_id [String] # @param url_id [String] # @param [Hash] opts the optional parameters - # @return [Array<(DeleteV1PageReactResponse, Integer, Hash)>] DeleteV1PageReactResponse data, response status code and response headers + # @return [Array<(CreateV1PageReact, Integer, Hash)>] CreateV1PageReact data, response status code and response headers def delete_v1_page_react_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.delete_v1_page_react ...' @@ -764,7 +764,7 @@ def delete_v1_page_react_with_http_info(tenant_id, url_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'DeleteV1PageReactResponse' + return_type = opts[:debug_return_type] || 'CreateV1PageReact' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -790,7 +790,7 @@ def delete_v1_page_react_with_http_info(tenant_id, url_id, opts = {}) # @param url_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [DeleteV2PageReactResponse] + # @return [CreateV1PageReact] def delete_v2_page_react(tenant_id, url_id, id, opts = {}) data, _status_code, _headers = delete_v2_page_react_with_http_info(tenant_id, url_id, id, opts) data @@ -800,7 +800,7 @@ def delete_v2_page_react(tenant_id, url_id, id, opts = {}) # @param url_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(DeleteV2PageReactResponse, Integer, Hash)>] DeleteV2PageReactResponse data, response status code and response headers + # @return [Array<(CreateV1PageReact, Integer, Hash)>] CreateV1PageReact data, response status code and response headers def delete_v2_page_react_with_http_info(tenant_id, url_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.delete_v2_page_react ...' @@ -837,7 +837,7 @@ def delete_v2_page_react_with_http_info(tenant_id, url_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'DeleteV2PageReactResponse' + return_type = opts[:debug_return_type] || 'CreateV1PageReact' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -864,7 +864,7 @@ def delete_v2_page_react_with_http_info(tenant_id, url_id, id, opts = {}) # @param is_flagged [Boolean] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [FlagCommentPublicResponse] + # @return [APIEmptyResponse] def flag_comment_public(tenant_id, comment_id, is_flagged, opts = {}) data, _status_code, _headers = flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts) data @@ -875,7 +875,7 @@ def flag_comment_public(tenant_id, comment_id, is_flagged, opts = {}) # @param is_flagged [Boolean] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [Array<(FlagCommentPublicResponse, Integer, Hash)>] FlagCommentPublicResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.flag_comment_public ...' @@ -913,7 +913,7 @@ def flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts = post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'FlagCommentPublicResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -940,7 +940,7 @@ def flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts = # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso - # @return [GetCommentTextResponse1] + # @return [PublicAPIGetCommentTextResponse] def get_comment_text(tenant_id, comment_id, opts = {}) data, _status_code, _headers = get_comment_text_with_http_info(tenant_id, comment_id, opts) data @@ -951,7 +951,7 @@ def get_comment_text(tenant_id, comment_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso - # @return [Array<(GetCommentTextResponse1, Integer, Hash)>] GetCommentTextResponse1 data, response status code and response headers + # @return [Array<(PublicAPIGetCommentTextResponse, Integer, Hash)>] PublicAPIGetCommentTextResponse data, response status code and response headers def get_comment_text_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_comment_text ...' @@ -984,7 +984,7 @@ def get_comment_text_with_http_info(tenant_id, comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetCommentTextResponse1' + return_type = opts[:debug_return_type] || 'PublicAPIGetCommentTextResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1011,7 +1011,7 @@ def get_comment_text_with_http_info(tenant_id, comment_id, opts = {}) # @param dir [Integer] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [GetCommentVoteUserNamesResponse] + # @return [GetCommentVoteUserNamesSuccessResponse] def get_comment_vote_user_names(tenant_id, comment_id, dir, opts = {}) data, _status_code, _headers = get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts) data @@ -1022,7 +1022,7 @@ def get_comment_vote_user_names(tenant_id, comment_id, dir, opts = {}) # @param dir [Integer] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [Array<(GetCommentVoteUserNamesResponse, Integer, Hash)>] GetCommentVoteUserNamesResponse data, response status code and response headers + # @return [Array<(GetCommentVoteUserNamesSuccessResponse, Integer, Hash)>] GetCommentVoteUserNamesSuccessResponse data, response status code and response headers def get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_comment_vote_user_names ...' @@ -1059,7 +1059,7 @@ def get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetCommentVoteUserNamesResponse' + return_type = opts[:debug_return_type] || 'GetCommentVoteUserNamesSuccessResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1089,7 +1089,7 @@ def get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts # @option opts [Boolean] :includei10n # @option opts [String] :locale # @option opts [Boolean] :is_crawler - # @return [GetCommentsForUserResponse1] + # @return [GetCommentsForUserResponse] def get_comments_for_user(opts = {}) data, _status_code, _headers = get_comments_for_user_with_http_info(opts) data @@ -1103,7 +1103,7 @@ def get_comments_for_user(opts = {}) # @option opts [Boolean] :includei10n # @option opts [String] :locale # @option opts [Boolean] :is_crawler - # @return [Array<(GetCommentsForUserResponse1, Integer, Hash)>] GetCommentsForUserResponse1 data, response status code and response headers + # @return [Array<(GetCommentsForUserResponse, Integer, Hash)>] GetCommentsForUserResponse data, response status code and response headers def get_comments_for_user_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_comments_for_user ...' @@ -1133,7 +1133,7 @@ def get_comments_for_user_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetCommentsForUserResponse1' + return_type = opts[:debug_return_type] || 'GetCommentsForUserResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1185,7 +1185,7 @@ def get_comments_for_user_with_http_info(opts = {}) # @option opts [String] :custom_config_str # @option opts [String] :after_comment_id # @option opts [String] :before_comment_id - # @return [GetCommentsPublicResponse] + # @return [GetCommentsResponseWithPresencePublicComment] def get_comments_public(tenant_id, url_id, opts = {}) data, _status_code, _headers = get_comments_public_with_http_info(tenant_id, url_id, opts) data @@ -1221,7 +1221,7 @@ def get_comments_public(tenant_id, url_id, opts = {}) # @option opts [String] :custom_config_str # @option opts [String] :after_comment_id # @option opts [String] :before_comment_id - # @return [Array<(GetCommentsPublicResponse, Integer, Hash)>] GetCommentsPublicResponse data, response status code and response headers + # @return [Array<(GetCommentsResponseWithPresencePublicComment, Integer, Hash)>] GetCommentsResponseWithPresencePublicComment data, response status code and response headers def get_comments_public_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_comments_public ...' @@ -1279,7 +1279,7 @@ def get_comments_public_with_http_info(tenant_id, url_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetCommentsPublicResponse' + return_type = opts[:debug_return_type] || 'GetCommentsResponseWithPresencePublicComment' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1308,7 +1308,7 @@ def get_comments_public_with_http_info(tenant_id, url_id, opts = {}) # @param start_time [Integer] # @param [Hash] opts the optional parameters # @option opts [Integer] :end_time - # @return [GetEventLogResponse1] + # @return [GetEventLogResponse] def get_event_log(tenant_id, url_id, user_id_ws, start_time, opts = {}) data, _status_code, _headers = get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) data @@ -1321,7 +1321,7 @@ def get_event_log(tenant_id, url_id, user_id_ws, start_time, opts = {}) # @param start_time [Integer] # @param [Hash] opts the optional parameters # @option opts [Integer] :end_time - # @return [Array<(GetEventLogResponse1, Integer, Hash)>] GetEventLogResponse1 data, response status code and response headers + # @return [Array<(GetEventLogResponse, Integer, Hash)>] GetEventLogResponse data, response status code and response headers def get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_event_log ...' @@ -1364,7 +1364,7 @@ def get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetEventLogResponse1' + return_type = opts[:debug_return_type] || 'GetEventLogResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1395,7 +1395,7 @@ def get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts # @option opts [String] :sso # @option opts [Boolean] :is_crawler # @option opts [Boolean] :include_user_info - # @return [GetFeedPostsPublicResponse] + # @return [PublicFeedPostsResponse] def get_feed_posts_public(tenant_id, opts = {}) data, _status_code, _headers = get_feed_posts_public_with_http_info(tenant_id, opts) data @@ -1410,7 +1410,7 @@ def get_feed_posts_public(tenant_id, opts = {}) # @option opts [String] :sso # @option opts [Boolean] :is_crawler # @option opts [Boolean] :include_user_info - # @return [Array<(GetFeedPostsPublicResponse, Integer, Hash)>] GetFeedPostsPublicResponse data, response status code and response headers + # @return [Array<(PublicFeedPostsResponse, Integer, Hash)>] PublicFeedPostsResponse data, response status code and response headers def get_feed_posts_public_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_feed_posts_public ...' @@ -1443,7 +1443,7 @@ def get_feed_posts_public_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetFeedPostsPublicResponse' + return_type = opts[:debug_return_type] || 'PublicFeedPostsResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1469,7 +1469,7 @@ def get_feed_posts_public_with_http_info(tenant_id, opts = {}) # @param post_ids [Array] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [GetFeedPostsStatsResponse] + # @return [FeedPostsStatsResponse] def get_feed_posts_stats(tenant_id, post_ids, opts = {}) data, _status_code, _headers = get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts) data @@ -1479,7 +1479,7 @@ def get_feed_posts_stats(tenant_id, post_ids, opts = {}) # @param post_ids [Array] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [Array<(GetFeedPostsStatsResponse, Integer, Hash)>] GetFeedPostsStatsResponse data, response status code and response headers + # @return [Array<(FeedPostsStatsResponse, Integer, Hash)>] FeedPostsStatsResponse data, response status code and response headers def get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_feed_posts_stats ...' @@ -1512,7 +1512,7 @@ def get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetFeedPostsStatsResponse' + return_type = opts[:debug_return_type] || 'FeedPostsStatsResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1537,7 +1537,7 @@ def get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts = {}) # @param tenant_id [String] # @param large_internal_url_sanitized [String] # @param [Hash] opts the optional parameters - # @return [GetGifLargeResponse] + # @return [GifGetLargeResponse] def get_gif_large(tenant_id, large_internal_url_sanitized, opts = {}) data, _status_code, _headers = get_gif_large_with_http_info(tenant_id, large_internal_url_sanitized, opts) data @@ -1546,7 +1546,7 @@ def get_gif_large(tenant_id, large_internal_url_sanitized, opts = {}) # @param tenant_id [String] # @param large_internal_url_sanitized [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetGifLargeResponse, Integer, Hash)>] GetGifLargeResponse data, response status code and response headers + # @return [Array<(GifGetLargeResponse, Integer, Hash)>] GifGetLargeResponse data, response status code and response headers def get_gif_large_with_http_info(tenant_id, large_internal_url_sanitized, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_gif_large ...' @@ -1578,7 +1578,7 @@ def get_gif_large_with_http_info(tenant_id, large_internal_url_sanitized, opts = post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetGifLargeResponse' + return_type = opts[:debug_return_type] || 'GifGetLargeResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1750,7 +1750,7 @@ def get_gifs_trending_with_http_info(tenant_id, opts = {}) # @param start_time [Integer] # @param [Hash] opts the optional parameters # @option opts [Integer] :end_time - # @return [GetGlobalEventLogResponse] + # @return [GetEventLogResponse] def get_global_event_log(tenant_id, url_id, user_id_ws, start_time, opts = {}) data, _status_code, _headers = get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) data @@ -1763,7 +1763,7 @@ def get_global_event_log(tenant_id, url_id, user_id_ws, start_time, opts = {}) # @param start_time [Integer] # @param [Hash] opts the optional parameters # @option opts [Integer] :end_time - # @return [Array<(GetGlobalEventLogResponse, Integer, Hash)>] GetGlobalEventLogResponse data, response status code and response headers + # @return [Array<(GetEventLogResponse, Integer, Hash)>] GetEventLogResponse data, response status code and response headers def get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_global_event_log ...' @@ -1806,7 +1806,7 @@ def get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_tim post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetGlobalEventLogResponse' + return_type = opts[:debug_return_type] || 'GetEventLogResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1834,7 +1834,7 @@ def get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_tim # @param [Hash] opts the optional parameters # @option opts [String] :after_name Cursor: pass nextAfterName from the previous response. # @option opts [String] :after_user_id Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. - # @return [GetOfflineUsersResponse] + # @return [PageUsersOfflineResponse] def get_offline_users(tenant_id, url_id, opts = {}) data, _status_code, _headers = get_offline_users_with_http_info(tenant_id, url_id, opts) data @@ -1846,7 +1846,7 @@ def get_offline_users(tenant_id, url_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :after_name Cursor: pass nextAfterName from the previous response. # @option opts [String] :after_user_id Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. - # @return [Array<(GetOfflineUsersResponse, Integer, Hash)>] GetOfflineUsersResponse data, response status code and response headers + # @return [Array<(PageUsersOfflineResponse, Integer, Hash)>] PageUsersOfflineResponse data, response status code and response headers def get_offline_users_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_offline_users ...' @@ -1880,7 +1880,7 @@ def get_offline_users_with_http_info(tenant_id, url_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetOfflineUsersResponse' + return_type = opts[:debug_return_type] || 'PageUsersOfflineResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1908,7 +1908,7 @@ def get_offline_users_with_http_info(tenant_id, url_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :after_name Cursor: pass nextAfterName from the previous response. # @option opts [String] :after_user_id Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. - # @return [GetOnlineUsersResponse] + # @return [PageUsersOnlineResponse] def get_online_users(tenant_id, url_id, opts = {}) data, _status_code, _headers = get_online_users_with_http_info(tenant_id, url_id, opts) data @@ -1920,7 +1920,7 @@ def get_online_users(tenant_id, url_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :after_name Cursor: pass nextAfterName from the previous response. # @option opts [String] :after_user_id Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. - # @return [Array<(GetOnlineUsersResponse, Integer, Hash)>] GetOnlineUsersResponse data, response status code and response headers + # @return [Array<(PageUsersOnlineResponse, Integer, Hash)>] PageUsersOnlineResponse data, response status code and response headers def get_online_users_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_online_users ...' @@ -1954,7 +1954,7 @@ def get_online_users_with_http_info(tenant_id, url_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetOnlineUsersResponse' + return_type = opts[:debug_return_type] || 'PageUsersOnlineResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -1984,7 +1984,7 @@ def get_online_users_with_http_info(tenant_id, url_id, opts = {}) # @option opts [String] :q Optional case-insensitive title prefix filter. # @option opts [PagesSortBy] :sort_by Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). # @option opts [Boolean] :has_comments If true, only return pages with at least one comment. - # @return [GetPagesPublicResponse] + # @return [GetPublicPagesResponse] def get_pages_public(tenant_id, opts = {}) data, _status_code, _headers = get_pages_public_with_http_info(tenant_id, opts) data @@ -1998,7 +1998,7 @@ def get_pages_public(tenant_id, opts = {}) # @option opts [String] :q Optional case-insensitive title prefix filter. # @option opts [PagesSortBy] :sort_by Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). # @option opts [Boolean] :has_comments If true, only return pages with at least one comment. - # @return [Array<(GetPagesPublicResponse, Integer, Hash)>] GetPagesPublicResponse data, response status code and response headers + # @return [Array<(GetPublicPagesResponse, Integer, Hash)>] GetPublicPagesResponse data, response status code and response headers def get_pages_public_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_pages_public ...' @@ -2030,7 +2030,7 @@ def get_pages_public_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetPagesPublicResponse' + return_type = opts[:debug_return_type] || 'GetPublicPagesResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2057,7 +2057,7 @@ def get_pages_public_with_http_info(tenant_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :locale # @option opts [Boolean] :use_full_translation_ids - # @return [GetTranslationsResponse1] + # @return [GetTranslationsResponse] def get_translations(namespace, component, opts = {}) data, _status_code, _headers = get_translations_with_http_info(namespace, component, opts) data @@ -2068,7 +2068,7 @@ def get_translations(namespace, component, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :locale # @option opts [Boolean] :use_full_translation_ids - # @return [Array<(GetTranslationsResponse1, Integer, Hash)>] GetTranslationsResponse1 data, response status code and response headers + # @return [Array<(GetTranslationsResponse, Integer, Hash)>] GetTranslationsResponse data, response status code and response headers def get_translations_with_http_info(namespace, component, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_translations ...' @@ -2101,7 +2101,7 @@ def get_translations_with_http_info(namespace, component, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetTranslationsResponse1' + return_type = opts[:debug_return_type] || 'GetTranslationsResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2126,7 +2126,7 @@ def get_translations_with_http_info(namespace, component, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [GetUserNotificationCountResponse1] + # @return [GetUserNotificationCountResponse] def get_user_notification_count(tenant_id, opts = {}) data, _status_code, _headers = get_user_notification_count_with_http_info(tenant_id, opts) data @@ -2135,7 +2135,7 @@ def get_user_notification_count(tenant_id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [Array<(GetUserNotificationCountResponse1, Integer, Hash)>] GetUserNotificationCountResponse1 data, response status code and response headers + # @return [Array<(GetUserNotificationCountResponse, Integer, Hash)>] GetUserNotificationCountResponse data, response status code and response headers def get_user_notification_count_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_user_notification_count ...' @@ -2164,7 +2164,7 @@ def get_user_notification_count_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetUserNotificationCountResponse1' + return_type = opts[:debug_return_type] || 'GetUserNotificationCountResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2199,7 +2199,7 @@ def get_user_notification_count_with_http_info(tenant_id, opts = {}) # @option opts [Boolean] :include_translations # @option opts [Boolean] :include_tenant_notifications # @option opts [String] :sso - # @return [GetUserNotificationsResponse] + # @return [GetMyNotificationsResponse] def get_user_notifications(tenant_id, opts = {}) data, _status_code, _headers = get_user_notifications_with_http_info(tenant_id, opts) data @@ -2218,7 +2218,7 @@ def get_user_notifications(tenant_id, opts = {}) # @option opts [Boolean] :include_translations # @option opts [Boolean] :include_tenant_notifications # @option opts [String] :sso - # @return [Array<(GetUserNotificationsResponse, Integer, Hash)>] GetUserNotificationsResponse data, response status code and response headers + # @return [Array<(GetMyNotificationsResponse, Integer, Hash)>] GetMyNotificationsResponse data, response status code and response headers def get_user_notifications_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_user_notifications ...' @@ -2257,7 +2257,7 @@ def get_user_notifications_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetUserNotificationsResponse' + return_type = opts[:debug_return_type] || 'GetMyNotificationsResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2283,7 +2283,7 @@ def get_user_notifications_with_http_info(tenant_id, opts = {}) # @param url_id_ws [String] # @param user_ids [String] # @param [Hash] opts the optional parameters - # @return [GetUserPresenceStatusesResponse1] + # @return [GetUserPresenceStatusesResponse] def get_user_presence_statuses(tenant_id, url_id_ws, user_ids, opts = {}) data, _status_code, _headers = get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids, opts) data @@ -2293,7 +2293,7 @@ def get_user_presence_statuses(tenant_id, url_id_ws, user_ids, opts = {}) # @param url_id_ws [String] # @param user_ids [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetUserPresenceStatusesResponse1, Integer, Hash)>] GetUserPresenceStatusesResponse1 data, response status code and response headers + # @return [Array<(GetUserPresenceStatusesResponse, Integer, Hash)>] GetUserPresenceStatusesResponse data, response status code and response headers def get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_user_presence_statuses ...' @@ -2331,7 +2331,7 @@ def get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids, op post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetUserPresenceStatusesResponse1' + return_type = opts[:debug_return_type] || 'GetUserPresenceStatusesResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2357,7 +2357,7 @@ def get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids, op # @param [Hash] opts the optional parameters # @option opts [Array] :post_ids # @option opts [String] :sso - # @return [GetUserReactsPublicResponse] + # @return [UserReactsResponse] def get_user_reacts_public(tenant_id, opts = {}) data, _status_code, _headers = get_user_reacts_public_with_http_info(tenant_id, opts) data @@ -2367,7 +2367,7 @@ def get_user_reacts_public(tenant_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [Array] :post_ids # @option opts [String] :sso - # @return [Array<(GetUserReactsPublicResponse, Integer, Hash)>] GetUserReactsPublicResponse data, response status code and response headers + # @return [Array<(UserReactsResponse, Integer, Hash)>] UserReactsResponse data, response status code and response headers def get_user_reacts_public_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_user_reacts_public ...' @@ -2396,7 +2396,7 @@ def get_user_reacts_public_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetUserReactsPublicResponse' + return_type = opts[:debug_return_type] || 'UserReactsResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2422,7 +2422,7 @@ def get_user_reacts_public_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param ids [String] Comma-delimited userIds. # @param [Hash] opts the optional parameters - # @return [GetUsersInfoResponse] + # @return [PageUsersInfoResponse] def get_users_info(tenant_id, ids, opts = {}) data, _status_code, _headers = get_users_info_with_http_info(tenant_id, ids, opts) data @@ -2432,7 +2432,7 @@ def get_users_info(tenant_id, ids, opts = {}) # @param tenant_id [String] # @param ids [String] Comma-delimited userIds. # @param [Hash] opts the optional parameters - # @return [Array<(GetUsersInfoResponse, Integer, Hash)>] GetUsersInfoResponse data, response status code and response headers + # @return [Array<(PageUsersInfoResponse, Integer, Hash)>] PageUsersInfoResponse data, response status code and response headers def get_users_info_with_http_info(tenant_id, ids, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_users_info ...' @@ -2464,7 +2464,7 @@ def get_users_info_with_http_info(tenant_id, ids, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetUsersInfoResponse' + return_type = opts[:debug_return_type] || 'PageUsersInfoResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2489,7 +2489,7 @@ def get_users_info_with_http_info(tenant_id, ids, opts = {}) # @param tenant_id [String] # @param url_id [String] # @param [Hash] opts the optional parameters - # @return [GetV1PageLikesResponse] + # @return [GetV1PageLikes] def get_v1_page_likes(tenant_id, url_id, opts = {}) data, _status_code, _headers = get_v1_page_likes_with_http_info(tenant_id, url_id, opts) data @@ -2498,7 +2498,7 @@ def get_v1_page_likes(tenant_id, url_id, opts = {}) # @param tenant_id [String] # @param url_id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetV1PageLikesResponse, Integer, Hash)>] GetV1PageLikesResponse data, response status code and response headers + # @return [Array<(GetV1PageLikes, Integer, Hash)>] GetV1PageLikes data, response status code and response headers def get_v1_page_likes_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_v1_page_likes ...' @@ -2530,7 +2530,7 @@ def get_v1_page_likes_with_http_info(tenant_id, url_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetV1PageLikesResponse' + return_type = opts[:debug_return_type] || 'GetV1PageLikes' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2556,7 +2556,7 @@ def get_v1_page_likes_with_http_info(tenant_id, url_id, opts = {}) # @param url_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [GetV2PageReactUsersResponse1] + # @return [GetV2PageReactUsersResponse] def get_v2_page_react_users(tenant_id, url_id, id, opts = {}) data, _status_code, _headers = get_v2_page_react_users_with_http_info(tenant_id, url_id, id, opts) data @@ -2566,7 +2566,7 @@ def get_v2_page_react_users(tenant_id, url_id, id, opts = {}) # @param url_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetV2PageReactUsersResponse1, Integer, Hash)>] GetV2PageReactUsersResponse1 data, response status code and response headers + # @return [Array<(GetV2PageReactUsersResponse, Integer, Hash)>] GetV2PageReactUsersResponse data, response status code and response headers def get_v2_page_react_users_with_http_info(tenant_id, url_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_v2_page_react_users ...' @@ -2603,7 +2603,7 @@ def get_v2_page_react_users_with_http_info(tenant_id, url_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetV2PageReactUsersResponse1' + return_type = opts[:debug_return_type] || 'GetV2PageReactUsersResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2628,7 +2628,7 @@ def get_v2_page_react_users_with_http_info(tenant_id, url_id, id, opts = {}) # @param tenant_id [String] # @param url_id [String] # @param [Hash] opts the optional parameters - # @return [GetV2PageReactsResponse] + # @return [GetV2PageReacts] def get_v2_page_reacts(tenant_id, url_id, opts = {}) data, _status_code, _headers = get_v2_page_reacts_with_http_info(tenant_id, url_id, opts) data @@ -2637,7 +2637,7 @@ def get_v2_page_reacts(tenant_id, url_id, opts = {}) # @param tenant_id [String] # @param url_id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetV2PageReactsResponse, Integer, Hash)>] GetV2PageReactsResponse data, response status code and response headers + # @return [Array<(GetV2PageReacts, Integer, Hash)>] GetV2PageReacts data, response status code and response headers def get_v2_page_reacts_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_v2_page_reacts ...' @@ -2669,7 +2669,7 @@ def get_v2_page_reacts_with_http_info(tenant_id, url_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetV2PageReactsResponse' + return_type = opts[:debug_return_type] || 'GetV2PageReacts' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2696,7 +2696,7 @@ def get_v2_page_reacts_with_http_info(tenant_id, url_id, opts = {}) # @param broadcast_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [LockCommentResponse] + # @return [APIEmptyResponse] def lock_comment(tenant_id, comment_id, broadcast_id, opts = {}) data, _status_code, _headers = lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) data @@ -2707,7 +2707,7 @@ def lock_comment(tenant_id, comment_id, broadcast_id, opts = {}) # @param broadcast_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [Array<(LockCommentResponse, Integer, Hash)>] LockCommentResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.lock_comment ...' @@ -2744,7 +2744,7 @@ def lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'LockCommentResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2824,7 +2824,7 @@ def logout_public_with_http_info(opts = {}) # @param broadcast_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [PinCommentResponse] + # @return [ChangeCommentPinStatusResponse] def pin_comment(tenant_id, comment_id, broadcast_id, opts = {}) data, _status_code, _headers = pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) data @@ -2835,7 +2835,7 @@ def pin_comment(tenant_id, comment_id, broadcast_id, opts = {}) # @param broadcast_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [Array<(PinCommentResponse, Integer, Hash)>] PinCommentResponse data, response status code and response headers + # @return [Array<(ChangeCommentPinStatusResponse, Integer, Hash)>] ChangeCommentPinStatusResponse data, response status code and response headers def pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.pin_comment ...' @@ -2872,7 +2872,7 @@ def pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'PinCommentResponse' + return_type = opts[:debug_return_type] || 'ChangeCommentPinStatusResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2901,7 +2901,7 @@ def pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) # @option opts [Boolean] :is_undo # @option opts [String] :broadcast_id # @option opts [String] :sso - # @return [ReactFeedPostPublicResponse] + # @return [ReactFeedPostResponse] def react_feed_post_public(tenant_id, post_id, react_body_params, opts = {}) data, _status_code, _headers = react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, opts) data @@ -2914,7 +2914,7 @@ def react_feed_post_public(tenant_id, post_id, react_body_params, opts = {}) # @option opts [Boolean] :is_undo # @option opts [String] :broadcast_id # @option opts [String] :sso - # @return [Array<(ReactFeedPostPublicResponse, Integer, Hash)>] ReactFeedPostPublicResponse data, response status code and response headers + # @return [Array<(ReactFeedPostResponse, Integer, Hash)>] ReactFeedPostResponse data, response status code and response headers def react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.react_feed_post_public ...' @@ -2957,7 +2957,7 @@ def react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, post_body = opts[:debug_body] || @api_client.object_to_http_body(react_body_params) # return_type - return_type = opts[:debug_return_type] || 'ReactFeedPostPublicResponse' + return_type = opts[:debug_return_type] || 'ReactFeedPostResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2982,7 +2982,7 @@ def react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [ResetUserNotificationCountResponse] + # @return [ResetUserNotificationsResponse] def reset_user_notification_count(tenant_id, opts = {}) data, _status_code, _headers = reset_user_notification_count_with_http_info(tenant_id, opts) data @@ -2991,7 +2991,7 @@ def reset_user_notification_count(tenant_id, opts = {}) # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [Array<(ResetUserNotificationCountResponse, Integer, Hash)>] ResetUserNotificationCountResponse data, response status code and response headers + # @return [Array<(ResetUserNotificationsResponse, Integer, Hash)>] ResetUserNotificationsResponse data, response status code and response headers def reset_user_notification_count_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.reset_user_notification_count ...' @@ -3020,7 +3020,7 @@ def reset_user_notification_count_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'ResetUserNotificationCountResponse' + return_type = opts[:debug_return_type] || 'ResetUserNotificationsResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -3050,7 +3050,7 @@ def reset_user_notification_count_with_http_info(tenant_id, opts = {}) # @option opts [Boolean] :dm_only # @option opts [Boolean] :no_dm # @option opts [String] :sso - # @return [ResetUserNotificationsResponse1] + # @return [ResetUserNotificationsResponse] def reset_user_notifications(tenant_id, opts = {}) data, _status_code, _headers = reset_user_notifications_with_http_info(tenant_id, opts) data @@ -3064,7 +3064,7 @@ def reset_user_notifications(tenant_id, opts = {}) # @option opts [Boolean] :dm_only # @option opts [Boolean] :no_dm # @option opts [String] :sso - # @return [Array<(ResetUserNotificationsResponse1, Integer, Hash)>] ResetUserNotificationsResponse1 data, response status code and response headers + # @return [Array<(ResetUserNotificationsResponse, Integer, Hash)>] ResetUserNotificationsResponse data, response status code and response headers def reset_user_notifications_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.reset_user_notifications ...' @@ -3098,7 +3098,7 @@ def reset_user_notifications_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'ResetUserNotificationsResponse1' + return_type = opts[:debug_return_type] || 'ResetUserNotificationsResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -3127,7 +3127,7 @@ def reset_user_notifications_with_http_info(tenant_id, opts = {}) # @option opts [Array] :mention_group_ids # @option opts [String] :sso # @option opts [String] :search_section - # @return [SearchUsersResponse1] + # @return [SearchUsersResult] def search_users(tenant_id, url_id, opts = {}) data, _status_code, _headers = search_users_with_http_info(tenant_id, url_id, opts) data @@ -3140,7 +3140,7 @@ def search_users(tenant_id, url_id, opts = {}) # @option opts [Array] :mention_group_ids # @option opts [String] :sso # @option opts [String] :search_section - # @return [Array<(SearchUsersResponse1, Integer, Hash)>] SearchUsersResponse1 data, response status code and response headers + # @return [Array<(SearchUsersResult, Integer, Hash)>] SearchUsersResult data, response status code and response headers def search_users_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.search_users ...' @@ -3180,7 +3180,7 @@ def search_users_with_http_info(tenant_id, url_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'SearchUsersResponse1' + return_type = opts[:debug_return_type] || 'SearchUsersResult' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -3209,7 +3209,7 @@ def search_users_with_http_info(tenant_id, url_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso - # @return [SetCommentTextResponse1] + # @return [PublicAPISetCommentTextResponse] def set_comment_text(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts = {}) data, _status_code, _headers = set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts) data @@ -3222,7 +3222,7 @@ def set_comment_text(tenant_id, comment_id, broadcast_id, comment_text_update_re # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso - # @return [Array<(SetCommentTextResponse1, Integer, Hash)>] SetCommentTextResponse1 data, response status code and response headers + # @return [Array<(PublicAPISetCommentTextResponse, Integer, Hash)>] PublicAPISetCommentTextResponse data, response status code and response headers def set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.set_comment_text ...' @@ -3269,7 +3269,7 @@ def set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment post_body = opts[:debug_body] || @api_client.object_to_http_body(comment_text_update_request) # return_type - return_type = opts[:debug_return_type] || 'SetCommentTextResponse1' + return_type = opts[:debug_return_type] || 'PublicAPISetCommentTextResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -3296,7 +3296,7 @@ def set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment # @param public_block_from_comment_params [PublicBlockFromCommentParams] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [UnBlockCommentPublicResponse] + # @return [UnblockSuccess] def un_block_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts = {}) data, _status_code, _headers = un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) data @@ -3307,7 +3307,7 @@ def un_block_comment_public(tenant_id, comment_id, public_block_from_comment_par # @param public_block_from_comment_params [PublicBlockFromCommentParams] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [Array<(UnBlockCommentPublicResponse, Integer, Hash)>] UnBlockCommentPublicResponse data, response status code and response headers + # @return [Array<(UnblockSuccess, Integer, Hash)>] UnblockSuccess data, response status code and response headers def un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.un_block_comment_public ...' @@ -3349,7 +3349,7 @@ def un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_f post_body = opts[:debug_body] || @api_client.object_to_http_body(public_block_from_comment_params) # return_type - return_type = opts[:debug_return_type] || 'UnBlockCommentPublicResponse' + return_type = opts[:debug_return_type] || 'UnblockSuccess' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -3376,7 +3376,7 @@ def un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_f # @param broadcast_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [UnLockCommentResponse] + # @return [APIEmptyResponse] def un_lock_comment(tenant_id, comment_id, broadcast_id, opts = {}) data, _status_code, _headers = un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) data @@ -3387,7 +3387,7 @@ def un_lock_comment(tenant_id, comment_id, broadcast_id, opts = {}) # @param broadcast_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [Array<(UnLockCommentResponse, Integer, Hash)>] UnLockCommentResponse data, response status code and response headers + # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.un_lock_comment ...' @@ -3424,7 +3424,7 @@ def un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = { post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'UnLockCommentResponse' + return_type = opts[:debug_return_type] || 'APIEmptyResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -3451,7 +3451,7 @@ def un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = { # @param broadcast_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [UnPinCommentResponse] + # @return [ChangeCommentPinStatusResponse] def un_pin_comment(tenant_id, comment_id, broadcast_id, opts = {}) data, _status_code, _headers = un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) data @@ -3462,7 +3462,7 @@ def un_pin_comment(tenant_id, comment_id, broadcast_id, opts = {}) # @param broadcast_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [Array<(UnPinCommentResponse, Integer, Hash)>] UnPinCommentResponse data, response status code and response headers + # @return [Array<(ChangeCommentPinStatusResponse, Integer, Hash)>] ChangeCommentPinStatusResponse data, response status code and response headers def un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.un_pin_comment ...' @@ -3499,7 +3499,7 @@ def un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {} post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'UnPinCommentResponse' + return_type = opts[:debug_return_type] || 'ChangeCommentPinStatusResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -3527,7 +3527,7 @@ def un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {} # @param [Hash] opts the optional parameters # @option opts [String] :broadcast_id # @option opts [String] :sso - # @return [UpdateFeedPostPublicResponse] + # @return [CreateFeedPostResponse] def update_feed_post_public(tenant_id, post_id, update_feed_post_params, opts = {}) data, _status_code, _headers = update_feed_post_public_with_http_info(tenant_id, post_id, update_feed_post_params, opts) data @@ -3539,7 +3539,7 @@ def update_feed_post_public(tenant_id, post_id, update_feed_post_params, opts = # @param [Hash] opts the optional parameters # @option opts [String] :broadcast_id # @option opts [String] :sso - # @return [Array<(UpdateFeedPostPublicResponse, Integer, Hash)>] UpdateFeedPostPublicResponse data, response status code and response headers + # @return [Array<(CreateFeedPostResponse, Integer, Hash)>] CreateFeedPostResponse data, response status code and response headers def update_feed_post_public_with_http_info(tenant_id, post_id, update_feed_post_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.update_feed_post_public ...' @@ -3581,7 +3581,7 @@ def update_feed_post_public_with_http_info(tenant_id, post_id, update_feed_post_ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_feed_post_params) # return_type - return_type = opts[:debug_return_type] || 'UpdateFeedPostPublicResponse' + return_type = opts[:debug_return_type] || 'CreateFeedPostResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -3956,7 +3956,7 @@ def upload_image_with_http_info(tenant_id, file, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :session_id # @option opts [String] :sso - # @return [VoteCommentResponse] + # @return [VoteResponse] def vote_comment(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts = {}) data, _status_code, _headers = vote_comment_with_http_info(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts) data @@ -3970,7 +3970,7 @@ def vote_comment(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, # @param [Hash] opts the optional parameters # @option opts [String] :session_id # @option opts [String] :sso - # @return [Array<(VoteCommentResponse, Integer, Hash)>] VoteCommentResponse data, response status code and response headers + # @return [Array<(VoteResponse, Integer, Hash)>] VoteResponse data, response status code and response headers def vote_comment_with_http_info(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.vote_comment ...' @@ -4022,7 +4022,7 @@ def vote_comment_with_http_info(tenant_id, comment_id, url_id, broadcast_id, vot post_body = opts[:debug_body] || @api_client.object_to_http_body(vote_body_params) # return_type - return_type = opts[:debug_return_type] || 'VoteCommentResponse' + return_type = opts[:debug_return_type] || 'VoteResponse' # auth_names auth_names = opts[:debug_auth_names] || [] diff --git a/client/lib/fastcomments-client/models/add_hash_tag_response.rb b/client/lib/fastcomments-client/models/add_hash_tag_response.rb deleted file mode 100644 index 194bb19..0000000 --- a/client/lib/fastcomments-client/models/add_hash_tag_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module AddHashTagResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'CreateHashTagResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/add_hash_tags_bulk_response.rb b/client/lib/fastcomments-client/models/add_hash_tags_bulk_response.rb deleted file mode 100644 index 051b82b..0000000 --- a/client/lib/fastcomments-client/models/add_hash_tags_bulk_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module AddHashTagsBulkResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'BulkCreateHashTagsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/aggregate_question_results_response1.rb b/client/lib/fastcomments-client/models/aggregate_question_results_response1.rb deleted file mode 100644 index 6a77b3a..0000000 --- a/client/lib/fastcomments-client/models/aggregate_question_results_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module AggregateQuestionResultsResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'AggregateQuestionResultsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/block_from_comment_public_response.rb b/client/lib/fastcomments-client/models/block_from_comment_public_response.rb deleted file mode 100644 index dcb3346..0000000 --- a/client/lib/fastcomments-client/models/block_from_comment_public_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module BlockFromCommentPublicResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'BlockSuccess' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/block_user_from_comment_response.rb b/client/lib/fastcomments-client/models/block_user_from_comment_response.rb deleted file mode 100644 index 072c0d1..0000000 --- a/client/lib/fastcomments-client/models/block_user_from_comment_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module BlockUserFromCommentResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'BlockSuccess' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/bulk_aggregate_question_results_response1.rb b/client/lib/fastcomments-client/models/bulk_aggregate_question_results_response1.rb deleted file mode 100644 index 3775b46..0000000 --- a/client/lib/fastcomments-client/models/bulk_aggregate_question_results_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module BulkAggregateQuestionResultsResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'BulkAggregateQuestionResultsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/change_ticket_state_response1.rb b/client/lib/fastcomments-client/models/change_ticket_state_response1.rb deleted file mode 100644 index 0929eb5..0000000 --- a/client/lib/fastcomments-client/models/change_ticket_state_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module ChangeTicketStateResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'ChangeTicketStateResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/checked_comments_for_blocked_response.rb b/client/lib/fastcomments-client/models/checked_comments_for_blocked_response.rb deleted file mode 100644 index 7369924..0000000 --- a/client/lib/fastcomments-client/models/checked_comments_for_blocked_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module CheckedCommentsForBlockedResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'CheckBlockedCommentsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/combine_comments_with_question_results_response.rb b/client/lib/fastcomments-client/models/combine_comments_with_question_results_response.rb deleted file mode 100644 index 56be3bf..0000000 --- a/client/lib/fastcomments-client/models/combine_comments_with_question_results_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module CombineCommentsWithQuestionResultsResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'CombineQuestionResultsWithCommentsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/create_comment_public_response.rb b/client/lib/fastcomments-client/models/create_comment_public_response.rb deleted file mode 100644 index a2d7ae4..0000000 --- a/client/lib/fastcomments-client/models/create_comment_public_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module CreateCommentPublicResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'SaveCommentsResponseWithPresence' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/create_email_template_response1.rb b/client/lib/fastcomments-client/models/create_email_template_response1.rb deleted file mode 100644 index 5d757b8..0000000 --- a/client/lib/fastcomments-client/models/create_email_template_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module CreateEmailTemplateResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'CreateEmailTemplateResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/create_feed_post_public_response.rb b/client/lib/fastcomments-client/models/create_feed_post_public_response.rb deleted file mode 100644 index 2f6ca2e..0000000 --- a/client/lib/fastcomments-client/models/create_feed_post_public_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module CreateFeedPostPublicResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'CreateFeedPostResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/create_feed_post_response1.rb b/client/lib/fastcomments-client/models/create_feed_post_response1.rb deleted file mode 100644 index 5b67799..0000000 --- a/client/lib/fastcomments-client/models/create_feed_post_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module CreateFeedPostResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'CreateFeedPostsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/create_moderator_response1.rb b/client/lib/fastcomments-client/models/create_moderator_response1.rb deleted file mode 100644 index ca0fc9a..0000000 --- a/client/lib/fastcomments-client/models/create_moderator_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module CreateModeratorResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'CreateModeratorResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/create_question_config_response1.rb b/client/lib/fastcomments-client/models/create_question_config_response1.rb deleted file mode 100644 index 47ed44a..0000000 --- a/client/lib/fastcomments-client/models/create_question_config_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module CreateQuestionConfigResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'CreateQuestionConfigResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/create_question_result_response1.rb b/client/lib/fastcomments-client/models/create_question_result_response1.rb deleted file mode 100644 index 284f480..0000000 --- a/client/lib/fastcomments-client/models/create_question_result_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module CreateQuestionResultResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'CreateQuestionResultResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/create_tenant_package_response1.rb b/client/lib/fastcomments-client/models/create_tenant_package_response1.rb deleted file mode 100644 index 11e8ca5..0000000 --- a/client/lib/fastcomments-client/models/create_tenant_package_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module CreateTenantPackageResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'CreateTenantPackageResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/create_tenant_response1.rb b/client/lib/fastcomments-client/models/create_tenant_response1.rb deleted file mode 100644 index 35c2e0f..0000000 --- a/client/lib/fastcomments-client/models/create_tenant_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module CreateTenantResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'CreateTenantResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/create_tenant_user_response1.rb b/client/lib/fastcomments-client/models/create_tenant_user_response1.rb deleted file mode 100644 index bac9f85..0000000 --- a/client/lib/fastcomments-client/models/create_tenant_user_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module CreateTenantUserResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'CreateTenantUserResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/create_ticket_response1.rb b/client/lib/fastcomments-client/models/create_ticket_response1.rb deleted file mode 100644 index e070501..0000000 --- a/client/lib/fastcomments-client/models/create_ticket_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module CreateTicketResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'CreateTicketResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/create_user_badge_response.rb b/client/lib/fastcomments-client/models/create_user_badge_response.rb deleted file mode 100644 index 57738fb..0000000 --- a/client/lib/fastcomments-client/models/create_user_badge_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module CreateUserBadgeResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APICreateUserBadgeResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/create_v1_page_react_response.rb b/client/lib/fastcomments-client/models/create_v1_page_react_response.rb deleted file mode 100644 index 3ae086a..0000000 --- a/client/lib/fastcomments-client/models/create_v1_page_react_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module CreateV1PageReactResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'CreateV1PageReact' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/create_v2_page_react_response.rb b/client/lib/fastcomments-client/models/create_v2_page_react_response.rb deleted file mode 100644 index 4ede32f..0000000 --- a/client/lib/fastcomments-client/models/create_v2_page_react_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module CreateV2PageReactResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'CreateV1PageReact' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/create_vote_response.rb b/client/lib/fastcomments-client/models/create_vote_response.rb deleted file mode 100644 index e2eebcb..0000000 --- a/client/lib/fastcomments-client/models/create_vote_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module CreateVoteResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'VoteResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/delete_comment_public_response.rb b/client/lib/fastcomments-client/models/delete_comment_public_response.rb deleted file mode 100644 index 1a8ae3e..0000000 --- a/client/lib/fastcomments-client/models/delete_comment_public_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module DeleteCommentPublicResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'PublicAPIDeleteCommentResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/delete_comment_response.rb b/client/lib/fastcomments-client/models/delete_comment_response.rb deleted file mode 100644 index bc55602..0000000 --- a/client/lib/fastcomments-client/models/delete_comment_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module DeleteCommentResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'DeleteCommentResult' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/delete_comment_vote_response.rb b/client/lib/fastcomments-client/models/delete_comment_vote_response.rb deleted file mode 100644 index bbab25c..0000000 --- a/client/lib/fastcomments-client/models/delete_comment_vote_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module DeleteCommentVoteResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'VoteDeleteResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/delete_email_template_render_error_response.rb b/client/lib/fastcomments-client/models/delete_email_template_render_error_response.rb deleted file mode 100644 index 63fbf71..0000000 --- a/client/lib/fastcomments-client/models/delete_email_template_render_error_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module DeleteEmailTemplateRenderErrorResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/delete_email_template_response.rb b/client/lib/fastcomments-client/models/delete_email_template_response.rb deleted file mode 100644 index 3482164..0000000 --- a/client/lib/fastcomments-client/models/delete_email_template_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module DeleteEmailTemplateResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/delete_feed_post_public_response.rb b/client/lib/fastcomments-client/models/delete_feed_post_public_response.rb index 851c05d..4b299b9 100644 --- a/client/lib/fastcomments-client/models/delete_feed_post_public_response.rb +++ b/client/lib/fastcomments-client/models/delete_feed_post_public_response.rb @@ -14,90 +14,173 @@ require 'time' module FastCommentsClient - module DeleteFeedPostPublicResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'DeleteFeedPostPublicResponseAnyOf' - ] - end + class DeleteFeedPostPublicResponse < ApiModelBase + attr_accessor :status + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value end end + end - openapi_any_of.include?(:AnyType) ? data : nil + def valid?(value) + !value || allowable_values.include?(value) end + end - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'status' => :'status' + } + end + + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + acceptable_attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'status' => :'APIStatus' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `FastCommentsClient::DeleteFeedPostPublicResponse` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `FastCommentsClient::DeleteFeedPostPublicResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'status') + self.status = attributes[:'status'] + else + self.status = nil + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + if @status.nil? + invalid_properties.push('invalid value for "status", status cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + return false if @status.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] status Value to be assigned + def status=(status) + if status.nil? + fail ArgumentError, 'status cannot be nil' + end + + @status = status + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + status == o.status + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [status].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end + end + new(transformed_hash) + end - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) end + hash end + end end diff --git a/client/lib/fastcomments-client/models/delete_feed_post_public_response_any_of.rb b/client/lib/fastcomments-client/models/delete_feed_post_public_response_any_of.rb deleted file mode 100644 index d567dc0..0000000 --- a/client/lib/fastcomments-client/models/delete_feed_post_public_response_any_of.rb +++ /dev/null @@ -1,186 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - class DeleteFeedPostPublicResponseAnyOf < ApiModelBase - attr_accessor :status - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'status' => :'status' - } - end - - # Returns attribute mapping this model knows about - def self.acceptable_attribute_map - attribute_map - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - acceptable_attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'status' => :'APIStatus' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `FastCommentsClient::DeleteFeedPostPublicResponseAnyOf` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - acceptable_attribute_map = self.class.acceptable_attribute_map - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!acceptable_attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `FastCommentsClient::DeleteFeedPostPublicResponseAnyOf`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'status') - self.status = attributes[:'status'] - else - self.status = nil - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' - invalid_properties = Array.new - if @status.nil? - invalid_properties.push('invalid value for "status", status cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - warn '[DEPRECATED] the `valid?` method is obsolete' - return false if @status.nil? - true - end - - # Custom attribute writer method with validation - # @param [Object] status Value to be assigned - def status=(status) - if status.nil? - fail ArgumentError, 'status cannot be nil' - end - - @status = status - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - status == o.status - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [status].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - attributes = attributes.transform_keys(&:to_sym) - transformed_hash = {} - openapi_types.each_pair do |key, type| - if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? - transformed_hash["#{key}"] = nil - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[attribute_map[key]].is_a?(Array) - transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } - end - elsif !attributes[attribute_map[key]].nil? - transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) - end - end - new(transformed_hash) - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - end - -end diff --git a/client/lib/fastcomments-client/models/delete_hash_tag_response.rb b/client/lib/fastcomments-client/models/delete_hash_tag_response.rb deleted file mode 100644 index 4693d5f..0000000 --- a/client/lib/fastcomments-client/models/delete_hash_tag_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module DeleteHashTagResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/delete_moderation_vote_response.rb b/client/lib/fastcomments-client/models/delete_moderation_vote_response.rb deleted file mode 100644 index 8199699..0000000 --- a/client/lib/fastcomments-client/models/delete_moderation_vote_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module DeleteModerationVoteResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'VoteDeleteResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/delete_moderator_response.rb b/client/lib/fastcomments-client/models/delete_moderator_response.rb deleted file mode 100644 index c6d9f93..0000000 --- a/client/lib/fastcomments-client/models/delete_moderator_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module DeleteModeratorResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/delete_notification_count_response.rb b/client/lib/fastcomments-client/models/delete_notification_count_response.rb deleted file mode 100644 index 72549b1..0000000 --- a/client/lib/fastcomments-client/models/delete_notification_count_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module DeleteNotificationCountResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/delete_pending_webhook_event_response.rb b/client/lib/fastcomments-client/models/delete_pending_webhook_event_response.rb deleted file mode 100644 index 1c16cd9..0000000 --- a/client/lib/fastcomments-client/models/delete_pending_webhook_event_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module DeletePendingWebhookEventResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/delete_question_config_response.rb b/client/lib/fastcomments-client/models/delete_question_config_response.rb deleted file mode 100644 index 2ac0dd5..0000000 --- a/client/lib/fastcomments-client/models/delete_question_config_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module DeleteQuestionConfigResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/delete_question_result_response.rb b/client/lib/fastcomments-client/models/delete_question_result_response.rb deleted file mode 100644 index daaff53..0000000 --- a/client/lib/fastcomments-client/models/delete_question_result_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module DeleteQuestionResultResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/delete_tenant_package_response.rb b/client/lib/fastcomments-client/models/delete_tenant_package_response.rb deleted file mode 100644 index 3e216a4..0000000 --- a/client/lib/fastcomments-client/models/delete_tenant_package_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module DeleteTenantPackageResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/delete_tenant_response.rb b/client/lib/fastcomments-client/models/delete_tenant_response.rb deleted file mode 100644 index a4cd6ca..0000000 --- a/client/lib/fastcomments-client/models/delete_tenant_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module DeleteTenantResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/delete_tenant_user_response.rb b/client/lib/fastcomments-client/models/delete_tenant_user_response.rb deleted file mode 100644 index ac9e88a..0000000 --- a/client/lib/fastcomments-client/models/delete_tenant_user_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module DeleteTenantUserResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/delete_user_badge_response.rb b/client/lib/fastcomments-client/models/delete_user_badge_response.rb deleted file mode 100644 index f3d5bc9..0000000 --- a/client/lib/fastcomments-client/models/delete_user_badge_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module DeleteUserBadgeResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptySuccessResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/delete_v1_page_react_response.rb b/client/lib/fastcomments-client/models/delete_v1_page_react_response.rb deleted file mode 100644 index 8075492..0000000 --- a/client/lib/fastcomments-client/models/delete_v1_page_react_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module DeleteV1PageReactResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'CreateV1PageReact' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/delete_v2_page_react_response.rb b/client/lib/fastcomments-client/models/delete_v2_page_react_response.rb deleted file mode 100644 index 1932e03..0000000 --- a/client/lib/fastcomments-client/models/delete_v2_page_react_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module DeleteV2PageReactResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'CreateV1PageReact' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/delete_vote_response.rb b/client/lib/fastcomments-client/models/delete_vote_response.rb deleted file mode 100644 index 0aff686..0000000 --- a/client/lib/fastcomments-client/models/delete_vote_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module DeleteVoteResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'VoteDeleteResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/flag_comment_public_response.rb b/client/lib/fastcomments-client/models/flag_comment_public_response.rb deleted file mode 100644 index 635f1b1..0000000 --- a/client/lib/fastcomments-client/models/flag_comment_public_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module FlagCommentPublicResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/flag_comment_response1.rb b/client/lib/fastcomments-client/models/flag_comment_response1.rb deleted file mode 100644 index 590753d..0000000 --- a/client/lib/fastcomments-client/models/flag_comment_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module FlagCommentResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'FlagCommentResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_api_comments_response.rb b/client/lib/fastcomments-client/models/get_api_comments_response.rb deleted file mode 100644 index f9c6645..0000000 --- a/client/lib/fastcomments-client/models/get_api_comments_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetApiCommentsResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'ModerationAPIGetCommentsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_api_export_status_response.rb b/client/lib/fastcomments-client/models/get_api_export_status_response.rb deleted file mode 100644 index 8574942..0000000 --- a/client/lib/fastcomments-client/models/get_api_export_status_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetApiExportStatusResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'ModerationExportStatusResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_api_ids_response.rb b/client/lib/fastcomments-client/models/get_api_ids_response.rb deleted file mode 100644 index 3dbe19b..0000000 --- a/client/lib/fastcomments-client/models/get_api_ids_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetApiIdsResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'ModerationAPIGetCommentIdsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_audit_logs_response1.rb b/client/lib/fastcomments-client/models/get_audit_logs_response1.rb deleted file mode 100644 index c4d93ae..0000000 --- a/client/lib/fastcomments-client/models/get_audit_logs_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetAuditLogsResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetAuditLogsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_ban_users_from_comment_response.rb b/client/lib/fastcomments-client/models/get_ban_users_from_comment_response.rb deleted file mode 100644 index 840050f..0000000 --- a/client/lib/fastcomments-client/models/get_ban_users_from_comment_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetBanUsersFromCommentResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetBannedUsersFromCommentResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_cached_notification_count_response1.rb b/client/lib/fastcomments-client/models/get_cached_notification_count_response1.rb deleted file mode 100644 index 553a607..0000000 --- a/client/lib/fastcomments-client/models/get_cached_notification_count_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetCachedNotificationCountResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetCachedNotificationCountResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_comment_ban_status_response1.rb b/client/lib/fastcomments-client/models/get_comment_ban_status_response1.rb deleted file mode 100644 index ccb171c..0000000 --- a/client/lib/fastcomments-client/models/get_comment_ban_status_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetCommentBanStatusResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetCommentBanStatusResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_comment_children_response.rb b/client/lib/fastcomments-client/models/get_comment_children_response.rb deleted file mode 100644 index c8ab694..0000000 --- a/client/lib/fastcomments-client/models/get_comment_children_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetCommentChildrenResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'ModerationAPIChildCommentsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_comment_response.rb b/client/lib/fastcomments-client/models/get_comment_response.rb deleted file mode 100644 index adf43f7..0000000 --- a/client/lib/fastcomments-client/models/get_comment_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetCommentResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'APIGetCommentResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_comment_text_response1.rb b/client/lib/fastcomments-client/models/get_comment_text_response1.rb deleted file mode 100644 index 1bacde1..0000000 --- a/client/lib/fastcomments-client/models/get_comment_text_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetCommentTextResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'PublicAPIGetCommentTextResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_comment_vote_user_names_response.rb b/client/lib/fastcomments-client/models/get_comment_vote_user_names_response.rb deleted file mode 100644 index 6f60972..0000000 --- a/client/lib/fastcomments-client/models/get_comment_vote_user_names_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetCommentVoteUserNamesResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetCommentVoteUserNamesSuccessResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_comments_for_user_response1.rb b/client/lib/fastcomments-client/models/get_comments_for_user_response1.rb deleted file mode 100644 index 10f362c..0000000 --- a/client/lib/fastcomments-client/models/get_comments_for_user_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetCommentsForUserResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetCommentsForUserResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_comments_public_response.rb b/client/lib/fastcomments-client/models/get_comments_public_response.rb deleted file mode 100644 index 89ea6a8..0000000 --- a/client/lib/fastcomments-client/models/get_comments_public_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetCommentsPublicResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetCommentsResponseWithPresencePublicComment' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_comments_response.rb b/client/lib/fastcomments-client/models/get_comments_response.rb deleted file mode 100644 index f59d6af..0000000 --- a/client/lib/fastcomments-client/models/get_comments_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetCommentsResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'APIGetCommentsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_count_response.rb b/client/lib/fastcomments-client/models/get_count_response.rb deleted file mode 100644 index 13c0d11..0000000 --- a/client/lib/fastcomments-client/models/get_count_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetCountResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'ModerationAPICountCommentsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_counts_response.rb b/client/lib/fastcomments-client/models/get_counts_response.rb deleted file mode 100644 index c75960a..0000000 --- a/client/lib/fastcomments-client/models/get_counts_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetCountsResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetBannedUsersCountResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_email_template_definitions_response1.rb b/client/lib/fastcomments-client/models/get_email_template_definitions_response1.rb deleted file mode 100644 index 18dbe06..0000000 --- a/client/lib/fastcomments-client/models/get_email_template_definitions_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetEmailTemplateDefinitionsResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetEmailTemplateDefinitionsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_email_template_render_errors_response1.rb b/client/lib/fastcomments-client/models/get_email_template_render_errors_response1.rb deleted file mode 100644 index fb2c107..0000000 --- a/client/lib/fastcomments-client/models/get_email_template_render_errors_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetEmailTemplateRenderErrorsResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetEmailTemplateRenderErrorsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_email_template_response1.rb b/client/lib/fastcomments-client/models/get_email_template_response1.rb deleted file mode 100644 index 585d545..0000000 --- a/client/lib/fastcomments-client/models/get_email_template_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetEmailTemplateResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetEmailTemplateResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_email_templates_response1.rb b/client/lib/fastcomments-client/models/get_email_templates_response1.rb deleted file mode 100644 index ca9ab2d..0000000 --- a/client/lib/fastcomments-client/models/get_email_templates_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetEmailTemplatesResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetEmailTemplatesResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_event_log_response1.rb b/client/lib/fastcomments-client/models/get_event_log_response1.rb deleted file mode 100644 index 8b0ad42..0000000 --- a/client/lib/fastcomments-client/models/get_event_log_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetEventLogResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetEventLogResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_feed_posts_public_response.rb b/client/lib/fastcomments-client/models/get_feed_posts_public_response.rb deleted file mode 100644 index 61a72a9..0000000 --- a/client/lib/fastcomments-client/models/get_feed_posts_public_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetFeedPostsPublicResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'PublicFeedPostsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_feed_posts_response1.rb b/client/lib/fastcomments-client/models/get_feed_posts_response1.rb deleted file mode 100644 index 62cf3ae..0000000 --- a/client/lib/fastcomments-client/models/get_feed_posts_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetFeedPostsResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetFeedPostsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_feed_posts_stats_response.rb b/client/lib/fastcomments-client/models/get_feed_posts_stats_response.rb deleted file mode 100644 index 30950bf..0000000 --- a/client/lib/fastcomments-client/models/get_feed_posts_stats_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetFeedPostsStatsResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'FeedPostsStatsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_gif_large_response.rb b/client/lib/fastcomments-client/models/get_gif_large_response.rb deleted file mode 100644 index 7ed9791..0000000 --- a/client/lib/fastcomments-client/models/get_gif_large_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetGifLargeResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GifGetLargeResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_gifs_search_response.rb b/client/lib/fastcomments-client/models/get_gifs_search_response.rb index 7e98323..4d673c8 100644 --- a/client/lib/fastcomments-client/models/get_gifs_search_response.rb +++ b/client/lib/fastcomments-client/models/get_gifs_search_response.rb @@ -19,7 +19,6 @@ class << self # List of class defined in anyOf (OpenAPI v3) def openapi_any_of [ - :'APIError', :'GifSearchInternalError', :'GifSearchResponse' ] diff --git a/client/lib/fastcomments-client/models/get_global_event_log_response.rb b/client/lib/fastcomments-client/models/get_global_event_log_response.rb deleted file mode 100644 index 2bb4d37..0000000 --- a/client/lib/fastcomments-client/models/get_global_event_log_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetGlobalEventLogResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetEventLogResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_hash_tags_response1.rb b/client/lib/fastcomments-client/models/get_hash_tags_response1.rb deleted file mode 100644 index aada997..0000000 --- a/client/lib/fastcomments-client/models/get_hash_tags_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetHashTagsResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetHashTagsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_logs_response.rb b/client/lib/fastcomments-client/models/get_logs_response.rb deleted file mode 100644 index f5bcffa..0000000 --- a/client/lib/fastcomments-client/models/get_logs_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetLogsResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'ModerationAPIGetLogsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_manual_badges_for_user_response.rb b/client/lib/fastcomments-client/models/get_manual_badges_for_user_response.rb deleted file mode 100644 index 8458bad..0000000 --- a/client/lib/fastcomments-client/models/get_manual_badges_for_user_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetManualBadgesForUserResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetUserManualBadgesResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_manual_badges_response.rb b/client/lib/fastcomments-client/models/get_manual_badges_response.rb deleted file mode 100644 index 359500e..0000000 --- a/client/lib/fastcomments-client/models/get_manual_badges_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetManualBadgesResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetTenantManualBadgesResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_moderation_comment_response.rb b/client/lib/fastcomments-client/models/get_moderation_comment_response.rb deleted file mode 100644 index d7f9892..0000000 --- a/client/lib/fastcomments-client/models/get_moderation_comment_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetModerationCommentResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'ModerationAPICommentResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_moderation_comment_text_response.rb b/client/lib/fastcomments-client/models/get_moderation_comment_text_response.rb deleted file mode 100644 index 9c6eb8e..0000000 --- a/client/lib/fastcomments-client/models/get_moderation_comment_text_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetModerationCommentTextResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetCommentTextResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_moderator_response1.rb b/client/lib/fastcomments-client/models/get_moderator_response1.rb deleted file mode 100644 index 3285e26..0000000 --- a/client/lib/fastcomments-client/models/get_moderator_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetModeratorResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetModeratorResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_moderators_response1.rb b/client/lib/fastcomments-client/models/get_moderators_response1.rb deleted file mode 100644 index 143cbf6..0000000 --- a/client/lib/fastcomments-client/models/get_moderators_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetModeratorsResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetModeratorsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_notification_count_response1.rb b/client/lib/fastcomments-client/models/get_notification_count_response1.rb deleted file mode 100644 index 0d2fb01..0000000 --- a/client/lib/fastcomments-client/models/get_notification_count_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetNotificationCountResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetNotificationCountResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_notifications_response1.rb b/client/lib/fastcomments-client/models/get_notifications_response1.rb deleted file mode 100644 index 0871f8b..0000000 --- a/client/lib/fastcomments-client/models/get_notifications_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetNotificationsResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetNotificationsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_offline_users_response.rb b/client/lib/fastcomments-client/models/get_offline_users_response.rb deleted file mode 100644 index ac7260c..0000000 --- a/client/lib/fastcomments-client/models/get_offline_users_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetOfflineUsersResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'PageUsersOfflineResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_online_users_response.rb b/client/lib/fastcomments-client/models/get_online_users_response.rb deleted file mode 100644 index 514766d..0000000 --- a/client/lib/fastcomments-client/models/get_online_users_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetOnlineUsersResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'PageUsersOnlineResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_pages_public_response.rb b/client/lib/fastcomments-client/models/get_pages_public_response.rb deleted file mode 100644 index 5e322c7..0000000 --- a/client/lib/fastcomments-client/models/get_pages_public_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetPagesPublicResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetPublicPagesResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_pending_webhook_event_count_response1.rb b/client/lib/fastcomments-client/models/get_pending_webhook_event_count_response1.rb deleted file mode 100644 index 0b91f27..0000000 --- a/client/lib/fastcomments-client/models/get_pending_webhook_event_count_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetPendingWebhookEventCountResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetPendingWebhookEventCountResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_pending_webhook_events_response1.rb b/client/lib/fastcomments-client/models/get_pending_webhook_events_response1.rb deleted file mode 100644 index 1b51eb2..0000000 --- a/client/lib/fastcomments-client/models/get_pending_webhook_events_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetPendingWebhookEventsResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetPendingWebhookEventsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_pre_ban_summary_response.rb b/client/lib/fastcomments-client/models/get_pre_ban_summary_response.rb deleted file mode 100644 index 96c76ef..0000000 --- a/client/lib/fastcomments-client/models/get_pre_ban_summary_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetPreBanSummaryResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'PreBanSummary' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_question_config_response1.rb b/client/lib/fastcomments-client/models/get_question_config_response1.rb deleted file mode 100644 index 5340ca6..0000000 --- a/client/lib/fastcomments-client/models/get_question_config_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetQuestionConfigResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetQuestionConfigResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_question_configs_response1.rb b/client/lib/fastcomments-client/models/get_question_configs_response1.rb deleted file mode 100644 index a061818..0000000 --- a/client/lib/fastcomments-client/models/get_question_configs_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetQuestionConfigsResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetQuestionConfigsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_question_result_response1.rb b/client/lib/fastcomments-client/models/get_question_result_response1.rb deleted file mode 100644 index 0dfb4d7..0000000 --- a/client/lib/fastcomments-client/models/get_question_result_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetQuestionResultResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetQuestionResultResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_question_results_response1.rb b/client/lib/fastcomments-client/models/get_question_results_response1.rb deleted file mode 100644 index 0c84641..0000000 --- a/client/lib/fastcomments-client/models/get_question_results_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetQuestionResultsResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetQuestionResultsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_search_comments_summary_response.rb b/client/lib/fastcomments-client/models/get_search_comments_summary_response.rb deleted file mode 100644 index 2a9e47b..0000000 --- a/client/lib/fastcomments-client/models/get_search_comments_summary_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetSearchCommentsSummaryResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'ModerationCommentSearchResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_search_pages_response.rb b/client/lib/fastcomments-client/models/get_search_pages_response.rb deleted file mode 100644 index 9325d4d..0000000 --- a/client/lib/fastcomments-client/models/get_search_pages_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetSearchPagesResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'ModerationPageSearchResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_search_sites_response.rb b/client/lib/fastcomments-client/models/get_search_sites_response.rb deleted file mode 100644 index fc828c2..0000000 --- a/client/lib/fastcomments-client/models/get_search_sites_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetSearchSitesResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'ModerationSiteSearchResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_search_suggest_response.rb b/client/lib/fastcomments-client/models/get_search_suggest_response.rb deleted file mode 100644 index 3536094..0000000 --- a/client/lib/fastcomments-client/models/get_search_suggest_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetSearchSuggestResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'ModerationSuggestResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_search_users_response.rb b/client/lib/fastcomments-client/models/get_search_users_response.rb deleted file mode 100644 index 75828f6..0000000 --- a/client/lib/fastcomments-client/models/get_search_users_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetSearchUsersResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'ModerationUserSearchResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_tenant_daily_usages_response1.rb b/client/lib/fastcomments-client/models/get_tenant_daily_usages_response1.rb deleted file mode 100644 index dd21e1c..0000000 --- a/client/lib/fastcomments-client/models/get_tenant_daily_usages_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetTenantDailyUsagesResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetTenantDailyUsagesResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_tenant_package_response1.rb b/client/lib/fastcomments-client/models/get_tenant_package_response1.rb deleted file mode 100644 index abd18b4..0000000 --- a/client/lib/fastcomments-client/models/get_tenant_package_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetTenantPackageResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetTenantPackageResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_tenant_packages_response1.rb b/client/lib/fastcomments-client/models/get_tenant_packages_response1.rb deleted file mode 100644 index 5faadd8..0000000 --- a/client/lib/fastcomments-client/models/get_tenant_packages_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetTenantPackagesResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetTenantPackagesResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_tenant_response1.rb b/client/lib/fastcomments-client/models/get_tenant_response1.rb deleted file mode 100644 index dcddbb1..0000000 --- a/client/lib/fastcomments-client/models/get_tenant_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetTenantResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetTenantResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_tenant_user_response1.rb b/client/lib/fastcomments-client/models/get_tenant_user_response1.rb deleted file mode 100644 index 6dc9ff7..0000000 --- a/client/lib/fastcomments-client/models/get_tenant_user_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetTenantUserResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetTenantUserResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_tenant_users_response1.rb b/client/lib/fastcomments-client/models/get_tenant_users_response1.rb deleted file mode 100644 index fbf1c2f..0000000 --- a/client/lib/fastcomments-client/models/get_tenant_users_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetTenantUsersResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetTenantUsersResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_tenants_response1.rb b/client/lib/fastcomments-client/models/get_tenants_response1.rb deleted file mode 100644 index 62a7c18..0000000 --- a/client/lib/fastcomments-client/models/get_tenants_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetTenantsResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetTenantsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_ticket_response1.rb b/client/lib/fastcomments-client/models/get_ticket_response1.rb deleted file mode 100644 index 1d1da3c..0000000 --- a/client/lib/fastcomments-client/models/get_ticket_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetTicketResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetTicketResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_tickets_response1.rb b/client/lib/fastcomments-client/models/get_tickets_response1.rb deleted file mode 100644 index eacf6ac..0000000 --- a/client/lib/fastcomments-client/models/get_tickets_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetTicketsResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetTicketsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_translations_response1.rb b/client/lib/fastcomments-client/models/get_translations_response1.rb deleted file mode 100644 index d174b0c..0000000 --- a/client/lib/fastcomments-client/models/get_translations_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetTranslationsResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetTranslationsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_trust_factor_response.rb b/client/lib/fastcomments-client/models/get_trust_factor_response.rb deleted file mode 100644 index 3f903e7..0000000 --- a/client/lib/fastcomments-client/models/get_trust_factor_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetTrustFactorResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetUserTrustFactorResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_user_badge_progress_by_id_response.rb b/client/lib/fastcomments-client/models/get_user_badge_progress_by_id_response.rb deleted file mode 100644 index 4810593..0000000 --- a/client/lib/fastcomments-client/models/get_user_badge_progress_by_id_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetUserBadgeProgressByIdResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'APIGetUserBadgeProgressResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_user_badge_progress_by_user_id_response.rb b/client/lib/fastcomments-client/models/get_user_badge_progress_by_user_id_response.rb deleted file mode 100644 index 9b93027..0000000 --- a/client/lib/fastcomments-client/models/get_user_badge_progress_by_user_id_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetUserBadgeProgressByUserIdResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'APIGetUserBadgeProgressResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_user_badge_progress_list_response.rb b/client/lib/fastcomments-client/models/get_user_badge_progress_list_response.rb deleted file mode 100644 index 4560fb1..0000000 --- a/client/lib/fastcomments-client/models/get_user_badge_progress_list_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetUserBadgeProgressListResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'APIGetUserBadgeProgressListResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_user_badge_response.rb b/client/lib/fastcomments-client/models/get_user_badge_response.rb deleted file mode 100644 index 6472392..0000000 --- a/client/lib/fastcomments-client/models/get_user_badge_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetUserBadgeResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'APIGetUserBadgeResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_user_badges_response.rb b/client/lib/fastcomments-client/models/get_user_badges_response.rb deleted file mode 100644 index 7c07483..0000000 --- a/client/lib/fastcomments-client/models/get_user_badges_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetUserBadgesResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'APIGetUserBadgesResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_user_ban_preference_response.rb b/client/lib/fastcomments-client/models/get_user_ban_preference_response.rb deleted file mode 100644 index 0cdc5e0..0000000 --- a/client/lib/fastcomments-client/models/get_user_ban_preference_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetUserBanPreferenceResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'APIModerateGetUserBanPreferencesResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_user_internal_profile_response1.rb b/client/lib/fastcomments-client/models/get_user_internal_profile_response1.rb deleted file mode 100644 index 77ccde3..0000000 --- a/client/lib/fastcomments-client/models/get_user_internal_profile_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetUserInternalProfileResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetUserInternalProfileResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_user_notification_count_response1.rb b/client/lib/fastcomments-client/models/get_user_notification_count_response1.rb deleted file mode 100644 index 9be68e4..0000000 --- a/client/lib/fastcomments-client/models/get_user_notification_count_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetUserNotificationCountResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetUserNotificationCountResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_user_notifications_response.rb b/client/lib/fastcomments-client/models/get_user_notifications_response.rb deleted file mode 100644 index f04b1a6..0000000 --- a/client/lib/fastcomments-client/models/get_user_notifications_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetUserNotificationsResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetMyNotificationsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_user_presence_statuses_response1.rb b/client/lib/fastcomments-client/models/get_user_presence_statuses_response1.rb deleted file mode 100644 index 7bdc0f4..0000000 --- a/client/lib/fastcomments-client/models/get_user_presence_statuses_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetUserPresenceStatusesResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetUserPresenceStatusesResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_user_reacts_public_response.rb b/client/lib/fastcomments-client/models/get_user_reacts_public_response.rb deleted file mode 100644 index 11ca7c4..0000000 --- a/client/lib/fastcomments-client/models/get_user_reacts_public_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetUserReactsPublicResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'UserReactsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_user_response1.rb b/client/lib/fastcomments-client/models/get_user_response1.rb deleted file mode 100644 index 748a815..0000000 --- a/client/lib/fastcomments-client/models/get_user_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetUserResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetUserResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_users_info_response.rb b/client/lib/fastcomments-client/models/get_users_info_response.rb deleted file mode 100644 index d38316d..0000000 --- a/client/lib/fastcomments-client/models/get_users_info_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetUsersInfoResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'PageUsersInfoResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_v1_page_likes_response.rb b/client/lib/fastcomments-client/models/get_v1_page_likes_response.rb deleted file mode 100644 index 492b5f4..0000000 --- a/client/lib/fastcomments-client/models/get_v1_page_likes_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetV1PageLikesResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetV1PageLikes' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_v2_page_react_users_response1.rb b/client/lib/fastcomments-client/models/get_v2_page_react_users_response1.rb deleted file mode 100644 index 75e4752..0000000 --- a/client/lib/fastcomments-client/models/get_v2_page_react_users_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetV2PageReactUsersResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetV2PageReactUsersResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_v2_page_reacts_response.rb b/client/lib/fastcomments-client/models/get_v2_page_reacts_response.rb deleted file mode 100644 index 09b0cf9..0000000 --- a/client/lib/fastcomments-client/models/get_v2_page_reacts_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetV2PageReactsResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetV2PageReacts' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_votes_for_user_response1.rb b/client/lib/fastcomments-client/models/get_votes_for_user_response1.rb deleted file mode 100644 index aa83809..0000000 --- a/client/lib/fastcomments-client/models/get_votes_for_user_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetVotesForUserResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetVotesForUserResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/get_votes_response1.rb b/client/lib/fastcomments-client/models/get_votes_response1.rb deleted file mode 100644 index 2389885..0000000 --- a/client/lib/fastcomments-client/models/get_votes_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module GetVotesResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'GetVotesResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/lock_comment_response.rb b/client/lib/fastcomments-client/models/lock_comment_response.rb deleted file mode 100644 index 41c40fd..0000000 --- a/client/lib/fastcomments-client/models/lock_comment_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module LockCommentResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/patch_hash_tag_response.rb b/client/lib/fastcomments-client/models/patch_hash_tag_response.rb deleted file mode 100644 index 30f0184..0000000 --- a/client/lib/fastcomments-client/models/patch_hash_tag_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module PatchHashTagResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'UpdateHashTagResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/pin_comment_response.rb b/client/lib/fastcomments-client/models/pin_comment_response.rb deleted file mode 100644 index 75411d8..0000000 --- a/client/lib/fastcomments-client/models/pin_comment_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module PinCommentResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'ChangeCommentPinStatusResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/post_adjust_comment_votes_response.rb b/client/lib/fastcomments-client/models/post_adjust_comment_votes_response.rb deleted file mode 100644 index 6094dbc..0000000 --- a/client/lib/fastcomments-client/models/post_adjust_comment_votes_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module PostAdjustCommentVotesResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'AdjustVotesResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/post_api_export_response.rb b/client/lib/fastcomments-client/models/post_api_export_response.rb deleted file mode 100644 index 4e50f49..0000000 --- a/client/lib/fastcomments-client/models/post_api_export_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module PostApiExportResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'ModerationExportResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/post_ban_user_from_comment_response.rb b/client/lib/fastcomments-client/models/post_ban_user_from_comment_response.rb deleted file mode 100644 index 7689258..0000000 --- a/client/lib/fastcomments-client/models/post_ban_user_from_comment_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module PostBanUserFromCommentResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'BanUserFromCommentResult' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/post_ban_user_undo_response.rb b/client/lib/fastcomments-client/models/post_ban_user_undo_response.rb deleted file mode 100644 index 58c09e0..0000000 --- a/client/lib/fastcomments-client/models/post_ban_user_undo_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module PostBanUserUndoResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/post_bulk_pre_ban_summary_response.rb b/client/lib/fastcomments-client/models/post_bulk_pre_ban_summary_response.rb deleted file mode 100644 index aba20ae..0000000 --- a/client/lib/fastcomments-client/models/post_bulk_pre_ban_summary_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module PostBulkPreBanSummaryResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'BulkPreBanSummary' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/post_comments_by_ids_response.rb b/client/lib/fastcomments-client/models/post_comments_by_ids_response.rb deleted file mode 100644 index d561e3a..0000000 --- a/client/lib/fastcomments-client/models/post_comments_by_ids_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module PostCommentsByIdsResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'ModerationAPIChildCommentsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/post_flag_comment_response.rb b/client/lib/fastcomments-client/models/post_flag_comment_response.rb deleted file mode 100644 index cf470b9..0000000 --- a/client/lib/fastcomments-client/models/post_flag_comment_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module PostFlagCommentResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/post_remove_comment_response.rb b/client/lib/fastcomments-client/models/post_remove_comment_response.rb index c035db6..72818b0 100644 --- a/client/lib/fastcomments-client/models/post_remove_comment_response.rb +++ b/client/lib/fastcomments-client/models/post_remove_comment_response.rb @@ -19,7 +19,6 @@ class << self # List of class defined in anyOf (OpenAPI v3) def openapi_any_of [ - :'APIError', :'DeleteCommentResult', :'RemoveCommentActionResponse' ] diff --git a/client/lib/fastcomments-client/models/post_restore_deleted_comment_response.rb b/client/lib/fastcomments-client/models/post_restore_deleted_comment_response.rb deleted file mode 100644 index f8db8ce..0000000 --- a/client/lib/fastcomments-client/models/post_restore_deleted_comment_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module PostRestoreDeletedCommentResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/post_set_comment_approval_status_response.rb b/client/lib/fastcomments-client/models/post_set_comment_approval_status_response.rb deleted file mode 100644 index 629e78e..0000000 --- a/client/lib/fastcomments-client/models/post_set_comment_approval_status_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module PostSetCommentApprovalStatusResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'SetCommentApprovedResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/post_set_comment_review_status_response.rb b/client/lib/fastcomments-client/models/post_set_comment_review_status_response.rb deleted file mode 100644 index 659a159..0000000 --- a/client/lib/fastcomments-client/models/post_set_comment_review_status_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module PostSetCommentReviewStatusResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/post_set_comment_spam_status_response.rb b/client/lib/fastcomments-client/models/post_set_comment_spam_status_response.rb deleted file mode 100644 index f13de21..0000000 --- a/client/lib/fastcomments-client/models/post_set_comment_spam_status_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module PostSetCommentSpamStatusResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/post_set_comment_text_response.rb b/client/lib/fastcomments-client/models/post_set_comment_text_response.rb deleted file mode 100644 index 54190b0..0000000 --- a/client/lib/fastcomments-client/models/post_set_comment_text_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module PostSetCommentTextResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'SetCommentTextResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/post_un_flag_comment_response.rb b/client/lib/fastcomments-client/models/post_un_flag_comment_response.rb deleted file mode 100644 index 772cf19..0000000 --- a/client/lib/fastcomments-client/models/post_un_flag_comment_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module PostUnFlagCommentResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/post_vote_response.rb b/client/lib/fastcomments-client/models/post_vote_response.rb deleted file mode 100644 index a666584..0000000 --- a/client/lib/fastcomments-client/models/post_vote_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module PostVoteResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'VoteResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/put_award_badge_response.rb b/client/lib/fastcomments-client/models/put_award_badge_response.rb deleted file mode 100644 index 21bd508..0000000 --- a/client/lib/fastcomments-client/models/put_award_badge_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module PutAwardBadgeResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'AwardUserBadgeResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/put_close_thread_response.rb b/client/lib/fastcomments-client/models/put_close_thread_response.rb deleted file mode 100644 index 4647874..0000000 --- a/client/lib/fastcomments-client/models/put_close_thread_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module PutCloseThreadResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/put_remove_badge_response.rb b/client/lib/fastcomments-client/models/put_remove_badge_response.rb deleted file mode 100644 index 2afbe5a..0000000 --- a/client/lib/fastcomments-client/models/put_remove_badge_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module PutRemoveBadgeResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'RemoveUserBadgeResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/put_reopen_thread_response.rb b/client/lib/fastcomments-client/models/put_reopen_thread_response.rb deleted file mode 100644 index 4ebc0c7..0000000 --- a/client/lib/fastcomments-client/models/put_reopen_thread_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module PutReopenThreadResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/react_feed_post_public_response.rb b/client/lib/fastcomments-client/models/react_feed_post_public_response.rb deleted file mode 100644 index 6039784..0000000 --- a/client/lib/fastcomments-client/models/react_feed_post_public_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module ReactFeedPostPublicResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'ReactFeedPostResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/render_email_template_response1.rb b/client/lib/fastcomments-client/models/render_email_template_response1.rb deleted file mode 100644 index 05b9227..0000000 --- a/client/lib/fastcomments-client/models/render_email_template_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module RenderEmailTemplateResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'RenderEmailTemplateResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/replace_tenant_package_response.rb b/client/lib/fastcomments-client/models/replace_tenant_package_response.rb deleted file mode 100644 index ea7564a..0000000 --- a/client/lib/fastcomments-client/models/replace_tenant_package_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module ReplaceTenantPackageResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/replace_tenant_user_response.rb b/client/lib/fastcomments-client/models/replace_tenant_user_response.rb deleted file mode 100644 index b873c53..0000000 --- a/client/lib/fastcomments-client/models/replace_tenant_user_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module ReplaceTenantUserResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/reset_user_notification_count_response.rb b/client/lib/fastcomments-client/models/reset_user_notification_count_response.rb deleted file mode 100644 index e647afb..0000000 --- a/client/lib/fastcomments-client/models/reset_user_notification_count_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module ResetUserNotificationCountResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'ResetUserNotificationsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/reset_user_notifications_response1.rb b/client/lib/fastcomments-client/models/reset_user_notifications_response1.rb deleted file mode 100644 index 2a681de..0000000 --- a/client/lib/fastcomments-client/models/reset_user_notifications_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module ResetUserNotificationsResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'ResetUserNotificationsResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/save_comment_response.rb b/client/lib/fastcomments-client/models/save_comment_response.rb deleted file mode 100644 index fda4ed4..0000000 --- a/client/lib/fastcomments-client/models/save_comment_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module SaveCommentResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'APISaveCommentResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/search_users_response1.rb b/client/lib/fastcomments-client/models/search_users_response1.rb deleted file mode 100644 index 3571bcd..0000000 --- a/client/lib/fastcomments-client/models/search_users_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module SearchUsersResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'SearchUsersResult' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/send_invite_response.rb b/client/lib/fastcomments-client/models/send_invite_response.rb deleted file mode 100644 index a460c00..0000000 --- a/client/lib/fastcomments-client/models/send_invite_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module SendInviteResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/send_login_link_response.rb b/client/lib/fastcomments-client/models/send_login_link_response.rb deleted file mode 100644 index 5a0a758..0000000 --- a/client/lib/fastcomments-client/models/send_login_link_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module SendLoginLinkResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/set_comment_text_response1.rb b/client/lib/fastcomments-client/models/set_comment_text_response1.rb deleted file mode 100644 index 654e88f..0000000 --- a/client/lib/fastcomments-client/models/set_comment_text_response1.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module SetCommentTextResponse1 - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'PublicAPISetCommentTextResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/set_trust_factor_response.rb b/client/lib/fastcomments-client/models/set_trust_factor_response.rb deleted file mode 100644 index 8cca6f0..0000000 --- a/client/lib/fastcomments-client/models/set_trust_factor_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module SetTrustFactorResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'SetUserTrustFactorResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/un_block_comment_public_response.rb b/client/lib/fastcomments-client/models/un_block_comment_public_response.rb deleted file mode 100644 index 6a7074e..0000000 --- a/client/lib/fastcomments-client/models/un_block_comment_public_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module UnBlockCommentPublicResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'UnblockSuccess' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/un_block_user_from_comment_response.rb b/client/lib/fastcomments-client/models/un_block_user_from_comment_response.rb deleted file mode 100644 index 7d9e645..0000000 --- a/client/lib/fastcomments-client/models/un_block_user_from_comment_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module UnBlockUserFromCommentResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'UnblockSuccess' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/un_flag_comment_response.rb b/client/lib/fastcomments-client/models/un_flag_comment_response.rb deleted file mode 100644 index 33d04c6..0000000 --- a/client/lib/fastcomments-client/models/un_flag_comment_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module UnFlagCommentResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'FlagCommentResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/un_lock_comment_response.rb b/client/lib/fastcomments-client/models/un_lock_comment_response.rb deleted file mode 100644 index 8a2436f..0000000 --- a/client/lib/fastcomments-client/models/un_lock_comment_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module UnLockCommentResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/un_pin_comment_response.rb b/client/lib/fastcomments-client/models/un_pin_comment_response.rb deleted file mode 100644 index 986ac3b..0000000 --- a/client/lib/fastcomments-client/models/un_pin_comment_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module UnPinCommentResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'ChangeCommentPinStatusResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/update_comment_response.rb b/client/lib/fastcomments-client/models/update_comment_response.rb deleted file mode 100644 index 2bcbe35..0000000 --- a/client/lib/fastcomments-client/models/update_comment_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module UpdateCommentResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/update_email_template_response.rb b/client/lib/fastcomments-client/models/update_email_template_response.rb deleted file mode 100644 index 2637518..0000000 --- a/client/lib/fastcomments-client/models/update_email_template_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module UpdateEmailTemplateResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/update_feed_post_public_response.rb b/client/lib/fastcomments-client/models/update_feed_post_public_response.rb deleted file mode 100644 index f7280cb..0000000 --- a/client/lib/fastcomments-client/models/update_feed_post_public_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module UpdateFeedPostPublicResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'CreateFeedPostResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/update_feed_post_response.rb b/client/lib/fastcomments-client/models/update_feed_post_response.rb deleted file mode 100644 index 0637b60..0000000 --- a/client/lib/fastcomments-client/models/update_feed_post_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module UpdateFeedPostResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/update_moderator_response.rb b/client/lib/fastcomments-client/models/update_moderator_response.rb deleted file mode 100644 index 202940a..0000000 --- a/client/lib/fastcomments-client/models/update_moderator_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module UpdateModeratorResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/update_notification_response.rb b/client/lib/fastcomments-client/models/update_notification_response.rb deleted file mode 100644 index 773e0a8..0000000 --- a/client/lib/fastcomments-client/models/update_notification_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module UpdateNotificationResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/update_question_config_response.rb b/client/lib/fastcomments-client/models/update_question_config_response.rb deleted file mode 100644 index 6f3f5ab..0000000 --- a/client/lib/fastcomments-client/models/update_question_config_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module UpdateQuestionConfigResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/update_question_result_response.rb b/client/lib/fastcomments-client/models/update_question_result_response.rb deleted file mode 100644 index c831390..0000000 --- a/client/lib/fastcomments-client/models/update_question_result_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module UpdateQuestionResultResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/update_tenant_package_response.rb b/client/lib/fastcomments-client/models/update_tenant_package_response.rb deleted file mode 100644 index 79de0e5..0000000 --- a/client/lib/fastcomments-client/models/update_tenant_package_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module UpdateTenantPackageResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/update_tenant_response.rb b/client/lib/fastcomments-client/models/update_tenant_response.rb deleted file mode 100644 index eacc102..0000000 --- a/client/lib/fastcomments-client/models/update_tenant_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module UpdateTenantResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/update_tenant_user_response.rb b/client/lib/fastcomments-client/models/update_tenant_user_response.rb deleted file mode 100644 index 1d9892d..0000000 --- a/client/lib/fastcomments-client/models/update_tenant_user_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module UpdateTenantUserResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptyResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/update_user_badge_response.rb b/client/lib/fastcomments-client/models/update_user_badge_response.rb deleted file mode 100644 index bb6cdf4..0000000 --- a/client/lib/fastcomments-client/models/update_user_badge_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module UpdateUserBadgeResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIEmptySuccessResponse', - :'APIError' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/update_user_notification_comment_subscription_status_response.rb b/client/lib/fastcomments-client/models/update_user_notification_comment_subscription_status_response.rb index e8fa0a6..e88b141 100644 --- a/client/lib/fastcomments-client/models/update_user_notification_comment_subscription_status_response.rb +++ b/client/lib/fastcomments-client/models/update_user_notification_comment_subscription_status_response.rb @@ -19,7 +19,6 @@ class << self # List of class defined in anyOf (OpenAPI v3) def openapi_any_of [ - :'APIError', :'IgnoredResponse', :'UserNotificationWriteResponse' ] diff --git a/client/lib/fastcomments-client/models/update_user_notification_page_subscription_status_response.rb b/client/lib/fastcomments-client/models/update_user_notification_page_subscription_status_response.rb index 891f0c3..491062d 100644 --- a/client/lib/fastcomments-client/models/update_user_notification_page_subscription_status_response.rb +++ b/client/lib/fastcomments-client/models/update_user_notification_page_subscription_status_response.rb @@ -19,7 +19,6 @@ class << self # List of class defined in anyOf (OpenAPI v3) def openapi_any_of [ - :'APIError', :'IgnoredResponse', :'UserNotificationWriteResponse' ] diff --git a/client/lib/fastcomments-client/models/update_user_notification_status_response.rb b/client/lib/fastcomments-client/models/update_user_notification_status_response.rb index 977429b..fcba347 100644 --- a/client/lib/fastcomments-client/models/update_user_notification_status_response.rb +++ b/client/lib/fastcomments-client/models/update_user_notification_status_response.rb @@ -19,7 +19,6 @@ class << self # List of class defined in anyOf (OpenAPI v3) def openapi_any_of [ - :'APIError', :'IgnoredResponse', :'UserNotificationWriteResponse' ] diff --git a/client/lib/fastcomments-client/models/vote_comment_response.rb b/client/lib/fastcomments-client/models/vote_comment_response.rb deleted file mode 100644 index a67f1ab..0000000 --- a/client/lib/fastcomments-client/models/vote_comment_response.rb +++ /dev/null @@ -1,103 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module VoteCommentResponse - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIError', - :'VoteResponse' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - return find_and_cast_into_type(klass, data) - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/spec/api/default_api_spec.rb b/client/spec/api/default_api_spec.rb index 1749d40..d5c2e3e 100644 --- a/client/spec/api/default_api_spec.rb +++ b/client/spec/api/default_api_spec.rb @@ -47,7 +47,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [CreateHashTagBody] :create_hash_tag_body - # @return [AddHashTagResponse] + # @return [CreateHashTagResponse] describe 'add_hash_tag test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -58,7 +58,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [BulkCreateHashTagsBody] :bulk_create_hash_tags_body - # @return [AddHashTagsBulkResponse] + # @return [BulkCreateHashTagsResponse] describe 'add_hash_tags_bulk test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -110,7 +110,7 @@ # @option opts [AggregateTimeBucket] :time_bucket # @option opts [Time] :start_date # @option opts [Boolean] :force_recalculate - # @return [AggregateQuestionResultsResponse1] + # @return [AggregateQuestionResultsResponse] describe 'aggregate_question_results test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -124,7 +124,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [BlockUserFromCommentResponse] + # @return [BlockSuccess] describe 'block_user_from_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -136,7 +136,7 @@ # @param bulk_aggregate_question_results_request # @param [Hash] opts the optional parameters # @option opts [Boolean] :force_recalculate - # @return [BulkAggregateQuestionResultsResponse1] + # @return [BulkAggregateQuestionResultsResponse] describe 'bulk_aggregate_question_results test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -149,7 +149,7 @@ # @param id # @param change_ticket_state_body # @param [Hash] opts the optional parameters - # @return [ChangeTicketStateResponse1] + # @return [ChangeTicketStateResponse] describe 'change_ticket_state test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -167,7 +167,7 @@ # @option opts [Float] :min_value # @option opts [Float] :max_value # @option opts [Float] :limit - # @return [CombineCommentsWithQuestionResultsResponse] + # @return [CombineQuestionResultsWithCommentsResponse] describe 'combine_comments_with_question_results test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -178,7 +178,7 @@ # @param tenant_id # @param create_email_template_body # @param [Hash] opts the optional parameters - # @return [CreateEmailTemplateResponse1] + # @return [CreateEmailTemplateResponse] describe 'create_email_template test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -193,7 +193,7 @@ # @option opts [Boolean] :is_live # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :skip_dup_check - # @return [CreateFeedPostResponse1] + # @return [CreateFeedPostsResponse] describe 'create_feed_post test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -204,7 +204,7 @@ # @param tenant_id # @param create_moderator_body # @param [Hash] opts the optional parameters - # @return [CreateModeratorResponse1] + # @return [CreateModeratorResponse] describe 'create_moderator test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -215,7 +215,7 @@ # @param tenant_id # @param create_question_config_body # @param [Hash] opts the optional parameters - # @return [CreateQuestionConfigResponse1] + # @return [CreateQuestionConfigResponse] describe 'create_question_config test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -226,7 +226,7 @@ # @param tenant_id # @param create_question_result_body # @param [Hash] opts the optional parameters - # @return [CreateQuestionResultResponse1] + # @return [CreateQuestionResultResponse] describe 'create_question_result test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -248,7 +248,7 @@ # @param tenant_id # @param create_tenant_body # @param [Hash] opts the optional parameters - # @return [CreateTenantResponse1] + # @return [CreateTenantResponse] describe 'create_tenant test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -259,7 +259,7 @@ # @param tenant_id # @param create_tenant_package_body # @param [Hash] opts the optional parameters - # @return [CreateTenantPackageResponse1] + # @return [CreateTenantPackageResponse] describe 'create_tenant_package test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -270,7 +270,7 @@ # @param tenant_id # @param create_tenant_user_body # @param [Hash] opts the optional parameters - # @return [CreateTenantUserResponse1] + # @return [CreateTenantUserResponse] describe 'create_tenant_user test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -282,7 +282,7 @@ # @param user_id # @param create_ticket_body # @param [Hash] opts the optional parameters - # @return [CreateTicketResponse1] + # @return [CreateTicketResponse] describe 'create_ticket test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -293,7 +293,7 @@ # @param tenant_id # @param create_user_badge_params # @param [Hash] opts the optional parameters - # @return [CreateUserBadgeResponse] + # @return [APICreateUserBadgeResponse] describe 'create_user_badge test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -307,7 +307,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [CreateVoteResponse] + # @return [VoteResponse] describe 'create_vote test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -320,7 +320,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :context_user_id # @option opts [Boolean] :is_live - # @return [DeleteCommentResponse] + # @return [DeleteCommentResult] describe 'delete_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -342,7 +342,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [DeleteEmailTemplateResponse] + # @return [APIEmptyResponse] describe 'delete_email_template test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -354,7 +354,7 @@ # @param id # @param error_id # @param [Hash] opts the optional parameters - # @return [DeleteEmailTemplateRenderErrorResponse] + # @return [APIEmptyResponse] describe 'delete_email_template_render_error test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -366,7 +366,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [DeleteHashTagRequestBody] :delete_hash_tag_request_body - # @return [DeleteHashTagResponse] + # @return [APIEmptyResponse] describe 'delete_hash_tag test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -378,7 +378,7 @@ # @param id # @param [Hash] opts the optional parameters # @option opts [String] :send_email - # @return [DeleteModeratorResponse] + # @return [APIEmptyResponse] describe 'delete_moderator test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -389,7 +389,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [DeleteNotificationCountResponse] + # @return [APIEmptyResponse] describe 'delete_notification_count test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -411,7 +411,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [DeletePendingWebhookEventResponse] + # @return [APIEmptyResponse] describe 'delete_pending_webhook_event test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -422,7 +422,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [DeleteQuestionConfigResponse] + # @return [APIEmptyResponse] describe 'delete_question_config test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -433,7 +433,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [DeleteQuestionResultResponse] + # @return [APIEmptyResponse] describe 'delete_question_result test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -470,7 +470,7 @@ # @param id # @param [Hash] opts the optional parameters # @option opts [String] :sure - # @return [DeleteTenantResponse] + # @return [APIEmptyResponse] describe 'delete_tenant test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -481,7 +481,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [DeleteTenantPackageResponse] + # @return [APIEmptyResponse] describe 'delete_tenant_package test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -494,7 +494,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :delete_comments # @option opts [String] :comment_delete_mode - # @return [DeleteTenantUserResponse] + # @return [APIEmptyResponse] describe 'delete_tenant_user test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -505,7 +505,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [DeleteUserBadgeResponse] + # @return [APIEmptySuccessResponse] describe 'delete_user_badge test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -517,7 +517,7 @@ # @param id # @param [Hash] opts the optional parameters # @option opts [String] :edit_key - # @return [DeleteVoteResponse] + # @return [VoteDeleteResponse] describe 'delete_vote test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -530,7 +530,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [FlagCommentResponse1] + # @return [FlagCommentResponse] describe 'flag_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -545,7 +545,7 @@ # @option opts [SORTDIR] :order # @option opts [Float] :after # @option opts [Float] :before - # @return [GetAuditLogsResponse1] + # @return [GetAuditLogsResponse] describe 'get_audit_logs test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -556,7 +556,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [GetCachedNotificationCountResponse1] + # @return [GetCachedNotificationCountResponse] describe 'get_cached_notification_count test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -567,7 +567,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [GetCommentResponse] + # @return [APIGetCommentResponse] describe 'get_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -593,7 +593,7 @@ # @option opts [SortDirections] :direction # @option opts [Integer] :from_date # @option opts [Integer] :to_date - # @return [GetCommentsResponse] + # @return [APIGetCommentsResponse] describe 'get_comments test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -625,7 +625,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [GetEmailTemplateResponse1] + # @return [GetEmailTemplateResponse] describe 'get_email_template test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -635,7 +635,7 @@ # unit tests for get_email_template_definitions # @param tenant_id # @param [Hash] opts the optional parameters - # @return [GetEmailTemplateDefinitionsResponse1] + # @return [GetEmailTemplateDefinitionsResponse] describe 'get_email_template_definitions test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -647,7 +647,7 @@ # @param id # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [GetEmailTemplateRenderErrorsResponse1] + # @return [GetEmailTemplateRenderErrorsResponse] describe 'get_email_template_render_errors test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -658,7 +658,7 @@ # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [GetEmailTemplatesResponse1] + # @return [GetEmailTemplatesResponse] describe 'get_email_templates test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -672,7 +672,7 @@ # @option opts [String] :after_id # @option opts [Integer] :limit # @option opts [Array] :tags - # @return [GetFeedPostsResponse1] + # @return [GetFeedPostsResponse] describe 'get_feed_posts test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -683,7 +683,7 @@ # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [Float] :page - # @return [GetHashTagsResponse1] + # @return [GetHashTagsResponse] describe 'get_hash_tags test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -694,7 +694,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [GetModeratorResponse1] + # @return [GetModeratorResponse] describe 'get_moderator test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -705,7 +705,7 @@ # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [GetModeratorsResponse1] + # @return [GetModeratorsResponse] describe 'get_moderators test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -720,7 +720,7 @@ # @option opts [String] :from_comment_id # @option opts [Boolean] :viewed # @option opts [String] :type - # @return [GetNotificationCountResponse1] + # @return [GetNotificationCountResponse] describe 'get_notification_count test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -736,7 +736,7 @@ # @option opts [Boolean] :viewed # @option opts [String] :type # @option opts [Float] :skip - # @return [GetNotificationsResponse1] + # @return [GetNotificationsResponse] describe 'get_notifications test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -773,7 +773,7 @@ # @option opts [String] :type # @option opts [String] :domain # @option opts [Float] :attempt_count_gt - # @return [GetPendingWebhookEventCountResponse1] + # @return [GetPendingWebhookEventCountResponse] describe 'get_pending_webhook_event_count test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -790,7 +790,7 @@ # @option opts [String] :domain # @option opts [Float] :attempt_count_gt # @option opts [Float] :skip - # @return [GetPendingWebhookEventsResponse1] + # @return [GetPendingWebhookEventsResponse] describe 'get_pending_webhook_events test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -801,7 +801,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [GetQuestionConfigResponse1] + # @return [GetQuestionConfigResponse] describe 'get_question_config test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -812,7 +812,7 @@ # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [GetQuestionConfigsResponse1] + # @return [GetQuestionConfigsResponse] describe 'get_question_configs test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -823,7 +823,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [GetQuestionResultResponse1] + # @return [GetQuestionResultResponse] describe 'get_question_result test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -839,7 +839,7 @@ # @option opts [String] :question_id # @option opts [String] :question_ids # @option opts [Float] :skip - # @return [GetQuestionResultsResponse1] + # @return [GetQuestionResultsResponse] describe 'get_question_results test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -894,7 +894,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [GetTenantResponse1] + # @return [GetTenantResponse] describe 'get_tenant test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -908,7 +908,7 @@ # @option opts [Float] :month_number # @option opts [Float] :day_number # @option opts [Float] :skip - # @return [GetTenantDailyUsagesResponse1] + # @return [GetTenantDailyUsagesResponse] describe 'get_tenant_daily_usages test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -919,7 +919,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [GetTenantPackageResponse1] + # @return [GetTenantPackageResponse] describe 'get_tenant_package test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -930,7 +930,7 @@ # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [GetTenantPackagesResponse1] + # @return [GetTenantPackagesResponse] describe 'get_tenant_packages test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -941,7 +941,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [GetTenantUserResponse1] + # @return [GetTenantUserResponse] describe 'get_tenant_user test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -952,7 +952,7 @@ # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [Float] :skip - # @return [GetTenantUsersResponse1] + # @return [GetTenantUsersResponse] describe 'get_tenant_users test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -964,7 +964,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :meta # @option opts [Float] :skip - # @return [GetTenantsResponse1] + # @return [GetTenantsResponse] describe 'get_tenants test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -976,7 +976,7 @@ # @param id # @param [Hash] opts the optional parameters # @option opts [String] :user_id - # @return [GetTicketResponse1] + # @return [GetTicketResponse] describe 'get_ticket test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -990,7 +990,7 @@ # @option opts [Float] :state # @option opts [Float] :skip # @option opts [Float] :limit - # @return [GetTicketsResponse1] + # @return [GetTicketsResponse] describe 'get_tickets test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1001,7 +1001,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [GetUserResponse1] + # @return [GetUserResponse] describe 'get_user test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1012,7 +1012,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [GetUserBadgeResponse] + # @return [APIGetUserBadgeResponse] describe 'get_user_badge test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1023,7 +1023,7 @@ # @param tenant_id # @param id # @param [Hash] opts the optional parameters - # @return [GetUserBadgeProgressByIdResponse] + # @return [APIGetUserBadgeProgressResponse] describe 'get_user_badge_progress_by_id test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1034,7 +1034,7 @@ # @param tenant_id # @param user_id # @param [Hash] opts the optional parameters - # @return [GetUserBadgeProgressByUserIdResponse] + # @return [APIGetUserBadgeProgressResponse] describe 'get_user_badge_progress_by_user_id test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1047,7 +1047,7 @@ # @option opts [String] :user_id # @option opts [Float] :limit # @option opts [Float] :skip - # @return [GetUserBadgeProgressListResponse] + # @return [APIGetUserBadgeProgressListResponse] describe 'get_user_badge_progress_list test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1063,7 +1063,7 @@ # @option opts [Boolean] :displayed_on_comments # @option opts [Float] :limit # @option opts [Float] :skip - # @return [GetUserBadgesResponse] + # @return [APIGetUserBadgesResponse] describe 'get_user_badges test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1074,7 +1074,7 @@ # @param tenant_id # @param url_id # @param [Hash] opts the optional parameters - # @return [GetVotesResponse1] + # @return [GetVotesResponse] describe 'get_votes test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1087,7 +1087,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [GetVotesForUserResponse1] + # @return [GetVotesForUserResponse] describe 'get_votes_for_user test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1111,7 +1111,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [UpdateHashTagBody] :update_hash_tag_body - # @return [PatchHashTagResponse] + # @return [UpdateHashTagResponse] describe 'patch_hash_tag test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1173,7 +1173,7 @@ # @param render_email_template_body # @param [Hash] opts the optional parameters # @option opts [String] :locale - # @return [RenderEmailTemplateResponse1] + # @return [RenderEmailTemplateResponse] describe 'render_email_template test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1185,7 +1185,7 @@ # @param id # @param replace_tenant_package_body # @param [Hash] opts the optional parameters - # @return [ReplaceTenantPackageResponse] + # @return [APIEmptyResponse] describe 'replace_tenant_package test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1198,7 +1198,7 @@ # @param replace_tenant_user_body # @param [Hash] opts the optional parameters # @option opts [String] :update_comments - # @return [ReplaceTenantUserResponse] + # @return [APIEmptyResponse] describe 'replace_tenant_user test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1213,7 +1213,7 @@ # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :send_emails # @option opts [Boolean] :populate_notifications - # @return [SaveCommentResponse] + # @return [APISaveCommentResponse] describe 'save_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1240,7 +1240,7 @@ # @param id # @param from_name # @param [Hash] opts the optional parameters - # @return [SendInviteResponse] + # @return [APIEmptyResponse] describe 'send_invite test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1252,7 +1252,7 @@ # @param id # @param [Hash] opts the optional parameters # @option opts [String] :redirect_url - # @return [SendLoginLinkResponse] + # @return [APIEmptyResponse] describe 'send_login_link test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1266,7 +1266,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [UnBlockUserFromCommentResponse] + # @return [UnblockSuccess] describe 'un_block_user_from_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1279,7 +1279,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id - # @return [UnFlagCommentResponse] + # @return [FlagCommentResponse] describe 'un_flag_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1294,7 +1294,7 @@ # @option opts [String] :context_user_id # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :is_live - # @return [UpdateCommentResponse] + # @return [APIEmptyResponse] describe 'update_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1306,7 +1306,7 @@ # @param id # @param update_email_template_body # @param [Hash] opts the optional parameters - # @return [UpdateEmailTemplateResponse] + # @return [APIEmptyResponse] describe 'update_email_template test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1318,7 +1318,7 @@ # @param id # @param feed_post # @param [Hash] opts the optional parameters - # @return [UpdateFeedPostResponse] + # @return [APIEmptyResponse] describe 'update_feed_post test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1330,7 +1330,7 @@ # @param id # @param update_moderator_body # @param [Hash] opts the optional parameters - # @return [UpdateModeratorResponse] + # @return [APIEmptyResponse] describe 'update_moderator test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1343,7 +1343,7 @@ # @param update_notification_body # @param [Hash] opts the optional parameters # @option opts [String] :user_id - # @return [UpdateNotificationResponse] + # @return [APIEmptyResponse] describe 'update_notification test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1355,7 +1355,7 @@ # @param id # @param update_question_config_body # @param [Hash] opts the optional parameters - # @return [UpdateQuestionConfigResponse] + # @return [APIEmptyResponse] describe 'update_question_config test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1367,7 +1367,7 @@ # @param id # @param update_question_result_body # @param [Hash] opts the optional parameters - # @return [UpdateQuestionResultResponse] + # @return [APIEmptyResponse] describe 'update_question_result test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1392,7 +1392,7 @@ # @param id # @param update_tenant_body # @param [Hash] opts the optional parameters - # @return [UpdateTenantResponse] + # @return [APIEmptyResponse] describe 'update_tenant test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1404,7 +1404,7 @@ # @param id # @param update_tenant_package_body # @param [Hash] opts the optional parameters - # @return [UpdateTenantPackageResponse] + # @return [APIEmptyResponse] describe 'update_tenant_package test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1417,7 +1417,7 @@ # @param update_tenant_user_body # @param [Hash] opts the optional parameters # @option opts [String] :update_comments - # @return [UpdateTenantUserResponse] + # @return [APIEmptyResponse] describe 'update_tenant_user test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1429,7 +1429,7 @@ # @param id # @param update_user_badge_params # @param [Hash] opts the optional parameters - # @return [UpdateUserBadgeResponse] + # @return [APIEmptySuccessResponse] describe 'update_user_badge test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/client/spec/api/moderation_api_spec.rb b/client/spec/api/moderation_api_spec.rb index 5f68a3f..7465c71 100644 --- a/client/spec/api/moderation_api_spec.rb +++ b/client/spec/api/moderation_api_spec.rb @@ -39,7 +39,7 @@ # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [DeleteModerationVoteResponse] + # @return [VoteDeleteResponse] describe 'delete_moderation_vote test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -58,7 +58,7 @@ # @option opts [Boolean] :demo # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetApiCommentsResponse] + # @return [ModerationAPIGetCommentsResponse] describe 'get_api_comments test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -70,7 +70,7 @@ # @option opts [String] :batch_job_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetApiExportStatusResponse] + # @return [ModerationExportStatusResponse] describe 'get_api_export_status test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -87,7 +87,7 @@ # @option opts [Boolean] :demo # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetApiIdsResponse] + # @return [ModerationAPIGetCommentIdsResponse] describe 'get_api_ids test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -99,7 +99,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetBanUsersFromCommentResponse] + # @return [GetBannedUsersFromCommentResponse] describe 'get_ban_users_from_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -111,7 +111,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetCommentBanStatusResponse1] + # @return [GetCommentBanStatusResponse] describe 'get_comment_ban_status test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -123,7 +123,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetCommentChildrenResponse] + # @return [ModerationAPIChildCommentsResponse] describe 'get_comment_children test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -139,7 +139,7 @@ # @option opts [Boolean] :demo # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetCountResponse] + # @return [ModerationAPICountCommentsResponse] describe 'get_count test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -150,7 +150,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetCountsResponse] + # @return [GetBannedUsersCountResponse] describe 'get_counts test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -162,7 +162,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetLogsResponse] + # @return [ModerationAPIGetLogsResponse] describe 'get_logs test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -173,7 +173,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetManualBadgesResponse] + # @return [GetTenantManualBadgesResponse] describe 'get_manual_badges test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -186,7 +186,7 @@ # @option opts [String] :comment_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetManualBadgesForUserResponse] + # @return [GetUserManualBadgesResponse] describe 'get_manual_badges_for_user test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -200,7 +200,7 @@ # @option opts [Boolean] :include_ip # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetModerationCommentResponse] + # @return [ModerationAPICommentResponse] describe 'get_moderation_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -212,7 +212,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetModerationCommentTextResponse] + # @return [GetCommentTextResponse] describe 'get_moderation_comment_text test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -227,7 +227,7 @@ # @option opts [Boolean] :include_by_email_domain # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetPreBanSummaryResponse] + # @return [PreBanSummary] describe 'get_pre_ban_summary test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -241,7 +241,7 @@ # @option opts [String] :search_filters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetSearchCommentsSummaryResponse] + # @return [ModerationCommentSearchResponse] describe 'get_search_comments_summary test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -253,7 +253,7 @@ # @option opts [String] :value # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetSearchPagesResponse] + # @return [ModerationPageSearchResponse] describe 'get_search_pages test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -265,7 +265,7 @@ # @option opts [String] :value # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetSearchSitesResponse] + # @return [ModerationSiteSearchResponse] describe 'get_search_sites test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -277,7 +277,7 @@ # @option opts [String] :text_search # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetSearchSuggestResponse] + # @return [ModerationSuggestResponse] describe 'get_search_suggest test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -289,7 +289,7 @@ # @option opts [String] :value # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetSearchUsersResponse] + # @return [ModerationUserSearchResponse] describe 'get_search_users test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -301,7 +301,7 @@ # @option opts [String] :user_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetTrustFactorResponse] + # @return [GetUserTrustFactorResponse] describe 'get_trust_factor test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -312,7 +312,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetUserBanPreferenceResponse] + # @return [APIModerateGetUserBanPreferencesResponse] describe 'get_user_ban_preference test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -324,7 +324,7 @@ # @option opts [String] :comment_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [GetUserInternalProfileResponse1] + # @return [GetUserInternalProfileResponse] describe 'get_user_internal_profile test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -338,7 +338,7 @@ # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostAdjustCommentVotesResponse] + # @return [AdjustVotesResponse] describe 'post_adjust_comment_votes test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -354,7 +354,7 @@ # @option opts [String] :sorts # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostApiExportResponse] + # @return [ModerationExportResponse] describe 'post_api_export test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -374,7 +374,7 @@ # @option opts [String] :ban_reason # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostBanUserFromCommentResponse] + # @return [BanUserFromCommentResult] describe 'post_ban_user_from_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -386,7 +386,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostBanUserUndoResponse] + # @return [APIEmptyResponse] describe 'post_ban_user_undo test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -401,7 +401,7 @@ # @option opts [Boolean] :include_by_email_domain # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostBulkPreBanSummaryResponse] + # @return [BulkPreBanSummary] describe 'post_bulk_pre_ban_summary test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -413,7 +413,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostCommentsByIdsResponse] + # @return [ModerationAPIChildCommentsResponse] describe 'post_comments_by_ids test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -426,7 +426,7 @@ # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostFlagCommentResponse] + # @return [APIEmptyResponse] describe 'post_flag_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -452,7 +452,7 @@ # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostRestoreDeletedCommentResponse] + # @return [APIEmptyResponse] describe 'post_restore_deleted_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -466,7 +466,7 @@ # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostSetCommentApprovalStatusResponse] + # @return [SetCommentApprovedResponse] describe 'post_set_comment_approval_status test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -480,7 +480,7 @@ # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostSetCommentReviewStatusResponse] + # @return [APIEmptyResponse] describe 'post_set_comment_review_status test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -495,7 +495,7 @@ # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostSetCommentSpamStatusResponse] + # @return [APIEmptyResponse] describe 'post_set_comment_spam_status test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -509,7 +509,7 @@ # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostSetCommentTextResponse] + # @return [SetCommentTextResponse] describe 'post_set_comment_text test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -522,7 +522,7 @@ # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostUnFlagCommentResponse] + # @return [APIEmptyResponse] describe 'post_un_flag_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -536,7 +536,7 @@ # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PostVoteResponse] + # @return [VoteResponse] describe 'post_vote test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -551,7 +551,7 @@ # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PutAwardBadgeResponse] + # @return [AwardUserBadgeResponse] describe 'put_award_badge test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -563,7 +563,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PutCloseThreadResponse] + # @return [APIEmptyResponse] describe 'put_close_thread test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -578,7 +578,7 @@ # @option opts [String] :broadcast_id # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PutRemoveBadgeResponse] + # @return [RemoveUserBadgeResponse] describe 'put_remove_badge test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -590,7 +590,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [PutReopenThreadResponse] + # @return [APIEmptyResponse] describe 'put_reopen_thread test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -603,7 +603,7 @@ # @option opts [String] :trust_factor # @option opts [String] :tenant_id # @option opts [String] :sso - # @return [SetTrustFactorResponse] + # @return [SetUserTrustFactorResponse] describe 'set_trust_factor test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/client/spec/api/public_api_spec.rb b/client/spec/api/public_api_spec.rb index 1577749..e68b21d 100644 --- a/client/spec/api/public_api_spec.rb +++ b/client/spec/api/public_api_spec.rb @@ -38,7 +38,7 @@ # @param public_block_from_comment_params # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [BlockFromCommentPublicResponse] + # @return [BlockSuccess] describe 'block_from_comment_public test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -50,7 +50,7 @@ # @param comment_ids A comma separated list of comment ids. # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [CheckedCommentsForBlockedResponse] + # @return [CheckBlockedCommentsResponse] describe 'checked_comments_for_blocked test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -65,7 +65,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :session_id # @option opts [String] :sso - # @return [CreateCommentPublicResponse] + # @return [SaveCommentsResponseWithPresence] describe 'create_comment_public test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -78,7 +78,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :broadcast_id # @option opts [String] :sso - # @return [CreateFeedPostPublicResponse] + # @return [CreateFeedPostResponse] describe 'create_feed_post_public test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -90,7 +90,7 @@ # @param url_id # @param [Hash] opts the optional parameters # @option opts [String] :title - # @return [CreateV1PageReactResponse] + # @return [CreateV1PageReact] describe 'create_v1_page_react test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -103,7 +103,7 @@ # @param id # @param [Hash] opts the optional parameters # @option opts [String] :title - # @return [CreateV2PageReactResponse] + # @return [CreateV1PageReact] describe 'create_v2_page_react test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -117,7 +117,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso - # @return [DeleteCommentPublicResponse] + # @return [PublicAPIDeleteCommentResponse] describe 'delete_comment_public test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -133,7 +133,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso - # @return [DeleteCommentVoteResponse] + # @return [VoteDeleteResponse] describe 'delete_comment_vote test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -157,7 +157,7 @@ # @param tenant_id # @param url_id # @param [Hash] opts the optional parameters - # @return [DeleteV1PageReactResponse] + # @return [CreateV1PageReact] describe 'delete_v1_page_react test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -169,7 +169,7 @@ # @param url_id # @param id # @param [Hash] opts the optional parameters - # @return [DeleteV2PageReactResponse] + # @return [CreateV1PageReact] describe 'delete_v2_page_react test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -182,7 +182,7 @@ # @param is_flagged # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [FlagCommentPublicResponse] + # @return [APIEmptyResponse] describe 'flag_comment_public test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -195,7 +195,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso - # @return [GetCommentTextResponse1] + # @return [PublicAPIGetCommentTextResponse] describe 'get_comment_text test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -208,7 +208,7 @@ # @param dir # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [GetCommentVoteUserNamesResponse] + # @return [GetCommentVoteUserNamesSuccessResponse] describe 'get_comment_vote_user_names test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -224,7 +224,7 @@ # @option opts [Boolean] :includei10n # @option opts [String] :locale # @option opts [Boolean] :is_crawler - # @return [GetCommentsForUserResponse1] + # @return [GetCommentsForUserResponse] describe 'get_comments_for_user test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -262,7 +262,7 @@ # @option opts [String] :custom_config_str # @option opts [String] :after_comment_id # @option opts [String] :before_comment_id - # @return [GetCommentsPublicResponse] + # @return [GetCommentsResponseWithPresencePublicComment] describe 'get_comments_public test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -277,7 +277,7 @@ # @param start_time # @param [Hash] opts the optional parameters # @option opts [Integer] :end_time - # @return [GetEventLogResponse1] + # @return [GetEventLogResponse] describe 'get_event_log test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -294,7 +294,7 @@ # @option opts [String] :sso # @option opts [Boolean] :is_crawler # @option opts [Boolean] :include_user_info - # @return [GetFeedPostsPublicResponse] + # @return [PublicFeedPostsResponse] describe 'get_feed_posts_public test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -306,7 +306,7 @@ # @param post_ids # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [GetFeedPostsStatsResponse] + # @return [FeedPostsStatsResponse] describe 'get_feed_posts_stats test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -317,7 +317,7 @@ # @param tenant_id # @param large_internal_url_sanitized # @param [Hash] opts the optional parameters - # @return [GetGifLargeResponse] + # @return [GifGetLargeResponse] describe 'get_gif_large test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -359,7 +359,7 @@ # @param start_time # @param [Hash] opts the optional parameters # @option opts [Integer] :end_time - # @return [GetGlobalEventLogResponse] + # @return [GetEventLogResponse] describe 'get_global_event_log test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -373,7 +373,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :after_name Cursor: pass nextAfterName from the previous response. # @option opts [String] :after_user_id Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. - # @return [GetOfflineUsersResponse] + # @return [PageUsersOfflineResponse] describe 'get_offline_users test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -387,7 +387,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :after_name Cursor: pass nextAfterName from the previous response. # @option opts [String] :after_user_id Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. - # @return [GetOnlineUsersResponse] + # @return [PageUsersOnlineResponse] describe 'get_online_users test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -403,7 +403,7 @@ # @option opts [String] :q Optional case-insensitive title prefix filter. # @option opts [PagesSortBy] :sort_by Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). # @option opts [Boolean] :has_comments If true, only return pages with at least one comment. - # @return [GetPagesPublicResponse] + # @return [GetPublicPagesResponse] describe 'get_pages_public test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -416,7 +416,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :locale # @option opts [Boolean] :use_full_translation_ids - # @return [GetTranslationsResponse1] + # @return [GetTranslationsResponse] describe 'get_translations test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -427,7 +427,7 @@ # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [GetUserNotificationCountResponse1] + # @return [GetUserNotificationCountResponse] describe 'get_user_notification_count test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -448,7 +448,7 @@ # @option opts [Boolean] :include_translations # @option opts [Boolean] :include_tenant_notifications # @option opts [String] :sso - # @return [GetUserNotificationsResponse] + # @return [GetMyNotificationsResponse] describe 'get_user_notifications test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -460,7 +460,7 @@ # @param url_id_ws # @param user_ids # @param [Hash] opts the optional parameters - # @return [GetUserPresenceStatusesResponse1] + # @return [GetUserPresenceStatusesResponse] describe 'get_user_presence_statuses test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -472,7 +472,7 @@ # @param [Hash] opts the optional parameters # @option opts [Array] :post_ids # @option opts [String] :sso - # @return [GetUserReactsPublicResponse] + # @return [UserReactsResponse] describe 'get_user_reacts_public test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -484,7 +484,7 @@ # @param tenant_id # @param ids Comma-delimited userIds. # @param [Hash] opts the optional parameters - # @return [GetUsersInfoResponse] + # @return [PageUsersInfoResponse] describe 'get_users_info test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -495,7 +495,7 @@ # @param tenant_id # @param url_id # @param [Hash] opts the optional parameters - # @return [GetV1PageLikesResponse] + # @return [GetV1PageLikes] describe 'get_v1_page_likes test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -507,7 +507,7 @@ # @param url_id # @param id # @param [Hash] opts the optional parameters - # @return [GetV2PageReactUsersResponse1] + # @return [GetV2PageReactUsersResponse] describe 'get_v2_page_react_users test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -518,7 +518,7 @@ # @param tenant_id # @param url_id # @param [Hash] opts the optional parameters - # @return [GetV2PageReactsResponse] + # @return [GetV2PageReacts] describe 'get_v2_page_reacts test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -531,7 +531,7 @@ # @param broadcast_id # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [LockCommentResponse] + # @return [APIEmptyResponse] describe 'lock_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -553,7 +553,7 @@ # @param broadcast_id # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [PinCommentResponse] + # @return [ChangeCommentPinStatusResponse] describe 'pin_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -568,7 +568,7 @@ # @option opts [Boolean] :is_undo # @option opts [String] :broadcast_id # @option opts [String] :sso - # @return [ReactFeedPostPublicResponse] + # @return [ReactFeedPostResponse] describe 'react_feed_post_public test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -579,7 +579,7 @@ # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [ResetUserNotificationCountResponse] + # @return [ResetUserNotificationsResponse] describe 'reset_user_notification_count test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -595,7 +595,7 @@ # @option opts [Boolean] :dm_only # @option opts [Boolean] :no_dm # @option opts [String] :sso - # @return [ResetUserNotificationsResponse1] + # @return [ResetUserNotificationsResponse] describe 'reset_user_notifications test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -610,7 +610,7 @@ # @option opts [Array] :mention_group_ids # @option opts [String] :sso # @option opts [String] :search_section - # @return [SearchUsersResponse1] + # @return [SearchUsersResult] describe 'search_users test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -625,7 +625,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso - # @return [SetCommentTextResponse1] + # @return [PublicAPISetCommentTextResponse] describe 'set_comment_text test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -638,7 +638,7 @@ # @param public_block_from_comment_params # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [UnBlockCommentPublicResponse] + # @return [UnblockSuccess] describe 'un_block_comment_public test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -651,7 +651,7 @@ # @param broadcast_id # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [UnLockCommentResponse] + # @return [APIEmptyResponse] describe 'un_lock_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -664,7 +664,7 @@ # @param broadcast_id # @param [Hash] opts the optional parameters # @option opts [String] :sso - # @return [UnPinCommentResponse] + # @return [ChangeCommentPinStatusResponse] describe 'un_pin_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -678,7 +678,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :broadcast_id # @option opts [String] :sso - # @return [UpdateFeedPostPublicResponse] + # @return [CreateFeedPostResponse] describe 'update_feed_post_public test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -752,7 +752,7 @@ # @param [Hash] opts the optional parameters # @option opts [String] :session_id # @option opts [String] :sso - # @return [VoteCommentResponse] + # @return [VoteResponse] describe 'vote_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/client/spec/models/add_hash_tag_response_spec.rb b/client/spec/models/add_hash_tag_response_spec.rb deleted file mode 100644 index 4e7664d..0000000 --- a/client/spec/models/add_hash_tag_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::AddHashTagResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::AddHashTagResponse do -end diff --git a/client/spec/models/add_hash_tags_bulk_response_spec.rb b/client/spec/models/add_hash_tags_bulk_response_spec.rb deleted file mode 100644 index 67f41a6..0000000 --- a/client/spec/models/add_hash_tags_bulk_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::AddHashTagsBulkResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::AddHashTagsBulkResponse do -end diff --git a/client/spec/models/aggregate_question_results_response1_spec.rb b/client/spec/models/aggregate_question_results_response1_spec.rb deleted file mode 100644 index 4e0f372..0000000 --- a/client/spec/models/aggregate_question_results_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::AggregateQuestionResultsResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::AggregateQuestionResultsResponse1 do -end diff --git a/client/spec/models/block_from_comment_public_response_spec.rb b/client/spec/models/block_from_comment_public_response_spec.rb deleted file mode 100644 index 8d9b8f1..0000000 --- a/client/spec/models/block_from_comment_public_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::BlockFromCommentPublicResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::BlockFromCommentPublicResponse do -end diff --git a/client/spec/models/block_user_from_comment_response_spec.rb b/client/spec/models/block_user_from_comment_response_spec.rb deleted file mode 100644 index 4dbef88..0000000 --- a/client/spec/models/block_user_from_comment_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::BlockUserFromCommentResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::BlockUserFromCommentResponse do -end diff --git a/client/spec/models/bulk_aggregate_question_results_response1_spec.rb b/client/spec/models/bulk_aggregate_question_results_response1_spec.rb deleted file mode 100644 index 92792ee..0000000 --- a/client/spec/models/bulk_aggregate_question_results_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::BulkAggregateQuestionResultsResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::BulkAggregateQuestionResultsResponse1 do -end diff --git a/client/spec/models/change_ticket_state_response1_spec.rb b/client/spec/models/change_ticket_state_response1_spec.rb deleted file mode 100644 index b944a29..0000000 --- a/client/spec/models/change_ticket_state_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::ChangeTicketStateResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::ChangeTicketStateResponse1 do -end diff --git a/client/spec/models/checked_comments_for_blocked_response_spec.rb b/client/spec/models/checked_comments_for_blocked_response_spec.rb deleted file mode 100644 index 7968d00..0000000 --- a/client/spec/models/checked_comments_for_blocked_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::CheckedCommentsForBlockedResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::CheckedCommentsForBlockedResponse do -end diff --git a/client/spec/models/combine_comments_with_question_results_response_spec.rb b/client/spec/models/combine_comments_with_question_results_response_spec.rb deleted file mode 100644 index fc62d95..0000000 --- a/client/spec/models/combine_comments_with_question_results_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::CombineCommentsWithQuestionResultsResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::CombineCommentsWithQuestionResultsResponse do -end diff --git a/client/spec/models/create_comment_public_response_spec.rb b/client/spec/models/create_comment_public_response_spec.rb deleted file mode 100644 index fc56b6a..0000000 --- a/client/spec/models/create_comment_public_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::CreateCommentPublicResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::CreateCommentPublicResponse do -end diff --git a/client/spec/models/create_email_template_response1_spec.rb b/client/spec/models/create_email_template_response1_spec.rb deleted file mode 100644 index eab8701..0000000 --- a/client/spec/models/create_email_template_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::CreateEmailTemplateResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::CreateEmailTemplateResponse1 do -end diff --git a/client/spec/models/create_feed_post_public_response_spec.rb b/client/spec/models/create_feed_post_public_response_spec.rb deleted file mode 100644 index 3f791f7..0000000 --- a/client/spec/models/create_feed_post_public_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::CreateFeedPostPublicResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::CreateFeedPostPublicResponse do -end diff --git a/client/spec/models/create_feed_post_response1_spec.rb b/client/spec/models/create_feed_post_response1_spec.rb deleted file mode 100644 index 77b5aa3..0000000 --- a/client/spec/models/create_feed_post_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::CreateFeedPostResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::CreateFeedPostResponse1 do -end diff --git a/client/spec/models/create_moderator_response1_spec.rb b/client/spec/models/create_moderator_response1_spec.rb deleted file mode 100644 index 102b7a0..0000000 --- a/client/spec/models/create_moderator_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::CreateModeratorResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::CreateModeratorResponse1 do -end diff --git a/client/spec/models/create_question_config_response1_spec.rb b/client/spec/models/create_question_config_response1_spec.rb deleted file mode 100644 index 0ebc75d..0000000 --- a/client/spec/models/create_question_config_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::CreateQuestionConfigResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::CreateQuestionConfigResponse1 do -end diff --git a/client/spec/models/create_question_result_response1_spec.rb b/client/spec/models/create_question_result_response1_spec.rb deleted file mode 100644 index ba24ca0..0000000 --- a/client/spec/models/create_question_result_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::CreateQuestionResultResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::CreateQuestionResultResponse1 do -end diff --git a/client/spec/models/create_tenant_package_response1_spec.rb b/client/spec/models/create_tenant_package_response1_spec.rb deleted file mode 100644 index 5f41444..0000000 --- a/client/spec/models/create_tenant_package_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::CreateTenantPackageResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::CreateTenantPackageResponse1 do -end diff --git a/client/spec/models/create_tenant_response1_spec.rb b/client/spec/models/create_tenant_response1_spec.rb deleted file mode 100644 index 266c7f3..0000000 --- a/client/spec/models/create_tenant_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::CreateTenantResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::CreateTenantResponse1 do -end diff --git a/client/spec/models/create_tenant_user_response1_spec.rb b/client/spec/models/create_tenant_user_response1_spec.rb deleted file mode 100644 index 0cd5d10..0000000 --- a/client/spec/models/create_tenant_user_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::CreateTenantUserResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::CreateTenantUserResponse1 do -end diff --git a/client/spec/models/create_ticket_response1_spec.rb b/client/spec/models/create_ticket_response1_spec.rb deleted file mode 100644 index 61799d0..0000000 --- a/client/spec/models/create_ticket_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::CreateTicketResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::CreateTicketResponse1 do -end diff --git a/client/spec/models/create_user_badge_response_spec.rb b/client/spec/models/create_user_badge_response_spec.rb deleted file mode 100644 index 5f10bf0..0000000 --- a/client/spec/models/create_user_badge_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::CreateUserBadgeResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::CreateUserBadgeResponse do -end diff --git a/client/spec/models/create_v1_page_react_response_spec.rb b/client/spec/models/create_v1_page_react_response_spec.rb deleted file mode 100644 index b863d2e..0000000 --- a/client/spec/models/create_v1_page_react_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::CreateV1PageReactResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::CreateV1PageReactResponse do -end diff --git a/client/spec/models/create_v2_page_react_response_spec.rb b/client/spec/models/create_v2_page_react_response_spec.rb deleted file mode 100644 index 116e6ec..0000000 --- a/client/spec/models/create_v2_page_react_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::CreateV2PageReactResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::CreateV2PageReactResponse do -end diff --git a/client/spec/models/create_vote_response_spec.rb b/client/spec/models/create_vote_response_spec.rb deleted file mode 100644 index 50d256e..0000000 --- a/client/spec/models/create_vote_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::CreateVoteResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::CreateVoteResponse do -end diff --git a/client/spec/models/delete_comment_public_response_spec.rb b/client/spec/models/delete_comment_public_response_spec.rb deleted file mode 100644 index f8860ff..0000000 --- a/client/spec/models/delete_comment_public_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::DeleteCommentPublicResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::DeleteCommentPublicResponse do -end diff --git a/client/spec/models/delete_comment_response_spec.rb b/client/spec/models/delete_comment_response_spec.rb deleted file mode 100644 index e30d6e5..0000000 --- a/client/spec/models/delete_comment_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::DeleteCommentResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::DeleteCommentResponse do -end diff --git a/client/spec/models/delete_comment_vote_response_spec.rb b/client/spec/models/delete_comment_vote_response_spec.rb deleted file mode 100644 index 3be1508..0000000 --- a/client/spec/models/delete_comment_vote_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::DeleteCommentVoteResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::DeleteCommentVoteResponse do -end diff --git a/client/spec/models/delete_email_template_render_error_response_spec.rb b/client/spec/models/delete_email_template_render_error_response_spec.rb deleted file mode 100644 index b5067d9..0000000 --- a/client/spec/models/delete_email_template_render_error_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::DeleteEmailTemplateRenderErrorResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::DeleteEmailTemplateRenderErrorResponse do -end diff --git a/client/spec/models/delete_email_template_response_spec.rb b/client/spec/models/delete_email_template_response_spec.rb deleted file mode 100644 index c6a3961..0000000 --- a/client/spec/models/delete_email_template_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::DeleteEmailTemplateResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::DeleteEmailTemplateResponse do -end diff --git a/client/spec/models/delete_feed_post_public_response_any_of_spec.rb b/client/spec/models/delete_feed_post_public_response_any_of_spec.rb deleted file mode 100644 index 0e83f89..0000000 --- a/client/spec/models/delete_feed_post_public_response_any_of_spec.rb +++ /dev/null @@ -1,36 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::DeleteFeedPostPublicResponseAnyOf -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::DeleteFeedPostPublicResponseAnyOf do - #let(:instance) { FastCommentsClient::DeleteFeedPostPublicResponseAnyOf.new } - - describe 'test an instance of DeleteFeedPostPublicResponseAnyOf' do - it 'should create an instance of DeleteFeedPostPublicResponseAnyOf' do - # uncomment below to test the instance creation - #expect(instance).to be_instance_of(FastCommentsClient::DeleteFeedPostPublicResponseAnyOf) - end - end - - describe 'test attribute "status"' do - it 'should work' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ - end - end - -end diff --git a/client/spec/models/delete_feed_post_public_response_spec.rb b/client/spec/models/delete_feed_post_public_response_spec.rb index 573bc8b..c157571 100644 --- a/client/spec/models/delete_feed_post_public_response_spec.rb +++ b/client/spec/models/delete_feed_post_public_response_spec.rb @@ -18,4 +18,19 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::DeleteFeedPostPublicResponse do + #let(:instance) { FastCommentsClient::DeleteFeedPostPublicResponse.new } + + describe 'test an instance of DeleteFeedPostPublicResponse' do + it 'should create an instance of DeleteFeedPostPublicResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::DeleteFeedPostPublicResponse) + end + end + + describe 'test attribute "status"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + end diff --git a/client/spec/models/delete_hash_tag_response_spec.rb b/client/spec/models/delete_hash_tag_response_spec.rb deleted file mode 100644 index d73d3a1..0000000 --- a/client/spec/models/delete_hash_tag_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::DeleteHashTagResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::DeleteHashTagResponse do -end diff --git a/client/spec/models/delete_moderation_vote_response_spec.rb b/client/spec/models/delete_moderation_vote_response_spec.rb deleted file mode 100644 index 536e20b..0000000 --- a/client/spec/models/delete_moderation_vote_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::DeleteModerationVoteResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::DeleteModerationVoteResponse do -end diff --git a/client/spec/models/delete_moderator_response_spec.rb b/client/spec/models/delete_moderator_response_spec.rb deleted file mode 100644 index d84f484..0000000 --- a/client/spec/models/delete_moderator_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::DeleteModeratorResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::DeleteModeratorResponse do -end diff --git a/client/spec/models/delete_notification_count_response_spec.rb b/client/spec/models/delete_notification_count_response_spec.rb deleted file mode 100644 index 031ccb4..0000000 --- a/client/spec/models/delete_notification_count_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::DeleteNotificationCountResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::DeleteNotificationCountResponse do -end diff --git a/client/spec/models/delete_pending_webhook_event_response_spec.rb b/client/spec/models/delete_pending_webhook_event_response_spec.rb deleted file mode 100644 index db1951f..0000000 --- a/client/spec/models/delete_pending_webhook_event_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::DeletePendingWebhookEventResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::DeletePendingWebhookEventResponse do -end diff --git a/client/spec/models/delete_question_config_response_spec.rb b/client/spec/models/delete_question_config_response_spec.rb deleted file mode 100644 index de00999..0000000 --- a/client/spec/models/delete_question_config_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::DeleteQuestionConfigResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::DeleteQuestionConfigResponse do -end diff --git a/client/spec/models/delete_question_result_response_spec.rb b/client/spec/models/delete_question_result_response_spec.rb deleted file mode 100644 index 2c4f5bb..0000000 --- a/client/spec/models/delete_question_result_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::DeleteQuestionResultResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::DeleteQuestionResultResponse do -end diff --git a/client/spec/models/delete_tenant_package_response_spec.rb b/client/spec/models/delete_tenant_package_response_spec.rb deleted file mode 100644 index 2ab56aa..0000000 --- a/client/spec/models/delete_tenant_package_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::DeleteTenantPackageResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::DeleteTenantPackageResponse do -end diff --git a/client/spec/models/delete_tenant_response_spec.rb b/client/spec/models/delete_tenant_response_spec.rb deleted file mode 100644 index dffd099..0000000 --- a/client/spec/models/delete_tenant_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::DeleteTenantResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::DeleteTenantResponse do -end diff --git a/client/spec/models/delete_tenant_user_response_spec.rb b/client/spec/models/delete_tenant_user_response_spec.rb deleted file mode 100644 index 84aef07..0000000 --- a/client/spec/models/delete_tenant_user_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::DeleteTenantUserResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::DeleteTenantUserResponse do -end diff --git a/client/spec/models/delete_user_badge_response_spec.rb b/client/spec/models/delete_user_badge_response_spec.rb deleted file mode 100644 index 8636163..0000000 --- a/client/spec/models/delete_user_badge_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::DeleteUserBadgeResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::DeleteUserBadgeResponse do -end diff --git a/client/spec/models/delete_v1_page_react_response_spec.rb b/client/spec/models/delete_v1_page_react_response_spec.rb deleted file mode 100644 index c17a114..0000000 --- a/client/spec/models/delete_v1_page_react_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::DeleteV1PageReactResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::DeleteV1PageReactResponse do -end diff --git a/client/spec/models/delete_v2_page_react_response_spec.rb b/client/spec/models/delete_v2_page_react_response_spec.rb deleted file mode 100644 index fb9cc9e..0000000 --- a/client/spec/models/delete_v2_page_react_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::DeleteV2PageReactResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::DeleteV2PageReactResponse do -end diff --git a/client/spec/models/delete_vote_response_spec.rb b/client/spec/models/delete_vote_response_spec.rb deleted file mode 100644 index 0cac597..0000000 --- a/client/spec/models/delete_vote_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::DeleteVoteResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::DeleteVoteResponse do -end diff --git a/client/spec/models/flag_comment_public_response_spec.rb b/client/spec/models/flag_comment_public_response_spec.rb deleted file mode 100644 index d3da9c9..0000000 --- a/client/spec/models/flag_comment_public_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::FlagCommentPublicResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::FlagCommentPublicResponse do -end diff --git a/client/spec/models/flag_comment_response1_spec.rb b/client/spec/models/flag_comment_response1_spec.rb deleted file mode 100644 index 9355206..0000000 --- a/client/spec/models/flag_comment_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::FlagCommentResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::FlagCommentResponse1 do -end diff --git a/client/spec/models/get_api_comments_response_spec.rb b/client/spec/models/get_api_comments_response_spec.rb deleted file mode 100644 index 116d560..0000000 --- a/client/spec/models/get_api_comments_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetApiCommentsResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetApiCommentsResponse do -end diff --git a/client/spec/models/get_api_export_status_response_spec.rb b/client/spec/models/get_api_export_status_response_spec.rb deleted file mode 100644 index ecacfd3..0000000 --- a/client/spec/models/get_api_export_status_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetApiExportStatusResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetApiExportStatusResponse do -end diff --git a/client/spec/models/get_api_ids_response_spec.rb b/client/spec/models/get_api_ids_response_spec.rb deleted file mode 100644 index 00dda6d..0000000 --- a/client/spec/models/get_api_ids_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetApiIdsResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetApiIdsResponse do -end diff --git a/client/spec/models/get_audit_logs_response1_spec.rb b/client/spec/models/get_audit_logs_response1_spec.rb deleted file mode 100644 index 98c0823..0000000 --- a/client/spec/models/get_audit_logs_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetAuditLogsResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetAuditLogsResponse1 do -end diff --git a/client/spec/models/get_ban_users_from_comment_response_spec.rb b/client/spec/models/get_ban_users_from_comment_response_spec.rb deleted file mode 100644 index 2813fab..0000000 --- a/client/spec/models/get_ban_users_from_comment_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetBanUsersFromCommentResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetBanUsersFromCommentResponse do -end diff --git a/client/spec/models/get_cached_notification_count_response1_spec.rb b/client/spec/models/get_cached_notification_count_response1_spec.rb deleted file mode 100644 index 35af5bb..0000000 --- a/client/spec/models/get_cached_notification_count_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetCachedNotificationCountResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetCachedNotificationCountResponse1 do -end diff --git a/client/spec/models/get_comment_ban_status_response1_spec.rb b/client/spec/models/get_comment_ban_status_response1_spec.rb deleted file mode 100644 index 0f70509..0000000 --- a/client/spec/models/get_comment_ban_status_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetCommentBanStatusResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetCommentBanStatusResponse1 do -end diff --git a/client/spec/models/get_comment_children_response_spec.rb b/client/spec/models/get_comment_children_response_spec.rb deleted file mode 100644 index d5a5bbe..0000000 --- a/client/spec/models/get_comment_children_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetCommentChildrenResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetCommentChildrenResponse do -end diff --git a/client/spec/models/get_comment_response_spec.rb b/client/spec/models/get_comment_response_spec.rb deleted file mode 100644 index 81cecab..0000000 --- a/client/spec/models/get_comment_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetCommentResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetCommentResponse do -end diff --git a/client/spec/models/get_comment_text_response1_spec.rb b/client/spec/models/get_comment_text_response1_spec.rb deleted file mode 100644 index 82fdbe6..0000000 --- a/client/spec/models/get_comment_text_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetCommentTextResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetCommentTextResponse1 do -end diff --git a/client/spec/models/get_comment_vote_user_names_response_spec.rb b/client/spec/models/get_comment_vote_user_names_response_spec.rb deleted file mode 100644 index d6b017e..0000000 --- a/client/spec/models/get_comment_vote_user_names_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetCommentVoteUserNamesResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetCommentVoteUserNamesResponse do -end diff --git a/client/spec/models/get_comments_for_user_response1_spec.rb b/client/spec/models/get_comments_for_user_response1_spec.rb deleted file mode 100644 index 357d992..0000000 --- a/client/spec/models/get_comments_for_user_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetCommentsForUserResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetCommentsForUserResponse1 do -end diff --git a/client/spec/models/get_comments_public_response_spec.rb b/client/spec/models/get_comments_public_response_spec.rb deleted file mode 100644 index 5216590..0000000 --- a/client/spec/models/get_comments_public_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetCommentsPublicResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetCommentsPublicResponse do -end diff --git a/client/spec/models/get_comments_response_spec.rb b/client/spec/models/get_comments_response_spec.rb deleted file mode 100644 index 82ed3d8..0000000 --- a/client/spec/models/get_comments_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetCommentsResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetCommentsResponse do -end diff --git a/client/spec/models/get_count_response_spec.rb b/client/spec/models/get_count_response_spec.rb deleted file mode 100644 index e31576d..0000000 --- a/client/spec/models/get_count_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetCountResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetCountResponse do -end diff --git a/client/spec/models/get_counts_response_spec.rb b/client/spec/models/get_counts_response_spec.rb deleted file mode 100644 index 8880eb2..0000000 --- a/client/spec/models/get_counts_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetCountsResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetCountsResponse do -end diff --git a/client/spec/models/get_email_template_definitions_response1_spec.rb b/client/spec/models/get_email_template_definitions_response1_spec.rb deleted file mode 100644 index 5c50701..0000000 --- a/client/spec/models/get_email_template_definitions_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetEmailTemplateDefinitionsResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetEmailTemplateDefinitionsResponse1 do -end diff --git a/client/spec/models/get_email_template_render_errors_response1_spec.rb b/client/spec/models/get_email_template_render_errors_response1_spec.rb deleted file mode 100644 index 59ea1a7..0000000 --- a/client/spec/models/get_email_template_render_errors_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetEmailTemplateRenderErrorsResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetEmailTemplateRenderErrorsResponse1 do -end diff --git a/client/spec/models/get_email_template_response1_spec.rb b/client/spec/models/get_email_template_response1_spec.rb deleted file mode 100644 index 4c6f601..0000000 --- a/client/spec/models/get_email_template_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetEmailTemplateResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetEmailTemplateResponse1 do -end diff --git a/client/spec/models/get_email_templates_response1_spec.rb b/client/spec/models/get_email_templates_response1_spec.rb deleted file mode 100644 index 2e1f0b4..0000000 --- a/client/spec/models/get_email_templates_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetEmailTemplatesResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetEmailTemplatesResponse1 do -end diff --git a/client/spec/models/get_event_log_response1_spec.rb b/client/spec/models/get_event_log_response1_spec.rb deleted file mode 100644 index 1b67876..0000000 --- a/client/spec/models/get_event_log_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetEventLogResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetEventLogResponse1 do -end diff --git a/client/spec/models/get_feed_posts_public_response_spec.rb b/client/spec/models/get_feed_posts_public_response_spec.rb deleted file mode 100644 index 8e56f00..0000000 --- a/client/spec/models/get_feed_posts_public_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetFeedPostsPublicResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetFeedPostsPublicResponse do -end diff --git a/client/spec/models/get_feed_posts_response1_spec.rb b/client/spec/models/get_feed_posts_response1_spec.rb deleted file mode 100644 index 02b0fea..0000000 --- a/client/spec/models/get_feed_posts_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetFeedPostsResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetFeedPostsResponse1 do -end diff --git a/client/spec/models/get_feed_posts_stats_response_spec.rb b/client/spec/models/get_feed_posts_stats_response_spec.rb deleted file mode 100644 index 3acbb91..0000000 --- a/client/spec/models/get_feed_posts_stats_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetFeedPostsStatsResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetFeedPostsStatsResponse do -end diff --git a/client/spec/models/get_gif_large_response_spec.rb b/client/spec/models/get_gif_large_response_spec.rb deleted file mode 100644 index 6298a3f..0000000 --- a/client/spec/models/get_gif_large_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetGifLargeResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetGifLargeResponse do -end diff --git a/client/spec/models/get_global_event_log_response_spec.rb b/client/spec/models/get_global_event_log_response_spec.rb deleted file mode 100644 index 9dd1ff4..0000000 --- a/client/spec/models/get_global_event_log_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetGlobalEventLogResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetGlobalEventLogResponse do -end diff --git a/client/spec/models/get_hash_tags_response1_spec.rb b/client/spec/models/get_hash_tags_response1_spec.rb deleted file mode 100644 index 8ef913f..0000000 --- a/client/spec/models/get_hash_tags_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetHashTagsResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetHashTagsResponse1 do -end diff --git a/client/spec/models/get_logs_response_spec.rb b/client/spec/models/get_logs_response_spec.rb deleted file mode 100644 index b61bc65..0000000 --- a/client/spec/models/get_logs_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetLogsResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetLogsResponse do -end diff --git a/client/spec/models/get_manual_badges_for_user_response_spec.rb b/client/spec/models/get_manual_badges_for_user_response_spec.rb deleted file mode 100644 index 5db0467..0000000 --- a/client/spec/models/get_manual_badges_for_user_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetManualBadgesForUserResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetManualBadgesForUserResponse do -end diff --git a/client/spec/models/get_manual_badges_response_spec.rb b/client/spec/models/get_manual_badges_response_spec.rb deleted file mode 100644 index b38b935..0000000 --- a/client/spec/models/get_manual_badges_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetManualBadgesResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetManualBadgesResponse do -end diff --git a/client/spec/models/get_moderation_comment_response_spec.rb b/client/spec/models/get_moderation_comment_response_spec.rb deleted file mode 100644 index 27f0079..0000000 --- a/client/spec/models/get_moderation_comment_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetModerationCommentResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetModerationCommentResponse do -end diff --git a/client/spec/models/get_moderation_comment_text_response_spec.rb b/client/spec/models/get_moderation_comment_text_response_spec.rb deleted file mode 100644 index 5a4d39e..0000000 --- a/client/spec/models/get_moderation_comment_text_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetModerationCommentTextResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetModerationCommentTextResponse do -end diff --git a/client/spec/models/get_moderator_response1_spec.rb b/client/spec/models/get_moderator_response1_spec.rb deleted file mode 100644 index 63f26d5..0000000 --- a/client/spec/models/get_moderator_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetModeratorResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetModeratorResponse1 do -end diff --git a/client/spec/models/get_moderators_response1_spec.rb b/client/spec/models/get_moderators_response1_spec.rb deleted file mode 100644 index df06ec4..0000000 --- a/client/spec/models/get_moderators_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetModeratorsResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetModeratorsResponse1 do -end diff --git a/client/spec/models/get_notification_count_response1_spec.rb b/client/spec/models/get_notification_count_response1_spec.rb deleted file mode 100644 index 24da367..0000000 --- a/client/spec/models/get_notification_count_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetNotificationCountResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetNotificationCountResponse1 do -end diff --git a/client/spec/models/get_notifications_response1_spec.rb b/client/spec/models/get_notifications_response1_spec.rb deleted file mode 100644 index f5da233..0000000 --- a/client/spec/models/get_notifications_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetNotificationsResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetNotificationsResponse1 do -end diff --git a/client/spec/models/get_offline_users_response_spec.rb b/client/spec/models/get_offline_users_response_spec.rb deleted file mode 100644 index dffd8da..0000000 --- a/client/spec/models/get_offline_users_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetOfflineUsersResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetOfflineUsersResponse do -end diff --git a/client/spec/models/get_online_users_response_spec.rb b/client/spec/models/get_online_users_response_spec.rb deleted file mode 100644 index a87b653..0000000 --- a/client/spec/models/get_online_users_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetOnlineUsersResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetOnlineUsersResponse do -end diff --git a/client/spec/models/get_pages_public_response_spec.rb b/client/spec/models/get_pages_public_response_spec.rb deleted file mode 100644 index 319e2e4..0000000 --- a/client/spec/models/get_pages_public_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetPagesPublicResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetPagesPublicResponse do -end diff --git a/client/spec/models/get_pending_webhook_event_count_response1_spec.rb b/client/spec/models/get_pending_webhook_event_count_response1_spec.rb deleted file mode 100644 index a6b7cbf..0000000 --- a/client/spec/models/get_pending_webhook_event_count_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetPendingWebhookEventCountResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetPendingWebhookEventCountResponse1 do -end diff --git a/client/spec/models/get_pending_webhook_events_response1_spec.rb b/client/spec/models/get_pending_webhook_events_response1_spec.rb deleted file mode 100644 index 27ff31a..0000000 --- a/client/spec/models/get_pending_webhook_events_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetPendingWebhookEventsResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetPendingWebhookEventsResponse1 do -end diff --git a/client/spec/models/get_pre_ban_summary_response_spec.rb b/client/spec/models/get_pre_ban_summary_response_spec.rb deleted file mode 100644 index 0489ce9..0000000 --- a/client/spec/models/get_pre_ban_summary_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetPreBanSummaryResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetPreBanSummaryResponse do -end diff --git a/client/spec/models/get_question_config_response1_spec.rb b/client/spec/models/get_question_config_response1_spec.rb deleted file mode 100644 index 6bf4965..0000000 --- a/client/spec/models/get_question_config_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetQuestionConfigResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetQuestionConfigResponse1 do -end diff --git a/client/spec/models/get_question_configs_response1_spec.rb b/client/spec/models/get_question_configs_response1_spec.rb deleted file mode 100644 index c85433c..0000000 --- a/client/spec/models/get_question_configs_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetQuestionConfigsResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetQuestionConfigsResponse1 do -end diff --git a/client/spec/models/get_question_result_response1_spec.rb b/client/spec/models/get_question_result_response1_spec.rb deleted file mode 100644 index 1afa725..0000000 --- a/client/spec/models/get_question_result_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetQuestionResultResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetQuestionResultResponse1 do -end diff --git a/client/spec/models/get_question_results_response1_spec.rb b/client/spec/models/get_question_results_response1_spec.rb deleted file mode 100644 index e46d98e..0000000 --- a/client/spec/models/get_question_results_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetQuestionResultsResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetQuestionResultsResponse1 do -end diff --git a/client/spec/models/get_search_comments_summary_response_spec.rb b/client/spec/models/get_search_comments_summary_response_spec.rb deleted file mode 100644 index ecb1915..0000000 --- a/client/spec/models/get_search_comments_summary_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetSearchCommentsSummaryResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetSearchCommentsSummaryResponse do -end diff --git a/client/spec/models/get_search_pages_response_spec.rb b/client/spec/models/get_search_pages_response_spec.rb deleted file mode 100644 index 3dd7fe2..0000000 --- a/client/spec/models/get_search_pages_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetSearchPagesResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetSearchPagesResponse do -end diff --git a/client/spec/models/get_search_sites_response_spec.rb b/client/spec/models/get_search_sites_response_spec.rb deleted file mode 100644 index e9d1490..0000000 --- a/client/spec/models/get_search_sites_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetSearchSitesResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetSearchSitesResponse do -end diff --git a/client/spec/models/get_search_suggest_response_spec.rb b/client/spec/models/get_search_suggest_response_spec.rb deleted file mode 100644 index 7aa3a2b..0000000 --- a/client/spec/models/get_search_suggest_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetSearchSuggestResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetSearchSuggestResponse do -end diff --git a/client/spec/models/get_search_users_response_spec.rb b/client/spec/models/get_search_users_response_spec.rb deleted file mode 100644 index 07eddf9..0000000 --- a/client/spec/models/get_search_users_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetSearchUsersResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetSearchUsersResponse do -end diff --git a/client/spec/models/get_tenant_daily_usages_response1_spec.rb b/client/spec/models/get_tenant_daily_usages_response1_spec.rb deleted file mode 100644 index 84673a4..0000000 --- a/client/spec/models/get_tenant_daily_usages_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetTenantDailyUsagesResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetTenantDailyUsagesResponse1 do -end diff --git a/client/spec/models/get_tenant_package_response1_spec.rb b/client/spec/models/get_tenant_package_response1_spec.rb deleted file mode 100644 index 69e9f33..0000000 --- a/client/spec/models/get_tenant_package_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetTenantPackageResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetTenantPackageResponse1 do -end diff --git a/client/spec/models/get_tenant_packages_response1_spec.rb b/client/spec/models/get_tenant_packages_response1_spec.rb deleted file mode 100644 index 56eea27..0000000 --- a/client/spec/models/get_tenant_packages_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetTenantPackagesResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetTenantPackagesResponse1 do -end diff --git a/client/spec/models/get_tenant_response1_spec.rb b/client/spec/models/get_tenant_response1_spec.rb deleted file mode 100644 index 8229f5d..0000000 --- a/client/spec/models/get_tenant_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetTenantResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetTenantResponse1 do -end diff --git a/client/spec/models/get_tenant_user_response1_spec.rb b/client/spec/models/get_tenant_user_response1_spec.rb deleted file mode 100644 index 0985c2a..0000000 --- a/client/spec/models/get_tenant_user_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetTenantUserResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetTenantUserResponse1 do -end diff --git a/client/spec/models/get_tenant_users_response1_spec.rb b/client/spec/models/get_tenant_users_response1_spec.rb deleted file mode 100644 index ca90ea9..0000000 --- a/client/spec/models/get_tenant_users_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetTenantUsersResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetTenantUsersResponse1 do -end diff --git a/client/spec/models/get_tenants_response1_spec.rb b/client/spec/models/get_tenants_response1_spec.rb deleted file mode 100644 index b82c474..0000000 --- a/client/spec/models/get_tenants_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetTenantsResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetTenantsResponse1 do -end diff --git a/client/spec/models/get_ticket_response1_spec.rb b/client/spec/models/get_ticket_response1_spec.rb deleted file mode 100644 index 08da7b2..0000000 --- a/client/spec/models/get_ticket_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetTicketResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetTicketResponse1 do -end diff --git a/client/spec/models/get_tickets_response1_spec.rb b/client/spec/models/get_tickets_response1_spec.rb deleted file mode 100644 index e0975ec..0000000 --- a/client/spec/models/get_tickets_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetTicketsResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetTicketsResponse1 do -end diff --git a/client/spec/models/get_translations_response1_spec.rb b/client/spec/models/get_translations_response1_spec.rb deleted file mode 100644 index 0b5fcee..0000000 --- a/client/spec/models/get_translations_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetTranslationsResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetTranslationsResponse1 do -end diff --git a/client/spec/models/get_trust_factor_response_spec.rb b/client/spec/models/get_trust_factor_response_spec.rb deleted file mode 100644 index c279526..0000000 --- a/client/spec/models/get_trust_factor_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetTrustFactorResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetTrustFactorResponse do -end diff --git a/client/spec/models/get_user_badge_progress_by_id_response_spec.rb b/client/spec/models/get_user_badge_progress_by_id_response_spec.rb deleted file mode 100644 index baf129d..0000000 --- a/client/spec/models/get_user_badge_progress_by_id_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetUserBadgeProgressByIdResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetUserBadgeProgressByIdResponse do -end diff --git a/client/spec/models/get_user_badge_progress_by_user_id_response_spec.rb b/client/spec/models/get_user_badge_progress_by_user_id_response_spec.rb deleted file mode 100644 index 3eac2b3..0000000 --- a/client/spec/models/get_user_badge_progress_by_user_id_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetUserBadgeProgressByUserIdResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetUserBadgeProgressByUserIdResponse do -end diff --git a/client/spec/models/get_user_badge_progress_list_response_spec.rb b/client/spec/models/get_user_badge_progress_list_response_spec.rb deleted file mode 100644 index 3d751e2..0000000 --- a/client/spec/models/get_user_badge_progress_list_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetUserBadgeProgressListResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetUserBadgeProgressListResponse do -end diff --git a/client/spec/models/get_user_badge_response_spec.rb b/client/spec/models/get_user_badge_response_spec.rb deleted file mode 100644 index 4de35e4..0000000 --- a/client/spec/models/get_user_badge_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetUserBadgeResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetUserBadgeResponse do -end diff --git a/client/spec/models/get_user_badges_response_spec.rb b/client/spec/models/get_user_badges_response_spec.rb deleted file mode 100644 index 7c93ba8..0000000 --- a/client/spec/models/get_user_badges_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetUserBadgesResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetUserBadgesResponse do -end diff --git a/client/spec/models/get_user_ban_preference_response_spec.rb b/client/spec/models/get_user_ban_preference_response_spec.rb deleted file mode 100644 index d809fcb..0000000 --- a/client/spec/models/get_user_ban_preference_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetUserBanPreferenceResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetUserBanPreferenceResponse do -end diff --git a/client/spec/models/get_user_internal_profile_response1_spec.rb b/client/spec/models/get_user_internal_profile_response1_spec.rb deleted file mode 100644 index c225962..0000000 --- a/client/spec/models/get_user_internal_profile_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetUserInternalProfileResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetUserInternalProfileResponse1 do -end diff --git a/client/spec/models/get_user_notification_count_response1_spec.rb b/client/spec/models/get_user_notification_count_response1_spec.rb deleted file mode 100644 index e18e7e3..0000000 --- a/client/spec/models/get_user_notification_count_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetUserNotificationCountResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetUserNotificationCountResponse1 do -end diff --git a/client/spec/models/get_user_notifications_response_spec.rb b/client/spec/models/get_user_notifications_response_spec.rb deleted file mode 100644 index 91a40a2..0000000 --- a/client/spec/models/get_user_notifications_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetUserNotificationsResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetUserNotificationsResponse do -end diff --git a/client/spec/models/get_user_presence_statuses_response1_spec.rb b/client/spec/models/get_user_presence_statuses_response1_spec.rb deleted file mode 100644 index 572861d..0000000 --- a/client/spec/models/get_user_presence_statuses_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetUserPresenceStatusesResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetUserPresenceStatusesResponse1 do -end diff --git a/client/spec/models/get_user_reacts_public_response_spec.rb b/client/spec/models/get_user_reacts_public_response_spec.rb deleted file mode 100644 index df152cf..0000000 --- a/client/spec/models/get_user_reacts_public_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetUserReactsPublicResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetUserReactsPublicResponse do -end diff --git a/client/spec/models/get_user_response1_spec.rb b/client/spec/models/get_user_response1_spec.rb deleted file mode 100644 index 7937272..0000000 --- a/client/spec/models/get_user_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetUserResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetUserResponse1 do -end diff --git a/client/spec/models/get_users_info_response_spec.rb b/client/spec/models/get_users_info_response_spec.rb deleted file mode 100644 index e40bce3..0000000 --- a/client/spec/models/get_users_info_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetUsersInfoResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetUsersInfoResponse do -end diff --git a/client/spec/models/get_v1_page_likes_response_spec.rb b/client/spec/models/get_v1_page_likes_response_spec.rb deleted file mode 100644 index b89159f..0000000 --- a/client/spec/models/get_v1_page_likes_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetV1PageLikesResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetV1PageLikesResponse do -end diff --git a/client/spec/models/get_v2_page_react_users_response1_spec.rb b/client/spec/models/get_v2_page_react_users_response1_spec.rb deleted file mode 100644 index 6e6b8a9..0000000 --- a/client/spec/models/get_v2_page_react_users_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetV2PageReactUsersResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetV2PageReactUsersResponse1 do -end diff --git a/client/spec/models/get_v2_page_reacts_response_spec.rb b/client/spec/models/get_v2_page_reacts_response_spec.rb deleted file mode 100644 index 85a2b95..0000000 --- a/client/spec/models/get_v2_page_reacts_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetV2PageReactsResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetV2PageReactsResponse do -end diff --git a/client/spec/models/get_votes_for_user_response1_spec.rb b/client/spec/models/get_votes_for_user_response1_spec.rb deleted file mode 100644 index d7d72db..0000000 --- a/client/spec/models/get_votes_for_user_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetVotesForUserResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetVotesForUserResponse1 do -end diff --git a/client/spec/models/get_votes_response1_spec.rb b/client/spec/models/get_votes_response1_spec.rb deleted file mode 100644 index 19b5048..0000000 --- a/client/spec/models/get_votes_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::GetVotesResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::GetVotesResponse1 do -end diff --git a/client/spec/models/lock_comment_response_spec.rb b/client/spec/models/lock_comment_response_spec.rb deleted file mode 100644 index 211bc7f..0000000 --- a/client/spec/models/lock_comment_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::LockCommentResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::LockCommentResponse do -end diff --git a/client/spec/models/patch_hash_tag_response_spec.rb b/client/spec/models/patch_hash_tag_response_spec.rb deleted file mode 100644 index ab3afbd..0000000 --- a/client/spec/models/patch_hash_tag_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::PatchHashTagResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::PatchHashTagResponse do -end diff --git a/client/spec/models/pin_comment_response_spec.rb b/client/spec/models/pin_comment_response_spec.rb deleted file mode 100644 index a9f84a9..0000000 --- a/client/spec/models/pin_comment_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::PinCommentResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::PinCommentResponse do -end diff --git a/client/spec/models/post_adjust_comment_votes_response_spec.rb b/client/spec/models/post_adjust_comment_votes_response_spec.rb deleted file mode 100644 index 0a60df3..0000000 --- a/client/spec/models/post_adjust_comment_votes_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::PostAdjustCommentVotesResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::PostAdjustCommentVotesResponse do -end diff --git a/client/spec/models/post_api_export_response_spec.rb b/client/spec/models/post_api_export_response_spec.rb deleted file mode 100644 index 942a627..0000000 --- a/client/spec/models/post_api_export_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::PostApiExportResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::PostApiExportResponse do -end diff --git a/client/spec/models/post_ban_user_from_comment_response_spec.rb b/client/spec/models/post_ban_user_from_comment_response_spec.rb deleted file mode 100644 index 90cbd63..0000000 --- a/client/spec/models/post_ban_user_from_comment_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::PostBanUserFromCommentResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::PostBanUserFromCommentResponse do -end diff --git a/client/spec/models/post_ban_user_undo_response_spec.rb b/client/spec/models/post_ban_user_undo_response_spec.rb deleted file mode 100644 index c68680a..0000000 --- a/client/spec/models/post_ban_user_undo_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::PostBanUserUndoResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::PostBanUserUndoResponse do -end diff --git a/client/spec/models/post_bulk_pre_ban_summary_response_spec.rb b/client/spec/models/post_bulk_pre_ban_summary_response_spec.rb deleted file mode 100644 index aee26f0..0000000 --- a/client/spec/models/post_bulk_pre_ban_summary_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::PostBulkPreBanSummaryResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::PostBulkPreBanSummaryResponse do -end diff --git a/client/spec/models/post_comments_by_ids_response_spec.rb b/client/spec/models/post_comments_by_ids_response_spec.rb deleted file mode 100644 index 4f90383..0000000 --- a/client/spec/models/post_comments_by_ids_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::PostCommentsByIdsResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::PostCommentsByIdsResponse do -end diff --git a/client/spec/models/post_flag_comment_response_spec.rb b/client/spec/models/post_flag_comment_response_spec.rb deleted file mode 100644 index b834743..0000000 --- a/client/spec/models/post_flag_comment_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::PostFlagCommentResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::PostFlagCommentResponse do -end diff --git a/client/spec/models/post_restore_deleted_comment_response_spec.rb b/client/spec/models/post_restore_deleted_comment_response_spec.rb deleted file mode 100644 index 68e4776..0000000 --- a/client/spec/models/post_restore_deleted_comment_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::PostRestoreDeletedCommentResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::PostRestoreDeletedCommentResponse do -end diff --git a/client/spec/models/post_set_comment_approval_status_response_spec.rb b/client/spec/models/post_set_comment_approval_status_response_spec.rb deleted file mode 100644 index 8d8198b..0000000 --- a/client/spec/models/post_set_comment_approval_status_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::PostSetCommentApprovalStatusResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::PostSetCommentApprovalStatusResponse do -end diff --git a/client/spec/models/post_set_comment_review_status_response_spec.rb b/client/spec/models/post_set_comment_review_status_response_spec.rb deleted file mode 100644 index cba1ee2..0000000 --- a/client/spec/models/post_set_comment_review_status_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::PostSetCommentReviewStatusResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::PostSetCommentReviewStatusResponse do -end diff --git a/client/spec/models/post_set_comment_spam_status_response_spec.rb b/client/spec/models/post_set_comment_spam_status_response_spec.rb deleted file mode 100644 index b4fb47f..0000000 --- a/client/spec/models/post_set_comment_spam_status_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::PostSetCommentSpamStatusResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::PostSetCommentSpamStatusResponse do -end diff --git a/client/spec/models/post_set_comment_text_response_spec.rb b/client/spec/models/post_set_comment_text_response_spec.rb deleted file mode 100644 index 8756037..0000000 --- a/client/spec/models/post_set_comment_text_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::PostSetCommentTextResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::PostSetCommentTextResponse do -end diff --git a/client/spec/models/post_un_flag_comment_response_spec.rb b/client/spec/models/post_un_flag_comment_response_spec.rb deleted file mode 100644 index d3bf957..0000000 --- a/client/spec/models/post_un_flag_comment_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::PostUnFlagCommentResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::PostUnFlagCommentResponse do -end diff --git a/client/spec/models/post_vote_response_spec.rb b/client/spec/models/post_vote_response_spec.rb deleted file mode 100644 index 6a25f84..0000000 --- a/client/spec/models/post_vote_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::PostVoteResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::PostVoteResponse do -end diff --git a/client/spec/models/put_award_badge_response_spec.rb b/client/spec/models/put_award_badge_response_spec.rb deleted file mode 100644 index c03016a..0000000 --- a/client/spec/models/put_award_badge_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::PutAwardBadgeResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::PutAwardBadgeResponse do -end diff --git a/client/spec/models/put_close_thread_response_spec.rb b/client/spec/models/put_close_thread_response_spec.rb deleted file mode 100644 index f86b1fa..0000000 --- a/client/spec/models/put_close_thread_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::PutCloseThreadResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::PutCloseThreadResponse do -end diff --git a/client/spec/models/put_remove_badge_response_spec.rb b/client/spec/models/put_remove_badge_response_spec.rb deleted file mode 100644 index 7154ef3..0000000 --- a/client/spec/models/put_remove_badge_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::PutRemoveBadgeResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::PutRemoveBadgeResponse do -end diff --git a/client/spec/models/put_reopen_thread_response_spec.rb b/client/spec/models/put_reopen_thread_response_spec.rb deleted file mode 100644 index 1cc8bb9..0000000 --- a/client/spec/models/put_reopen_thread_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::PutReopenThreadResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::PutReopenThreadResponse do -end diff --git a/client/spec/models/react_feed_post_public_response_spec.rb b/client/spec/models/react_feed_post_public_response_spec.rb deleted file mode 100644 index 00bd746..0000000 --- a/client/spec/models/react_feed_post_public_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::ReactFeedPostPublicResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::ReactFeedPostPublicResponse do -end diff --git a/client/spec/models/render_email_template_response1_spec.rb b/client/spec/models/render_email_template_response1_spec.rb deleted file mode 100644 index 7fbf6bf..0000000 --- a/client/spec/models/render_email_template_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::RenderEmailTemplateResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::RenderEmailTemplateResponse1 do -end diff --git a/client/spec/models/replace_tenant_package_response_spec.rb b/client/spec/models/replace_tenant_package_response_spec.rb deleted file mode 100644 index 80141c6..0000000 --- a/client/spec/models/replace_tenant_package_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::ReplaceTenantPackageResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::ReplaceTenantPackageResponse do -end diff --git a/client/spec/models/replace_tenant_user_response_spec.rb b/client/spec/models/replace_tenant_user_response_spec.rb deleted file mode 100644 index 26ef0a1..0000000 --- a/client/spec/models/replace_tenant_user_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::ReplaceTenantUserResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::ReplaceTenantUserResponse do -end diff --git a/client/spec/models/reset_user_notification_count_response_spec.rb b/client/spec/models/reset_user_notification_count_response_spec.rb deleted file mode 100644 index df3a6bb..0000000 --- a/client/spec/models/reset_user_notification_count_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::ResetUserNotificationCountResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::ResetUserNotificationCountResponse do -end diff --git a/client/spec/models/reset_user_notifications_response1_spec.rb b/client/spec/models/reset_user_notifications_response1_spec.rb deleted file mode 100644 index 4dfeabe..0000000 --- a/client/spec/models/reset_user_notifications_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::ResetUserNotificationsResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::ResetUserNotificationsResponse1 do -end diff --git a/client/spec/models/save_comment_response_spec.rb b/client/spec/models/save_comment_response_spec.rb deleted file mode 100644 index b0970f9..0000000 --- a/client/spec/models/save_comment_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::SaveCommentResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::SaveCommentResponse do -end diff --git a/client/spec/models/search_users_response1_spec.rb b/client/spec/models/search_users_response1_spec.rb deleted file mode 100644 index 80fa7b3..0000000 --- a/client/spec/models/search_users_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::SearchUsersResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::SearchUsersResponse1 do -end diff --git a/client/spec/models/send_invite_response_spec.rb b/client/spec/models/send_invite_response_spec.rb deleted file mode 100644 index b3b1669..0000000 --- a/client/spec/models/send_invite_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::SendInviteResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::SendInviteResponse do -end diff --git a/client/spec/models/send_login_link_response_spec.rb b/client/spec/models/send_login_link_response_spec.rb deleted file mode 100644 index bf00357..0000000 --- a/client/spec/models/send_login_link_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::SendLoginLinkResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::SendLoginLinkResponse do -end diff --git a/client/spec/models/set_comment_text_response1_spec.rb b/client/spec/models/set_comment_text_response1_spec.rb deleted file mode 100644 index 39889e3..0000000 --- a/client/spec/models/set_comment_text_response1_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::SetCommentTextResponse1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::SetCommentTextResponse1 do -end diff --git a/client/spec/models/set_trust_factor_response_spec.rb b/client/spec/models/set_trust_factor_response_spec.rb deleted file mode 100644 index be256e0..0000000 --- a/client/spec/models/set_trust_factor_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::SetTrustFactorResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::SetTrustFactorResponse do -end diff --git a/client/spec/models/un_block_comment_public_response_spec.rb b/client/spec/models/un_block_comment_public_response_spec.rb deleted file mode 100644 index f9b099d..0000000 --- a/client/spec/models/un_block_comment_public_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::UnBlockCommentPublicResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::UnBlockCommentPublicResponse do -end diff --git a/client/spec/models/un_block_user_from_comment_response_spec.rb b/client/spec/models/un_block_user_from_comment_response_spec.rb deleted file mode 100644 index a83a2b1..0000000 --- a/client/spec/models/un_block_user_from_comment_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::UnBlockUserFromCommentResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::UnBlockUserFromCommentResponse do -end diff --git a/client/spec/models/un_flag_comment_response_spec.rb b/client/spec/models/un_flag_comment_response_spec.rb deleted file mode 100644 index e5a824f..0000000 --- a/client/spec/models/un_flag_comment_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::UnFlagCommentResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::UnFlagCommentResponse do -end diff --git a/client/spec/models/un_lock_comment_response_spec.rb b/client/spec/models/un_lock_comment_response_spec.rb deleted file mode 100644 index 7c98885..0000000 --- a/client/spec/models/un_lock_comment_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::UnLockCommentResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::UnLockCommentResponse do -end diff --git a/client/spec/models/un_pin_comment_response_spec.rb b/client/spec/models/un_pin_comment_response_spec.rb deleted file mode 100644 index 174d362..0000000 --- a/client/spec/models/un_pin_comment_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::UnPinCommentResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::UnPinCommentResponse do -end diff --git a/client/spec/models/update_comment_response_spec.rb b/client/spec/models/update_comment_response_spec.rb deleted file mode 100644 index f1a9ed5..0000000 --- a/client/spec/models/update_comment_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::UpdateCommentResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::UpdateCommentResponse do -end diff --git a/client/spec/models/update_email_template_response_spec.rb b/client/spec/models/update_email_template_response_spec.rb deleted file mode 100644 index 0ed5ccc..0000000 --- a/client/spec/models/update_email_template_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::UpdateEmailTemplateResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::UpdateEmailTemplateResponse do -end diff --git a/client/spec/models/update_feed_post_public_response_spec.rb b/client/spec/models/update_feed_post_public_response_spec.rb deleted file mode 100644 index e438611..0000000 --- a/client/spec/models/update_feed_post_public_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::UpdateFeedPostPublicResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::UpdateFeedPostPublicResponse do -end diff --git a/client/spec/models/update_feed_post_response_spec.rb b/client/spec/models/update_feed_post_response_spec.rb deleted file mode 100644 index 25d77f5..0000000 --- a/client/spec/models/update_feed_post_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::UpdateFeedPostResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::UpdateFeedPostResponse do -end diff --git a/client/spec/models/update_moderator_response_spec.rb b/client/spec/models/update_moderator_response_spec.rb deleted file mode 100644 index 5f5cf28..0000000 --- a/client/spec/models/update_moderator_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::UpdateModeratorResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::UpdateModeratorResponse do -end diff --git a/client/spec/models/update_notification_response_spec.rb b/client/spec/models/update_notification_response_spec.rb deleted file mode 100644 index 3c39b47..0000000 --- a/client/spec/models/update_notification_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::UpdateNotificationResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::UpdateNotificationResponse do -end diff --git a/client/spec/models/update_question_config_response_spec.rb b/client/spec/models/update_question_config_response_spec.rb deleted file mode 100644 index 29d9604..0000000 --- a/client/spec/models/update_question_config_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::UpdateQuestionConfigResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::UpdateQuestionConfigResponse do -end diff --git a/client/spec/models/update_question_result_response_spec.rb b/client/spec/models/update_question_result_response_spec.rb deleted file mode 100644 index 4c83f4e..0000000 --- a/client/spec/models/update_question_result_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::UpdateQuestionResultResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::UpdateQuestionResultResponse do -end diff --git a/client/spec/models/update_tenant_package_response_spec.rb b/client/spec/models/update_tenant_package_response_spec.rb deleted file mode 100644 index fd1a051..0000000 --- a/client/spec/models/update_tenant_package_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::UpdateTenantPackageResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::UpdateTenantPackageResponse do -end diff --git a/client/spec/models/update_tenant_response_spec.rb b/client/spec/models/update_tenant_response_spec.rb deleted file mode 100644 index f7aec90..0000000 --- a/client/spec/models/update_tenant_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::UpdateTenantResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::UpdateTenantResponse do -end diff --git a/client/spec/models/update_tenant_user_response_spec.rb b/client/spec/models/update_tenant_user_response_spec.rb deleted file mode 100644 index 7d3b2e7..0000000 --- a/client/spec/models/update_tenant_user_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::UpdateTenantUserResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::UpdateTenantUserResponse do -end diff --git a/client/spec/models/update_user_badge_response_spec.rb b/client/spec/models/update_user_badge_response_spec.rb deleted file mode 100644 index b92e4be..0000000 --- a/client/spec/models/update_user_badge_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::UpdateUserBadgeResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::UpdateUserBadgeResponse do -end diff --git a/client/spec/models/vote_comment_response_spec.rb b/client/spec/models/vote_comment_response_spec.rb deleted file mode 100644 index 8990d14..0000000 --- a/client/spec/models/vote_comment_response_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.23.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::VoteCommentResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::VoteCommentResponse do -end diff --git a/openapi.json b/openapi.json index b02430d..0f72c9c 100644 --- a/openapi.json +++ b/openapi.json @@ -11528,15 +11528,17 @@ "content": { "application/json": { "schema": { - "title": "SearchUsersResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/SearchUsersResult" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/SearchUsersResult" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11614,15 +11616,7 @@ "content": { "application/json": { "schema": { - "title": "GetUserPresenceStatusesResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetUserPresenceStatusesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetUserPresenceStatusesResponse" } } } @@ -11636,6 +11630,16 @@ } } } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } } }, "tags": [ @@ -11679,15 +11683,17 @@ "content": { "application/json": { "schema": { - "title": "GetUserNotificationsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetMyNotificationsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetMyNotificationsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11809,15 +11815,17 @@ "content": { "application/json": { "schema": { - "title": "ResetUserNotificationsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ResetUserNotificationsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ResetUserNotificationsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11897,15 +11905,17 @@ "content": { "application/json": { "schema": { - "title": "GetUserNotificationCountResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetUserNotificationCountResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetUserNotificationCountResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11944,15 +11954,17 @@ "content": { "application/json": { "schema": { - "title": "ResetUserNotificationCountResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ResetUserNotificationsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ResetUserNotificationsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11998,14 +12010,21 @@ }, { "$ref": "#/components/schemas/IgnoredResponse" - }, - { - "$ref": "#/components/schemas/APIError" } ] } } } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } } }, "tags": [ @@ -12068,14 +12087,21 @@ }, { "$ref": "#/components/schemas/IgnoredResponse" - }, - { - "$ref": "#/components/schemas/APIError" } ] } } } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } } }, "description": "Enable or disable notifications for a specific comment.", @@ -12147,14 +12173,21 @@ }, { "$ref": "#/components/schemas/IgnoredResponse" - }, - { - "$ref": "#/components/schemas/APIError" } ] } } } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } } }, "description": "Enable or disable notifications for a page. When users are subscribed to a page, notifications are created\nfor new root comments, and also", @@ -12296,15 +12329,7 @@ "content": { "application/json": { "schema": { - "title": "GetTranslationsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetTranslationsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTranslationsResponse" } } } @@ -12328,6 +12353,16 @@ } } } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } } }, "tags": [ @@ -12379,15 +12414,17 @@ "content": { "application/json": { "schema": { - "title": "GetPagesPublicResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetPublicPagesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetPublicPagesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -12465,15 +12502,7 @@ "content": { "application/json": { "schema": { - "title": "GetOnlineUsersResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/PageUsersOnlineResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PageUsersOnlineResponse" } } } @@ -12497,6 +12526,16 @@ } } } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } } }, "description": "Currently-online viewers of a page: people whose websocket session is subscribed to the page right now.\nReturns anonCount + totalCount (room-wide subscribers, including anon viewers we don't enumerate).", @@ -12552,15 +12591,7 @@ "content": { "application/json": { "schema": { - "title": "GetOfflineUsersResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/PageUsersOfflineResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PageUsersOfflineResponse" } } } @@ -12584,6 +12615,16 @@ } } } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } } }, "description": "Past commenters on the page who are NOT currently online. Sorted by displayName.\nUse this after exhausting /users/online to render a \"Members\" section.\nCursor pagination on commenterName: server walks the partial {tenantId, urlId, commenterName}\nindex from afterName forward via $gt, no $skip cost.", @@ -12639,15 +12680,7 @@ "content": { "application/json": { "schema": { - "title": "GetUsersInfoResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/PageUsersInfoResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PageUsersInfoResponse" } } } @@ -12661,6 +12694,16 @@ } } } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } } }, "description": "Bulk user info for a tenant. Given userIds, return display info from User / SSOUser.\nUsed by the comment widget to enrich users that just appeared via a presence event.\nNo page context: privacy is enforced uniformly (private profiles are masked).", @@ -12698,15 +12741,17 @@ "content": { "application/json": { "schema": { - "title": "GetV1PageLikesResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetV1PageLikes" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetV1PageLikes" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -12743,15 +12788,17 @@ "content": { "application/json": { "schema": { - "title": "CreateV1PageReactResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateV1PageReact" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateV1PageReact" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -12796,15 +12843,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteV1PageReactResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/DeleteV1PageReact" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/DeleteV1PageReact" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -12843,15 +12892,17 @@ "content": { "application/json": { "schema": { - "title": "GetV2PageReactUsersResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetV2PageReactUsersResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetV2PageReactUsersResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -12898,15 +12949,17 @@ "content": { "application/json": { "schema": { - "title": "GetV2PageReactsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetV2PageReacts" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetV2PageReacts" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -12943,15 +12996,17 @@ "content": { "application/json": { "schema": { - "title": "CreateV2PageReactResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateV2PageReact" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateV2PageReact" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13004,15 +13059,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteV2PageReactResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/DeleteV2PageReact" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/DeleteV2PageReact" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13059,15 +13116,17 @@ "content": { "application/json": { "schema": { - "title": "GetCountResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationAPICountCommentsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationAPICountCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13146,15 +13205,17 @@ "content": { "application/json": { "schema": { - "title": "GetApiIdsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationAPIGetCommentIdsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationAPIGetCommentIdsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13241,15 +13302,17 @@ "content": { "application/json": { "schema": { - "title": "GetApiCommentsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationAPIGetCommentsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationAPIGetCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13354,15 +13417,17 @@ "content": { "application/json": { "schema": { - "title": "PostApiExportResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationExportResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationExportResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13441,15 +13506,17 @@ "content": { "application/json": { "schema": { - "title": "GetApiExportStatusResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationExportStatusResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationExportStatusResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13496,15 +13563,17 @@ "content": { "application/json": { "schema": { - "title": "GetSearchUsersResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationUserSearchResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationUserSearchResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13551,15 +13620,17 @@ "content": { "application/json": { "schema": { - "title": "GetSearchPagesResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationPageSearchResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationPageSearchResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13606,15 +13677,17 @@ "content": { "application/json": { "schema": { - "title": "GetSearchSitesResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationSiteSearchResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationSiteSearchResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13661,15 +13734,17 @@ "content": { "application/json": { "schema": { - "title": "GetSearchCommentsSummaryResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationCommentSearchResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationCommentSearchResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13732,15 +13807,17 @@ "content": { "application/json": { "schema": { - "title": "GetSearchSuggestResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationSuggestResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationSuggestResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13787,15 +13864,17 @@ "content": { "application/json": { "schema": { - "title": "GetPreBanSummaryResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/PreBanSummary" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PreBanSummary" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13866,15 +13945,17 @@ "content": { "application/json": { "schema": { - "title": "PostBulkPreBanSummaryResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/BulkPreBanSummary" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/BulkPreBanSummary" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13947,15 +14028,17 @@ "content": { "application/json": { "schema": { - "title": "PostBanUserFromCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/BanUserFromCommentResult" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/BanUserFromCommentResult" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14066,15 +14149,17 @@ "content": { "application/json": { "schema": { - "title": "GetBanUsersFromCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetBannedUsersFromCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetBannedUsersFromCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14121,15 +14206,17 @@ "content": { "application/json": { "schema": { - "title": "PostBanUserUndoResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14185,14 +14272,21 @@ }, { "$ref": "#/components/schemas/RemoveCommentActionResponse" - }, - { - "$ref": "#/components/schemas/APIError" } ] } } } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } } }, "tags": [ @@ -14244,20 +14338,22 @@ "content": { "application/json": { "schema": { - "title": "PostRestoreDeletedCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" } } } - } - }, + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, "tags": [ "Moderation" ], @@ -14307,15 +14403,17 @@ "content": { "application/json": { "schema": { - "title": "PostFlagCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14370,15 +14468,17 @@ "content": { "application/json": { "schema": { - "title": "PostUnFlagCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14433,15 +14533,17 @@ "content": { "application/json": { "schema": { - "title": "PostSetCommentReviewStatusResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14504,15 +14606,17 @@ "content": { "application/json": { "schema": { - "title": "PostSetCommentSpamStatusResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14583,15 +14687,17 @@ "content": { "application/json": { "schema": { - "title": "PostSetCommentApprovalStatusResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/SetCommentApprovedResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/SetCommentApprovedResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14654,15 +14760,17 @@ "content": { "application/json": { "schema": { - "title": "GetLogsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationAPIGetLogsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationAPIGetLogsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14709,15 +14817,17 @@ "content": { "application/json": { "schema": { - "title": "GetModerationCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationAPICommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationAPICommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14780,15 +14890,17 @@ "content": { "application/json": { "schema": { - "title": "PostCommentsByIdsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationAPIChildCommentsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationAPIChildCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14837,15 +14949,17 @@ "content": { "application/json": { "schema": { - "title": "GetCommentChildrenResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationAPIChildCommentsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationAPIChildCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14892,15 +15006,17 @@ "content": { "application/json": { "schema": { - "title": "GetModerationCommentTextResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetCommentTextResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetCommentTextResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14947,15 +15063,17 @@ "content": { "application/json": { "schema": { - "title": "PostSetCommentTextResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/SetCommentTextResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/SetCommentTextResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15020,15 +15138,17 @@ "content": { "application/json": { "schema": { - "title": "PostAdjustCommentVotesResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/AdjustVotesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/AdjustVotesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15093,15 +15213,17 @@ "content": { "application/json": { "schema": { - "title": "PostVoteResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/VoteResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/VoteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15164,15 +15286,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteModerationVoteResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/VoteDeleteResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/VoteDeleteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15235,15 +15359,17 @@ "content": { "application/json": { "schema": { - "title": "GetCommentBanStatusResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetCommentBanStatusResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetCommentBanStatusResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15290,15 +15416,17 @@ "content": { "application/json": { "schema": { - "title": "GetUserBanPreferenceResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIModerateGetUserBanPreferencesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIModerateGetUserBanPreferencesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15337,15 +15465,17 @@ "content": { "application/json": { "schema": { - "title": "GetManualBadgesResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantManualBadgesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantManualBadgesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15384,15 +15514,17 @@ "content": { "application/json": { "schema": { - "title": "GetManualBadgesForUserResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetUserManualBadgesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetUserManualBadgesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15447,15 +15579,17 @@ "content": { "application/json": { "schema": { - "title": "PutAwardBadgeResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/AwardUserBadgeResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/AwardUserBadgeResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15526,15 +15660,17 @@ "content": { "application/json": { "schema": { - "title": "PutRemoveBadgeResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/RemoveUserBadgeResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/RemoveUserBadgeResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15605,15 +15741,17 @@ "content": { "application/json": { "schema": { - "title": "GetTrustFactorResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetUserTrustFactorResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetUserTrustFactorResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15660,15 +15798,17 @@ "content": { "application/json": { "schema": { - "title": "SetTrustFactorResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/SetUserTrustFactorResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/SetUserTrustFactorResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15723,15 +15863,17 @@ "content": { "application/json": { "schema": { - "title": "GetUserInternalProfileResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetUserInternalProfileResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetUserInternalProfileResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15778,15 +15920,17 @@ "content": { "application/json": { "schema": { - "title": "PutReopenThreadResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15833,15 +15977,17 @@ "content": { "application/json": { "schema": { - "title": "PutCloseThreadResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15888,15 +16034,17 @@ "content": { "application/json": { "schema": { - "title": "GetCountsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetBannedUsersCountResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetBannedUsersCountResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16006,9 +16154,6 @@ }, { "$ref": "#/components/schemas/GifSearchInternalError" - }, - { - "$ref": "#/components/schemas/APIError" } ] } @@ -16024,6 +16169,16 @@ } } } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } } }, "tags": [ @@ -16084,15 +16239,7 @@ "content": { "application/json": { "schema": { - "title": "GetGifLargeResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GifGetLargeResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GifGetLargeResponse" } } } @@ -16106,6 +16253,16 @@ } } } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } } }, "tags": [ @@ -16141,15 +16298,17 @@ "content": { "application/json": { "schema": { - "title": "FlagCommentPublicResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16204,15 +16363,17 @@ "content": { "application/json": { "schema": { - "title": "GetFeedPostsPublicResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/PublicFeedPostsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PublicFeedPostsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16294,15 +16455,17 @@ "content": { "application/json": { "schema": { - "title": "CreateFeedPostPublicResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateFeedPostResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateFeedPostResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16359,15 +16522,17 @@ "content": { "application/json": { "schema": { - "title": "ReactFeedPostPublicResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ReactFeedPostResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ReactFeedPostResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16440,15 +16605,17 @@ "content": { "application/json": { "schema": { - "title": "GetUserReactsPublicResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/UserReactsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/UserReactsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16498,15 +16665,17 @@ "content": { "application/json": { "schema": { - "title": "UpdateFeedPostPublicResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateFeedPostResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateFeedPostResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16570,30 +16739,33 @@ "application/json": { "schema": { "title": "DeleteFeedPostPublicResponse", - "anyOf": [ - { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - { - "$ref": "#/components/schemas/APIError" + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" } - ] + }, + "required": [ + "status" + ], + "type": "object" } } } - } - }, - "tags": [ - "Public" - ], + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], "security": [], "parameters": [ { @@ -16640,15 +16812,17 @@ "content": { "application/json": { "schema": { - "title": "GetFeedPostsStatsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/FeedPostsStatsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/FeedPostsStatsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16698,15 +16872,17 @@ "content": { "application/json": { "schema": { - "title": "GetEventLogResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetEventLogResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEventLogResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16772,15 +16948,17 @@ "content": { "application/json": { "schema": { - "title": "GetGlobalEventLogResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetEventLogResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEventLogResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16846,15 +17024,17 @@ "content": { "application/json": { "schema": { - "title": "GetCommentTextResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/PublicAPIGetCommentTextResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PublicAPIGetCommentTextResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16909,15 +17089,17 @@ "content": { "application/json": { "schema": { - "title": "SetCommentTextResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/PublicAPISetCommentTextResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PublicAPISetCommentTextResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16990,15 +17172,17 @@ "content": { "application/json": { "schema": { - "title": "GetCommentsForUserResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetCommentsForUserResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetCommentsForUserResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17078,15 +17262,17 @@ "content": { "application/json": { "schema": { - "title": "GetCommentsPublicResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetCommentsResponseWithPresence_PublicComment_" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetCommentsResponseWithPresence_PublicComment_" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17341,15 +17527,17 @@ "content": { "application/json": { "schema": { - "title": "CreateCommentPublicResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/SaveCommentsResponseWithPresence" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/SaveCommentsResponseWithPresence" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17422,15 +17610,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteCommentPublicResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/PublicAPIDeleteCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PublicAPIDeleteCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17493,15 +17683,17 @@ "content": { "application/json": { "schema": { - "title": "CheckedCommentsForBlockedResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CheckBlockedCommentsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CheckBlockedCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17549,15 +17741,17 @@ "content": { "application/json": { "schema": { - "title": "VoteCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/VoteResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/VoteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17638,15 +17832,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteCommentVoteResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/VoteDeleteResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/VoteDeleteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17725,15 +17921,17 @@ "content": { "application/json": { "schema": { - "title": "GetCommentVoteUserNamesResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetCommentVoteUserNamesSuccessResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetCommentVoteUserNamesSuccessResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17789,15 +17987,17 @@ "content": { "application/json": { "schema": { - "title": "PinCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17852,15 +18052,17 @@ "content": { "application/json": { "schema": { - "title": "UnPinCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17915,15 +18117,17 @@ "content": { "application/json": { "schema": { - "title": "LockCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIError" - }, - { - "$ref": "#/components/schemas/APIEmptyResponse" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17978,15 +18182,17 @@ "content": { "application/json": { "schema": { - "title": "UnLockCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIError" - }, - { - "$ref": "#/components/schemas/APIEmptyResponse" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18041,15 +18247,17 @@ "content": { "application/json": { "schema": { - "title": "BlockFromCommentPublicResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/BlockSuccess" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/BlockSuccess" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18104,15 +18312,17 @@ "content": { "application/json": { "schema": { - "title": "UnBlockCommentPublicResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/UnblockSuccess" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/UnblockSuccess" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18920,15 +19130,17 @@ "content": { "application/json": { "schema": { - "title": "GetVotesResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetVotesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetVotesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18966,15 +19178,17 @@ "content": { "application/json": { "schema": { - "title": "CreateVoteResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/VoteResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/VoteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19042,15 +19256,17 @@ "content": { "application/json": { "schema": { - "title": "GetVotesForUserResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetVotesForUserResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetVotesForUserResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19106,15 +19322,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteVoteResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/VoteDeleteResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/VoteDeleteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19162,15 +19380,17 @@ "content": { "application/json": { "schema": { - "title": "GetUserResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetUserResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetUserResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19210,15 +19430,17 @@ "content": { "application/json": { "schema": { - "title": "GetUserBadgeResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetUserBadgeResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetUserBadgeResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19256,15 +19478,17 @@ "content": { "application/json": { "schema": { - "title": "UpdateUserBadgeResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptySuccessResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptySuccessResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19312,15 +19536,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteUserBadgeResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptySuccessResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptySuccessResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19360,15 +19586,17 @@ "content": { "application/json": { "schema": { - "title": "GetUserBadgesResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetUserBadgesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetUserBadgesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19449,15 +19677,17 @@ "content": { "application/json": { "schema": { - "title": "CreateUserBadgeResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APICreateUserBadgeResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APICreateUserBadgeResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19499,15 +19729,17 @@ "content": { "application/json": { "schema": { - "title": "GetUserBadgeProgressByIdResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19547,15 +19779,17 @@ "content": { "application/json": { "schema": { - "title": "GetUserBadgeProgressListResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetUserBadgeProgressListResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetUserBadgeProgressListResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19613,15 +19847,17 @@ "content": { "application/json": { "schema": { - "title": "GetUserBadgeProgressByUserIdResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19661,15 +19897,17 @@ "content": { "application/json": { "schema": { - "title": "GetTicketsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetTicketsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTicketsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19734,15 +19972,17 @@ "content": { "application/json": { "schema": { - "title": "CreateTicketResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateTicketResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateTicketResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19792,15 +20032,17 @@ "content": { "application/json": { "schema": { - "title": "GetTicketResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetTicketResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTicketResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19848,19 +20090,21 @@ "content": { "application/json": { "schema": { - "title": "ChangeTicketStateResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ChangeTicketStateResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ChangeTicketStateResponse" } } } - } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } }, "security": [ { @@ -19914,15 +20158,17 @@ "content": { "application/json": { "schema": { - "title": "GetTenantResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19960,15 +20206,17 @@ "content": { "application/json": { "schema": { - "title": "UpdateTenantResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20016,15 +20264,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteTenantResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20072,15 +20322,17 @@ "content": { "application/json": { "schema": { - "title": "GetTenantsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20127,15 +20379,17 @@ "content": { "application/json": { "schema": { - "title": "CreateTenantResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateTenantResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateTenantResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20177,15 +20431,17 @@ "content": { "application/json": { "schema": { - "title": "GetTenantUserResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantUserResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantUserResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20223,15 +20479,17 @@ "content": { "application/json": { "schema": { - "title": "ReplaceTenantUserResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20287,15 +20545,17 @@ "content": { "application/json": { "schema": { - "title": "UpdateTenantUserResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20351,15 +20611,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteTenantUserResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20415,15 +20677,17 @@ "content": { "application/json": { "schema": { - "title": "GetTenantUsersResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantUsersResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantUsersResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20462,15 +20726,17 @@ "content": { "application/json": { "schema": { - "title": "CreateTenantUserResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateTenantUserResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateTenantUserResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20512,15 +20778,17 @@ "content": { "application/json": { "schema": { - "title": "SendLoginLinkResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20568,15 +20836,17 @@ "content": { "application/json": { "schema": { - "title": "GetTenantPackageResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantPackageResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantPackageResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20614,15 +20884,17 @@ "content": { "application/json": { "schema": { - "title": "ReplaceTenantPackageResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20670,15 +20942,17 @@ "content": { "application/json": { "schema": { - "title": "UpdateTenantPackageResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20726,15 +21000,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteTenantPackageResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20774,15 +21050,17 @@ "content": { "application/json": { "schema": { - "title": "GetTenantPackagesResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantPackagesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantPackagesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20821,15 +21099,17 @@ "content": { "application/json": { "schema": { - "title": "CreateTenantPackageResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateTenantPackageResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateTenantPackageResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20871,15 +21151,17 @@ "content": { "application/json": { "schema": { - "title": "GetTenantDailyUsagesResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantDailyUsagesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantDailyUsagesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20947,15 +21229,17 @@ "content": { "application/json": { "schema": { - "title": "GetQuestionResultResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetQuestionResultResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetQuestionResultResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20993,15 +21277,17 @@ "content": { "application/json": { "schema": { - "title": "UpdateQuestionResultResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21049,15 +21335,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteQuestionResultResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21097,15 +21385,17 @@ "content": { "application/json": { "schema": { - "title": "GetQuestionResultsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetQuestionResultsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetQuestionResultsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21184,15 +21474,17 @@ "content": { "application/json": { "schema": { - "title": "CreateQuestionResultResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateQuestionResultResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateQuestionResultResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21234,15 +21526,17 @@ "content": { "application/json": { "schema": { - "title": "AggregateQuestionResultsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/AggregateQuestionResultsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/AggregateQuestionResultsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21326,15 +21620,17 @@ "content": { "application/json": { "schema": { - "title": "BulkAggregateQuestionResultsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/BulkAggregateQuestionResultsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/BulkAggregateQuestionResultsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21384,15 +21680,17 @@ "content": { "application/json": { "schema": { - "title": "CombineCommentsWithQuestionResultsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CombineQuestionResultsWithCommentsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CombineQuestionResultsWithCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21495,15 +21793,17 @@ "content": { "application/json": { "schema": { - "title": "GetQuestionConfigResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetQuestionConfigResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetQuestionConfigResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21541,15 +21841,17 @@ "content": { "application/json": { "schema": { - "title": "UpdateQuestionConfigResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21597,15 +21899,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteQuestionConfigResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21645,15 +21949,17 @@ "content": { "application/json": { "schema": { - "title": "GetQuestionConfigsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetQuestionConfigsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetQuestionConfigsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21692,15 +21998,17 @@ "content": { "application/json": { "schema": { - "title": "CreateQuestionConfigResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateQuestionConfigResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateQuestionConfigResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21742,15 +22050,17 @@ "content": { "application/json": { "schema": { - "title": "GetPendingWebhookEventsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetPendingWebhookEventsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetPendingWebhookEventsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21840,15 +22150,17 @@ "content": { "application/json": { "schema": { - "title": "GetPendingWebhookEventCountResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetPendingWebhookEventCountResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetPendingWebhookEventCountResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21929,15 +22241,17 @@ "content": { "application/json": { "schema": { - "title": "DeletePendingWebhookEventResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21977,15 +22291,17 @@ "content": { "application/json": { "schema": { - "title": "GetNotificationsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetNotificationsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetNotificationsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22066,15 +22382,17 @@ "content": { "application/json": { "schema": { - "title": "GetNotificationCountResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetNotificationCountResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetNotificationCountResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22146,15 +22464,17 @@ "content": { "application/json": { "schema": { - "title": "UpdateNotificationResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22212,15 +22532,17 @@ "content": { "application/json": { "schema": { - "title": "GetCachedNotificationCountResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetCachedNotificationCountResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetCachedNotificationCountResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22258,15 +22580,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteNotificationCountResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22306,15 +22630,17 @@ "content": { "application/json": { "schema": { - "title": "GetModeratorResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetModeratorResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetModeratorResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22352,15 +22678,17 @@ "content": { "application/json": { "schema": { - "title": "UpdateModeratorResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22408,15 +22736,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteModeratorResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22464,15 +22794,17 @@ "content": { "application/json": { "schema": { - "title": "GetModeratorsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetModeratorsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetModeratorsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22511,15 +22843,17 @@ "content": { "application/json": { "schema": { - "title": "CreateModeratorResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateModeratorResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateModeratorResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22561,15 +22895,17 @@ "content": { "application/json": { "schema": { - "title": "SendInviteResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22617,15 +22953,17 @@ "content": { "application/json": { "schema": { - "title": "GetHashTagsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetHashTagsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetHashTagsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22664,15 +23002,17 @@ "content": { "application/json": { "schema": { - "title": "AddHashTagResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateHashTagResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateHashTagResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22714,15 +23054,17 @@ "content": { "application/json": { "schema": { - "title": "AddHashTagsBulkResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/BulkCreateHashTagsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/BulkCreateHashTagsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22764,15 +23106,17 @@ "content": { "application/json": { "schema": { - "title": "PatchHashTagResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/UpdateHashTagResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/UpdateHashTagResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22820,15 +23164,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteHashTagResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22884,15 +23230,17 @@ "content": { "application/json": { "schema": { - "title": "GetFeedPostsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetFeedPostsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetFeedPostsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22951,15 +23299,17 @@ "content": { "application/json": { "schema": { - "title": "CreateFeedPostResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateFeedPostsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateFeedPostsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -23033,15 +23383,17 @@ "content": { "application/json": { "schema": { - "title": "UpdateFeedPostResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -23091,15 +23443,17 @@ "content": { "application/json": { "schema": { - "title": "GetEmailTemplateDefinitionsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetEmailTemplateDefinitionsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEmailTemplateDefinitionsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -23131,15 +23485,17 @@ "content": { "application/json": { "schema": { - "title": "GetEmailTemplateRenderErrorsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetEmailTemplateRenderErrorsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEmailTemplateRenderErrorsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -23188,15 +23544,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteEmailTemplateRenderErrorResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -23244,15 +23602,17 @@ "content": { "application/json": { "schema": { - "title": "GetEmailTemplateResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetEmailTemplateResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEmailTemplateResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -23290,15 +23650,17 @@ "content": { "application/json": { "schema": { - "title": "UpdateEmailTemplateResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -23346,15 +23708,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteEmailTemplateResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -23394,15 +23758,17 @@ "content": { "application/json": { "schema": { - "title": "GetEmailTemplatesResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetEmailTemplatesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEmailTemplatesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -23441,15 +23807,17 @@ "content": { "application/json": { "schema": { - "title": "CreateEmailTemplateResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateEmailTemplateResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateEmailTemplateResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -23491,15 +23859,17 @@ "content": { "application/json": { "schema": { - "title": "RenderEmailTemplateResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/RenderEmailTemplateResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/RenderEmailTemplateResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -23954,15 +24324,17 @@ "content": { "application/json": { "schema": { - "title": "GetCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -24000,15 +24372,17 @@ "content": { "application/json": { "schema": { - "title": "UpdateCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -24080,15 +24454,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/DeleteCommentResult" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/DeleteCommentResult" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -24144,15 +24520,17 @@ "content": { "application/json": { "schema": { - "title": "GetCommentsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetCommentsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -24318,15 +24696,17 @@ "content": { "application/json": { "schema": { - "title": "SaveCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APISaveCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APISaveCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -24488,15 +24868,17 @@ "content": { "application/json": { "schema": { - "title": "FlagCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/FlagCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/FlagCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -24552,15 +24934,17 @@ "content": { "application/json": { "schema": { - "title": "UnFlagCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/FlagCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/FlagCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -24616,15 +25000,17 @@ "content": { "application/json": { "schema": { - "title": "BlockUserFromCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/BlockSuccess" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/BlockSuccess" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -24690,15 +25076,17 @@ "content": { "application/json": { "schema": { - "title": "UnBlockUserFromCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/UnblockSuccess" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/UnblockSuccess" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -24764,15 +25152,17 @@ "content": { "application/json": { "schema": { - "title": "GetAuditLogsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetAuditLogsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetAuditLogsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } From 3d4dc6d4ec7335cea87632816962897aa8ee56a3 Mon Sep 17 00:00:00 2001 From: winrid Date: Mon, 22 Jun 2026 16:03:24 -0700 Subject: [PATCH 3/9] Bump version to 2.0.1 (patch over the 2.0.0 Moderation API release) --- client/.travis.yml | 2 +- client/README.md | 8 ++++---- client/lib/fastcomments-client/version.rb | 2 +- config.json | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/client/.travis.yml b/client/.travis.yml index 28cbf39..4034bbf 100644 --- a/client/.travis.yml +++ b/client/.travis.yml @@ -8,4 +8,4 @@ script: - bundle install --path vendor/bundle - bundle exec rspec - gem build fastcomments-client.gemspec - - gem install ./fastcomments-client-2.0.0.gem + - gem install ./fastcomments-client-2.0.1.gem diff --git a/client/README.md b/client/README.md index f366fc6..a9eeddb 100644 --- a/client/README.md +++ b/client/README.md @@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/opena This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 0.0.0 -- Package version: 2.0.0 +- Package version: 2.0.1 - Generator version: 7.23.0-SNAPSHOT - Build package: org.openapitools.codegen.languages.RubyClientCodegen @@ -24,16 +24,16 @@ gem build fastcomments-client.gemspec Then either install the gem locally: ```shell -gem install ./fastcomments-client-2.0.0.gem +gem install ./fastcomments-client-2.0.1.gem ``` -(for development, run `gem install --dev ./fastcomments-client-2.0.0.gem` to install the development dependencies) +(for development, run `gem install --dev ./fastcomments-client-2.0.1.gem` to install the development dependencies) or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/). Finally add this to the Gemfile: - gem 'fastcomments-client', '~> 2.0.0' + gem 'fastcomments-client', '~> 2.0.1' ### Install from Git diff --git a/client/lib/fastcomments-client/version.rb b/client/lib/fastcomments-client/version.rb index 0d2ce83..734bd0c 100644 --- a/client/lib/fastcomments-client/version.rb +++ b/client/lib/fastcomments-client/version.rb @@ -11,5 +11,5 @@ =end module FastCommentsClient - VERSION = '2.0.0' + VERSION = '2.0.1' end diff --git a/config.json b/config.json index fb26e0a..e8721e1 100644 --- a/config.json +++ b/config.json @@ -1,5 +1,5 @@ { "gemName": "fastcomments-client", "moduleName": "FastCommentsClient", - "gemVersion": "2.0.0" + "gemVersion": "2.0.1" } From c7aa418812bb8c4e5ba93fd4cc9db333dcd3754e Mon Sep 17 00:00:00 2001 From: winrid Date: Mon, 22 Jun 2026 19:39:16 -0700 Subject: [PATCH 4/9] Regenerate with grouped request objects (useSingleRequestParameter) API methods now take a single opts hash containing all parameters. Updated SSO integration spec and README example. --- README.md | 2 +- client/docs/DefaultApi.md | 1764 ++++++------ client/docs/ModerationApi.md | 616 ++--- client/docs/PublicApi.md | 912 +++---- .../fastcomments-client/api/default_api.rb | 2357 ++++++++++------- .../fastcomments-client/api/moderation_api.rb | 594 +++-- .../lib/fastcomments-client/api/public_api.rb | 1195 +++++---- client/spec/api/moderation_api_spec.rb | 26 +- config.json | 3 +- openapi.json | 52 +- spec/sso_integration_spec.rb | 51 +- 11 files changed, 4147 insertions(+), 3425 deletions(-) diff --git a/README.md b/README.md index c795c24..1abe844 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ begin displayName: 'John Doe' } - response = api.add_sso_user('YOUR_TENANT_ID', user_data) + response = api.add_sso_user(tenant_id: 'YOUR_TENANT_ID', create_apisso_user_data: user_data) puts "User created: #{response}" rescue FastCommentsClient::ApiError => e diff --git a/client/docs/DefaultApi.md b/client/docs/DefaultApi.md index 7b9d22b..6e1b4c6 100644 --- a/client/docs/DefaultApi.md +++ b/client/docs/DefaultApi.md @@ -122,7 +122,7 @@ All URIs are relative to *https://fastcomments.com* ## add_domain_config -> add_domain_config(tenant_id, add_domain_config_params) +> add_domain_config(opts) @@ -140,12 +140,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -add_domain_config_params = FastCommentsClient::AddDomainConfigParams.new({domain: 'domain_example'}) # AddDomainConfigParams | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + add_domain_config_params: FastCommentsClient::AddDomainConfigParams.new({domain: 'domain_example'}), # AddDomainConfigParams | (required) +} begin - result = api_instance.add_domain_config(tenant_id, add_domain_config_params) + result = api_instance.add_domain_config(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->add_domain_config: #{e}" @@ -156,12 +158,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> add_domain_config_with_http_info(tenant_id, add_domain_config_params) +> , Integer, Hash)> add_domain_config_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.add_domain_config_with_http_info(tenant_id, add_domain_config_params) + data, status_code, headers = api_instance.add_domain_config_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -212,8 +214,8 @@ end api_instance = FastCommentsClient::DefaultApi.new opts = { - tenant_id: 'tenant_id_example', # String | - create_hash_tag_body: FastCommentsClient::CreateHashTagBody.new({tag: 'tag_example'}) # CreateHashTagBody | + tenant_id: 'tenant_id_example', # String | + create_hash_tag_body: FastCommentsClient::CreateHashTagBody.new({tag: 'tag_example'}), # CreateHashTagBody | } begin @@ -285,8 +287,8 @@ end api_instance = FastCommentsClient::DefaultApi.new opts = { - tenant_id: 'tenant_id_example', # String | - bulk_create_hash_tags_body: FastCommentsClient::BulkCreateHashTagsBody.new({tags: [FastCommentsClient::BulkCreateHashTagsBodyTagsInner.new({tag: 'tag_example'})]}) # BulkCreateHashTagsBody | + tenant_id: 'tenant_id_example', # String | + bulk_create_hash_tags_body: FastCommentsClient::BulkCreateHashTagsBody.new({tags: [FastCommentsClient::BulkCreateHashTagsBodyTagsInner.new({tag: 'tag_example'})]}), # BulkCreateHashTagsBody | } begin @@ -339,7 +341,7 @@ end ## add_page -> add_page(tenant_id, create_api_page_data) +> add_page(opts) @@ -357,12 +359,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -create_api_page_data = FastCommentsClient::CreateAPIPageData.new({title: 'title_example', url: 'url_example', url_id: 'url_id_example'}) # CreateAPIPageData | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + create_api_page_data: FastCommentsClient::CreateAPIPageData.new({title: 'title_example', url: 'url_example', url_id: 'url_id_example'}), # CreateAPIPageData | (required) +} begin - result = api_instance.add_page(tenant_id, create_api_page_data) + result = api_instance.add_page(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->add_page: #{e}" @@ -373,12 +377,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> add_page_with_http_info(tenant_id, create_api_page_data) +> , Integer, Hash)> add_page_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.add_page_with_http_info(tenant_id, create_api_page_data) + data, status_code, headers = api_instance.add_page_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -410,7 +414,7 @@ end ## add_sso_user -> add_sso_user(tenant_id, create_apisso_user_data) +> add_sso_user(opts) @@ -428,12 +432,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -create_apisso_user_data = FastCommentsClient::CreateAPISSOUserData.new({email: 'email_example', username: 'username_example', id: 'id_example'}) # CreateAPISSOUserData | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + create_apisso_user_data: FastCommentsClient::CreateAPISSOUserData.new({email: 'email_example', username: 'username_example', id: 'id_example'}), # CreateAPISSOUserData | (required) +} begin - result = api_instance.add_sso_user(tenant_id, create_apisso_user_data) + result = api_instance.add_sso_user(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->add_sso_user: #{e}" @@ -444,12 +450,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> add_sso_user_with_http_info(tenant_id, create_apisso_user_data) +> , Integer, Hash)> add_sso_user_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.add_sso_user_with_http_info(tenant_id, create_apisso_user_data) + data, status_code, headers = api_instance.add_sso_user_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -481,7 +487,7 @@ end ## aggregate -> aggregate(tenant_id, aggregation_request, opts) +> aggregate(opts) @@ -501,16 +507,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -aggregation_request = FastCommentsClient::AggregationRequest.new({resource_name: 'resource_name_example', operations: [FastCommentsClient::AggregationOperation.new({field: 'field_example', op: FastCommentsClient::AggregationOpType::SUM})]}) # AggregationRequest | opts = { - parent_tenant_id: 'parent_tenant_id_example', # String | - include_stats: true # Boolean | + tenant_id: 'tenant_id_example', # String | (required) + aggregation_request: FastCommentsClient::AggregationRequest.new({resource_name: 'resource_name_example', operations: [FastCommentsClient::AggregationOperation.new({field: 'field_example', op: FastCommentsClient::AggregationOpType::SUM})]}), # AggregationRequest | (required) + parent_tenant_id: 'parent_tenant_id_example', # String | + include_stats: true, # Boolean | } begin - result = api_instance.aggregate(tenant_id, aggregation_request, opts) + result = api_instance.aggregate(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->aggregate: #{e}" @@ -521,12 +527,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> aggregate_with_http_info(tenant_id, aggregation_request, opts) +> , Integer, Hash)> aggregate_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.aggregate_with_http_info(tenant_id, aggregation_request, opts) + data, status_code, headers = api_instance.aggregate_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -560,7 +566,7 @@ end ## aggregate_question_results -> aggregate_question_results(tenant_id, opts) +> aggregate_question_results(opts) @@ -578,19 +584,19 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | opts = { - question_id: 'question_id_example', # String | - question_ids: ['inner_example'], # Array | - url_id: 'url_id_example', # String | - time_bucket: FastCommentsClient::AggregateTimeBucket::DAY, # AggregateTimeBucket | - start_date: Time.parse('2013-10-20T19:20:30+01:00'), # Time | - force_recalculate: true # Boolean | + tenant_id: 'tenant_id_example', # String | (required) + question_id: 'question_id_example', # String | + question_ids: ['inner_example'], # Array | + url_id: 'url_id_example', # String | + time_bucket: FastCommentsClient::AggregateTimeBucket::DAY, # AggregateTimeBucket | + start_date: Time.parse('2013-10-20T19:20:30+01:00'), # Time | + force_recalculate: true, # Boolean | } begin - result = api_instance.aggregate_question_results(tenant_id, opts) + result = api_instance.aggregate_question_results(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->aggregate_question_results: #{e}" @@ -601,12 +607,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> aggregate_question_results_with_http_info(tenant_id, opts) +> , Integer, Hash)> aggregate_question_results_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.aggregate_question_results_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.aggregate_question_results_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -643,7 +649,7 @@ end ## block_user_from_comment -> block_user_from_comment(tenant_id, id, block_from_comment_params, opts) +> block_user_from_comment(opts) @@ -661,17 +667,17 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | -block_from_comment_params = FastCommentsClient::BlockFromCommentParams.new # BlockFromCommentParams | opts = { - user_id: 'user_id_example', # String | - anon_user_id: 'anon_user_id_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + block_from_comment_params: FastCommentsClient::BlockFromCommentParams.new, # BlockFromCommentParams | (required) + user_id: 'user_id_example', # String | + anon_user_id: 'anon_user_id_example', # String | } begin - result = api_instance.block_user_from_comment(tenant_id, id, block_from_comment_params, opts) + result = api_instance.block_user_from_comment(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->block_user_from_comment: #{e}" @@ -682,12 +688,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> block_user_from_comment_with_http_info(tenant_id, id, block_from_comment_params, opts) +> , Integer, Hash)> block_user_from_comment_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.block_user_from_comment_with_http_info(tenant_id, id, block_from_comment_params, opts) + data, status_code, headers = api_instance.block_user_from_comment_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -722,7 +728,7 @@ end ## bulk_aggregate_question_results -> bulk_aggregate_question_results(tenant_id, bulk_aggregate_question_results_request, opts) +> bulk_aggregate_question_results(opts) @@ -740,15 +746,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -bulk_aggregate_question_results_request = FastCommentsClient::BulkAggregateQuestionResultsRequest.new({aggregations: [FastCommentsClient::BulkAggregateQuestionItem.new({agg_id: 'agg_id_example'})]}) # BulkAggregateQuestionResultsRequest | opts = { - force_recalculate: true # Boolean | + tenant_id: 'tenant_id_example', # String | (required) + bulk_aggregate_question_results_request: FastCommentsClient::BulkAggregateQuestionResultsRequest.new({aggregations: [FastCommentsClient::BulkAggregateQuestionItem.new({agg_id: 'agg_id_example'})]}), # BulkAggregateQuestionResultsRequest | (required) + force_recalculate: true, # Boolean | } begin - result = api_instance.bulk_aggregate_question_results(tenant_id, bulk_aggregate_question_results_request, opts) + result = api_instance.bulk_aggregate_question_results(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->bulk_aggregate_question_results: #{e}" @@ -759,12 +765,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> bulk_aggregate_question_results_with_http_info(tenant_id, bulk_aggregate_question_results_request, opts) +> , Integer, Hash)> bulk_aggregate_question_results_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.bulk_aggregate_question_results_with_http_info(tenant_id, bulk_aggregate_question_results_request, opts) + data, status_code, headers = api_instance.bulk_aggregate_question_results_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -797,7 +803,7 @@ end ## change_ticket_state -> change_ticket_state(tenant_id, user_id, id, change_ticket_state_body) +> change_ticket_state(opts) @@ -815,14 +821,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -user_id = 'user_id_example' # String | -id = 'id_example' # String | -change_ticket_state_body = FastCommentsClient::ChangeTicketStateBody.new({state: 37}) # ChangeTicketStateBody | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + user_id: 'user_id_example', # String | (required) + id: 'id_example', # String | (required) + change_ticket_state_body: FastCommentsClient::ChangeTicketStateBody.new({state: 37}), # ChangeTicketStateBody | (required) +} begin - result = api_instance.change_ticket_state(tenant_id, user_id, id, change_ticket_state_body) + result = api_instance.change_ticket_state(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->change_ticket_state: #{e}" @@ -833,12 +841,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_state_body) +> , Integer, Hash)> change_ticket_state_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_state_body) + data, status_code, headers = api_instance.change_ticket_state_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -872,7 +880,7 @@ end ## combine_comments_with_question_results -> combine_comments_with_question_results(tenant_id, opts) +> combine_comments_with_question_results(opts) @@ -890,21 +898,21 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | opts = { - question_id: 'question_id_example', # String | - question_ids: ['inner_example'], # Array | - url_id: 'url_id_example', # String | - start_date: Time.parse('2013-10-20T19:20:30+01:00'), # Time | - force_recalculate: true, # Boolean | - min_value: 1.2, # Float | - max_value: 1.2, # Float | - limit: 1.2 # Float | + tenant_id: 'tenant_id_example', # String | (required) + question_id: 'question_id_example', # String | + question_ids: ['inner_example'], # Array | + url_id: 'url_id_example', # String | + start_date: Time.parse('2013-10-20T19:20:30+01:00'), # Time | + force_recalculate: true, # Boolean | + min_value: 1.2, # Float | + max_value: 1.2, # Float | + limit: 1.2, # Float | } begin - result = api_instance.combine_comments_with_question_results(tenant_id, opts) + result = api_instance.combine_comments_with_question_results(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->combine_comments_with_question_results: #{e}" @@ -915,12 +923,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> combine_comments_with_question_results_with_http_info(tenant_id, opts) +> , Integer, Hash)> combine_comments_with_question_results_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.combine_comments_with_question_results_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.combine_comments_with_question_results_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -959,7 +967,7 @@ end ## create_email_template -> create_email_template(tenant_id, create_email_template_body) +> create_email_template(opts) @@ -977,12 +985,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -create_email_template_body = FastCommentsClient::CreateEmailTemplateBody.new({email_template_id: 'email_template_id_example', display_name: 'display_name_example', ejs: 'ejs_example'}) # CreateEmailTemplateBody | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + create_email_template_body: FastCommentsClient::CreateEmailTemplateBody.new({email_template_id: 'email_template_id_example', display_name: 'display_name_example', ejs: 'ejs_example'}), # CreateEmailTemplateBody | (required) +} begin - result = api_instance.create_email_template(tenant_id, create_email_template_body) + result = api_instance.create_email_template(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_email_template: #{e}" @@ -993,12 +1003,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_email_template_with_http_info(tenant_id, create_email_template_body) +> , Integer, Hash)> create_email_template_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.create_email_template_with_http_info(tenant_id, create_email_template_body) + data, status_code, headers = api_instance.create_email_template_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1030,7 +1040,7 @@ end ## create_feed_post -> create_feed_post(tenant_id, create_feed_post_params, opts) +> create_feed_post(opts) @@ -1048,18 +1058,18 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -create_feed_post_params = FastCommentsClient::CreateFeedPostParams.new # CreateFeedPostParams | opts = { - broadcast_id: 'broadcast_id_example', # String | - is_live: true, # Boolean | - do_spam_check: true, # Boolean | - skip_dup_check: true # Boolean | + tenant_id: 'tenant_id_example', # String | (required) + create_feed_post_params: FastCommentsClient::CreateFeedPostParams.new, # CreateFeedPostParams | (required) + broadcast_id: 'broadcast_id_example', # String | + is_live: true, # Boolean | + do_spam_check: true, # Boolean | + skip_dup_check: true, # Boolean | } begin - result = api_instance.create_feed_post(tenant_id, create_feed_post_params, opts) + result = api_instance.create_feed_post(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_feed_post: #{e}" @@ -1070,12 +1080,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_feed_post_with_http_info(tenant_id, create_feed_post_params, opts) +> , Integer, Hash)> create_feed_post_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.create_feed_post_with_http_info(tenant_id, create_feed_post_params, opts) + data, status_code, headers = api_instance.create_feed_post_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1111,7 +1121,7 @@ end ## create_moderator -> create_moderator(tenant_id, create_moderator_body) +> create_moderator(opts) @@ -1129,12 +1139,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -create_moderator_body = FastCommentsClient::CreateModeratorBody.new({name: 'name_example', email: 'email_example'}) # CreateModeratorBody | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + create_moderator_body: FastCommentsClient::CreateModeratorBody.new({name: 'name_example', email: 'email_example'}), # CreateModeratorBody | (required) +} begin - result = api_instance.create_moderator(tenant_id, create_moderator_body) + result = api_instance.create_moderator(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_moderator: #{e}" @@ -1145,12 +1157,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_moderator_with_http_info(tenant_id, create_moderator_body) +> , Integer, Hash)> create_moderator_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.create_moderator_with_http_info(tenant_id, create_moderator_body) + data, status_code, headers = api_instance.create_moderator_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1182,7 +1194,7 @@ end ## create_question_config -> create_question_config(tenant_id, create_question_config_body) +> create_question_config(opts) @@ -1200,12 +1212,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -create_question_config_body = FastCommentsClient::CreateQuestionConfigBody.new({name: 'name_example', question: 'question_example', type: 'type_example', reporting_order: 3.56}) # CreateQuestionConfigBody | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + create_question_config_body: FastCommentsClient::CreateQuestionConfigBody.new({name: 'name_example', question: 'question_example', type: 'type_example', reporting_order: 3.56}), # CreateQuestionConfigBody | (required) +} begin - result = api_instance.create_question_config(tenant_id, create_question_config_body) + result = api_instance.create_question_config(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_question_config: #{e}" @@ -1216,12 +1230,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_question_config_with_http_info(tenant_id, create_question_config_body) +> , Integer, Hash)> create_question_config_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.create_question_config_with_http_info(tenant_id, create_question_config_body) + data, status_code, headers = api_instance.create_question_config_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1253,7 +1267,7 @@ end ## create_question_result -> create_question_result(tenant_id, create_question_result_body) +> create_question_result(opts) @@ -1271,12 +1285,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -create_question_result_body = FastCommentsClient::CreateQuestionResultBody.new({url_id: 'url_id_example', value: 3.56, question_id: 'question_id_example'}) # CreateQuestionResultBody | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + create_question_result_body: FastCommentsClient::CreateQuestionResultBody.new({url_id: 'url_id_example', value: 3.56, question_id: 'question_id_example'}), # CreateQuestionResultBody | (required) +} begin - result = api_instance.create_question_result(tenant_id, create_question_result_body) + result = api_instance.create_question_result(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_question_result: #{e}" @@ -1287,12 +1303,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_question_result_with_http_info(tenant_id, create_question_result_body) +> , Integer, Hash)> create_question_result_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.create_question_result_with_http_info(tenant_id, create_question_result_body) + data, status_code, headers = api_instance.create_question_result_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1324,7 +1340,7 @@ end ## create_subscription -> create_subscription(tenant_id, create_api_user_subscription_data) +> create_subscription(opts) @@ -1342,12 +1358,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -create_api_user_subscription_data = FastCommentsClient::CreateAPIUserSubscriptionData.new({url_id: 'url_id_example'}) # CreateAPIUserSubscriptionData | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + create_api_user_subscription_data: FastCommentsClient::CreateAPIUserSubscriptionData.new({url_id: 'url_id_example'}), # CreateAPIUserSubscriptionData | (required) +} begin - result = api_instance.create_subscription(tenant_id, create_api_user_subscription_data) + result = api_instance.create_subscription(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_subscription: #{e}" @@ -1358,12 +1376,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_subscription_with_http_info(tenant_id, create_api_user_subscription_data) +> , Integer, Hash)> create_subscription_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.create_subscription_with_http_info(tenant_id, create_api_user_subscription_data) + data, status_code, headers = api_instance.create_subscription_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1395,7 +1413,7 @@ end ## create_tenant -> create_tenant(tenant_id, create_tenant_body) +> create_tenant(opts) @@ -1413,12 +1431,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -create_tenant_body = FastCommentsClient::CreateTenantBody.new({name: 'name_example', domain_configuration: [FastCommentsClient::APIDomainConfiguration.new({id: 'id_example', domain: 'domain_example', created_at: Time.now})]}) # CreateTenantBody | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + create_tenant_body: FastCommentsClient::CreateTenantBody.new({name: 'name_example', domain_configuration: [FastCommentsClient::APIDomainConfiguration.new({id: 'id_example', domain: 'domain_example', created_at: Time.now})]}), # CreateTenantBody | (required) +} begin - result = api_instance.create_tenant(tenant_id, create_tenant_body) + result = api_instance.create_tenant(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_tenant: #{e}" @@ -1429,12 +1449,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_tenant_with_http_info(tenant_id, create_tenant_body) +> , Integer, Hash)> create_tenant_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.create_tenant_with_http_info(tenant_id, create_tenant_body) + data, status_code, headers = api_instance.create_tenant_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1466,7 +1486,7 @@ end ## create_tenant_package -> create_tenant_package(tenant_id, create_tenant_package_body) +> create_tenant_package(opts) @@ -1484,12 +1504,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -create_tenant_package_body = FastCommentsClient::CreateTenantPackageBody.new({name: 'name_example', max_monthly_page_loads: 3.56, max_monthly_api_credits: 3.56, max_monthly_comments: 3.56, max_concurrent_users: 3.56, max_tenant_users: 3.56, max_sso_users: 3.56, max_moderators: 3.56, max_domains: 3.56, has_debranding: false, for_who_text: 'for_who_text_example', feature_taglines: ['feature_taglines_example'], has_flex_pricing: false}) # CreateTenantPackageBody | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + create_tenant_package_body: FastCommentsClient::CreateTenantPackageBody.new({name: 'name_example', max_monthly_page_loads: 3.56, max_monthly_api_credits: 3.56, max_monthly_comments: 3.56, max_concurrent_users: 3.56, max_tenant_users: 3.56, max_sso_users: 3.56, max_moderators: 3.56, max_domains: 3.56, has_debranding: false, for_who_text: 'for_who_text_example', feature_taglines: ['feature_taglines_example'], has_flex_pricing: false}), # CreateTenantPackageBody | (required) +} begin - result = api_instance.create_tenant_package(tenant_id, create_tenant_package_body) + result = api_instance.create_tenant_package(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_tenant_package: #{e}" @@ -1500,12 +1522,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_tenant_package_with_http_info(tenant_id, create_tenant_package_body) +> , Integer, Hash)> create_tenant_package_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.create_tenant_package_with_http_info(tenant_id, create_tenant_package_body) + data, status_code, headers = api_instance.create_tenant_package_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1537,7 +1559,7 @@ end ## create_tenant_user -> create_tenant_user(tenant_id, create_tenant_user_body) +> create_tenant_user(opts) @@ -1555,12 +1577,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -create_tenant_user_body = FastCommentsClient::CreateTenantUserBody.new({username: 'username_example', email: 'email_example'}) # CreateTenantUserBody | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + create_tenant_user_body: FastCommentsClient::CreateTenantUserBody.new({username: 'username_example', email: 'email_example'}), # CreateTenantUserBody | (required) +} begin - result = api_instance.create_tenant_user(tenant_id, create_tenant_user_body) + result = api_instance.create_tenant_user(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_tenant_user: #{e}" @@ -1571,12 +1595,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_tenant_user_with_http_info(tenant_id, create_tenant_user_body) +> , Integer, Hash)> create_tenant_user_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.create_tenant_user_with_http_info(tenant_id, create_tenant_user_body) + data, status_code, headers = api_instance.create_tenant_user_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1608,7 +1632,7 @@ end ## create_ticket -> create_ticket(tenant_id, user_id, create_ticket_body) +> create_ticket(opts) @@ -1626,13 +1650,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -user_id = 'user_id_example' # String | -create_ticket_body = FastCommentsClient::CreateTicketBody.new({subject: 'subject_example'}) # CreateTicketBody | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + user_id: 'user_id_example', # String | (required) + create_ticket_body: FastCommentsClient::CreateTicketBody.new({subject: 'subject_example'}), # CreateTicketBody | (required) +} begin - result = api_instance.create_ticket(tenant_id, user_id, create_ticket_body) + result = api_instance.create_ticket(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_ticket: #{e}" @@ -1643,12 +1669,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_ticket_with_http_info(tenant_id, user_id, create_ticket_body) +> , Integer, Hash)> create_ticket_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.create_ticket_with_http_info(tenant_id, user_id, create_ticket_body) + data, status_code, headers = api_instance.create_ticket_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1681,7 +1707,7 @@ end ## create_user_badge -> create_user_badge(tenant_id, create_user_badge_params) +> create_user_badge(opts) @@ -1699,12 +1725,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -create_user_badge_params = FastCommentsClient::CreateUserBadgeParams.new({user_id: 'user_id_example', badge_id: 'badge_id_example'}) # CreateUserBadgeParams | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + create_user_badge_params: FastCommentsClient::CreateUserBadgeParams.new({user_id: 'user_id_example', badge_id: 'badge_id_example'}), # CreateUserBadgeParams | (required) +} begin - result = api_instance.create_user_badge(tenant_id, create_user_badge_params) + result = api_instance.create_user_badge(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_user_badge: #{e}" @@ -1715,12 +1743,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_user_badge_with_http_info(tenant_id, create_user_badge_params) +> , Integer, Hash)> create_user_badge_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.create_user_badge_with_http_info(tenant_id, create_user_badge_params) + data, status_code, headers = api_instance.create_user_badge_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1752,7 +1780,7 @@ end ## create_vote -> create_vote(tenant_id, comment_id, direction, opts) +> create_vote(opts) @@ -1770,17 +1798,17 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -comment_id = 'comment_id_example' # String | -direction = 'up' # String | opts = { - user_id: 'user_id_example', # String | - anon_user_id: 'anon_user_id_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + comment_id: 'comment_id_example', # String | (required) + direction: 'up', # String | (required) + user_id: 'user_id_example', # String | + anon_user_id: 'anon_user_id_example', # String | } begin - result = api_instance.create_vote(tenant_id, comment_id, direction, opts) + result = api_instance.create_vote(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_vote: #{e}" @@ -1791,12 +1819,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_vote_with_http_info(tenant_id, comment_id, direction, opts) +> , Integer, Hash)> create_vote_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.create_vote_with_http_info(tenant_id, comment_id, direction, opts) + data, status_code, headers = api_instance.create_vote_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1831,7 +1859,7 @@ end ## delete_comment -> delete_comment(tenant_id, id, opts) +> delete_comment(opts) @@ -1849,16 +1877,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | opts = { - context_user_id: 'context_user_id_example', # String | - is_live: true # Boolean | + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + context_user_id: 'context_user_id_example', # String | + is_live: true, # Boolean | } begin - result = api_instance.delete_comment(tenant_id, id, opts) + result = api_instance.delete_comment(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_comment: #{e}" @@ -1869,12 +1897,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_comment_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> delete_comment_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.delete_comment_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.delete_comment_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1908,7 +1936,7 @@ end ## delete_domain_config -> delete_domain_config(tenant_id, domain) +> delete_domain_config(opts) @@ -1926,12 +1954,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -domain = 'domain_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + domain: 'domain_example', # String | (required) +} begin - result = api_instance.delete_domain_config(tenant_id, domain) + result = api_instance.delete_domain_config(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_domain_config: #{e}" @@ -1942,12 +1972,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_domain_config_with_http_info(tenant_id, domain) +> , Integer, Hash)> delete_domain_config_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.delete_domain_config_with_http_info(tenant_id, domain) + data, status_code, headers = api_instance.delete_domain_config_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1979,7 +2009,7 @@ end ## delete_email_template -> delete_email_template(tenant_id, id) +> delete_email_template(opts) @@ -1997,12 +2027,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) +} begin - result = api_instance.delete_email_template(tenant_id, id) + result = api_instance.delete_email_template(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_email_template: #{e}" @@ -2013,12 +2045,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_email_template_with_http_info(tenant_id, id) +> , Integer, Hash)> delete_email_template_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.delete_email_template_with_http_info(tenant_id, id) + data, status_code, headers = api_instance.delete_email_template_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2050,7 +2082,7 @@ end ## delete_email_template_render_error -> delete_email_template_render_error(tenant_id, id, error_id) +> delete_email_template_render_error(opts) @@ -2068,13 +2100,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | -error_id = 'error_id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + error_id: 'error_id_example', # String | (required) +} begin - result = api_instance.delete_email_template_render_error(tenant_id, id, error_id) + result = api_instance.delete_email_template_render_error(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_email_template_render_error: #{e}" @@ -2085,12 +2119,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_email_template_render_error_with_http_info(tenant_id, id, error_id) +> , Integer, Hash)> delete_email_template_render_error_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.delete_email_template_render_error_with_http_info(tenant_id, id, error_id) + data, status_code, headers = api_instance.delete_email_template_render_error_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2123,7 +2157,7 @@ end ## delete_hash_tag -> delete_hash_tag(tag, opts) +> delete_hash_tag(opts) @@ -2141,15 +2175,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tag = 'tag_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | - delete_hash_tag_request_body: FastCommentsClient::DeleteHashTagRequestBody.new # DeleteHashTagRequestBody | + tag: 'tag_example', # String | (required) + tenant_id: 'tenant_id_example', # String | + delete_hash_tag_request_body: FastCommentsClient::DeleteHashTagRequestBody.new, # DeleteHashTagRequestBody | } begin - result = api_instance.delete_hash_tag(tag, opts) + result = api_instance.delete_hash_tag(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_hash_tag: #{e}" @@ -2160,12 +2194,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_hash_tag_with_http_info(tag, opts) +> , Integer, Hash)> delete_hash_tag_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.delete_hash_tag_with_http_info(tag, opts) + data, status_code, headers = api_instance.delete_hash_tag_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2198,7 +2232,7 @@ end ## delete_moderator -> delete_moderator(tenant_id, id, opts) +> delete_moderator(opts) @@ -2216,15 +2250,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | opts = { - send_email: 'send_email_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + send_email: 'send_email_example', # String | } begin - result = api_instance.delete_moderator(tenant_id, id, opts) + result = api_instance.delete_moderator(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_moderator: #{e}" @@ -2235,12 +2269,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_moderator_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> delete_moderator_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.delete_moderator_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.delete_moderator_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2273,7 +2307,7 @@ end ## delete_notification_count -> delete_notification_count(tenant_id, id) +> delete_notification_count(opts) @@ -2291,12 +2325,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) +} begin - result = api_instance.delete_notification_count(tenant_id, id) + result = api_instance.delete_notification_count(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_notification_count: #{e}" @@ -2307,12 +2343,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_notification_count_with_http_info(tenant_id, id) +> , Integer, Hash)> delete_notification_count_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.delete_notification_count_with_http_info(tenant_id, id) + data, status_code, headers = api_instance.delete_notification_count_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2344,7 +2380,7 @@ end ## delete_page -> delete_page(tenant_id, id) +> delete_page(opts) @@ -2362,12 +2398,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) +} begin - result = api_instance.delete_page(tenant_id, id) + result = api_instance.delete_page(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_page: #{e}" @@ -2378,12 +2416,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_page_with_http_info(tenant_id, id) +> , Integer, Hash)> delete_page_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.delete_page_with_http_info(tenant_id, id) + data, status_code, headers = api_instance.delete_page_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2415,7 +2453,7 @@ end ## delete_pending_webhook_event -> delete_pending_webhook_event(tenant_id, id) +> delete_pending_webhook_event(opts) @@ -2433,12 +2471,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) +} begin - result = api_instance.delete_pending_webhook_event(tenant_id, id) + result = api_instance.delete_pending_webhook_event(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_pending_webhook_event: #{e}" @@ -2449,12 +2489,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_pending_webhook_event_with_http_info(tenant_id, id) +> , Integer, Hash)> delete_pending_webhook_event_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.delete_pending_webhook_event_with_http_info(tenant_id, id) + data, status_code, headers = api_instance.delete_pending_webhook_event_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2486,7 +2526,7 @@ end ## delete_question_config -> delete_question_config(tenant_id, id) +> delete_question_config(opts) @@ -2504,12 +2544,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) +} begin - result = api_instance.delete_question_config(tenant_id, id) + result = api_instance.delete_question_config(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_question_config: #{e}" @@ -2520,12 +2562,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_question_config_with_http_info(tenant_id, id) +> , Integer, Hash)> delete_question_config_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.delete_question_config_with_http_info(tenant_id, id) + data, status_code, headers = api_instance.delete_question_config_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2557,7 +2599,7 @@ end ## delete_question_result -> delete_question_result(tenant_id, id) +> delete_question_result(opts) @@ -2575,12 +2617,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) +} begin - result = api_instance.delete_question_result(tenant_id, id) + result = api_instance.delete_question_result(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_question_result: #{e}" @@ -2591,12 +2635,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_question_result_with_http_info(tenant_id, id) +> , Integer, Hash)> delete_question_result_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.delete_question_result_with_http_info(tenant_id, id) + data, status_code, headers = api_instance.delete_question_result_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2628,7 +2672,7 @@ end ## delete_sso_user -> delete_sso_user(tenant_id, id, opts) +> delete_sso_user(opts) @@ -2646,16 +2690,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | opts = { - delete_comments: true, # Boolean | - comment_delete_mode: 'comment_delete_mode_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + delete_comments: true, # Boolean | + comment_delete_mode: 'comment_delete_mode_example', # String | } begin - result = api_instance.delete_sso_user(tenant_id, id, opts) + result = api_instance.delete_sso_user(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_sso_user: #{e}" @@ -2666,12 +2710,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_sso_user_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> delete_sso_user_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.delete_sso_user_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.delete_sso_user_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2705,7 +2749,7 @@ end ## delete_subscription -> delete_subscription(tenant_id, id, opts) +> delete_subscription(opts) @@ -2723,15 +2767,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | opts = { - user_id: 'user_id_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + user_id: 'user_id_example', # String | } begin - result = api_instance.delete_subscription(tenant_id, id, opts) + result = api_instance.delete_subscription(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_subscription: #{e}" @@ -2742,12 +2786,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_subscription_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> delete_subscription_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.delete_subscription_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.delete_subscription_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2780,7 +2824,7 @@ end ## delete_tenant -> delete_tenant(tenant_id, id, opts) +> delete_tenant(opts) @@ -2798,15 +2842,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | opts = { - sure: 'sure_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + sure: 'sure_example', # String | } begin - result = api_instance.delete_tenant(tenant_id, id, opts) + result = api_instance.delete_tenant(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_tenant: #{e}" @@ -2817,12 +2861,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_tenant_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> delete_tenant_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.delete_tenant_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.delete_tenant_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2855,7 +2899,7 @@ end ## delete_tenant_package -> delete_tenant_package(tenant_id, id) +> delete_tenant_package(opts) @@ -2873,12 +2917,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) +} begin - result = api_instance.delete_tenant_package(tenant_id, id) + result = api_instance.delete_tenant_package(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_tenant_package: #{e}" @@ -2889,12 +2935,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_tenant_package_with_http_info(tenant_id, id) +> , Integer, Hash)> delete_tenant_package_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.delete_tenant_package_with_http_info(tenant_id, id) + data, status_code, headers = api_instance.delete_tenant_package_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2926,7 +2972,7 @@ end ## delete_tenant_user -> delete_tenant_user(tenant_id, id, opts) +> delete_tenant_user(opts) @@ -2944,16 +2990,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | opts = { - delete_comments: 'delete_comments_example', # String | - comment_delete_mode: 'comment_delete_mode_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + delete_comments: 'delete_comments_example', # String | + comment_delete_mode: 'comment_delete_mode_example', # String | } begin - result = api_instance.delete_tenant_user(tenant_id, id, opts) + result = api_instance.delete_tenant_user(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_tenant_user: #{e}" @@ -2964,12 +3010,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_tenant_user_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> delete_tenant_user_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.delete_tenant_user_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.delete_tenant_user_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3003,7 +3049,7 @@ end ## delete_user_badge -> delete_user_badge(tenant_id, id) +> delete_user_badge(opts) @@ -3021,12 +3067,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) +} begin - result = api_instance.delete_user_badge(tenant_id, id) + result = api_instance.delete_user_badge(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_user_badge: #{e}" @@ -3037,12 +3085,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_user_badge_with_http_info(tenant_id, id) +> , Integer, Hash)> delete_user_badge_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.delete_user_badge_with_http_info(tenant_id, id) + data, status_code, headers = api_instance.delete_user_badge_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3074,7 +3122,7 @@ end ## delete_vote -> delete_vote(tenant_id, id, opts) +> delete_vote(opts) @@ -3092,15 +3140,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | opts = { - edit_key: 'edit_key_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + edit_key: 'edit_key_example', # String | } begin - result = api_instance.delete_vote(tenant_id, id, opts) + result = api_instance.delete_vote(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_vote: #{e}" @@ -3111,12 +3159,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_vote_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> delete_vote_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.delete_vote_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.delete_vote_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3149,7 +3197,7 @@ end ## flag_comment -> flag_comment(tenant_id, id, opts) +> flag_comment(opts) @@ -3167,16 +3215,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | opts = { - user_id: 'user_id_example', # String | - anon_user_id: 'anon_user_id_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + user_id: 'user_id_example', # String | + anon_user_id: 'anon_user_id_example', # String | } begin - result = api_instance.flag_comment(tenant_id, id, opts) + result = api_instance.flag_comment(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->flag_comment: #{e}" @@ -3187,12 +3235,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> flag_comment_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> flag_comment_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.flag_comment_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.flag_comment_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3226,7 +3274,7 @@ end ## get_audit_logs -> get_audit_logs(tenant_id, opts) +> get_audit_logs(opts) @@ -3244,18 +3292,18 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | opts = { - limit: 1.2, # Float | - skip: 1.2, # Float | - order: FastCommentsClient::SORTDIR::ASC, # SORTDIR | - after: 1.2, # Float | - before: 1.2 # Float | + tenant_id: 'tenant_id_example', # String | (required) + limit: 1.2, # Float | + skip: 1.2, # Float | + order: FastCommentsClient::SORTDIR::ASC, # SORTDIR | + after: 1.2, # Float | + before: 1.2, # Float | } begin - result = api_instance.get_audit_logs(tenant_id, opts) + result = api_instance.get_audit_logs(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_audit_logs: #{e}" @@ -3266,12 +3314,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_audit_logs_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_audit_logs_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_audit_logs_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_audit_logs_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3307,7 +3355,7 @@ end ## get_cached_notification_count -> get_cached_notification_count(tenant_id, id) +> get_cached_notification_count(opts) @@ -3325,12 +3373,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) +} begin - result = api_instance.get_cached_notification_count(tenant_id, id) + result = api_instance.get_cached_notification_count(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_cached_notification_count: #{e}" @@ -3341,12 +3391,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_cached_notification_count_with_http_info(tenant_id, id) +> , Integer, Hash)> get_cached_notification_count_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_cached_notification_count_with_http_info(tenant_id, id) + data, status_code, headers = api_instance.get_cached_notification_count_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3378,7 +3428,7 @@ end ## get_comment -> get_comment(tenant_id, id) +> get_comment(opts) @@ -3396,12 +3446,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) +} begin - result = api_instance.get_comment(tenant_id, id) + result = api_instance.get_comment(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_comment: #{e}" @@ -3412,12 +3464,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comment_with_http_info(tenant_id, id) +> , Integer, Hash)> get_comment_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_comment_with_http_info(tenant_id, id) + data, status_code, headers = api_instance.get_comment_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3449,7 +3501,7 @@ end ## get_comments -> get_comments(tenant_id, opts) +> get_comments(opts) @@ -3467,29 +3519,29 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | opts = { - page: 56, # Integer | - limit: 56, # Integer | - skip: 56, # Integer | - as_tree: true, # Boolean | - skip_children: 56, # Integer | - limit_children: 56, # Integer | - max_tree_depth: 56, # Integer | - url_id: 'url_id_example', # String | - user_id: 'user_id_example', # String | - anon_user_id: 'anon_user_id_example', # String | - context_user_id: 'context_user_id_example', # String | - hash_tag: 'hash_tag_example', # String | - parent_id: 'parent_id_example', # String | - direction: FastCommentsClient::SortDirections::OF, # SortDirections | - from_date: 789, # Integer | - to_date: 789 # Integer | + tenant_id: 'tenant_id_example', # String | (required) + page: 56, # Integer | + limit: 56, # Integer | + skip: 56, # Integer | + as_tree: true, # Boolean | + skip_children: 56, # Integer | + limit_children: 56, # Integer | + max_tree_depth: 56, # Integer | + url_id: 'url_id_example', # String | + user_id: 'user_id_example', # String | + anon_user_id: 'anon_user_id_example', # String | + context_user_id: 'context_user_id_example', # String | + hash_tag: 'hash_tag_example', # String | + parent_id: 'parent_id_example', # String | + direction: FastCommentsClient::SortDirections::OF, # SortDirections | + from_date: 789, # Integer | + to_date: 789, # Integer | } begin - result = api_instance.get_comments(tenant_id, opts) + result = api_instance.get_comments(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_comments: #{e}" @@ -3500,12 +3552,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comments_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_comments_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_comments_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_comments_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3552,7 +3604,7 @@ end ## get_domain_config -> get_domain_config(tenant_id, domain) +> get_domain_config(opts) @@ -3570,12 +3622,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -domain = 'domain_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + domain: 'domain_example', # String | (required) +} begin - result = api_instance.get_domain_config(tenant_id, domain) + result = api_instance.get_domain_config(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_domain_config: #{e}" @@ -3586,12 +3640,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_domain_config_with_http_info(tenant_id, domain) +> , Integer, Hash)> get_domain_config_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_domain_config_with_http_info(tenant_id, domain) + data, status_code, headers = api_instance.get_domain_config_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3623,7 +3677,7 @@ end ## get_domain_configs -> get_domain_configs(tenant_id) +> get_domain_configs(opts) @@ -3641,11 +3695,13 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) +} begin - result = api_instance.get_domain_configs(tenant_id) + result = api_instance.get_domain_configs(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_domain_configs: #{e}" @@ -3656,12 +3712,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_domain_configs_with_http_info(tenant_id) +> , Integer, Hash)> get_domain_configs_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_domain_configs_with_http_info(tenant_id) + data, status_code, headers = api_instance.get_domain_configs_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3692,7 +3748,7 @@ end ## get_email_template -> get_email_template(tenant_id, id) +> get_email_template(opts) @@ -3710,12 +3766,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) +} begin - result = api_instance.get_email_template(tenant_id, id) + result = api_instance.get_email_template(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_email_template: #{e}" @@ -3726,12 +3784,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_email_template_with_http_info(tenant_id, id) +> , Integer, Hash)> get_email_template_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_email_template_with_http_info(tenant_id, id) + data, status_code, headers = api_instance.get_email_template_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3763,7 +3821,7 @@ end ## get_email_template_definitions -> get_email_template_definitions(tenant_id) +> get_email_template_definitions(opts) @@ -3781,11 +3839,13 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) +} begin - result = api_instance.get_email_template_definitions(tenant_id) + result = api_instance.get_email_template_definitions(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_email_template_definitions: #{e}" @@ -3796,12 +3856,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_email_template_definitions_with_http_info(tenant_id) +> , Integer, Hash)> get_email_template_definitions_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_email_template_definitions_with_http_info(tenant_id) + data, status_code, headers = api_instance.get_email_template_definitions_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3832,7 +3892,7 @@ end ## get_email_template_render_errors -> get_email_template_render_errors(tenant_id, id, opts) +> get_email_template_render_errors(opts) @@ -3850,15 +3910,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | opts = { - skip: 1.2 # Float | + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + skip: 1.2, # Float | } begin - result = api_instance.get_email_template_render_errors(tenant_id, id, opts) + result = api_instance.get_email_template_render_errors(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_email_template_render_errors: #{e}" @@ -3869,12 +3929,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_email_template_render_errors_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> get_email_template_render_errors_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_email_template_render_errors_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.get_email_template_render_errors_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3907,7 +3967,7 @@ end ## get_email_templates -> get_email_templates(tenant_id, opts) +> get_email_templates(opts) @@ -3925,14 +3985,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | opts = { - skip: 1.2 # Float | + tenant_id: 'tenant_id_example', # String | (required) + skip: 1.2, # Float | } begin - result = api_instance.get_email_templates(tenant_id, opts) + result = api_instance.get_email_templates(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_email_templates: #{e}" @@ -3943,12 +4003,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_email_templates_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_email_templates_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_email_templates_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_email_templates_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3980,7 +4040,7 @@ end ## get_feed_posts -> get_feed_posts(tenant_id, opts) +> get_feed_posts(opts) @@ -4000,16 +4060,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | opts = { - after_id: 'after_id_example', # String | - limit: 56, # Integer | - tags: ['inner_example'] # Array | + tenant_id: 'tenant_id_example', # String | (required) + after_id: 'after_id_example', # String | + limit: 56, # Integer | + tags: ['inner_example'], # Array | } begin - result = api_instance.get_feed_posts(tenant_id, opts) + result = api_instance.get_feed_posts(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_feed_posts: #{e}" @@ -4020,12 +4080,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_feed_posts_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_feed_posts_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_feed_posts_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_feed_posts_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -4059,7 +4119,7 @@ end ## get_hash_tags -> get_hash_tags(tenant_id, opts) +> get_hash_tags(opts) @@ -4077,14 +4137,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | opts = { - page: 1.2 # Float | + tenant_id: 'tenant_id_example', # String | (required) + page: 1.2, # Float | } begin - result = api_instance.get_hash_tags(tenant_id, opts) + result = api_instance.get_hash_tags(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_hash_tags: #{e}" @@ -4095,12 +4155,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_hash_tags_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_hash_tags_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_hash_tags_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_hash_tags_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -4132,7 +4192,7 @@ end ## get_moderator -> get_moderator(tenant_id, id) +> get_moderator(opts) @@ -4150,12 +4210,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) +} begin - result = api_instance.get_moderator(tenant_id, id) + result = api_instance.get_moderator(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_moderator: #{e}" @@ -4166,12 +4228,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_moderator_with_http_info(tenant_id, id) +> , Integer, Hash)> get_moderator_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_moderator_with_http_info(tenant_id, id) + data, status_code, headers = api_instance.get_moderator_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -4203,7 +4265,7 @@ end ## get_moderators -> get_moderators(tenant_id, opts) +> get_moderators(opts) @@ -4221,14 +4283,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | opts = { - skip: 1.2 # Float | + tenant_id: 'tenant_id_example', # String | (required) + skip: 1.2, # Float | } begin - result = api_instance.get_moderators(tenant_id, opts) + result = api_instance.get_moderators(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_moderators: #{e}" @@ -4239,12 +4301,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_moderators_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_moderators_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_moderators_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_moderators_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -4276,7 +4338,7 @@ end ## get_notification_count -> get_notification_count(tenant_id, opts) +> get_notification_count(opts) @@ -4294,18 +4356,18 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | opts = { - user_id: 'user_id_example', # String | - url_id: 'url_id_example', # String | - from_comment_id: 'from_comment_id_example', # String | - viewed: true, # Boolean | - type: 'type_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + user_id: 'user_id_example', # String | + url_id: 'url_id_example', # String | + from_comment_id: 'from_comment_id_example', # String | + viewed: true, # Boolean | + type: 'type_example', # String | } begin - result = api_instance.get_notification_count(tenant_id, opts) + result = api_instance.get_notification_count(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_notification_count: #{e}" @@ -4316,12 +4378,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_notification_count_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_notification_count_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_notification_count_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_notification_count_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -4357,7 +4419,7 @@ end ## get_notifications -> get_notifications(tenant_id, opts) +> get_notifications(opts) @@ -4375,19 +4437,19 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | opts = { - user_id: 'user_id_example', # String | - url_id: 'url_id_example', # String | - from_comment_id: 'from_comment_id_example', # String | - viewed: true, # Boolean | - type: 'type_example', # String | - skip: 1.2 # Float | + tenant_id: 'tenant_id_example', # String | (required) + user_id: 'user_id_example', # String | + url_id: 'url_id_example', # String | + from_comment_id: 'from_comment_id_example', # String | + viewed: true, # Boolean | + type: 'type_example', # String | + skip: 1.2, # Float | } begin - result = api_instance.get_notifications(tenant_id, opts) + result = api_instance.get_notifications(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_notifications: #{e}" @@ -4398,12 +4460,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_notifications_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_notifications_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_notifications_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_notifications_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -4440,7 +4502,7 @@ end ## get_page_by_urlid -> get_page_by_urlid(tenant_id, url_id) +> get_page_by_urlid(opts) @@ -4458,12 +4520,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -url_id = 'url_id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + url_id: 'url_id_example', # String | (required) +} begin - result = api_instance.get_page_by_urlid(tenant_id, url_id) + result = api_instance.get_page_by_urlid(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_page_by_urlid: #{e}" @@ -4474,12 +4538,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_page_by_urlid_with_http_info(tenant_id, url_id) +> , Integer, Hash)> get_page_by_urlid_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_page_by_urlid_with_http_info(tenant_id, url_id) + data, status_code, headers = api_instance.get_page_by_urlid_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -4511,7 +4575,7 @@ end ## get_pages -> get_pages(tenant_id) +> get_pages(opts) @@ -4529,11 +4593,13 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) +} begin - result = api_instance.get_pages(tenant_id) + result = api_instance.get_pages(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_pages: #{e}" @@ -4544,12 +4610,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_pages_with_http_info(tenant_id) +> , Integer, Hash)> get_pages_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_pages_with_http_info(tenant_id) + data, status_code, headers = api_instance.get_pages_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -4580,7 +4646,7 @@ end ## get_pending_webhook_event_count -> get_pending_webhook_event_count(tenant_id, opts) +> get_pending_webhook_event_count(opts) @@ -4598,19 +4664,19 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | opts = { - comment_id: 'comment_id_example', # String | - external_id: 'external_id_example', # String | - event_type: 'event_type_example', # String | - type: 'type_example', # String | - domain: 'domain_example', # String | - attempt_count_gt: 1.2 # Float | + tenant_id: 'tenant_id_example', # String | (required) + comment_id: 'comment_id_example', # String | + external_id: 'external_id_example', # String | + event_type: 'event_type_example', # String | + type: 'type_example', # String | + domain: 'domain_example', # String | + attempt_count_gt: 1.2, # Float | } begin - result = api_instance.get_pending_webhook_event_count(tenant_id, opts) + result = api_instance.get_pending_webhook_event_count(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_pending_webhook_event_count: #{e}" @@ -4621,12 +4687,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_pending_webhook_event_count_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_pending_webhook_event_count_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_pending_webhook_event_count_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_pending_webhook_event_count_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -4663,7 +4729,7 @@ end ## get_pending_webhook_events -> get_pending_webhook_events(tenant_id, opts) +> get_pending_webhook_events(opts) @@ -4681,20 +4747,20 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | opts = { - comment_id: 'comment_id_example', # String | - external_id: 'external_id_example', # String | - event_type: 'event_type_example', # String | - type: 'type_example', # String | - domain: 'domain_example', # String | - attempt_count_gt: 1.2, # Float | - skip: 1.2 # Float | + tenant_id: 'tenant_id_example', # String | (required) + comment_id: 'comment_id_example', # String | + external_id: 'external_id_example', # String | + event_type: 'event_type_example', # String | + type: 'type_example', # String | + domain: 'domain_example', # String | + attempt_count_gt: 1.2, # Float | + skip: 1.2, # Float | } begin - result = api_instance.get_pending_webhook_events(tenant_id, opts) + result = api_instance.get_pending_webhook_events(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_pending_webhook_events: #{e}" @@ -4705,12 +4771,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_pending_webhook_events_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_pending_webhook_events_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_pending_webhook_events_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_pending_webhook_events_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -4748,7 +4814,7 @@ end ## get_question_config -> get_question_config(tenant_id, id) +> get_question_config(opts) @@ -4766,12 +4832,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) +} begin - result = api_instance.get_question_config(tenant_id, id) + result = api_instance.get_question_config(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_question_config: #{e}" @@ -4782,12 +4850,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_question_config_with_http_info(tenant_id, id) +> , Integer, Hash)> get_question_config_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_question_config_with_http_info(tenant_id, id) + data, status_code, headers = api_instance.get_question_config_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -4819,7 +4887,7 @@ end ## get_question_configs -> get_question_configs(tenant_id, opts) +> get_question_configs(opts) @@ -4837,14 +4905,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | opts = { - skip: 1.2 # Float | + tenant_id: 'tenant_id_example', # String | (required) + skip: 1.2, # Float | } begin - result = api_instance.get_question_configs(tenant_id, opts) + result = api_instance.get_question_configs(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_question_configs: #{e}" @@ -4855,12 +4923,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_question_configs_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_question_configs_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_question_configs_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_question_configs_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -4892,7 +4960,7 @@ end ## get_question_result -> get_question_result(tenant_id, id) +> get_question_result(opts) @@ -4910,12 +4978,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) +} begin - result = api_instance.get_question_result(tenant_id, id) + result = api_instance.get_question_result(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_question_result: #{e}" @@ -4926,12 +4996,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_question_result_with_http_info(tenant_id, id) +> , Integer, Hash)> get_question_result_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_question_result_with_http_info(tenant_id, id) + data, status_code, headers = api_instance.get_question_result_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -4963,7 +5033,7 @@ end ## get_question_results -> get_question_results(tenant_id, opts) +> get_question_results(opts) @@ -4981,19 +5051,19 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | opts = { - url_id: 'url_id_example', # String | - user_id: 'user_id_example', # String | - start_date: 'start_date_example', # String | - question_id: 'question_id_example', # String | - question_ids: 'question_ids_example', # String | - skip: 1.2 # Float | + tenant_id: 'tenant_id_example', # String | (required) + url_id: 'url_id_example', # String | + user_id: 'user_id_example', # String | + start_date: 'start_date_example', # String | + question_id: 'question_id_example', # String | + question_ids: 'question_ids_example', # String | + skip: 1.2, # Float | } begin - result = api_instance.get_question_results(tenant_id, opts) + result = api_instance.get_question_results(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_question_results: #{e}" @@ -5004,12 +5074,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_question_results_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_question_results_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_question_results_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_question_results_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -5046,7 +5116,7 @@ end ## get_sso_user_by_email -> get_sso_user_by_email(tenant_id, email) +> get_sso_user_by_email(opts) @@ -5064,12 +5134,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -email = 'email_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + email: 'email_example', # String | (required) +} begin - result = api_instance.get_sso_user_by_email(tenant_id, email) + result = api_instance.get_sso_user_by_email(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_sso_user_by_email: #{e}" @@ -5080,12 +5152,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_sso_user_by_email_with_http_info(tenant_id, email) +> , Integer, Hash)> get_sso_user_by_email_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_sso_user_by_email_with_http_info(tenant_id, email) + data, status_code, headers = api_instance.get_sso_user_by_email_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -5117,7 +5189,7 @@ end ## get_sso_user_by_id -> get_sso_user_by_id(tenant_id, id) +> get_sso_user_by_id(opts) @@ -5135,12 +5207,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) +} begin - result = api_instance.get_sso_user_by_id(tenant_id, id) + result = api_instance.get_sso_user_by_id(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_sso_user_by_id: #{e}" @@ -5151,12 +5225,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_sso_user_by_id_with_http_info(tenant_id, id) +> , Integer, Hash)> get_sso_user_by_id_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_sso_user_by_id_with_http_info(tenant_id, id) + data, status_code, headers = api_instance.get_sso_user_by_id_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -5188,7 +5262,7 @@ end ## get_sso_users -> get_sso_users(tenant_id, opts) +> get_sso_users(opts) @@ -5206,14 +5280,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | opts = { - skip: 56 # Integer | + tenant_id: 'tenant_id_example', # String | (required) + skip: 56, # Integer | } begin - result = api_instance.get_sso_users(tenant_id, opts) + result = api_instance.get_sso_users(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_sso_users: #{e}" @@ -5224,12 +5298,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_sso_users_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_sso_users_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_sso_users_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_sso_users_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -5261,7 +5335,7 @@ end ## get_subscriptions -> get_subscriptions(tenant_id, opts) +> get_subscriptions(opts) @@ -5279,14 +5353,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | opts = { - user_id: 'user_id_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + user_id: 'user_id_example', # String | } begin - result = api_instance.get_subscriptions(tenant_id, opts) + result = api_instance.get_subscriptions(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_subscriptions: #{e}" @@ -5297,12 +5371,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_subscriptions_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_subscriptions_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_subscriptions_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_subscriptions_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -5334,7 +5408,7 @@ end ## get_tenant -> get_tenant(tenant_id, id) +> get_tenant(opts) @@ -5352,12 +5426,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) +} begin - result = api_instance.get_tenant(tenant_id, id) + result = api_instance.get_tenant(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenant: #{e}" @@ -5368,12 +5444,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenant_with_http_info(tenant_id, id) +> , Integer, Hash)> get_tenant_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_tenant_with_http_info(tenant_id, id) + data, status_code, headers = api_instance.get_tenant_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -5405,7 +5481,7 @@ end ## get_tenant_daily_usages -> get_tenant_daily_usages(tenant_id, opts) +> get_tenant_daily_usages(opts) @@ -5423,17 +5499,17 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | opts = { - year_number: 1.2, # Float | - month_number: 1.2, # Float | - day_number: 1.2, # Float | - skip: 1.2 # Float | + tenant_id: 'tenant_id_example', # String | (required) + year_number: 1.2, # Float | + month_number: 1.2, # Float | + day_number: 1.2, # Float | + skip: 1.2, # Float | } begin - result = api_instance.get_tenant_daily_usages(tenant_id, opts) + result = api_instance.get_tenant_daily_usages(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenant_daily_usages: #{e}" @@ -5444,12 +5520,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenant_daily_usages_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_tenant_daily_usages_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_tenant_daily_usages_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_tenant_daily_usages_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -5484,7 +5560,7 @@ end ## get_tenant_package -> get_tenant_package(tenant_id, id) +> get_tenant_package(opts) @@ -5502,12 +5578,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) +} begin - result = api_instance.get_tenant_package(tenant_id, id) + result = api_instance.get_tenant_package(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenant_package: #{e}" @@ -5518,12 +5596,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenant_package_with_http_info(tenant_id, id) +> , Integer, Hash)> get_tenant_package_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_tenant_package_with_http_info(tenant_id, id) + data, status_code, headers = api_instance.get_tenant_package_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -5555,7 +5633,7 @@ end ## get_tenant_packages -> get_tenant_packages(tenant_id, opts) +> get_tenant_packages(opts) @@ -5573,14 +5651,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | opts = { - skip: 1.2 # Float | + tenant_id: 'tenant_id_example', # String | (required) + skip: 1.2, # Float | } begin - result = api_instance.get_tenant_packages(tenant_id, opts) + result = api_instance.get_tenant_packages(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenant_packages: #{e}" @@ -5591,12 +5669,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenant_packages_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_tenant_packages_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_tenant_packages_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_tenant_packages_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -5628,7 +5706,7 @@ end ## get_tenant_user -> get_tenant_user(tenant_id, id) +> get_tenant_user(opts) @@ -5646,12 +5724,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) +} begin - result = api_instance.get_tenant_user(tenant_id, id) + result = api_instance.get_tenant_user(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenant_user: #{e}" @@ -5662,12 +5742,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenant_user_with_http_info(tenant_id, id) +> , Integer, Hash)> get_tenant_user_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_tenant_user_with_http_info(tenant_id, id) + data, status_code, headers = api_instance.get_tenant_user_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -5699,7 +5779,7 @@ end ## get_tenant_users -> get_tenant_users(tenant_id, opts) +> get_tenant_users(opts) @@ -5717,14 +5797,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | opts = { - skip: 1.2 # Float | + tenant_id: 'tenant_id_example', # String | (required) + skip: 1.2, # Float | } begin - result = api_instance.get_tenant_users(tenant_id, opts) + result = api_instance.get_tenant_users(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenant_users: #{e}" @@ -5735,12 +5815,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenant_users_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_tenant_users_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_tenant_users_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_tenant_users_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -5772,7 +5852,7 @@ end ## get_tenants -> get_tenants(tenant_id, opts) +> get_tenants(opts) @@ -5790,15 +5870,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | opts = { - meta: 'meta_example', # String | - skip: 1.2 # Float | + tenant_id: 'tenant_id_example', # String | (required) + meta: 'meta_example', # String | + skip: 1.2, # Float | } begin - result = api_instance.get_tenants(tenant_id, opts) + result = api_instance.get_tenants(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenants: #{e}" @@ -5809,12 +5889,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenants_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_tenants_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_tenants_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_tenants_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -5847,7 +5927,7 @@ end ## get_ticket -> get_ticket(tenant_id, id, opts) +> get_ticket(opts) @@ -5865,15 +5945,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | opts = { - user_id: 'user_id_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + user_id: 'user_id_example', # String | } begin - result = api_instance.get_ticket(tenant_id, id, opts) + result = api_instance.get_ticket(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_ticket: #{e}" @@ -5884,12 +5964,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_ticket_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> get_ticket_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_ticket_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.get_ticket_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -5922,7 +6002,7 @@ end ## get_tickets -> get_tickets(tenant_id, opts) +> get_tickets(opts) @@ -5940,17 +6020,17 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | opts = { - user_id: 'user_id_example', # String | - state: 1.2, # Float | - skip: 1.2, # Float | - limit: 1.2 # Float | + tenant_id: 'tenant_id_example', # String | (required) + user_id: 'user_id_example', # String | + state: 1.2, # Float | + skip: 1.2, # Float | + limit: 1.2, # Float | } begin - result = api_instance.get_tickets(tenant_id, opts) + result = api_instance.get_tickets(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tickets: #{e}" @@ -5961,12 +6041,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tickets_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_tickets_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_tickets_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_tickets_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6001,7 +6081,7 @@ end ## get_user -> get_user(tenant_id, id) +> get_user(opts) @@ -6019,12 +6099,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) +} begin - result = api_instance.get_user(tenant_id, id) + result = api_instance.get_user(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user: #{e}" @@ -6035,12 +6117,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_with_http_info(tenant_id, id) +> , Integer, Hash)> get_user_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_user_with_http_info(tenant_id, id) + data, status_code, headers = api_instance.get_user_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6072,7 +6154,7 @@ end ## get_user_badge -> get_user_badge(tenant_id, id) +> get_user_badge(opts) @@ -6090,12 +6172,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) +} begin - result = api_instance.get_user_badge(tenant_id, id) + result = api_instance.get_user_badge(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user_badge: #{e}" @@ -6106,12 +6190,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_badge_with_http_info(tenant_id, id) +> , Integer, Hash)> get_user_badge_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_user_badge_with_http_info(tenant_id, id) + data, status_code, headers = api_instance.get_user_badge_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6143,7 +6227,7 @@ end ## get_user_badge_progress_by_id -> get_user_badge_progress_by_id(tenant_id, id) +> get_user_badge_progress_by_id(opts) @@ -6161,12 +6245,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) +} begin - result = api_instance.get_user_badge_progress_by_id(tenant_id, id) + result = api_instance.get_user_badge_progress_by_id(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user_badge_progress_by_id: #{e}" @@ -6177,12 +6263,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_badge_progress_by_id_with_http_info(tenant_id, id) +> , Integer, Hash)> get_user_badge_progress_by_id_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_user_badge_progress_by_id_with_http_info(tenant_id, id) + data, status_code, headers = api_instance.get_user_badge_progress_by_id_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6214,7 +6300,7 @@ end ## get_user_badge_progress_by_user_id -> get_user_badge_progress_by_user_id(tenant_id, user_id) +> get_user_badge_progress_by_user_id(opts) @@ -6232,12 +6318,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -user_id = 'user_id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + user_id: 'user_id_example', # String | (required) +} begin - result = api_instance.get_user_badge_progress_by_user_id(tenant_id, user_id) + result = api_instance.get_user_badge_progress_by_user_id(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user_badge_progress_by_user_id: #{e}" @@ -6248,12 +6336,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id) +> , Integer, Hash)> get_user_badge_progress_by_user_id_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id) + data, status_code, headers = api_instance.get_user_badge_progress_by_user_id_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6285,7 +6373,7 @@ end ## get_user_badge_progress_list -> get_user_badge_progress_list(tenant_id, opts) +> get_user_badge_progress_list(opts) @@ -6303,16 +6391,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | opts = { - user_id: 'user_id_example', # String | - limit: 1.2, # Float | - skip: 1.2 # Float | + tenant_id: 'tenant_id_example', # String | (required) + user_id: 'user_id_example', # String | + limit: 1.2, # Float | + skip: 1.2, # Float | } begin - result = api_instance.get_user_badge_progress_list(tenant_id, opts) + result = api_instance.get_user_badge_progress_list(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user_badge_progress_list: #{e}" @@ -6323,12 +6411,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_badge_progress_list_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_user_badge_progress_list_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_user_badge_progress_list_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_user_badge_progress_list_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6362,7 +6450,7 @@ end ## get_user_badges -> get_user_badges(tenant_id, opts) +> get_user_badges(opts) @@ -6380,19 +6468,19 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | opts = { - user_id: 'user_id_example', # String | - badge_id: 'badge_id_example', # String | - type: 1.2, # Float | - displayed_on_comments: true, # Boolean | - limit: 1.2, # Float | - skip: 1.2 # Float | + tenant_id: 'tenant_id_example', # String | (required) + user_id: 'user_id_example', # String | + badge_id: 'badge_id_example', # String | + type: 1.2, # Float | + displayed_on_comments: true, # Boolean | + limit: 1.2, # Float | + skip: 1.2, # Float | } begin - result = api_instance.get_user_badges(tenant_id, opts) + result = api_instance.get_user_badges(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user_badges: #{e}" @@ -6403,12 +6491,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_badges_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_user_badges_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_user_badges_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_user_badges_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6445,7 +6533,7 @@ end ## get_votes -> get_votes(tenant_id, url_id) +> get_votes(opts) @@ -6463,12 +6551,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -url_id = 'url_id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + url_id: 'url_id_example', # String | (required) +} begin - result = api_instance.get_votes(tenant_id, url_id) + result = api_instance.get_votes(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_votes: #{e}" @@ -6479,12 +6569,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_votes_with_http_info(tenant_id, url_id) +> , Integer, Hash)> get_votes_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_votes_with_http_info(tenant_id, url_id) + data, status_code, headers = api_instance.get_votes_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6516,7 +6606,7 @@ end ## get_votes_for_user -> get_votes_for_user(tenant_id, url_id, opts) +> get_votes_for_user(opts) @@ -6534,16 +6624,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -url_id = 'url_id_example' # String | opts = { - user_id: 'user_id_example', # String | - anon_user_id: 'anon_user_id_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + url_id: 'url_id_example', # String | (required) + user_id: 'user_id_example', # String | + anon_user_id: 'anon_user_id_example', # String | } begin - result = api_instance.get_votes_for_user(tenant_id, url_id, opts) + result = api_instance.get_votes_for_user(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_votes_for_user: #{e}" @@ -6554,12 +6644,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_votes_for_user_with_http_info(tenant_id, url_id, opts) +> , Integer, Hash)> get_votes_for_user_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_votes_for_user_with_http_info(tenant_id, url_id, opts) + data, status_code, headers = api_instance.get_votes_for_user_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6593,7 +6683,7 @@ end ## patch_domain_config -> patch_domain_config(tenant_id, domain_to_update, patch_domain_config_params) +> patch_domain_config(opts) @@ -6611,13 +6701,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -domain_to_update = 'domain_to_update_example' # String | -patch_domain_config_params = FastCommentsClient::PatchDomainConfigParams.new # PatchDomainConfigParams | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + domain_to_update: 'domain_to_update_example', # String | (required) + patch_domain_config_params: FastCommentsClient::PatchDomainConfigParams.new, # PatchDomainConfigParams | (required) +} begin - result = api_instance.patch_domain_config(tenant_id, domain_to_update, patch_domain_config_params) + result = api_instance.patch_domain_config(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->patch_domain_config: #{e}" @@ -6628,12 +6720,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> patch_domain_config_with_http_info(tenant_id, domain_to_update, patch_domain_config_params) +> , Integer, Hash)> patch_domain_config_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.patch_domain_config_with_http_info(tenant_id, domain_to_update, patch_domain_config_params) + data, status_code, headers = api_instance.patch_domain_config_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6666,7 +6758,7 @@ end ## patch_hash_tag -> patch_hash_tag(tag, opts) +> patch_hash_tag(opts) @@ -6684,15 +6776,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tag = 'tag_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | - update_hash_tag_body: FastCommentsClient::UpdateHashTagBody.new # UpdateHashTagBody | + tag: 'tag_example', # String | (required) + tenant_id: 'tenant_id_example', # String | + update_hash_tag_body: FastCommentsClient::UpdateHashTagBody.new, # UpdateHashTagBody | } begin - result = api_instance.patch_hash_tag(tag, opts) + result = api_instance.patch_hash_tag(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->patch_hash_tag: #{e}" @@ -6703,12 +6795,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> patch_hash_tag_with_http_info(tag, opts) +> , Integer, Hash)> patch_hash_tag_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.patch_hash_tag_with_http_info(tag, opts) + data, status_code, headers = api_instance.patch_hash_tag_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6741,7 +6833,7 @@ end ## patch_page -> patch_page(tenant_id, id, update_api_page_data) +> patch_page(opts) @@ -6759,13 +6851,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | -update_api_page_data = FastCommentsClient::UpdateAPIPageData.new # UpdateAPIPageData | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + update_api_page_data: FastCommentsClient::UpdateAPIPageData.new, # UpdateAPIPageData | (required) +} begin - result = api_instance.patch_page(tenant_id, id, update_api_page_data) + result = api_instance.patch_page(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->patch_page: #{e}" @@ -6776,12 +6870,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> patch_page_with_http_info(tenant_id, id, update_api_page_data) +> , Integer, Hash)> patch_page_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.patch_page_with_http_info(tenant_id, id, update_api_page_data) + data, status_code, headers = api_instance.patch_page_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6814,7 +6908,7 @@ end ## patch_sso_user -> patch_sso_user(tenant_id, id, update_apisso_user_data, opts) +> patch_sso_user(opts) @@ -6832,16 +6926,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | -update_apisso_user_data = FastCommentsClient::UpdateAPISSOUserData.new # UpdateAPISSOUserData | opts = { - update_comments: true # Boolean | + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + update_apisso_user_data: FastCommentsClient::UpdateAPISSOUserData.new, # UpdateAPISSOUserData | (required) + update_comments: true, # Boolean | } begin - result = api_instance.patch_sso_user(tenant_id, id, update_apisso_user_data, opts) + result = api_instance.patch_sso_user(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->patch_sso_user: #{e}" @@ -6852,12 +6946,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> patch_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts) +> , Integer, Hash)> patch_sso_user_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.patch_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts) + data, status_code, headers = api_instance.patch_sso_user_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6891,7 +6985,7 @@ end ## put_domain_config -> put_domain_config(tenant_id, domain_to_update, update_domain_config_params) +> put_domain_config(opts) @@ -6909,13 +7003,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -domain_to_update = 'domain_to_update_example' # String | -update_domain_config_params = FastCommentsClient::UpdateDomainConfigParams.new({domain: 'domain_example'}) # UpdateDomainConfigParams | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + domain_to_update: 'domain_to_update_example', # String | (required) + update_domain_config_params: FastCommentsClient::UpdateDomainConfigParams.new({domain: 'domain_example'}), # UpdateDomainConfigParams | (required) +} begin - result = api_instance.put_domain_config(tenant_id, domain_to_update, update_domain_config_params) + result = api_instance.put_domain_config(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->put_domain_config: #{e}" @@ -6926,12 +7022,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_domain_config_with_http_info(tenant_id, domain_to_update, update_domain_config_params) +> , Integer, Hash)> put_domain_config_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.put_domain_config_with_http_info(tenant_id, domain_to_update, update_domain_config_params) + data, status_code, headers = api_instance.put_domain_config_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6964,7 +7060,7 @@ end ## put_sso_user -> put_sso_user(tenant_id, id, update_apisso_user_data, opts) +> put_sso_user(opts) @@ -6982,16 +7078,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | -update_apisso_user_data = FastCommentsClient::UpdateAPISSOUserData.new # UpdateAPISSOUserData | opts = { - update_comments: true # Boolean | + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + update_apisso_user_data: FastCommentsClient::UpdateAPISSOUserData.new, # UpdateAPISSOUserData | (required) + update_comments: true, # Boolean | } begin - result = api_instance.put_sso_user(tenant_id, id, update_apisso_user_data, opts) + result = api_instance.put_sso_user(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->put_sso_user: #{e}" @@ -7002,12 +7098,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts) +> , Integer, Hash)> put_sso_user_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.put_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts) + data, status_code, headers = api_instance.put_sso_user_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -7041,7 +7137,7 @@ end ## render_email_template -> render_email_template(tenant_id, render_email_template_body, opts) +> render_email_template(opts) @@ -7059,15 +7155,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -render_email_template_body = FastCommentsClient::RenderEmailTemplateBody.new({email_template_id: 'email_template_id_example', ejs: 'ejs_example'}) # RenderEmailTemplateBody | opts = { - locale: 'locale_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + render_email_template_body: FastCommentsClient::RenderEmailTemplateBody.new({email_template_id: 'email_template_id_example', ejs: 'ejs_example'}), # RenderEmailTemplateBody | (required) + locale: 'locale_example', # String | } begin - result = api_instance.render_email_template(tenant_id, render_email_template_body, opts) + result = api_instance.render_email_template(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->render_email_template: #{e}" @@ -7078,12 +7174,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> render_email_template_with_http_info(tenant_id, render_email_template_body, opts) +> , Integer, Hash)> render_email_template_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.render_email_template_with_http_info(tenant_id, render_email_template_body, opts) + data, status_code, headers = api_instance.render_email_template_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -7116,7 +7212,7 @@ end ## replace_tenant_package -> replace_tenant_package(tenant_id, id, replace_tenant_package_body) +> replace_tenant_package(opts) @@ -7134,13 +7230,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | -replace_tenant_package_body = FastCommentsClient::ReplaceTenantPackageBody.new({name: 'name_example', monthly_cost_usd: 3.56, yearly_cost_usd: 3.56, max_monthly_page_loads: 3.56, max_monthly_api_credits: 3.56, max_monthly_comments: 3.56, max_concurrent_users: 3.56, max_tenant_users: 3.56, max_sso_users: 3.56, max_moderators: 3.56, max_domains: 3.56, has_debranding: false, for_who_text: 'for_who_text_example', feature_taglines: ['feature_taglines_example'], has_flex_pricing: false}) # ReplaceTenantPackageBody | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + replace_tenant_package_body: FastCommentsClient::ReplaceTenantPackageBody.new({name: 'name_example', monthly_cost_usd: 3.56, yearly_cost_usd: 3.56, max_monthly_page_loads: 3.56, max_monthly_api_credits: 3.56, max_monthly_comments: 3.56, max_concurrent_users: 3.56, max_tenant_users: 3.56, max_sso_users: 3.56, max_moderators: 3.56, max_domains: 3.56, has_debranding: false, for_who_text: 'for_who_text_example', feature_taglines: ['feature_taglines_example'], has_flex_pricing: false}), # ReplaceTenantPackageBody | (required) +} begin - result = api_instance.replace_tenant_package(tenant_id, id, replace_tenant_package_body) + result = api_instance.replace_tenant_package(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->replace_tenant_package: #{e}" @@ -7151,12 +7249,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_body) +> , Integer, Hash)> replace_tenant_package_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_body) + data, status_code, headers = api_instance.replace_tenant_package_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -7189,7 +7287,7 @@ end ## replace_tenant_user -> replace_tenant_user(tenant_id, id, replace_tenant_user_body, opts) +> replace_tenant_user(opts) @@ -7207,16 +7305,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | -replace_tenant_user_body = FastCommentsClient::ReplaceTenantUserBody.new({username: 'username_example', email: 'email_example'}) # ReplaceTenantUserBody | opts = { - update_comments: 'update_comments_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + replace_tenant_user_body: FastCommentsClient::ReplaceTenantUserBody.new({username: 'username_example', email: 'email_example'}), # ReplaceTenantUserBody | (required) + update_comments: 'update_comments_example', # String | } begin - result = api_instance.replace_tenant_user(tenant_id, id, replace_tenant_user_body, opts) + result = api_instance.replace_tenant_user(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->replace_tenant_user: #{e}" @@ -7227,12 +7325,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> replace_tenant_user_with_http_info(tenant_id, id, replace_tenant_user_body, opts) +> , Integer, Hash)> replace_tenant_user_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.replace_tenant_user_with_http_info(tenant_id, id, replace_tenant_user_body, opts) + data, status_code, headers = api_instance.replace_tenant_user_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -7266,7 +7364,7 @@ end ## save_comment -> save_comment(tenant_id, create_comment_params, opts) +> save_comment(opts) @@ -7284,18 +7382,18 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -create_comment_params = FastCommentsClient::CreateCommentParams.new({commenter_name: 'commenter_name_example', comment: 'comment_example', url: 'url_example', url_id: 'url_id_example', locale: 'locale_example'}) # CreateCommentParams | opts = { - is_live: true, # Boolean | - do_spam_check: true, # Boolean | - send_emails: true, # Boolean | - populate_notifications: true # Boolean | + tenant_id: 'tenant_id_example', # String | (required) + create_comment_params: FastCommentsClient::CreateCommentParams.new({commenter_name: 'commenter_name_example', comment: 'comment_example', url: 'url_example', url_id: 'url_id_example', locale: 'locale_example'}), # CreateCommentParams | (required) + is_live: true, # Boolean | + do_spam_check: true, # Boolean | + send_emails: true, # Boolean | + populate_notifications: true, # Boolean | } begin - result = api_instance.save_comment(tenant_id, create_comment_params, opts) + result = api_instance.save_comment(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->save_comment: #{e}" @@ -7306,12 +7404,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> save_comment_with_http_info(tenant_id, create_comment_params, opts) +> , Integer, Hash)> save_comment_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.save_comment_with_http_info(tenant_id, create_comment_params, opts) + data, status_code, headers = api_instance.save_comment_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -7347,7 +7445,7 @@ end ## save_comments_bulk -> > save_comments_bulk(tenant_id, create_comment_params, opts) +> > save_comments_bulk(opts) @@ -7365,18 +7463,18 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -create_comment_params = [FastCommentsClient::CreateCommentParams.new({commenter_name: 'commenter_name_example', comment: 'comment_example', url: 'url_example', url_id: 'url_id_example', locale: 'locale_example'})] # Array | opts = { - is_live: true, # Boolean | - do_spam_check: true, # Boolean | - send_emails: true, # Boolean | - populate_notifications: true # Boolean | + tenant_id: 'tenant_id_example', # String | (required) + create_comment_params: [FastCommentsClient::CreateCommentParams.new({commenter_name: 'commenter_name_example', comment: 'comment_example', url: 'url_example', url_id: 'url_id_example', locale: 'locale_example'})], # Array | (required) + is_live: true, # Boolean | + do_spam_check: true, # Boolean | + send_emails: true, # Boolean | + populate_notifications: true, # Boolean | } begin - result = api_instance.save_comments_bulk(tenant_id, create_comment_params, opts) + result = api_instance.save_comments_bulk(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->save_comments_bulk: #{e}" @@ -7387,12 +7485,12 @@ end This returns an Array which contains the response data, status code and headers. -> >, Integer, Hash)> save_comments_bulk_with_http_info(tenant_id, create_comment_params, opts) +> >, Integer, Hash)> save_comments_bulk_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.save_comments_bulk_with_http_info(tenant_id, create_comment_params, opts) + data, status_code, headers = api_instance.save_comments_bulk_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => > @@ -7428,7 +7526,7 @@ end ## send_invite -> send_invite(tenant_id, id, from_name) +> send_invite(opts) @@ -7446,13 +7544,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | -from_name = 'from_name_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + from_name: 'from_name_example', # String | (required) +} begin - result = api_instance.send_invite(tenant_id, id, from_name) + result = api_instance.send_invite(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->send_invite: #{e}" @@ -7463,12 +7563,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> send_invite_with_http_info(tenant_id, id, from_name) +> , Integer, Hash)> send_invite_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.send_invite_with_http_info(tenant_id, id, from_name) + data, status_code, headers = api_instance.send_invite_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -7501,7 +7601,7 @@ end ## send_login_link -> send_login_link(tenant_id, id, opts) +> send_login_link(opts) @@ -7519,15 +7619,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | opts = { - redirect_url: 'redirect_url_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + redirect_url: 'redirect_url_example', # String | } begin - result = api_instance.send_login_link(tenant_id, id, opts) + result = api_instance.send_login_link(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->send_login_link: #{e}" @@ -7538,12 +7638,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> send_login_link_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> send_login_link_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.send_login_link_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.send_login_link_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -7576,7 +7676,7 @@ end ## un_block_user_from_comment -> un_block_user_from_comment(tenant_id, id, un_block_from_comment_params, opts) +> un_block_user_from_comment(opts) @@ -7594,17 +7694,17 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | -un_block_from_comment_params = FastCommentsClient::UnBlockFromCommentParams.new # UnBlockFromCommentParams | opts = { - user_id: 'user_id_example', # String | - anon_user_id: 'anon_user_id_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + un_block_from_comment_params: FastCommentsClient::UnBlockFromCommentParams.new, # UnBlockFromCommentParams | (required) + user_id: 'user_id_example', # String | + anon_user_id: 'anon_user_id_example', # String | } begin - result = api_instance.un_block_user_from_comment(tenant_id, id, un_block_from_comment_params, opts) + result = api_instance.un_block_user_from_comment(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->un_block_user_from_comment: #{e}" @@ -7615,12 +7715,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comment_params, opts) +> , Integer, Hash)> un_block_user_from_comment_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comment_params, opts) + data, status_code, headers = api_instance.un_block_user_from_comment_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -7655,7 +7755,7 @@ end ## un_flag_comment -> un_flag_comment(tenant_id, id, opts) +> un_flag_comment(opts) @@ -7673,16 +7773,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | opts = { - user_id: 'user_id_example', # String | - anon_user_id: 'anon_user_id_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + user_id: 'user_id_example', # String | + anon_user_id: 'anon_user_id_example', # String | } begin - result = api_instance.un_flag_comment(tenant_id, id, opts) + result = api_instance.un_flag_comment(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->un_flag_comment: #{e}" @@ -7693,12 +7793,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> un_flag_comment_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> un_flag_comment_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.un_flag_comment_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.un_flag_comment_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -7732,7 +7832,7 @@ end ## update_comment -> update_comment(tenant_id, id, updatable_comment_params, opts) +> update_comment(opts) @@ -7750,18 +7850,18 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | -updatable_comment_params = FastCommentsClient::UpdatableCommentParams.new # UpdatableCommentParams | opts = { - context_user_id: 'context_user_id_example', # String | - do_spam_check: true, # Boolean | - is_live: true # Boolean | + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + updatable_comment_params: FastCommentsClient::UpdatableCommentParams.new, # UpdatableCommentParams | (required) + context_user_id: 'context_user_id_example', # String | + do_spam_check: true, # Boolean | + is_live: true, # Boolean | } begin - result = api_instance.update_comment(tenant_id, id, updatable_comment_params, opts) + result = api_instance.update_comment(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_comment: #{e}" @@ -7772,12 +7872,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts) +> , Integer, Hash)> update_comment_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts) + data, status_code, headers = api_instance.update_comment_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -7813,7 +7913,7 @@ end ## update_email_template -> update_email_template(tenant_id, id, update_email_template_body) +> update_email_template(opts) @@ -7831,13 +7931,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | -update_email_template_body = FastCommentsClient::UpdateEmailTemplateBody.new # UpdateEmailTemplateBody | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + update_email_template_body: FastCommentsClient::UpdateEmailTemplateBody.new, # UpdateEmailTemplateBody | (required) +} begin - result = api_instance.update_email_template(tenant_id, id, update_email_template_body) + result = api_instance.update_email_template(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_email_template: #{e}" @@ -7848,12 +7950,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_email_template_with_http_info(tenant_id, id, update_email_template_body) +> , Integer, Hash)> update_email_template_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.update_email_template_with_http_info(tenant_id, id, update_email_template_body) + data, status_code, headers = api_instance.update_email_template_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -7886,7 +7988,7 @@ end ## update_feed_post -> update_feed_post(tenant_id, id, feed_post) +> update_feed_post(opts) @@ -7904,13 +8006,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | -feed_post = FastCommentsClient::FeedPost.new({_id: '_id_example', tenant_id: 'tenant_id_example', created_at: Time.now}) # FeedPost | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + feed_post: FastCommentsClient::FeedPost.new({_id: '_id_example', tenant_id: 'tenant_id_example', created_at: Time.now}), # FeedPost | (required) +} begin - result = api_instance.update_feed_post(tenant_id, id, feed_post) + result = api_instance.update_feed_post(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_feed_post: #{e}" @@ -7921,12 +8025,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_feed_post_with_http_info(tenant_id, id, feed_post) +> , Integer, Hash)> update_feed_post_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.update_feed_post_with_http_info(tenant_id, id, feed_post) + data, status_code, headers = api_instance.update_feed_post_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -7959,7 +8063,7 @@ end ## update_moderator -> update_moderator(tenant_id, id, update_moderator_body) +> update_moderator(opts) @@ -7977,13 +8081,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | -update_moderator_body = FastCommentsClient::UpdateModeratorBody.new # UpdateModeratorBody | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + update_moderator_body: FastCommentsClient::UpdateModeratorBody.new, # UpdateModeratorBody | (required) +} begin - result = api_instance.update_moderator(tenant_id, id, update_moderator_body) + result = api_instance.update_moderator(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_moderator: #{e}" @@ -7994,12 +8100,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_moderator_with_http_info(tenant_id, id, update_moderator_body) +> , Integer, Hash)> update_moderator_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.update_moderator_with_http_info(tenant_id, id, update_moderator_body) + data, status_code, headers = api_instance.update_moderator_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -8032,7 +8138,7 @@ end ## update_notification -> update_notification(tenant_id, id, update_notification_body, opts) +> update_notification(opts) @@ -8050,16 +8156,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | -update_notification_body = FastCommentsClient::UpdateNotificationBody.new # UpdateNotificationBody | opts = { - user_id: 'user_id_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + update_notification_body: FastCommentsClient::UpdateNotificationBody.new, # UpdateNotificationBody | (required) + user_id: 'user_id_example', # String | } begin - result = api_instance.update_notification(tenant_id, id, update_notification_body, opts) + result = api_instance.update_notification(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_notification: #{e}" @@ -8070,12 +8176,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_notification_with_http_info(tenant_id, id, update_notification_body, opts) +> , Integer, Hash)> update_notification_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.update_notification_with_http_info(tenant_id, id, update_notification_body, opts) + data, status_code, headers = api_instance.update_notification_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -8109,7 +8215,7 @@ end ## update_question_config -> update_question_config(tenant_id, id, update_question_config_body) +> update_question_config(opts) @@ -8127,13 +8233,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | -update_question_config_body = FastCommentsClient::UpdateQuestionConfigBody.new # UpdateQuestionConfigBody | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + update_question_config_body: FastCommentsClient::UpdateQuestionConfigBody.new, # UpdateQuestionConfigBody | (required) +} begin - result = api_instance.update_question_config(tenant_id, id, update_question_config_body) + result = api_instance.update_question_config(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_question_config: #{e}" @@ -8144,12 +8252,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_question_config_with_http_info(tenant_id, id, update_question_config_body) +> , Integer, Hash)> update_question_config_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.update_question_config_with_http_info(tenant_id, id, update_question_config_body) + data, status_code, headers = api_instance.update_question_config_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -8182,7 +8290,7 @@ end ## update_question_result -> update_question_result(tenant_id, id, update_question_result_body) +> update_question_result(opts) @@ -8200,13 +8308,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | -update_question_result_body = FastCommentsClient::UpdateQuestionResultBody.new # UpdateQuestionResultBody | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + update_question_result_body: FastCommentsClient::UpdateQuestionResultBody.new, # UpdateQuestionResultBody | (required) +} begin - result = api_instance.update_question_result(tenant_id, id, update_question_result_body) + result = api_instance.update_question_result(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_question_result: #{e}" @@ -8217,12 +8327,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_question_result_with_http_info(tenant_id, id, update_question_result_body) +> , Integer, Hash)> update_question_result_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.update_question_result_with_http_info(tenant_id, id, update_question_result_body) + data, status_code, headers = api_instance.update_question_result_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -8255,7 +8365,7 @@ end ## update_subscription -> update_subscription(tenant_id, id, update_api_user_subscription_data, opts) +> update_subscription(opts) @@ -8273,16 +8383,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | -update_api_user_subscription_data = FastCommentsClient::UpdateAPIUserSubscriptionData.new # UpdateAPIUserSubscriptionData | opts = { - user_id: 'user_id_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + update_api_user_subscription_data: FastCommentsClient::UpdateAPIUserSubscriptionData.new, # UpdateAPIUserSubscriptionData | (required) + user_id: 'user_id_example', # String | } begin - result = api_instance.update_subscription(tenant_id, id, update_api_user_subscription_data, opts) + result = api_instance.update_subscription(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_subscription: #{e}" @@ -8293,12 +8403,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_subscription_with_http_info(tenant_id, id, update_api_user_subscription_data, opts) +> , Integer, Hash)> update_subscription_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.update_subscription_with_http_info(tenant_id, id, update_api_user_subscription_data, opts) + data, status_code, headers = api_instance.update_subscription_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -8332,7 +8442,7 @@ end ## update_tenant -> update_tenant(tenant_id, id, update_tenant_body) +> update_tenant(opts) @@ -8350,13 +8460,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | -update_tenant_body = FastCommentsClient::UpdateTenantBody.new # UpdateTenantBody | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + update_tenant_body: FastCommentsClient::UpdateTenantBody.new, # UpdateTenantBody | (required) +} begin - result = api_instance.update_tenant(tenant_id, id, update_tenant_body) + result = api_instance.update_tenant(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_tenant: #{e}" @@ -8367,12 +8479,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_tenant_with_http_info(tenant_id, id, update_tenant_body) +> , Integer, Hash)> update_tenant_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.update_tenant_with_http_info(tenant_id, id, update_tenant_body) + data, status_code, headers = api_instance.update_tenant_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -8405,7 +8517,7 @@ end ## update_tenant_package -> update_tenant_package(tenant_id, id, update_tenant_package_body) +> update_tenant_package(opts) @@ -8423,13 +8535,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | -update_tenant_package_body = FastCommentsClient::UpdateTenantPackageBody.new # UpdateTenantPackageBody | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + update_tenant_package_body: FastCommentsClient::UpdateTenantPackageBody.new, # UpdateTenantPackageBody | (required) +} begin - result = api_instance.update_tenant_package(tenant_id, id, update_tenant_package_body) + result = api_instance.update_tenant_package(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_tenant_package: #{e}" @@ -8440,12 +8554,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_body) +> , Integer, Hash)> update_tenant_package_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_body) + data, status_code, headers = api_instance.update_tenant_package_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -8478,7 +8592,7 @@ end ## update_tenant_user -> update_tenant_user(tenant_id, id, update_tenant_user_body, opts) +> update_tenant_user(opts) @@ -8496,16 +8610,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | -update_tenant_user_body = FastCommentsClient::UpdateTenantUserBody.new # UpdateTenantUserBody | opts = { - update_comments: 'update_comments_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + update_tenant_user_body: FastCommentsClient::UpdateTenantUserBody.new, # UpdateTenantUserBody | (required) + update_comments: 'update_comments_example', # String | } begin - result = api_instance.update_tenant_user(tenant_id, id, update_tenant_user_body, opts) + result = api_instance.update_tenant_user(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_tenant_user: #{e}" @@ -8516,12 +8630,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_tenant_user_with_http_info(tenant_id, id, update_tenant_user_body, opts) +> , Integer, Hash)> update_tenant_user_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.update_tenant_user_with_http_info(tenant_id, id, update_tenant_user_body, opts) + data, status_code, headers = api_instance.update_tenant_user_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -8555,7 +8669,7 @@ end ## update_user_badge -> update_user_badge(tenant_id, id, update_user_badge_params) +> update_user_badge(opts) @@ -8573,13 +8687,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | -update_user_badge_params = FastCommentsClient::UpdateUserBadgeParams.new # UpdateUserBadgeParams | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + id: 'id_example', # String | (required) + update_user_badge_params: FastCommentsClient::UpdateUserBadgeParams.new, # UpdateUserBadgeParams | (required) +} begin - result = api_instance.update_user_badge(tenant_id, id, update_user_badge_params) + result = api_instance.update_user_badge(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_user_badge: #{e}" @@ -8590,12 +8706,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_user_badge_with_http_info(tenant_id, id, update_user_badge_params) +> , Integer, Hash)> update_user_badge_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.update_user_badge_with_http_info(tenant_id, id, update_user_badge_params) + data, status_code, headers = api_instance.update_user_badge_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => diff --git a/client/docs/ModerationApi.md b/client/docs/ModerationApi.md index f6c5674..42b57c7 100644 --- a/client/docs/ModerationApi.md +++ b/client/docs/ModerationApi.md @@ -51,7 +51,7 @@ All URIs are relative to *https://fastcomments.com* ## delete_moderation_vote -> delete_moderation_vote(comment_id, vote_id, opts) +> delete_moderation_vote(opts) @@ -62,17 +62,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new -comment_id = 'comment_id_example' # String | -vote_id = 'vote_id_example' # String | opts = { - broadcast_id: 'broadcast_id_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + comment_id: 'comment_id_example', # String | (required) + vote_id: 'vote_id_example', # String | (required) + tenant_id: 'tenant_id_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.delete_moderation_vote(comment_id, vote_id, opts) + result = api_instance.delete_moderation_vote(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->delete_moderation_vote: #{e}" @@ -83,12 +83,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_moderation_vote_with_http_info(comment_id, vote_id, opts) +> , Integer, Hash)> delete_moderation_vote_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.delete_moderation_vote_with_http_info(comment_id, vote_id, opts) + data, status_code, headers = api_instance.delete_moderation_vote_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -103,8 +103,8 @@ end | ---- | ---- | ----------- | ----- | | **comment_id** | **String** | | | | **vote_id** | **String** | | | -| **broadcast_id** | **String** | | [optional] | | **tenant_id** | **String** | | [optional] | +| **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -135,16 +135,16 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - page: 1.2, # Float | - count: 1.2, # Float | - text_search: 'text_search_example', # String | - by_ip_from_comment: 'by_ip_from_comment_example', # String | - filters: 'filters_example', # String | - search_filters: 'search_filters_example', # String | - sorts: 'sorts_example', # String | - demo: true, # Boolean | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + page: 1.2, # Float | + count: 1.2, # Float | + text_search: 'text_search_example', # String | + by_ip_from_comment: 'by_ip_from_comment_example', # String | + filters: 'filters_example', # String | + search_filters: 'search_filters_example', # String | + sorts: 'sorts_example', # String | + demo: true, # Boolean | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin @@ -217,9 +217,9 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - batch_job_id: 'batch_job_id_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + batch_job_id: 'batch_job_id_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin @@ -285,14 +285,14 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - text_search: 'text_search_example', # String | - by_ip_from_comment: 'by_ip_from_comment_example', # String | - filters: 'filters_example', # String | - search_filters: 'search_filters_example', # String | - after_id: 'after_id_example', # String | - demo: true, # Boolean | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + text_search: 'text_search_example', # String | + by_ip_from_comment: 'by_ip_from_comment_example', # String | + filters: 'filters_example', # String | + search_filters: 'search_filters_example', # String | + after_id: 'after_id_example', # String | + demo: true, # Boolean | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin @@ -351,7 +351,7 @@ No authorization required ## get_ban_users_from_comment -> get_ban_users_from_comment(comment_id, opts) +> get_ban_users_from_comment(opts) @@ -362,15 +362,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new -comment_id = 'comment_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + comment_id: 'comment_id_example', # String | (required) + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.get_ban_users_from_comment(comment_id, opts) + result = api_instance.get_ban_users_from_comment(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_ban_users_from_comment: #{e}" @@ -381,12 +381,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_ban_users_from_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> get_ban_users_from_comment_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_ban_users_from_comment_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.get_ban_users_from_comment_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -419,7 +419,7 @@ No authorization required ## get_comment_ban_status -> get_comment_ban_status(comment_id, opts) +> get_comment_ban_status(opts) @@ -430,15 +430,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new -comment_id = 'comment_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + comment_id: 'comment_id_example', # String | (required) + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.get_comment_ban_status(comment_id, opts) + result = api_instance.get_comment_ban_status(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_comment_ban_status: #{e}" @@ -449,12 +449,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comment_ban_status_with_http_info(comment_id, opts) +> , Integer, Hash)> get_comment_ban_status_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_comment_ban_status_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.get_comment_ban_status_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -487,7 +487,7 @@ No authorization required ## get_comment_children -> get_comment_children(comment_id, opts) +> get_comment_children(opts) @@ -498,15 +498,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new -comment_id = 'comment_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + comment_id: 'comment_id_example', # String | (required) + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.get_comment_children(comment_id, opts) + result = api_instance.get_comment_children(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_comment_children: #{e}" @@ -517,12 +517,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comment_children_with_http_info(comment_id, opts) +> , Integer, Hash)> get_comment_children_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_comment_children_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.get_comment_children_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -567,13 +567,13 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - text_search: 'text_search_example', # String | - by_ip_from_comment: 'by_ip_from_comment_example', # String | - filter: 'filter_example', # String | - search_filters: 'search_filters_example', # String | - demo: true, # Boolean | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + text_search: 'text_search_example', # String | + by_ip_from_comment: 'by_ip_from_comment_example', # String | + filter: 'filter_example', # String | + search_filters: 'search_filters_example', # String | + demo: true, # Boolean | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin @@ -643,8 +643,8 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin @@ -697,7 +697,7 @@ No authorization required ## get_logs -> get_logs(comment_id, opts) +> get_logs(opts) @@ -708,15 +708,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new -comment_id = 'comment_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + comment_id: 'comment_id_example', # String | (required) + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.get_logs(comment_id, opts) + result = api_instance.get_logs(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_logs: #{e}" @@ -727,12 +727,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_logs_with_http_info(comment_id, opts) +> , Integer, Hash)> get_logs_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_logs_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.get_logs_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -777,8 +777,8 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin @@ -843,10 +843,10 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - badges_user_id: 'badges_user_id_example', # String | - comment_id: 'comment_id_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + badges_user_id: 'badges_user_id_example', # String | + comment_id: 'comment_id_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin @@ -901,7 +901,7 @@ No authorization required ## get_moderation_comment -> get_moderation_comment(comment_id, opts) +> get_moderation_comment(opts) @@ -912,17 +912,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new -comment_id = 'comment_id_example' # String | opts = { - include_email: true, # Boolean | - include_ip: true, # Boolean | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + comment_id: 'comment_id_example', # String | (required) + include_email: true, # Boolean | + include_ip: true, # Boolean | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.get_moderation_comment(comment_id, opts) + result = api_instance.get_moderation_comment(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_moderation_comment: #{e}" @@ -933,12 +933,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_moderation_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> get_moderation_comment_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_moderation_comment_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.get_moderation_comment_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -973,7 +973,7 @@ No authorization required ## get_moderation_comment_text -> get_moderation_comment_text(comment_id, opts) +> get_moderation_comment_text(opts) @@ -984,15 +984,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new -comment_id = 'comment_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + comment_id: 'comment_id_example', # String | (required) + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.get_moderation_comment_text(comment_id, opts) + result = api_instance.get_moderation_comment_text(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_moderation_comment_text: #{e}" @@ -1003,12 +1003,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_moderation_comment_text_with_http_info(comment_id, opts) +> , Integer, Hash)> get_moderation_comment_text_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_moderation_comment_text_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.get_moderation_comment_text_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1041,7 +1041,7 @@ No authorization required ## get_pre_ban_summary -> get_pre_ban_summary(comment_id, opts) +> get_pre_ban_summary(opts) @@ -1052,18 +1052,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new -comment_id = 'comment_id_example' # String | opts = { - include_by_user_id_and_email: true, # Boolean | - include_by_ip: true, # Boolean | - include_by_email_domain: true, # Boolean | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + comment_id: 'comment_id_example', # String | (required) + include_by_user_id_and_email: true, # Boolean | + include_by_ip: true, # Boolean | + include_by_email_domain: true, # Boolean | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.get_pre_ban_summary(comment_id, opts) + result = api_instance.get_pre_ban_summary(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_pre_ban_summary: #{e}" @@ -1074,12 +1074,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_pre_ban_summary_with_http_info(comment_id, opts) +> , Integer, Hash)> get_pre_ban_summary_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_pre_ban_summary_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.get_pre_ban_summary_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1127,11 +1127,11 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - value: 'value_example', # String | - filters: 'filters_example', # String | - search_filters: 'search_filters_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + value: 'value_example', # String | + filters: 'filters_example', # String | + search_filters: 'search_filters_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin @@ -1199,9 +1199,9 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - value: 'value_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + value: 'value_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin @@ -1267,9 +1267,9 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - value: 'value_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + value: 'value_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin @@ -1335,9 +1335,9 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - text_search: 'text_search_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + text_search: 'text_search_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin @@ -1403,9 +1403,9 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - value: 'value_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + value: 'value_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin @@ -1471,9 +1471,9 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - user_id: 'user_id_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + user_id: 'user_id_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin @@ -1539,8 +1539,8 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin @@ -1605,9 +1605,9 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - comment_id: 'comment_id_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + comment_id: 'comment_id_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin @@ -1661,7 +1661,7 @@ No authorization required ## post_adjust_comment_votes -> post_adjust_comment_votes(comment_id, adjust_comment_votes_params, opts) +> post_adjust_comment_votes(opts) @@ -1672,17 +1672,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new -comment_id = 'comment_id_example' # String | -adjust_comment_votes_params = FastCommentsClient::AdjustCommentVotesParams.new({adjust_vote_amount: 3.56}) # AdjustCommentVotesParams | opts = { - broadcast_id: 'broadcast_id_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + comment_id: 'comment_id_example', # String | (required) + adjust_comment_votes_params: FastCommentsClient::AdjustCommentVotesParams.new({adjust_vote_amount: 3.56}), # AdjustCommentVotesParams | (required) + tenant_id: 'tenant_id_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.post_adjust_comment_votes(comment_id, adjust_comment_votes_params, opts) + result = api_instance.post_adjust_comment_votes(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_adjust_comment_votes: #{e}" @@ -1693,12 +1693,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts) +> , Integer, Hash)> post_adjust_comment_votes_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts) + data, status_code, headers = api_instance.post_adjust_comment_votes_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1713,8 +1713,8 @@ end | ---- | ---- | ----------- | ----- | | **comment_id** | **String** | | | | **adjust_comment_votes_params** | [**AdjustCommentVotesParams**](AdjustCommentVotesParams.md) | | | -| **broadcast_id** | **String** | | [optional] | | **tenant_id** | **String** | | [optional] | +| **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -1745,13 +1745,13 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - text_search: 'text_search_example', # String | - by_ip_from_comment: 'by_ip_from_comment_example', # String | - filters: 'filters_example', # String | - search_filters: 'search_filters_example', # String | - sorts: 'sorts_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + text_search: 'text_search_example', # String | + by_ip_from_comment: 'by_ip_from_comment_example', # String | + filters: 'filters_example', # String | + search_filters: 'search_filters_example', # String | + sorts: 'sorts_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin @@ -1809,7 +1809,7 @@ No authorization required ## post_ban_user_from_comment -> post_ban_user_from_comment(comment_id, opts) +> post_ban_user_from_comment(opts) @@ -1820,23 +1820,23 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new -comment_id = 'comment_id_example' # String | opts = { - ban_email: true, # Boolean | - ban_email_domain: true, # Boolean | - ban_ip: true, # Boolean | - delete_all_users_comments: true, # Boolean | - banned_until: 'banned_until_example', # String | - is_shadow_ban: true, # Boolean | - update_id: 'update_id_example', # String | - ban_reason: 'ban_reason_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + comment_id: 'comment_id_example', # String | (required) + ban_email: true, # Boolean | + ban_email_domain: true, # Boolean | + ban_ip: true, # Boolean | + delete_all_users_comments: true, # Boolean | + banned_until: 'banned_until_example', # String | + is_shadow_ban: true, # Boolean | + update_id: 'update_id_example', # String | + ban_reason: 'ban_reason_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.post_ban_user_from_comment(comment_id, opts) + result = api_instance.post_ban_user_from_comment(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_ban_user_from_comment: #{e}" @@ -1847,12 +1847,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_ban_user_from_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> post_ban_user_from_comment_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.post_ban_user_from_comment_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.post_ban_user_from_comment_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1893,7 +1893,7 @@ No authorization required ## post_ban_user_undo -> post_ban_user_undo(ban_user_undo_params, opts) +> post_ban_user_undo(opts) @@ -1904,15 +1904,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new -ban_user_undo_params = FastCommentsClient::BanUserUndoParams.new({changelog: FastCommentsClient::APIBanUserChangeLog.new}) # BanUserUndoParams | opts = { - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + ban_user_undo_params: FastCommentsClient::BanUserUndoParams.new({changelog: FastCommentsClient::APIBanUserChangeLog.new}), # BanUserUndoParams | (required) + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.post_ban_user_undo(ban_user_undo_params, opts) + result = api_instance.post_ban_user_undo(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_ban_user_undo: #{e}" @@ -1923,12 +1923,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_ban_user_undo_with_http_info(ban_user_undo_params, opts) +> , Integer, Hash)> post_ban_user_undo_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.post_ban_user_undo_with_http_info(ban_user_undo_params, opts) + data, status_code, headers = api_instance.post_ban_user_undo_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1961,7 +1961,7 @@ No authorization required ## post_bulk_pre_ban_summary -> post_bulk_pre_ban_summary(bulk_pre_ban_params, opts) +> post_bulk_pre_ban_summary(opts) @@ -1972,18 +1972,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new -bulk_pre_ban_params = FastCommentsClient::BulkPreBanParams.new({comment_ids: ['comment_ids_example']}) # BulkPreBanParams | opts = { - include_by_user_id_and_email: true, # Boolean | - include_by_ip: true, # Boolean | - include_by_email_domain: true, # Boolean | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + bulk_pre_ban_params: FastCommentsClient::BulkPreBanParams.new({comment_ids: ['comment_ids_example']}), # BulkPreBanParams | (required) + include_by_user_id_and_email: true, # Boolean | + include_by_ip: true, # Boolean | + include_by_email_domain: true, # Boolean | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.post_bulk_pre_ban_summary(bulk_pre_ban_params, opts) + result = api_instance.post_bulk_pre_ban_summary(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_bulk_pre_ban_summary: #{e}" @@ -1994,12 +1994,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts) +> , Integer, Hash)> post_bulk_pre_ban_summary_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts) + data, status_code, headers = api_instance.post_bulk_pre_ban_summary_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2035,7 +2035,7 @@ No authorization required ## post_comments_by_ids -> post_comments_by_ids(comments_by_ids_params, opts) +> post_comments_by_ids(opts) @@ -2046,15 +2046,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new -comments_by_ids_params = FastCommentsClient::CommentsByIdsParams.new({ids: ['ids_example']}) # CommentsByIdsParams | opts = { - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + comments_by_ids_params: FastCommentsClient::CommentsByIdsParams.new({ids: ['ids_example']}), # CommentsByIdsParams | (required) + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.post_comments_by_ids(comments_by_ids_params, opts) + result = api_instance.post_comments_by_ids(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_comments_by_ids: #{e}" @@ -2065,12 +2065,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_comments_by_ids_with_http_info(comments_by_ids_params, opts) +> , Integer, Hash)> post_comments_by_ids_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.post_comments_by_ids_with_http_info(comments_by_ids_params, opts) + data, status_code, headers = api_instance.post_comments_by_ids_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2103,7 +2103,7 @@ No authorization required ## post_flag_comment -> post_flag_comment(comment_id, opts) +> post_flag_comment(opts) @@ -2114,16 +2114,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new -comment_id = 'comment_id_example' # String | opts = { - broadcast_id: 'broadcast_id_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + comment_id: 'comment_id_example', # String | (required) + tenant_id: 'tenant_id_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.post_flag_comment(comment_id, opts) + result = api_instance.post_flag_comment(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_flag_comment: #{e}" @@ -2134,12 +2134,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_flag_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> post_flag_comment_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.post_flag_comment_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.post_flag_comment_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2153,8 +2153,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **comment_id** | **String** | | | -| **broadcast_id** | **String** | | [optional] | | **tenant_id** | **String** | | [optional] | +| **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -2173,7 +2173,7 @@ No authorization required ## post_remove_comment -> post_remove_comment(comment_id, opts) +> post_remove_comment(opts) @@ -2184,16 +2184,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new -comment_id = 'comment_id_example' # String | opts = { - broadcast_id: 'broadcast_id_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + comment_id: 'comment_id_example', # String | (required) + tenant_id: 'tenant_id_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.post_remove_comment(comment_id, opts) + result = api_instance.post_remove_comment(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_remove_comment: #{e}" @@ -2204,12 +2204,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_remove_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> post_remove_comment_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.post_remove_comment_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.post_remove_comment_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2223,8 +2223,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **comment_id** | **String** | | | -| **broadcast_id** | **String** | | [optional] | | **tenant_id** | **String** | | [optional] | +| **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -2243,7 +2243,7 @@ No authorization required ## post_restore_deleted_comment -> post_restore_deleted_comment(comment_id, opts) +> post_restore_deleted_comment(opts) @@ -2254,16 +2254,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new -comment_id = 'comment_id_example' # String | opts = { - broadcast_id: 'broadcast_id_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + comment_id: 'comment_id_example', # String | (required) + tenant_id: 'tenant_id_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.post_restore_deleted_comment(comment_id, opts) + result = api_instance.post_restore_deleted_comment(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_restore_deleted_comment: #{e}" @@ -2274,12 +2274,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_restore_deleted_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> post_restore_deleted_comment_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.post_restore_deleted_comment_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.post_restore_deleted_comment_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2293,8 +2293,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **comment_id** | **String** | | | -| **broadcast_id** | **String** | | [optional] | | **tenant_id** | **String** | | [optional] | +| **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -2313,7 +2313,7 @@ No authorization required ## post_set_comment_approval_status -> post_set_comment_approval_status(comment_id, opts) +> post_set_comment_approval_status(opts) @@ -2324,17 +2324,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new -comment_id = 'comment_id_example' # String | opts = { - approved: true, # Boolean | - broadcast_id: 'broadcast_id_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + comment_id: 'comment_id_example', # String | (required) + approved: true, # Boolean | + tenant_id: 'tenant_id_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.post_set_comment_approval_status(comment_id, opts) + result = api_instance.post_set_comment_approval_status(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_set_comment_approval_status: #{e}" @@ -2345,12 +2345,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_set_comment_approval_status_with_http_info(comment_id, opts) +> , Integer, Hash)> post_set_comment_approval_status_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.post_set_comment_approval_status_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.post_set_comment_approval_status_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2365,8 +2365,8 @@ end | ---- | ---- | ----------- | ----- | | **comment_id** | **String** | | | | **approved** | **Boolean** | | [optional] | -| **broadcast_id** | **String** | | [optional] | | **tenant_id** | **String** | | [optional] | +| **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -2385,7 +2385,7 @@ No authorization required ## post_set_comment_review_status -> post_set_comment_review_status(comment_id, opts) +> post_set_comment_review_status(opts) @@ -2396,17 +2396,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new -comment_id = 'comment_id_example' # String | opts = { - reviewed: true, # Boolean | - broadcast_id: 'broadcast_id_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + comment_id: 'comment_id_example', # String | (required) + reviewed: true, # Boolean | + tenant_id: 'tenant_id_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.post_set_comment_review_status(comment_id, opts) + result = api_instance.post_set_comment_review_status(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_set_comment_review_status: #{e}" @@ -2417,12 +2417,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_set_comment_review_status_with_http_info(comment_id, opts) +> , Integer, Hash)> post_set_comment_review_status_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.post_set_comment_review_status_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.post_set_comment_review_status_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2437,8 +2437,8 @@ end | ---- | ---- | ----------- | ----- | | **comment_id** | **String** | | | | **reviewed** | **Boolean** | | [optional] | -| **broadcast_id** | **String** | | [optional] | | **tenant_id** | **String** | | [optional] | +| **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -2457,7 +2457,7 @@ No authorization required ## post_set_comment_spam_status -> post_set_comment_spam_status(comment_id, opts) +> post_set_comment_spam_status(opts) @@ -2468,18 +2468,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new -comment_id = 'comment_id_example' # String | opts = { - spam: true, # Boolean | - perm_not_spam: true, # Boolean | - broadcast_id: 'broadcast_id_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + comment_id: 'comment_id_example', # String | (required) + spam: true, # Boolean | + perm_not_spam: true, # Boolean | + tenant_id: 'tenant_id_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.post_set_comment_spam_status(comment_id, opts) + result = api_instance.post_set_comment_spam_status(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_set_comment_spam_status: #{e}" @@ -2490,12 +2490,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_set_comment_spam_status_with_http_info(comment_id, opts) +> , Integer, Hash)> post_set_comment_spam_status_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.post_set_comment_spam_status_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.post_set_comment_spam_status_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2511,8 +2511,8 @@ end | **comment_id** | **String** | | | | **spam** | **Boolean** | | [optional] | | **perm_not_spam** | **Boolean** | | [optional] | -| **broadcast_id** | **String** | | [optional] | | **tenant_id** | **String** | | [optional] | +| **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -2531,7 +2531,7 @@ No authorization required ## post_set_comment_text -> post_set_comment_text(comment_id, set_comment_text_params, opts) +> post_set_comment_text(opts) @@ -2542,17 +2542,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new -comment_id = 'comment_id_example' # String | -set_comment_text_params = FastCommentsClient::SetCommentTextParams.new({comment: 'comment_example'}) # SetCommentTextParams | opts = { - broadcast_id: 'broadcast_id_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + comment_id: 'comment_id_example', # String | (required) + set_comment_text_params: FastCommentsClient::SetCommentTextParams.new({comment: 'comment_example'}), # SetCommentTextParams | (required) + tenant_id: 'tenant_id_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.post_set_comment_text(comment_id, set_comment_text_params, opts) + result = api_instance.post_set_comment_text(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_set_comment_text: #{e}" @@ -2563,12 +2563,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts) +> , Integer, Hash)> post_set_comment_text_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts) + data, status_code, headers = api_instance.post_set_comment_text_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2583,8 +2583,8 @@ end | ---- | ---- | ----------- | ----- | | **comment_id** | **String** | | | | **set_comment_text_params** | [**SetCommentTextParams**](SetCommentTextParams.md) | | | -| **broadcast_id** | **String** | | [optional] | | **tenant_id** | **String** | | [optional] | +| **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -2603,7 +2603,7 @@ No authorization required ## post_un_flag_comment -> post_un_flag_comment(comment_id, opts) +> post_un_flag_comment(opts) @@ -2614,16 +2614,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new -comment_id = 'comment_id_example' # String | opts = { - broadcast_id: 'broadcast_id_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + comment_id: 'comment_id_example', # String | (required) + tenant_id: 'tenant_id_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.post_un_flag_comment(comment_id, opts) + result = api_instance.post_un_flag_comment(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_un_flag_comment: #{e}" @@ -2634,12 +2634,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_un_flag_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> post_un_flag_comment_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.post_un_flag_comment_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.post_un_flag_comment_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2653,8 +2653,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **comment_id** | **String** | | | -| **broadcast_id** | **String** | | [optional] | | **tenant_id** | **String** | | [optional] | +| **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -2673,7 +2673,7 @@ No authorization required ## post_vote -> post_vote(comment_id, opts) +> post_vote(opts) @@ -2684,17 +2684,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new -comment_id = 'comment_id_example' # String | opts = { - direction: 'direction_example', # String | - broadcast_id: 'broadcast_id_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + comment_id: 'comment_id_example', # String | (required) + direction: 'direction_example', # String | + tenant_id: 'tenant_id_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.post_vote(comment_id, opts) + result = api_instance.post_vote(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_vote: #{e}" @@ -2705,12 +2705,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_vote_with_http_info(comment_id, opts) +> , Integer, Hash)> post_vote_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.post_vote_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.post_vote_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2725,8 +2725,8 @@ end | ---- | ---- | ----------- | ----- | | **comment_id** | **String** | | | | **direction** | **String** | | [optional] | -| **broadcast_id** | **String** | | [optional] | | **tenant_id** | **String** | | [optional] | +| **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -2745,7 +2745,7 @@ No authorization required ## put_award_badge -> put_award_badge(badge_id, opts) +> put_award_badge(opts) @@ -2756,18 +2756,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new -badge_id = 'badge_id_example' # String | opts = { - user_id: 'user_id_example', # String | - comment_id: 'comment_id_example', # String | - broadcast_id: 'broadcast_id_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + badge_id: 'badge_id_example', # String | (required) + user_id: 'user_id_example', # String | + comment_id: 'comment_id_example', # String | + tenant_id: 'tenant_id_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.put_award_badge(badge_id, opts) + result = api_instance.put_award_badge(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->put_award_badge: #{e}" @@ -2778,12 +2778,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_award_badge_with_http_info(badge_id, opts) +> , Integer, Hash)> put_award_badge_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.put_award_badge_with_http_info(badge_id, opts) + data, status_code, headers = api_instance.put_award_badge_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2799,8 +2799,8 @@ end | **badge_id** | **String** | | | | **user_id** | **String** | | [optional] | | **comment_id** | **String** | | [optional] | -| **broadcast_id** | **String** | | [optional] | | **tenant_id** | **String** | | [optional] | +| **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -2819,7 +2819,7 @@ No authorization required ## put_close_thread -> put_close_thread(url_id, opts) +> put_close_thread(opts) @@ -2830,15 +2830,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new -url_id = 'url_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + url_id: 'url_id_example', # String | (required) + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.put_close_thread(url_id, opts) + result = api_instance.put_close_thread(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->put_close_thread: #{e}" @@ -2849,12 +2849,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_close_thread_with_http_info(url_id, opts) +> , Integer, Hash)> put_close_thread_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.put_close_thread_with_http_info(url_id, opts) + data, status_code, headers = api_instance.put_close_thread_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2887,7 +2887,7 @@ No authorization required ## put_remove_badge -> put_remove_badge(badge_id, opts) +> put_remove_badge(opts) @@ -2898,18 +2898,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new -badge_id = 'badge_id_example' # String | opts = { - user_id: 'user_id_example', # String | - comment_id: 'comment_id_example', # String | - broadcast_id: 'broadcast_id_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + badge_id: 'badge_id_example', # String | (required) + user_id: 'user_id_example', # String | + comment_id: 'comment_id_example', # String | + tenant_id: 'tenant_id_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.put_remove_badge(badge_id, opts) + result = api_instance.put_remove_badge(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->put_remove_badge: #{e}" @@ -2920,12 +2920,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_remove_badge_with_http_info(badge_id, opts) +> , Integer, Hash)> put_remove_badge_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.put_remove_badge_with_http_info(badge_id, opts) + data, status_code, headers = api_instance.put_remove_badge_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2941,8 +2941,8 @@ end | **badge_id** | **String** | | | | **user_id** | **String** | | [optional] | | **comment_id** | **String** | | [optional] | -| **broadcast_id** | **String** | | [optional] | | **tenant_id** | **String** | | [optional] | +| **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -2961,7 +2961,7 @@ No authorization required ## put_reopen_thread -> put_reopen_thread(url_id, opts) +> put_reopen_thread(opts) @@ -2972,15 +2972,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new -url_id = 'url_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + url_id: 'url_id_example', # String | (required) + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.put_reopen_thread(url_id, opts) + result = api_instance.put_reopen_thread(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->put_reopen_thread: #{e}" @@ -2991,12 +2991,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_reopen_thread_with_http_info(url_id, opts) +> , Integer, Hash)> put_reopen_thread_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.put_reopen_thread_with_http_info(url_id, opts) + data, status_code, headers = api_instance.put_reopen_thread_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3041,10 +3041,10 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - user_id: 'user_id_example', # String | - trust_factor: 'trust_factor_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example' # String | + user_id: 'user_id_example', # String | + trust_factor: 'trust_factor_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example', # String | } begin diff --git a/client/docs/PublicApi.md b/client/docs/PublicApi.md index 0a55969..d051a4f 100644 --- a/client/docs/PublicApi.md +++ b/client/docs/PublicApi.md @@ -60,7 +60,7 @@ All URIs are relative to *https://fastcomments.com* ## block_from_comment_public -> block_from_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts) +> block_from_comment_public(opts) @@ -71,16 +71,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -comment_id = 'comment_id_example' # String | -public_block_from_comment_params = FastCommentsClient::PublicBlockFromCommentParams.new({comment_ids: ['comment_ids_example']}) # PublicBlockFromCommentParams | opts = { - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + comment_id: 'comment_id_example', # String | (required) + public_block_from_comment_params: FastCommentsClient::PublicBlockFromCommentParams.new({comment_ids: ['comment_ids_example']}), # PublicBlockFromCommentParams | (required) + sso: 'sso_example', # String | } begin - result = api_instance.block_from_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts) + result = api_instance.block_from_comment_public(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->block_from_comment_public: #{e}" @@ -91,12 +91,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> block_from_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) +> , Integer, Hash)> block_from_comment_public_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.block_from_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) + data, status_code, headers = api_instance.block_from_comment_public_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -130,7 +130,7 @@ No authorization required ## checked_comments_for_blocked -> checked_comments_for_blocked(tenant_id, comment_ids, opts) +> checked_comments_for_blocked(opts) @@ -141,15 +141,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -comment_ids = 'comment_ids_example' # String | A comma separated list of comment ids. opts = { - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + comment_ids: 'comment_ids_example', # String | A comma separated list of comment ids. (required) + sso: 'sso_example', # String | } begin - result = api_instance.checked_comments_for_blocked(tenant_id, comment_ids, opts) + result = api_instance.checked_comments_for_blocked(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->checked_comments_for_blocked: #{e}" @@ -160,12 +160,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> checked_comments_for_blocked_with_http_info(tenant_id, comment_ids, opts) +> , Integer, Hash)> checked_comments_for_blocked_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.checked_comments_for_blocked_with_http_info(tenant_id, comment_ids, opts) + data, status_code, headers = api_instance.checked_comments_for_blocked_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -198,7 +198,7 @@ No authorization required ## create_comment_public -> create_comment_public(tenant_id, url_id, broadcast_id, comment_data, opts) +> create_comment_public(opts) @@ -209,18 +209,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -url_id = 'url_id_example' # String | -broadcast_id = 'broadcast_id_example' # String | -comment_data = FastCommentsClient::CommentData.new({commenter_name: 'commenter_name_example', comment: 'comment_example', url: 'url_example', url_id: 'url_id_example'}) # CommentData | opts = { - session_id: 'session_id_example', # String | - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + url_id: 'url_id_example', # String | (required) + broadcast_id: 'broadcast_id_example', # String | (required) + comment_data: FastCommentsClient::CommentData.new({commenter_name: 'commenter_name_example', comment: 'comment_example', url: 'url_example', url_id: 'url_id_example'}), # CommentData | (required) + session_id: 'session_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.create_comment_public(tenant_id, url_id, broadcast_id, comment_data, opts) + result = api_instance.create_comment_public(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->create_comment_public: #{e}" @@ -231,12 +231,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, comment_data, opts) +> , Integer, Hash)> create_comment_public_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, comment_data, opts) + data, status_code, headers = api_instance.create_comment_public_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -272,7 +272,7 @@ No authorization required ## create_feed_post_public -> create_feed_post_public(tenant_id, create_feed_post_params, opts) +> create_feed_post_public(opts) @@ -283,16 +283,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -create_feed_post_params = FastCommentsClient::CreateFeedPostParams.new # CreateFeedPostParams | opts = { - broadcast_id: 'broadcast_id_example', # String | - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + create_feed_post_params: FastCommentsClient::CreateFeedPostParams.new, # CreateFeedPostParams | (required) + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.create_feed_post_public(tenant_id, create_feed_post_params, opts) + result = api_instance.create_feed_post_public(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->create_feed_post_public: #{e}" @@ -303,12 +303,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, opts) +> , Integer, Hash)> create_feed_post_public_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, opts) + data, status_code, headers = api_instance.create_feed_post_public_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -342,7 +342,7 @@ No authorization required ## create_v1_page_react -> create_v1_page_react(tenant_id, url_id, opts) +> create_v1_page_react(opts) @@ -353,15 +353,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -url_id = 'url_id_example' # String | opts = { - title: 'title_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + url_id: 'url_id_example', # String | (required) + title: 'title_example', # String | } begin - result = api_instance.create_v1_page_react(tenant_id, url_id, opts) + result = api_instance.create_v1_page_react(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->create_v1_page_react: #{e}" @@ -372,12 +372,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_v1_page_react_with_http_info(tenant_id, url_id, opts) +> , Integer, Hash)> create_v1_page_react_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.create_v1_page_react_with_http_info(tenant_id, url_id, opts) + data, status_code, headers = api_instance.create_v1_page_react_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -410,7 +410,7 @@ No authorization required ## create_v2_page_react -> create_v2_page_react(tenant_id, url_id, id, opts) +> create_v2_page_react(opts) @@ -421,16 +421,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -url_id = 'url_id_example' # String | -id = 'id_example' # String | opts = { - title: 'title_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + url_id: 'url_id_example', # String | (required) + id: 'id_example', # String | (required) + title: 'title_example', # String | } begin - result = api_instance.create_v2_page_react(tenant_id, url_id, id, opts) + result = api_instance.create_v2_page_react(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->create_v2_page_react: #{e}" @@ -441,12 +441,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_v2_page_react_with_http_info(tenant_id, url_id, id, opts) +> , Integer, Hash)> create_v2_page_react_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.create_v2_page_react_with_http_info(tenant_id, url_id, id, opts) + data, status_code, headers = api_instance.create_v2_page_react_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -480,7 +480,7 @@ No authorization required ## delete_comment_public -> delete_comment_public(tenant_id, comment_id, broadcast_id, opts) +> delete_comment_public(opts) @@ -491,17 +491,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -comment_id = 'comment_id_example' # String | -broadcast_id = 'broadcast_id_example' # String | opts = { - edit_key: 'edit_key_example', # String | - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + comment_id: 'comment_id_example', # String | (required) + broadcast_id: 'broadcast_id_example', # String | (required) + edit_key: 'edit_key_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.delete_comment_public(tenant_id, comment_id, broadcast_id, opts) + result = api_instance.delete_comment_public(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->delete_comment_public: #{e}" @@ -512,12 +512,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, opts) +> , Integer, Hash)> delete_comment_public_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, opts) + data, status_code, headers = api_instance.delete_comment_public_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -552,7 +552,7 @@ No authorization required ## delete_comment_vote -> delete_comment_vote(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts) +> delete_comment_vote(opts) @@ -563,19 +563,19 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -comment_id = 'comment_id_example' # String | -vote_id = 'vote_id_example' # String | -url_id = 'url_id_example' # String | -broadcast_id = 'broadcast_id_example' # String | opts = { - edit_key: 'edit_key_example', # String | - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + comment_id: 'comment_id_example', # String | (required) + vote_id: 'vote_id_example', # String | (required) + url_id: 'url_id_example', # String | (required) + broadcast_id: 'broadcast_id_example', # String | (required) + edit_key: 'edit_key_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.delete_comment_vote(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts) + result = api_instance.delete_comment_vote(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->delete_comment_vote: #{e}" @@ -586,12 +586,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_comment_vote_with_http_info(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts) +> , Integer, Hash)> delete_comment_vote_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.delete_comment_vote_with_http_info(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts) + data, status_code, headers = api_instance.delete_comment_vote_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -628,7 +628,7 @@ No authorization required ## delete_feed_post_public -> delete_feed_post_public(tenant_id, post_id, opts) +> delete_feed_post_public(opts) @@ -639,16 +639,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -post_id = 'post_id_example' # String | opts = { - broadcast_id: 'broadcast_id_example', # String | - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + post_id: 'post_id_example', # String | (required) + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.delete_feed_post_public(tenant_id, post_id, opts) + result = api_instance.delete_feed_post_public(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->delete_feed_post_public: #{e}" @@ -659,12 +659,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_feed_post_public_with_http_info(tenant_id, post_id, opts) +> , Integer, Hash)> delete_feed_post_public_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.delete_feed_post_public_with_http_info(tenant_id, post_id, opts) + data, status_code, headers = api_instance.delete_feed_post_public_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -698,7 +698,7 @@ No authorization required ## delete_v1_page_react -> delete_v1_page_react(tenant_id, url_id) +> delete_v1_page_react(opts) @@ -709,12 +709,14 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -url_id = 'url_id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + url_id: 'url_id_example', # String | (required) +} begin - result = api_instance.delete_v1_page_react(tenant_id, url_id) + result = api_instance.delete_v1_page_react(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->delete_v1_page_react: #{e}" @@ -725,12 +727,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_v1_page_react_with_http_info(tenant_id, url_id) +> , Integer, Hash)> delete_v1_page_react_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.delete_v1_page_react_with_http_info(tenant_id, url_id) + data, status_code, headers = api_instance.delete_v1_page_react_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -762,7 +764,7 @@ No authorization required ## delete_v2_page_react -> delete_v2_page_react(tenant_id, url_id, id) +> delete_v2_page_react(opts) @@ -773,13 +775,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -url_id = 'url_id_example' # String | -id = 'id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + url_id: 'url_id_example', # String | (required) + id: 'id_example', # String | (required) +} begin - result = api_instance.delete_v2_page_react(tenant_id, url_id, id) + result = api_instance.delete_v2_page_react(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->delete_v2_page_react: #{e}" @@ -790,12 +794,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_v2_page_react_with_http_info(tenant_id, url_id, id) +> , Integer, Hash)> delete_v2_page_react_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.delete_v2_page_react_with_http_info(tenant_id, url_id, id) + data, status_code, headers = api_instance.delete_v2_page_react_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -828,7 +832,7 @@ No authorization required ## flag_comment_public -> flag_comment_public(tenant_id, comment_id, is_flagged, opts) +> flag_comment_public(opts) @@ -839,16 +843,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -comment_id = 'comment_id_example' # String | -is_flagged = true # Boolean | opts = { - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + comment_id: 'comment_id_example', # String | (required) + is_flagged: true, # Boolean | (required) + sso: 'sso_example', # String | } begin - result = api_instance.flag_comment_public(tenant_id, comment_id, is_flagged, opts) + result = api_instance.flag_comment_public(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->flag_comment_public: #{e}" @@ -859,12 +863,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts) +> , Integer, Hash)> flag_comment_public_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts) + data, status_code, headers = api_instance.flag_comment_public_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -898,7 +902,7 @@ No authorization required ## get_comment_text -> get_comment_text(tenant_id, comment_id, opts) +> get_comment_text(opts) @@ -909,16 +913,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -comment_id = 'comment_id_example' # String | opts = { - edit_key: 'edit_key_example', # String | - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + comment_id: 'comment_id_example', # String | (required) + edit_key: 'edit_key_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.get_comment_text(tenant_id, comment_id, opts) + result = api_instance.get_comment_text(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_comment_text: #{e}" @@ -929,12 +933,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comment_text_with_http_info(tenant_id, comment_id, opts) +> , Integer, Hash)> get_comment_text_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_comment_text_with_http_info(tenant_id, comment_id, opts) + data, status_code, headers = api_instance.get_comment_text_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -968,7 +972,7 @@ No authorization required ## get_comment_vote_user_names -> get_comment_vote_user_names(tenant_id, comment_id, dir, opts) +> get_comment_vote_user_names(opts) @@ -979,16 +983,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -comment_id = 'comment_id_example' # String | -dir = 56 # Integer | opts = { - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + comment_id: 'comment_id_example', # String | (required) + dir: 56, # Integer | (required) + sso: 'sso_example', # String | } begin - result = api_instance.get_comment_vote_user_names(tenant_id, comment_id, dir, opts) + result = api_instance.get_comment_vote_user_names(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_comment_vote_user_names: #{e}" @@ -999,12 +1003,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts) +> , Integer, Hash)> get_comment_vote_user_names_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts) + data, status_code, headers = api_instance.get_comment_vote_user_names_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1050,13 +1054,13 @@ require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new opts = { - user_id: 'user_id_example', # String | - direction: FastCommentsClient::SortDirections::OF, # SortDirections | - replies_to_user_id: 'replies_to_user_id_example', # String | - page: 1.2, # Float | - includei10n: true, # Boolean | - locale: 'locale_example', # String | - is_crawler: true # Boolean | + user_id: 'user_id_example', # String | + direction: FastCommentsClient::SortDirections::OF, # SortDirections | + replies_to_user_id: 'replies_to_user_id_example', # String | + page: 1.2, # Float | + includei10n: true, # Boolean | + locale: 'locale_example', # String | + is_crawler: true, # Boolean | } begin @@ -1114,7 +1118,7 @@ No authorization required ## get_comments_public -> get_comments_public(tenant_id, url_id, opts) +> get_comments_public(opts) @@ -1127,40 +1131,40 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -url_id = 'url_id_example' # String | opts = { - page: 56, # Integer | - direction: FastCommentsClient::SortDirections::OF, # SortDirections | - sso: 'sso_example', # String | - skip: 56, # Integer | - skip_children: 56, # Integer | - limit: 56, # Integer | - limit_children: 56, # Integer | - count_children: true, # Boolean | - fetch_page_for_comment_id: 'fetch_page_for_comment_id_example', # String | - include_config: true, # Boolean | - count_all: true, # Boolean | - includei10n: true, # Boolean | - locale: 'locale_example', # String | - modules: 'modules_example', # String | - is_crawler: true, # Boolean | - include_notification_count: true, # Boolean | - as_tree: true, # Boolean | - max_tree_depth: 56, # Integer | - use_full_translation_ids: true, # Boolean | - parent_id: 'parent_id_example', # String | - search_text: 'search_text_example', # String | - hash_tags: ['inner_example'], # Array | - user_id: 'user_id_example', # String | - custom_config_str: 'custom_config_str_example', # String | - after_comment_id: 'after_comment_id_example', # String | - before_comment_id: 'before_comment_id_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + url_id: 'url_id_example', # String | (required) + page: 56, # Integer | + direction: FastCommentsClient::SortDirections::OF, # SortDirections | + sso: 'sso_example', # String | + skip: 56, # Integer | + skip_children: 56, # Integer | + limit: 56, # Integer | + limit_children: 56, # Integer | + count_children: true, # Boolean | + fetch_page_for_comment_id: 'fetch_page_for_comment_id_example', # String | + include_config: true, # Boolean | + count_all: true, # Boolean | + includei10n: true, # Boolean | + locale: 'locale_example', # String | + modules: 'modules_example', # String | + is_crawler: true, # Boolean | + include_notification_count: true, # Boolean | + as_tree: true, # Boolean | + max_tree_depth: 56, # Integer | + use_full_translation_ids: true, # Boolean | + parent_id: 'parent_id_example', # String | + search_text: 'search_text_example', # String | + hash_tags: ['inner_example'], # Array | + user_id: 'user_id_example', # String | + custom_config_str: 'custom_config_str_example', # String | + after_comment_id: 'after_comment_id_example', # String | + before_comment_id: 'before_comment_id_example', # String | } begin - result = api_instance.get_comments_public(tenant_id, url_id, opts) + result = api_instance.get_comments_public(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_comments_public: #{e}" @@ -1171,12 +1175,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comments_public_with_http_info(tenant_id, url_id, opts) +> , Integer, Hash)> get_comments_public_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_comments_public_with_http_info(tenant_id, url_id, opts) + data, status_code, headers = api_instance.get_comments_public_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1234,7 +1238,7 @@ No authorization required ## get_event_log -> get_event_log(tenant_id, url_id, user_id_ws, start_time, opts) +> get_event_log(opts) @@ -1247,17 +1251,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -url_id = 'url_id_example' # String | -user_id_ws = 'user_id_ws_example' # String | -start_time = 789 # Integer | opts = { - end_time: 789 # Integer | + tenant_id: 'tenant_id_example', # String | (required) + url_id: 'url_id_example', # String | (required) + user_id_ws: 'user_id_ws_example', # String | (required) + start_time: 789, # Integer | (required) + end_time: 789, # Integer | } begin - result = api_instance.get_event_log(tenant_id, url_id, user_id_ws, start_time, opts) + result = api_instance.get_event_log(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_event_log: #{e}" @@ -1268,12 +1272,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) +> , Integer, Hash)> get_event_log_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) + data, status_code, headers = api_instance.get_event_log_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1308,7 +1312,7 @@ No authorization required ## get_feed_posts_public -> get_feed_posts_public(tenant_id, opts) +> get_feed_posts_public(opts) @@ -1321,19 +1325,19 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | opts = { - after_id: 'after_id_example', # String | - limit: 56, # Integer | - tags: ['inner_example'], # Array | - sso: 'sso_example', # String | - is_crawler: true, # Boolean | - include_user_info: true # Boolean | + tenant_id: 'tenant_id_example', # String | (required) + after_id: 'after_id_example', # String | + limit: 56, # Integer | + tags: ['inner_example'], # Array | + sso: 'sso_example', # String | + is_crawler: true, # Boolean | + include_user_info: true, # Boolean | } begin - result = api_instance.get_feed_posts_public(tenant_id, opts) + result = api_instance.get_feed_posts_public(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_feed_posts_public: #{e}" @@ -1344,12 +1348,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_feed_posts_public_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_feed_posts_public_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_feed_posts_public_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_feed_posts_public_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1386,7 +1390,7 @@ No authorization required ## get_feed_posts_stats -> get_feed_posts_stats(tenant_id, post_ids, opts) +> get_feed_posts_stats(opts) @@ -1397,15 +1401,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -post_ids = ['inner_example'] # Array | opts = { - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + post_ids: ['inner_example'], # Array | (required) + sso: 'sso_example', # String | } begin - result = api_instance.get_feed_posts_stats(tenant_id, post_ids, opts) + result = api_instance.get_feed_posts_stats(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_feed_posts_stats: #{e}" @@ -1416,12 +1420,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts) +> , Integer, Hash)> get_feed_posts_stats_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts) + data, status_code, headers = api_instance.get_feed_posts_stats_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1454,7 +1458,7 @@ No authorization required ## get_gif_large -> get_gif_large(tenant_id, large_internal_url_sanitized) +> get_gif_large(opts) @@ -1465,12 +1469,14 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -large_internal_url_sanitized = 'large_internal_url_sanitized_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + large_internal_url_sanitized: 'large_internal_url_sanitized_example', # String | (required) +} begin - result = api_instance.get_gif_large(tenant_id, large_internal_url_sanitized) + result = api_instance.get_gif_large(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_gif_large: #{e}" @@ -1481,12 +1487,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_gif_large_with_http_info(tenant_id, large_internal_url_sanitized) +> , Integer, Hash)> get_gif_large_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_gif_large_with_http_info(tenant_id, large_internal_url_sanitized) + data, status_code, headers = api_instance.get_gif_large_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1518,7 +1524,7 @@ No authorization required ## get_gifs_search -> get_gifs_search(tenant_id, search, opts) +> get_gifs_search(opts) @@ -1529,17 +1535,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -search = 'search_example' # String | opts = { - locale: 'locale_example', # String | - rating: 'rating_example', # String | - page: 1.2 # Float | + tenant_id: 'tenant_id_example', # String | (required) + search: 'search_example', # String | (required) + locale: 'locale_example', # String | + rating: 'rating_example', # String | + page: 1.2, # Float | } begin - result = api_instance.get_gifs_search(tenant_id, search, opts) + result = api_instance.get_gifs_search(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_gifs_search: #{e}" @@ -1550,12 +1556,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_gifs_search_with_http_info(tenant_id, search, opts) +> , Integer, Hash)> get_gifs_search_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_gifs_search_with_http_info(tenant_id, search, opts) + data, status_code, headers = api_instance.get_gifs_search_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1590,7 +1596,7 @@ No authorization required ## get_gifs_trending -> get_gifs_trending(tenant_id, opts) +> get_gifs_trending(opts) @@ -1601,16 +1607,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | opts = { - locale: 'locale_example', # String | - rating: 'rating_example', # String | - page: 1.2 # Float | + tenant_id: 'tenant_id_example', # String | (required) + locale: 'locale_example', # String | + rating: 'rating_example', # String | + page: 1.2, # Float | } begin - result = api_instance.get_gifs_trending(tenant_id, opts) + result = api_instance.get_gifs_trending(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_gifs_trending: #{e}" @@ -1621,12 +1627,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_gifs_trending_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_gifs_trending_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_gifs_trending_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_gifs_trending_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1660,7 +1666,7 @@ No authorization required ## get_global_event_log -> get_global_event_log(tenant_id, url_id, user_id_ws, start_time, opts) +> get_global_event_log(opts) @@ -1673,17 +1679,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -url_id = 'url_id_example' # String | -user_id_ws = 'user_id_ws_example' # String | -start_time = 789 # Integer | opts = { - end_time: 789 # Integer | + tenant_id: 'tenant_id_example', # String | (required) + url_id: 'url_id_example', # String | (required) + user_id_ws: 'user_id_ws_example', # String | (required) + start_time: 789, # Integer | (required) + end_time: 789, # Integer | } begin - result = api_instance.get_global_event_log(tenant_id, url_id, user_id_ws, start_time, opts) + result = api_instance.get_global_event_log(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_global_event_log: #{e}" @@ -1694,12 +1700,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) +> , Integer, Hash)> get_global_event_log_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) + data, status_code, headers = api_instance.get_global_event_log_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1734,7 +1740,7 @@ No authorization required ## get_offline_users -> get_offline_users(tenant_id, url_id, opts) +> get_offline_users(opts) @@ -1747,16 +1753,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -url_id = 'url_id_example' # String | Page URL identifier (cleaned server-side). opts = { - after_name: 'after_name_example', # String | Cursor: pass nextAfterName from the previous response. - after_user_id: 'after_user_id_example' # String | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. + tenant_id: 'tenant_id_example', # String | (required) + url_id: 'url_id_example', # String | Page URL identifier (cleaned server-side). (required) + after_name: 'after_name_example', # String | Cursor: pass nextAfterName from the previous response. + after_user_id: 'after_user_id_example', # String | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. } begin - result = api_instance.get_offline_users(tenant_id, url_id, opts) + result = api_instance.get_offline_users(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_offline_users: #{e}" @@ -1767,12 +1773,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_offline_users_with_http_info(tenant_id, url_id, opts) +> , Integer, Hash)> get_offline_users_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_offline_users_with_http_info(tenant_id, url_id, opts) + data, status_code, headers = api_instance.get_offline_users_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1806,7 +1812,7 @@ No authorization required ## get_online_users -> get_online_users(tenant_id, url_id, opts) +> get_online_users(opts) @@ -1819,16 +1825,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -url_id = 'url_id_example' # String | Page URL identifier (cleaned server-side). opts = { - after_name: 'after_name_example', # String | Cursor: pass nextAfterName from the previous response. - after_user_id: 'after_user_id_example' # String | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. + tenant_id: 'tenant_id_example', # String | (required) + url_id: 'url_id_example', # String | Page URL identifier (cleaned server-side). (required) + after_name: 'after_name_example', # String | Cursor: pass nextAfterName from the previous response. + after_user_id: 'after_user_id_example', # String | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. } begin - result = api_instance.get_online_users(tenant_id, url_id, opts) + result = api_instance.get_online_users(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_online_users: #{e}" @@ -1839,12 +1845,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_online_users_with_http_info(tenant_id, url_id, opts) +> , Integer, Hash)> get_online_users_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_online_users_with_http_info(tenant_id, url_id, opts) + data, status_code, headers = api_instance.get_online_users_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1878,7 +1884,7 @@ No authorization required ## get_pages_public -> get_pages_public(tenant_id, opts) +> get_pages_public(opts) @@ -1891,18 +1897,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | opts = { - cursor: 'cursor_example', # String | Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. - limit: 56, # Integer | 1..200, default 50 - q: 'q_example', # String | Optional case-insensitive title prefix filter. - sort_by: FastCommentsClient::PagesSortBy::UPDATED_AT, # PagesSortBy | Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). - has_comments: true # Boolean | If true, only return pages with at least one comment. + tenant_id: 'tenant_id_example', # String | (required) + cursor: 'cursor_example', # String | Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. + limit: 56, # Integer | 1..200, default 50 + q: 'q_example', # String | Optional case-insensitive title prefix filter. + sort_by: FastCommentsClient::PagesSortBy::UPDATED_AT, # PagesSortBy | Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). + has_comments: true, # Boolean | If true, only return pages with at least one comment. } begin - result = api_instance.get_pages_public(tenant_id, opts) + result = api_instance.get_pages_public(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_pages_public: #{e}" @@ -1913,12 +1919,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_pages_public_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_pages_public_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_pages_public_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_pages_public_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1954,7 +1960,7 @@ No authorization required ## get_translations -> get_translations(namespace, component, opts) +> get_translations(opts) @@ -1965,16 +1971,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -namespace = 'namespace_example' # String | -component = 'component_example' # String | opts = { - locale: 'locale_example', # String | - use_full_translation_ids: true # Boolean | + namespace: 'namespace_example', # String | (required) + component: 'component_example', # String | (required) + locale: 'locale_example', # String | + use_full_translation_ids: true, # Boolean | } begin - result = api_instance.get_translations(namespace, component, opts) + result = api_instance.get_translations(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_translations: #{e}" @@ -1985,12 +1991,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_translations_with_http_info(namespace, component, opts) +> , Integer, Hash)> get_translations_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_translations_with_http_info(namespace, component, opts) + data, status_code, headers = api_instance.get_translations_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2024,7 +2030,7 @@ No authorization required ## get_user_notification_count -> get_user_notification_count(tenant_id, opts) +> get_user_notification_count(opts) @@ -2035,14 +2041,14 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | opts = { - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + sso: 'sso_example', # String | } begin - result = api_instance.get_user_notification_count(tenant_id, opts) + result = api_instance.get_user_notification_count(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_user_notification_count: #{e}" @@ -2053,12 +2059,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_notification_count_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_user_notification_count_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_user_notification_count_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_user_notification_count_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2090,7 +2096,7 @@ No authorization required ## get_user_notifications -> get_user_notifications(tenant_id, opts) +> get_user_notifications(opts) @@ -2101,24 +2107,24 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | opts = { - url_id: 'url_id_example', # String | Used to determine whether the current page is subscribed. - page_size: 56, # Integer | - after_id: 'after_id_example', # String | - include_context: true, # Boolean | - after_created_at: 789, # Integer | - unread_only: true, # Boolean | - dm_only: true, # Boolean | - no_dm: true, # Boolean | - include_translations: true, # Boolean | - include_tenant_notifications: true, # Boolean | - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + url_id: 'url_id_example', # String | Used to determine whether the current page is subscribed. + page_size: 56, # Integer | + after_id: 'after_id_example', # String | + include_context: true, # Boolean | + after_created_at: 789, # Integer | + unread_only: true, # Boolean | + dm_only: true, # Boolean | + no_dm: true, # Boolean | + include_translations: true, # Boolean | + include_tenant_notifications: true, # Boolean | + sso: 'sso_example', # String | } begin - result = api_instance.get_user_notifications(tenant_id, opts) + result = api_instance.get_user_notifications(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_user_notifications: #{e}" @@ -2129,12 +2135,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_notifications_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_user_notifications_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_user_notifications_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_user_notifications_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2176,7 +2182,7 @@ No authorization required ## get_user_presence_statuses -> get_user_presence_statuses(tenant_id, url_id_ws, user_ids) +> get_user_presence_statuses(opts) @@ -2187,13 +2193,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -url_id_ws = 'url_id_ws_example' # String | -user_ids = 'user_ids_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + url_id_ws: 'url_id_ws_example', # String | (required) + user_ids: 'user_ids_example', # String | (required) +} begin - result = api_instance.get_user_presence_statuses(tenant_id, url_id_ws, user_ids) + result = api_instance.get_user_presence_statuses(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_user_presence_statuses: #{e}" @@ -2204,12 +2212,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids) +> , Integer, Hash)> get_user_presence_statuses_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids) + data, status_code, headers = api_instance.get_user_presence_statuses_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2242,7 +2250,7 @@ No authorization required ## get_user_reacts_public -> get_user_reacts_public(tenant_id, opts) +> get_user_reacts_public(opts) @@ -2253,15 +2261,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | opts = { - post_ids: ['inner_example'], # Array | - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + post_ids: ['inner_example'], # Array | + sso: 'sso_example', # String | } begin - result = api_instance.get_user_reacts_public(tenant_id, opts) + result = api_instance.get_user_reacts_public(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_user_reacts_public: #{e}" @@ -2272,12 +2280,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_reacts_public_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_user_reacts_public_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_user_reacts_public_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_user_reacts_public_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2310,7 +2318,7 @@ No authorization required ## get_users_info -> get_users_info(tenant_id, ids) +> get_users_info(opts) @@ -2323,12 +2331,14 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -ids = 'ids_example' # String | Comma-delimited userIds. +opts = { + tenant_id: 'tenant_id_example', # String | (required) + ids: 'ids_example', # String | Comma-delimited userIds. (required) +} begin - result = api_instance.get_users_info(tenant_id, ids) + result = api_instance.get_users_info(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_users_info: #{e}" @@ -2339,12 +2349,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_users_info_with_http_info(tenant_id, ids) +> , Integer, Hash)> get_users_info_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_users_info_with_http_info(tenant_id, ids) + data, status_code, headers = api_instance.get_users_info_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2376,7 +2386,7 @@ No authorization required ## get_v1_page_likes -> get_v1_page_likes(tenant_id, url_id) +> get_v1_page_likes(opts) @@ -2387,12 +2397,14 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -url_id = 'url_id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + url_id: 'url_id_example', # String | (required) +} begin - result = api_instance.get_v1_page_likes(tenant_id, url_id) + result = api_instance.get_v1_page_likes(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_v1_page_likes: #{e}" @@ -2403,12 +2415,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_v1_page_likes_with_http_info(tenant_id, url_id) +> , Integer, Hash)> get_v1_page_likes_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_v1_page_likes_with_http_info(tenant_id, url_id) + data, status_code, headers = api_instance.get_v1_page_likes_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2440,7 +2452,7 @@ No authorization required ## get_v2_page_react_users -> get_v2_page_react_users(tenant_id, url_id, id) +> get_v2_page_react_users(opts) @@ -2451,13 +2463,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -url_id = 'url_id_example' # String | -id = 'id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + url_id: 'url_id_example', # String | (required) + id: 'id_example', # String | (required) +} begin - result = api_instance.get_v2_page_react_users(tenant_id, url_id, id) + result = api_instance.get_v2_page_react_users(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_v2_page_react_users: #{e}" @@ -2468,12 +2482,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_v2_page_react_users_with_http_info(tenant_id, url_id, id) +> , Integer, Hash)> get_v2_page_react_users_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_v2_page_react_users_with_http_info(tenant_id, url_id, id) + data, status_code, headers = api_instance.get_v2_page_react_users_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2506,7 +2520,7 @@ No authorization required ## get_v2_page_reacts -> get_v2_page_reacts(tenant_id, url_id) +> get_v2_page_reacts(opts) @@ -2517,12 +2531,14 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -url_id = 'url_id_example' # String | +opts = { + tenant_id: 'tenant_id_example', # String | (required) + url_id: 'url_id_example', # String | (required) +} begin - result = api_instance.get_v2_page_reacts(tenant_id, url_id) + result = api_instance.get_v2_page_reacts(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_v2_page_reacts: #{e}" @@ -2533,12 +2549,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_v2_page_reacts_with_http_info(tenant_id, url_id) +> , Integer, Hash)> get_v2_page_reacts_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.get_v2_page_reacts_with_http_info(tenant_id, url_id) + data, status_code, headers = api_instance.get_v2_page_reacts_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2570,7 +2586,7 @@ No authorization required ## lock_comment -> lock_comment(tenant_id, comment_id, broadcast_id, opts) +> lock_comment(opts) @@ -2581,16 +2597,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -comment_id = 'comment_id_example' # String | -broadcast_id = 'broadcast_id_example' # String | opts = { - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + comment_id: 'comment_id_example', # String | (required) + broadcast_id: 'broadcast_id_example', # String | (required) + sso: 'sso_example', # String | } begin - result = api_instance.lock_comment(tenant_id, comment_id, broadcast_id, opts) + result = api_instance.lock_comment(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->lock_comment: #{e}" @@ -2601,12 +2617,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) +> , Integer, Hash)> lock_comment_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) + data, status_code, headers = api_instance.lock_comment_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2699,7 +2715,7 @@ No authorization required ## pin_comment -> pin_comment(tenant_id, comment_id, broadcast_id, opts) +> pin_comment(opts) @@ -2710,16 +2726,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -comment_id = 'comment_id_example' # String | -broadcast_id = 'broadcast_id_example' # String | opts = { - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + comment_id: 'comment_id_example', # String | (required) + broadcast_id: 'broadcast_id_example', # String | (required) + sso: 'sso_example', # String | } begin - result = api_instance.pin_comment(tenant_id, comment_id, broadcast_id, opts) + result = api_instance.pin_comment(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->pin_comment: #{e}" @@ -2730,12 +2746,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) +> , Integer, Hash)> pin_comment_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) + data, status_code, headers = api_instance.pin_comment_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2769,7 +2785,7 @@ No authorization required ## react_feed_post_public -> react_feed_post_public(tenant_id, post_id, react_body_params, opts) +> react_feed_post_public(opts) @@ -2780,18 +2796,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -post_id = 'post_id_example' # String | -react_body_params = FastCommentsClient::ReactBodyParams.new # ReactBodyParams | opts = { - is_undo: true, # Boolean | - broadcast_id: 'broadcast_id_example', # String | - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + post_id: 'post_id_example', # String | (required) + react_body_params: FastCommentsClient::ReactBodyParams.new, # ReactBodyParams | (required) + is_undo: true, # Boolean | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.react_feed_post_public(tenant_id, post_id, react_body_params, opts) + result = api_instance.react_feed_post_public(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->react_feed_post_public: #{e}" @@ -2802,12 +2818,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, opts) +> , Integer, Hash)> react_feed_post_public_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, opts) + data, status_code, headers = api_instance.react_feed_post_public_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2843,7 +2859,7 @@ No authorization required ## reset_user_notification_count -> reset_user_notification_count(tenant_id, opts) +> reset_user_notification_count(opts) @@ -2854,14 +2870,14 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | opts = { - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + sso: 'sso_example', # String | } begin - result = api_instance.reset_user_notification_count(tenant_id, opts) + result = api_instance.reset_user_notification_count(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->reset_user_notification_count: #{e}" @@ -2872,12 +2888,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> reset_user_notification_count_with_http_info(tenant_id, opts) +> , Integer, Hash)> reset_user_notification_count_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.reset_user_notification_count_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.reset_user_notification_count_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2909,7 +2925,7 @@ No authorization required ## reset_user_notifications -> reset_user_notifications(tenant_id, opts) +> reset_user_notifications(opts) @@ -2920,19 +2936,19 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | opts = { - after_id: 'after_id_example', # String | - after_created_at: 789, # Integer | - unread_only: true, # Boolean | - dm_only: true, # Boolean | - no_dm: true, # Boolean | - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + after_id: 'after_id_example', # String | + after_created_at: 789, # Integer | + unread_only: true, # Boolean | + dm_only: true, # Boolean | + no_dm: true, # Boolean | + sso: 'sso_example', # String | } begin - result = api_instance.reset_user_notifications(tenant_id, opts) + result = api_instance.reset_user_notifications(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->reset_user_notifications: #{e}" @@ -2943,12 +2959,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> reset_user_notifications_with_http_info(tenant_id, opts) +> , Integer, Hash)> reset_user_notifications_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.reset_user_notifications_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.reset_user_notifications_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2985,7 +3001,7 @@ No authorization required ## search_users -> search_users(tenant_id, url_id, opts) +> search_users(opts) @@ -2996,18 +3012,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -url_id = 'url_id_example' # String | opts = { - username_starts_with: 'username_starts_with_example', # String | - mention_group_ids: ['inner_example'], # Array | - sso: 'sso_example', # String | - search_section: 'fast' # String | + tenant_id: 'tenant_id_example', # String | (required) + url_id: 'url_id_example', # String | (required) + username_starts_with: 'username_starts_with_example', # String | + mention_group_ids: ['inner_example'], # Array | + sso: 'sso_example', # String | + search_section: 'fast', # String | } begin - result = api_instance.search_users(tenant_id, url_id, opts) + result = api_instance.search_users(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->search_users: #{e}" @@ -3018,12 +3034,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> search_users_with_http_info(tenant_id, url_id, opts) +> , Integer, Hash)> search_users_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.search_users_with_http_info(tenant_id, url_id, opts) + data, status_code, headers = api_instance.search_users_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3059,7 +3075,7 @@ No authorization required ## set_comment_text -> set_comment_text(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts) +> set_comment_text(opts) @@ -3070,18 +3086,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -comment_id = 'comment_id_example' # String | -broadcast_id = 'broadcast_id_example' # String | -comment_text_update_request = FastCommentsClient::CommentTextUpdateRequest.new({comment: 'comment_example'}) # CommentTextUpdateRequest | opts = { - edit_key: 'edit_key_example', # String | - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + comment_id: 'comment_id_example', # String | (required) + broadcast_id: 'broadcast_id_example', # String | (required) + comment_text_update_request: FastCommentsClient::CommentTextUpdateRequest.new({comment: 'comment_example'}), # CommentTextUpdateRequest | (required) + edit_key: 'edit_key_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.set_comment_text(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts) + result = api_instance.set_comment_text(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->set_comment_text: #{e}" @@ -3092,12 +3108,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts) +> , Integer, Hash)> set_comment_text_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts) + data, status_code, headers = api_instance.set_comment_text_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3133,7 +3149,7 @@ No authorization required ## un_block_comment_public -> un_block_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts) +> un_block_comment_public(opts) @@ -3144,16 +3160,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -comment_id = 'comment_id_example' # String | -public_block_from_comment_params = FastCommentsClient::PublicBlockFromCommentParams.new({comment_ids: ['comment_ids_example']}) # PublicBlockFromCommentParams | opts = { - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + comment_id: 'comment_id_example', # String | (required) + public_block_from_comment_params: FastCommentsClient::PublicBlockFromCommentParams.new({comment_ids: ['comment_ids_example']}), # PublicBlockFromCommentParams | (required) + sso: 'sso_example', # String | } begin - result = api_instance.un_block_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts) + result = api_instance.un_block_comment_public(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->un_block_comment_public: #{e}" @@ -3164,12 +3180,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) +> , Integer, Hash)> un_block_comment_public_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) + data, status_code, headers = api_instance.un_block_comment_public_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3203,7 +3219,7 @@ No authorization required ## un_lock_comment -> un_lock_comment(tenant_id, comment_id, broadcast_id, opts) +> un_lock_comment(opts) @@ -3214,16 +3230,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -comment_id = 'comment_id_example' # String | -broadcast_id = 'broadcast_id_example' # String | opts = { - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + comment_id: 'comment_id_example', # String | (required) + broadcast_id: 'broadcast_id_example', # String | (required) + sso: 'sso_example', # String | } begin - result = api_instance.un_lock_comment(tenant_id, comment_id, broadcast_id, opts) + result = api_instance.un_lock_comment(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->un_lock_comment: #{e}" @@ -3234,12 +3250,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) +> , Integer, Hash)> un_lock_comment_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) + data, status_code, headers = api_instance.un_lock_comment_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3273,7 +3289,7 @@ No authorization required ## un_pin_comment -> un_pin_comment(tenant_id, comment_id, broadcast_id, opts) +> un_pin_comment(opts) @@ -3284,16 +3300,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -comment_id = 'comment_id_example' # String | -broadcast_id = 'broadcast_id_example' # String | opts = { - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + comment_id: 'comment_id_example', # String | (required) + broadcast_id: 'broadcast_id_example', # String | (required) + sso: 'sso_example', # String | } begin - result = api_instance.un_pin_comment(tenant_id, comment_id, broadcast_id, opts) + result = api_instance.un_pin_comment(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->un_pin_comment: #{e}" @@ -3304,12 +3320,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) +> , Integer, Hash)> un_pin_comment_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) + data, status_code, headers = api_instance.un_pin_comment_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3343,7 +3359,7 @@ No authorization required ## update_feed_post_public -> update_feed_post_public(tenant_id, post_id, update_feed_post_params, opts) +> update_feed_post_public(opts) @@ -3354,17 +3370,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -post_id = 'post_id_example' # String | -update_feed_post_params = FastCommentsClient::UpdateFeedPostParams.new # UpdateFeedPostParams | opts = { - broadcast_id: 'broadcast_id_example', # String | - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + post_id: 'post_id_example', # String | (required) + update_feed_post_params: FastCommentsClient::UpdateFeedPostParams.new, # UpdateFeedPostParams | (required) + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.update_feed_post_public(tenant_id, post_id, update_feed_post_params, opts) + result = api_instance.update_feed_post_public(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->update_feed_post_public: #{e}" @@ -3375,12 +3391,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_feed_post_public_with_http_info(tenant_id, post_id, update_feed_post_params, opts) +> , Integer, Hash)> update_feed_post_public_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.update_feed_post_public_with_http_info(tenant_id, post_id, update_feed_post_params, opts) + data, status_code, headers = api_instance.update_feed_post_public_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3415,7 +3431,7 @@ No authorization required ## update_user_notification_comment_subscription_status -> update_user_notification_comment_subscription_status(tenant_id, notification_id, opted_in_or_out, comment_id, opts) +> update_user_notification_comment_subscription_status(opts) @@ -3428,17 +3444,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -notification_id = 'notification_id_example' # String | -opted_in_or_out = 'in' # String | -comment_id = 'comment_id_example' # String | opts = { - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + notification_id: 'notification_id_example', # String | (required) + opted_in_or_out: 'in', # String | (required) + comment_id: 'comment_id_example', # String | (required) + sso: 'sso_example', # String | } begin - result = api_instance.update_user_notification_comment_subscription_status(tenant_id, notification_id, opted_in_or_out, comment_id, opts) + result = api_instance.update_user_notification_comment_subscription_status(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->update_user_notification_comment_subscription_status: #{e}" @@ -3449,12 +3465,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_user_notification_comment_subscription_status_with_http_info(tenant_id, notification_id, opted_in_or_out, comment_id, opts) +> , Integer, Hash)> update_user_notification_comment_subscription_status_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.update_user_notification_comment_subscription_status_with_http_info(tenant_id, notification_id, opted_in_or_out, comment_id, opts) + data, status_code, headers = api_instance.update_user_notification_comment_subscription_status_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3489,7 +3505,7 @@ No authorization required ## update_user_notification_page_subscription_status -> update_user_notification_page_subscription_status(tenant_id, url_id, url, page_title, subscribed_or_unsubscribed, opts) +> update_user_notification_page_subscription_status(opts) @@ -3502,18 +3518,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -url_id = 'url_id_example' # String | -url = 'url_example' # String | -page_title = 'page_title_example' # String | -subscribed_or_unsubscribed = 'subscribe' # String | opts = { - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + url_id: 'url_id_example', # String | (required) + url: 'url_example', # String | (required) + page_title: 'page_title_example', # String | (required) + subscribed_or_unsubscribed: 'subscribe', # String | (required) + sso: 'sso_example', # String | } begin - result = api_instance.update_user_notification_page_subscription_status(tenant_id, url_id, url, page_title, subscribed_or_unsubscribed, opts) + result = api_instance.update_user_notification_page_subscription_status(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->update_user_notification_page_subscription_status: #{e}" @@ -3524,12 +3540,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_user_notification_page_subscription_status_with_http_info(tenant_id, url_id, url, page_title, subscribed_or_unsubscribed, opts) +> , Integer, Hash)> update_user_notification_page_subscription_status_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.update_user_notification_page_subscription_status_with_http_info(tenant_id, url_id, url, page_title, subscribed_or_unsubscribed, opts) + data, status_code, headers = api_instance.update_user_notification_page_subscription_status_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3565,7 +3581,7 @@ No authorization required ## update_user_notification_status -> update_user_notification_status(tenant_id, notification_id, new_status, opts) +> update_user_notification_status(opts) @@ -3576,16 +3592,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -notification_id = 'notification_id_example' # String | -new_status = 'read' # String | opts = { - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + notification_id: 'notification_id_example', # String | (required) + new_status: 'read', # String | (required) + sso: 'sso_example', # String | } begin - result = api_instance.update_user_notification_status(tenant_id, notification_id, new_status, opts) + result = api_instance.update_user_notification_status(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->update_user_notification_status: #{e}" @@ -3596,12 +3612,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_user_notification_status_with_http_info(tenant_id, notification_id, new_status, opts) +> , Integer, Hash)> update_user_notification_status_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.update_user_notification_status_with_http_info(tenant_id, notification_id, new_status, opts) + data, status_code, headers = api_instance.update_user_notification_status_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3635,7 +3651,7 @@ No authorization required ## upload_image -> upload_image(tenant_id, file, opts) +> upload_image(opts) @@ -3648,16 +3664,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -file = File.new('/path/to/some/file') # File | opts = { - size_preset: FastCommentsClient::SizePreset::DEFAULT, # SizePreset | Size preset: \"Default\" (1000x1000px) or \"CrossPlatform\" (creates sizes for popular devices) - url_id: 'url_id_example' # String | Page id that upload is happening from, to configure + tenant_id: 'tenant_id_example', # String | (required) + file: File.new('/path/to/some/file'), # File | (required) + size_preset: FastCommentsClient::SizePreset::DEFAULT, # SizePreset | Size preset: \"Default\" (1000x1000px) or \"CrossPlatform\" (creates sizes for popular devices) + url_id: 'url_id_example', # String | Page id that upload is happening from, to configure } begin - result = api_instance.upload_image(tenant_id, file, opts) + result = api_instance.upload_image(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->upload_image: #{e}" @@ -3668,12 +3684,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> upload_image_with_http_info(tenant_id, file, opts) +> , Integer, Hash)> upload_image_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.upload_image_with_http_info(tenant_id, file, opts) + data, status_code, headers = api_instance.upload_image_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3707,7 +3723,7 @@ No authorization required ## vote_comment -> vote_comment(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts) +> vote_comment(opts) @@ -3718,19 +3734,19 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -tenant_id = 'tenant_id_example' # String | -comment_id = 'comment_id_example' # String | -url_id = 'url_id_example' # String | -broadcast_id = 'broadcast_id_example' # String | -vote_body_params = FastCommentsClient::VoteBodyParams.new({commenter_email: 'commenter_email_example', commenter_name: 'commenter_name_example', vote_dir: 'up', url: 'url_example'}) # VoteBodyParams | opts = { - session_id: 'session_id_example', # String | - sso: 'sso_example' # String | + tenant_id: 'tenant_id_example', # String | (required) + comment_id: 'comment_id_example', # String | (required) + url_id: 'url_id_example', # String | (required) + broadcast_id: 'broadcast_id_example', # String | (required) + vote_body_params: FastCommentsClient::VoteBodyParams.new({commenter_email: 'commenter_email_example', commenter_name: 'commenter_name_example', vote_dir: 'up', url: 'url_example'}), # VoteBodyParams | (required) + session_id: 'session_id_example', # String | + sso: 'sso_example', # String | } begin - result = api_instance.vote_comment(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts) + result = api_instance.vote_comment(opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->vote_comment: #{e}" @@ -3741,12 +3757,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> vote_comment_with_http_info(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts) +> , Integer, Hash)> vote_comment_with_http_info(opts) ```ruby begin - data, status_code, headers = api_instance.vote_comment_with_http_info(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts) + data, status_code, headers = api_instance.vote_comment_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => diff --git a/client/lib/fastcomments-client/api/default_api.rb b/client/lib/fastcomments-client/api/default_api.rb index d3ceddc..90ca47d 100644 --- a/client/lib/fastcomments-client/api/default_api.rb +++ b/client/lib/fastcomments-client/api/default_api.rb @@ -19,23 +19,26 @@ class DefaultApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # @param tenant_id [String] - # @param add_domain_config_params [AddDomainConfigParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [AddDomainConfigParams] :add_domain_config_params (required) # @return [AddDomainConfigResponse] - def add_domain_config(tenant_id, add_domain_config_params, opts = {}) - data, _status_code, _headers = add_domain_config_with_http_info(tenant_id, add_domain_config_params, opts) + def add_domain_config(opts = {}) + data, _status_code, _headers = add_domain_config_with_http_info(opts) data end - # @param tenant_id [String] - # @param add_domain_config_params [AddDomainConfigParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [AddDomainConfigParams] :add_domain_config_params (required) # @return [Array<(AddDomainConfigResponse, Integer, Hash)>] AddDomainConfigResponse data, response status code and response headers - def add_domain_config_with_http_info(tenant_id, add_domain_config_params, opts = {}) + def add_domain_config_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.add_domain_config ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + add_domain_config_params = opts[:'add_domain_config_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.add_domain_config" @@ -90,7 +93,7 @@ def add_domain_config_with_http_info(tenant_id, add_domain_config_params, opts = return data, status_code, headers end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :tenant_id # @option opts [CreateHashTagBody] :create_hash_tag_body # @return [CreateHashTagResponse] @@ -99,7 +102,7 @@ def add_hash_tag(opts = {}) data end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :tenant_id # @option opts [CreateHashTagBody] :create_hash_tag_body # @return [Array<(CreateHashTagResponse, Integer, Hash)>] CreateHashTagResponse data, response status code and response headers @@ -107,6 +110,7 @@ def add_hash_tag_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.add_hash_tag ...' end + # unbox the parameters from the hash # resource path local_var_path = '/api/v1/hash-tags' @@ -153,7 +157,7 @@ def add_hash_tag_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :tenant_id # @option opts [BulkCreateHashTagsBody] :bulk_create_hash_tags_body # @return [BulkCreateHashTagsResponse] @@ -162,7 +166,7 @@ def add_hash_tags_bulk(opts = {}) data end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :tenant_id # @option opts [BulkCreateHashTagsBody] :bulk_create_hash_tags_body # @return [Array<(BulkCreateHashTagsResponse, Integer, Hash)>] BulkCreateHashTagsResponse data, response status code and response headers @@ -170,6 +174,7 @@ def add_hash_tags_bulk_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.add_hash_tags_bulk ...' end + # unbox the parameters from the hash # resource path local_var_path = '/api/v1/hash-tags/bulk' @@ -216,23 +221,26 @@ def add_hash_tags_bulk_with_http_info(opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param create_api_page_data [CreateAPIPageData] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateAPIPageData] :create_api_page_data (required) # @return [AddPageAPIResponse] - def add_page(tenant_id, create_api_page_data, opts = {}) - data, _status_code, _headers = add_page_with_http_info(tenant_id, create_api_page_data, opts) + def add_page(opts = {}) + data, _status_code, _headers = add_page_with_http_info(opts) data end - # @param tenant_id [String] - # @param create_api_page_data [CreateAPIPageData] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateAPIPageData] :create_api_page_data (required) # @return [Array<(AddPageAPIResponse, Integer, Hash)>] AddPageAPIResponse data, response status code and response headers - def add_page_with_http_info(tenant_id, create_api_page_data, opts = {}) + def add_page_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.add_page ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + create_api_page_data = opts[:'create_api_page_data'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.add_page" @@ -287,23 +295,26 @@ def add_page_with_http_info(tenant_id, create_api_page_data, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param create_apisso_user_data [CreateAPISSOUserData] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateAPISSOUserData] :create_apisso_user_data (required) # @return [AddSSOUserAPIResponse] - def add_sso_user(tenant_id, create_apisso_user_data, opts = {}) - data, _status_code, _headers = add_sso_user_with_http_info(tenant_id, create_apisso_user_data, opts) + def add_sso_user(opts = {}) + data, _status_code, _headers = add_sso_user_with_http_info(opts) data end - # @param tenant_id [String] - # @param create_apisso_user_data [CreateAPISSOUserData] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateAPISSOUserData] :create_apisso_user_data (required) # @return [Array<(AddSSOUserAPIResponse, Integer, Hash)>] AddSSOUserAPIResponse data, response status code and response headers - def add_sso_user_with_http_info(tenant_id, create_apisso_user_data, opts = {}) + def add_sso_user_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.add_sso_user ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + create_apisso_user_data = opts[:'create_apisso_user_data'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.add_sso_user" @@ -359,28 +370,31 @@ def add_sso_user_with_http_info(tenant_id, create_apisso_user_data, opts = {}) end # Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations. Different operations (e.g. sum, countDistinct, avg, etc.) are supported. - # @param tenant_id [String] - # @param aggregation_request [AggregationRequest] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [AggregationRequest] :aggregation_request (required) # @option opts [String] :parent_tenant_id # @option opts [Boolean] :include_stats # @return [AggregateResponse] - def aggregate(tenant_id, aggregation_request, opts = {}) - data, _status_code, _headers = aggregate_with_http_info(tenant_id, aggregation_request, opts) + def aggregate(opts = {}) + data, _status_code, _headers = aggregate_with_http_info(opts) data end # Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations. Different operations (e.g. sum, countDistinct, avg, etc.) are supported. - # @param tenant_id [String] - # @param aggregation_request [AggregationRequest] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [AggregationRequest] :aggregation_request (required) # @option opts [String] :parent_tenant_id # @option opts [Boolean] :include_stats # @return [Array<(AggregateResponse, Integer, Hash)>] AggregateResponse data, response status code and response headers - def aggregate_with_http_info(tenant_id, aggregation_request, opts = {}) + def aggregate_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.aggregate ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + aggregation_request = opts[:'aggregation_request'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.aggregate" @@ -437,8 +451,8 @@ def aggregate_with_http_info(tenant_id, aggregation_request, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :question_id # @option opts [Array] :question_ids # @option opts [String] :url_id @@ -446,13 +460,13 @@ def aggregate_with_http_info(tenant_id, aggregation_request, opts = {}) # @option opts [Time] :start_date # @option opts [Boolean] :force_recalculate # @return [AggregateQuestionResultsResponse] - def aggregate_question_results(tenant_id, opts = {}) - data, _status_code, _headers = aggregate_question_results_with_http_info(tenant_id, opts) + def aggregate_question_results(opts = {}) + data, _status_code, _headers = aggregate_question_results_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :question_id # @option opts [Array] :question_ids # @option opts [String] :url_id @@ -460,10 +474,12 @@ def aggregate_question_results(tenant_id, opts = {}) # @option opts [Time] :start_date # @option opts [Boolean] :force_recalculate # @return [Array<(AggregateQuestionResultsResponse, Integer, Hash)>] AggregateQuestionResultsResponse data, response status code and response headers - def aggregate_question_results_with_http_info(tenant_id, opts = {}) + def aggregate_question_results_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.aggregate_question_results ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.aggregate_question_results" @@ -515,29 +531,33 @@ def aggregate_question_results_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param block_from_comment_params [BlockFromCommentParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [BlockFromCommentParams] :block_from_comment_params (required) # @option opts [String] :user_id # @option opts [String] :anon_user_id # @return [BlockSuccess] - def block_user_from_comment(tenant_id, id, block_from_comment_params, opts = {}) - data, _status_code, _headers = block_user_from_comment_with_http_info(tenant_id, id, block_from_comment_params, opts) + def block_user_from_comment(opts = {}) + data, _status_code, _headers = block_user_from_comment_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param block_from_comment_params [BlockFromCommentParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [BlockFromCommentParams] :block_from_comment_params (required) # @option opts [String] :user_id # @option opts [String] :anon_user_id # @return [Array<(BlockSuccess, Integer, Hash)>] BlockSuccess data, response status code and response headers - def block_user_from_comment_with_http_info(tenant_id, id, block_from_comment_params, opts = {}) + def block_user_from_comment_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.block_user_from_comment ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] + block_from_comment_params = opts[:'block_from_comment_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.block_user_from_comment" @@ -598,25 +618,28 @@ def block_user_from_comment_with_http_info(tenant_id, id, block_from_comment_par return data, status_code, headers end - # @param tenant_id [String] - # @param bulk_aggregate_question_results_request [BulkAggregateQuestionResultsRequest] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [BulkAggregateQuestionResultsRequest] :bulk_aggregate_question_results_request (required) # @option opts [Boolean] :force_recalculate # @return [BulkAggregateQuestionResultsResponse] - def bulk_aggregate_question_results(tenant_id, bulk_aggregate_question_results_request, opts = {}) - data, _status_code, _headers = bulk_aggregate_question_results_with_http_info(tenant_id, bulk_aggregate_question_results_request, opts) + def bulk_aggregate_question_results(opts = {}) + data, _status_code, _headers = bulk_aggregate_question_results_with_http_info(opts) data end - # @param tenant_id [String] - # @param bulk_aggregate_question_results_request [BulkAggregateQuestionResultsRequest] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [BulkAggregateQuestionResultsRequest] :bulk_aggregate_question_results_request (required) # @option opts [Boolean] :force_recalculate # @return [Array<(BulkAggregateQuestionResultsResponse, Integer, Hash)>] BulkAggregateQuestionResultsResponse data, response status code and response headers - def bulk_aggregate_question_results_with_http_info(tenant_id, bulk_aggregate_question_results_request, opts = {}) + def bulk_aggregate_question_results_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.bulk_aggregate_question_results ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + bulk_aggregate_question_results_request = opts[:'bulk_aggregate_question_results_request'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.bulk_aggregate_question_results" @@ -672,27 +695,32 @@ def bulk_aggregate_question_results_with_http_info(tenant_id, bulk_aggregate_que return data, status_code, headers end - # @param tenant_id [String] - # @param user_id [String] - # @param id [String] - # @param change_ticket_state_body [ChangeTicketStateBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :user_id (required) + # @option opts [String] :id (required) + # @option opts [ChangeTicketStateBody] :change_ticket_state_body (required) # @return [ChangeTicketStateResponse] - def change_ticket_state(tenant_id, user_id, id, change_ticket_state_body, opts = {}) - data, _status_code, _headers = change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_state_body, opts) + def change_ticket_state(opts = {}) + data, _status_code, _headers = change_ticket_state_with_http_info(opts) data end - # @param tenant_id [String] - # @param user_id [String] - # @param id [String] - # @param change_ticket_state_body [ChangeTicketStateBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :user_id (required) + # @option opts [String] :id (required) + # @option opts [ChangeTicketStateBody] :change_ticket_state_body (required) # @return [Array<(ChangeTicketStateResponse, Integer, Hash)>] ChangeTicketStateResponse data, response status code and response headers - def change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_state_body, opts = {}) + def change_ticket_state_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.change_ticket_state ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + user_id = opts[:'user_id'] + id = opts[:'id'] + change_ticket_state_body = opts[:'change_ticket_state_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.change_ticket_state" @@ -756,8 +784,8 @@ def change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_sta return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :question_id # @option opts [Array] :question_ids # @option opts [String] :url_id @@ -767,13 +795,13 @@ def change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_sta # @option opts [Float] :max_value # @option opts [Float] :limit # @return [CombineQuestionResultsWithCommentsResponse] - def combine_comments_with_question_results(tenant_id, opts = {}) - data, _status_code, _headers = combine_comments_with_question_results_with_http_info(tenant_id, opts) + def combine_comments_with_question_results(opts = {}) + data, _status_code, _headers = combine_comments_with_question_results_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :question_id # @option opts [Array] :question_ids # @option opts [String] :url_id @@ -783,10 +811,12 @@ def combine_comments_with_question_results(tenant_id, opts = {}) # @option opts [Float] :max_value # @option opts [Float] :limit # @return [Array<(CombineQuestionResultsWithCommentsResponse, Integer, Hash)>] CombineQuestionResultsWithCommentsResponse data, response status code and response headers - def combine_comments_with_question_results_with_http_info(tenant_id, opts = {}) + def combine_comments_with_question_results_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.combine_comments_with_question_results ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.combine_comments_with_question_results" @@ -840,23 +870,26 @@ def combine_comments_with_question_results_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param create_email_template_body [CreateEmailTemplateBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateEmailTemplateBody] :create_email_template_body (required) # @return [CreateEmailTemplateResponse] - def create_email_template(tenant_id, create_email_template_body, opts = {}) - data, _status_code, _headers = create_email_template_with_http_info(tenant_id, create_email_template_body, opts) + def create_email_template(opts = {}) + data, _status_code, _headers = create_email_template_with_http_info(opts) data end - # @param tenant_id [String] - # @param create_email_template_body [CreateEmailTemplateBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateEmailTemplateBody] :create_email_template_body (required) # @return [Array<(CreateEmailTemplateResponse, Integer, Hash)>] CreateEmailTemplateResponse data, response status code and response headers - def create_email_template_with_http_info(tenant_id, create_email_template_body, opts = {}) + def create_email_template_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_email_template ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + create_email_template_body = opts[:'create_email_template_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_email_template" @@ -911,31 +944,34 @@ def create_email_template_with_http_info(tenant_id, create_email_template_body, return data, status_code, headers end - # @param tenant_id [String] - # @param create_feed_post_params [CreateFeedPostParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateFeedPostParams] :create_feed_post_params (required) # @option opts [String] :broadcast_id # @option opts [Boolean] :is_live # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :skip_dup_check # @return [CreateFeedPostsResponse] - def create_feed_post(tenant_id, create_feed_post_params, opts = {}) - data, _status_code, _headers = create_feed_post_with_http_info(tenant_id, create_feed_post_params, opts) + def create_feed_post(opts = {}) + data, _status_code, _headers = create_feed_post_with_http_info(opts) data end - # @param tenant_id [String] - # @param create_feed_post_params [CreateFeedPostParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateFeedPostParams] :create_feed_post_params (required) # @option opts [String] :broadcast_id # @option opts [Boolean] :is_live # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :skip_dup_check # @return [Array<(CreateFeedPostsResponse, Integer, Hash)>] CreateFeedPostsResponse data, response status code and response headers - def create_feed_post_with_http_info(tenant_id, create_feed_post_params, opts = {}) + def create_feed_post_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_feed_post ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + create_feed_post_params = opts[:'create_feed_post_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_feed_post" @@ -994,23 +1030,26 @@ def create_feed_post_with_http_info(tenant_id, create_feed_post_params, opts = { return data, status_code, headers end - # @param tenant_id [String] - # @param create_moderator_body [CreateModeratorBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateModeratorBody] :create_moderator_body (required) # @return [CreateModeratorResponse] - def create_moderator(tenant_id, create_moderator_body, opts = {}) - data, _status_code, _headers = create_moderator_with_http_info(tenant_id, create_moderator_body, opts) + def create_moderator(opts = {}) + data, _status_code, _headers = create_moderator_with_http_info(opts) data end - # @param tenant_id [String] - # @param create_moderator_body [CreateModeratorBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateModeratorBody] :create_moderator_body (required) # @return [Array<(CreateModeratorResponse, Integer, Hash)>] CreateModeratorResponse data, response status code and response headers - def create_moderator_with_http_info(tenant_id, create_moderator_body, opts = {}) + def create_moderator_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_moderator ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + create_moderator_body = opts[:'create_moderator_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_moderator" @@ -1065,23 +1104,26 @@ def create_moderator_with_http_info(tenant_id, create_moderator_body, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param create_question_config_body [CreateQuestionConfigBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateQuestionConfigBody] :create_question_config_body (required) # @return [CreateQuestionConfigResponse] - def create_question_config(tenant_id, create_question_config_body, opts = {}) - data, _status_code, _headers = create_question_config_with_http_info(tenant_id, create_question_config_body, opts) + def create_question_config(opts = {}) + data, _status_code, _headers = create_question_config_with_http_info(opts) data end - # @param tenant_id [String] - # @param create_question_config_body [CreateQuestionConfigBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateQuestionConfigBody] :create_question_config_body (required) # @return [Array<(CreateQuestionConfigResponse, Integer, Hash)>] CreateQuestionConfigResponse data, response status code and response headers - def create_question_config_with_http_info(tenant_id, create_question_config_body, opts = {}) + def create_question_config_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_question_config ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + create_question_config_body = opts[:'create_question_config_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_question_config" @@ -1136,23 +1178,26 @@ def create_question_config_with_http_info(tenant_id, create_question_config_body return data, status_code, headers end - # @param tenant_id [String] - # @param create_question_result_body [CreateQuestionResultBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateQuestionResultBody] :create_question_result_body (required) # @return [CreateQuestionResultResponse] - def create_question_result(tenant_id, create_question_result_body, opts = {}) - data, _status_code, _headers = create_question_result_with_http_info(tenant_id, create_question_result_body, opts) + def create_question_result(opts = {}) + data, _status_code, _headers = create_question_result_with_http_info(opts) data end - # @param tenant_id [String] - # @param create_question_result_body [CreateQuestionResultBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateQuestionResultBody] :create_question_result_body (required) # @return [Array<(CreateQuestionResultResponse, Integer, Hash)>] CreateQuestionResultResponse data, response status code and response headers - def create_question_result_with_http_info(tenant_id, create_question_result_body, opts = {}) + def create_question_result_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_question_result ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + create_question_result_body = opts[:'create_question_result_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_question_result" @@ -1207,23 +1252,26 @@ def create_question_result_with_http_info(tenant_id, create_question_result_body return data, status_code, headers end - # @param tenant_id [String] - # @param create_api_user_subscription_data [CreateAPIUserSubscriptionData] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateAPIUserSubscriptionData] :create_api_user_subscription_data (required) # @return [CreateSubscriptionAPIResponse] - def create_subscription(tenant_id, create_api_user_subscription_data, opts = {}) - data, _status_code, _headers = create_subscription_with_http_info(tenant_id, create_api_user_subscription_data, opts) + def create_subscription(opts = {}) + data, _status_code, _headers = create_subscription_with_http_info(opts) data end - # @param tenant_id [String] - # @param create_api_user_subscription_data [CreateAPIUserSubscriptionData] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateAPIUserSubscriptionData] :create_api_user_subscription_data (required) # @return [Array<(CreateSubscriptionAPIResponse, Integer, Hash)>] CreateSubscriptionAPIResponse data, response status code and response headers - def create_subscription_with_http_info(tenant_id, create_api_user_subscription_data, opts = {}) + def create_subscription_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_subscription ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + create_api_user_subscription_data = opts[:'create_api_user_subscription_data'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_subscription" @@ -1278,23 +1326,26 @@ def create_subscription_with_http_info(tenant_id, create_api_user_subscription_d return data, status_code, headers end - # @param tenant_id [String] - # @param create_tenant_body [CreateTenantBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateTenantBody] :create_tenant_body (required) # @return [CreateTenantResponse] - def create_tenant(tenant_id, create_tenant_body, opts = {}) - data, _status_code, _headers = create_tenant_with_http_info(tenant_id, create_tenant_body, opts) + def create_tenant(opts = {}) + data, _status_code, _headers = create_tenant_with_http_info(opts) data end - # @param tenant_id [String] - # @param create_tenant_body [CreateTenantBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateTenantBody] :create_tenant_body (required) # @return [Array<(CreateTenantResponse, Integer, Hash)>] CreateTenantResponse data, response status code and response headers - def create_tenant_with_http_info(tenant_id, create_tenant_body, opts = {}) + def create_tenant_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_tenant ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + create_tenant_body = opts[:'create_tenant_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_tenant" @@ -1349,23 +1400,26 @@ def create_tenant_with_http_info(tenant_id, create_tenant_body, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param create_tenant_package_body [CreateTenantPackageBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateTenantPackageBody] :create_tenant_package_body (required) # @return [CreateTenantPackageResponse] - def create_tenant_package(tenant_id, create_tenant_package_body, opts = {}) - data, _status_code, _headers = create_tenant_package_with_http_info(tenant_id, create_tenant_package_body, opts) + def create_tenant_package(opts = {}) + data, _status_code, _headers = create_tenant_package_with_http_info(opts) data end - # @param tenant_id [String] - # @param create_tenant_package_body [CreateTenantPackageBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateTenantPackageBody] :create_tenant_package_body (required) # @return [Array<(CreateTenantPackageResponse, Integer, Hash)>] CreateTenantPackageResponse data, response status code and response headers - def create_tenant_package_with_http_info(tenant_id, create_tenant_package_body, opts = {}) + def create_tenant_package_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_tenant_package ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + create_tenant_package_body = opts[:'create_tenant_package_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_tenant_package" @@ -1420,23 +1474,26 @@ def create_tenant_package_with_http_info(tenant_id, create_tenant_package_body, return data, status_code, headers end - # @param tenant_id [String] - # @param create_tenant_user_body [CreateTenantUserBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateTenantUserBody] :create_tenant_user_body (required) # @return [CreateTenantUserResponse] - def create_tenant_user(tenant_id, create_tenant_user_body, opts = {}) - data, _status_code, _headers = create_tenant_user_with_http_info(tenant_id, create_tenant_user_body, opts) + def create_tenant_user(opts = {}) + data, _status_code, _headers = create_tenant_user_with_http_info(opts) data end - # @param tenant_id [String] - # @param create_tenant_user_body [CreateTenantUserBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateTenantUserBody] :create_tenant_user_body (required) # @return [Array<(CreateTenantUserResponse, Integer, Hash)>] CreateTenantUserResponse data, response status code and response headers - def create_tenant_user_with_http_info(tenant_id, create_tenant_user_body, opts = {}) + def create_tenant_user_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_tenant_user ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + create_tenant_user_body = opts[:'create_tenant_user_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_tenant_user" @@ -1491,25 +1548,29 @@ def create_tenant_user_with_http_info(tenant_id, create_tenant_user_body, opts = return data, status_code, headers end - # @param tenant_id [String] - # @param user_id [String] - # @param create_ticket_body [CreateTicketBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :user_id (required) + # @option opts [CreateTicketBody] :create_ticket_body (required) # @return [CreateTicketResponse] - def create_ticket(tenant_id, user_id, create_ticket_body, opts = {}) - data, _status_code, _headers = create_ticket_with_http_info(tenant_id, user_id, create_ticket_body, opts) + def create_ticket(opts = {}) + data, _status_code, _headers = create_ticket_with_http_info(opts) data end - # @param tenant_id [String] - # @param user_id [String] - # @param create_ticket_body [CreateTicketBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :user_id (required) + # @option opts [CreateTicketBody] :create_ticket_body (required) # @return [Array<(CreateTicketResponse, Integer, Hash)>] CreateTicketResponse data, response status code and response headers - def create_ticket_with_http_info(tenant_id, user_id, create_ticket_body, opts = {}) + def create_ticket_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_ticket ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + user_id = opts[:'user_id'] + create_ticket_body = opts[:'create_ticket_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_ticket" @@ -1569,23 +1630,26 @@ def create_ticket_with_http_info(tenant_id, user_id, create_ticket_body, opts = return data, status_code, headers end - # @param tenant_id [String] - # @param create_user_badge_params [CreateUserBadgeParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateUserBadgeParams] :create_user_badge_params (required) # @return [APICreateUserBadgeResponse] - def create_user_badge(tenant_id, create_user_badge_params, opts = {}) - data, _status_code, _headers = create_user_badge_with_http_info(tenant_id, create_user_badge_params, opts) + def create_user_badge(opts = {}) + data, _status_code, _headers = create_user_badge_with_http_info(opts) data end - # @param tenant_id [String] - # @param create_user_badge_params [CreateUserBadgeParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateUserBadgeParams] :create_user_badge_params (required) # @return [Array<(APICreateUserBadgeResponse, Integer, Hash)>] APICreateUserBadgeResponse data, response status code and response headers - def create_user_badge_with_http_info(tenant_id, create_user_badge_params, opts = {}) + def create_user_badge_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_user_badge ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + create_user_badge_params = opts[:'create_user_badge_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_user_badge" @@ -1640,29 +1704,33 @@ def create_user_badge_with_http_info(tenant_id, create_user_badge_params, opts = return data, status_code, headers end - # @param tenant_id [String] - # @param comment_id [String] - # @param direction [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) + # @option opts [String] :direction (required) # @option opts [String] :user_id # @option opts [String] :anon_user_id # @return [VoteResponse] - def create_vote(tenant_id, comment_id, direction, opts = {}) - data, _status_code, _headers = create_vote_with_http_info(tenant_id, comment_id, direction, opts) + def create_vote(opts = {}) + data, _status_code, _headers = create_vote_with_http_info(opts) data end - # @param tenant_id [String] - # @param comment_id [String] - # @param direction [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) + # @option opts [String] :direction (required) # @option opts [String] :user_id # @option opts [String] :anon_user_id # @return [Array<(VoteResponse, Integer, Hash)>] VoteResponse data, response status code and response headers - def create_vote_with_http_info(tenant_id, comment_id, direction, opts = {}) + def create_vote_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_vote ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + comment_id = opts[:'comment_id'] + direction = opts[:'direction'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_vote" @@ -1725,27 +1793,30 @@ def create_vote_with_http_info(tenant_id, comment_id, direction, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @option opts [String] :context_user_id # @option opts [Boolean] :is_live # @return [DeleteCommentResult] - def delete_comment(tenant_id, id, opts = {}) - data, _status_code, _headers = delete_comment_with_http_info(tenant_id, id, opts) + def delete_comment(opts = {}) + data, _status_code, _headers = delete_comment_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @option opts [String] :context_user_id # @option opts [Boolean] :is_live # @return [Array<(DeleteCommentResult, Integer, Hash)>] DeleteCommentResult data, response status code and response headers - def delete_comment_with_http_info(tenant_id, id, opts = {}) + def delete_comment_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_comment ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_comment" @@ -1797,23 +1868,26 @@ def delete_comment_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param domain [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :domain (required) # @return [DeleteDomainConfigResponse] - def delete_domain_config(tenant_id, domain, opts = {}) - data, _status_code, _headers = delete_domain_config_with_http_info(tenant_id, domain, opts) + def delete_domain_config(opts = {}) + data, _status_code, _headers = delete_domain_config_with_http_info(opts) data end - # @param tenant_id [String] - # @param domain [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :domain (required) # @return [Array<(DeleteDomainConfigResponse, Integer, Hash)>] DeleteDomainConfigResponse data, response status code and response headers - def delete_domain_config_with_http_info(tenant_id, domain, opts = {}) + def delete_domain_config_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_domain_config ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + domain = opts[:'domain'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_domain_config" @@ -1863,23 +1937,26 @@ def delete_domain_config_with_http_info(tenant_id, domain, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [APIEmptyResponse] - def delete_email_template(tenant_id, id, opts = {}) - data, _status_code, _headers = delete_email_template_with_http_info(tenant_id, id, opts) + def delete_email_template(opts = {}) + data, _status_code, _headers = delete_email_template_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def delete_email_template_with_http_info(tenant_id, id, opts = {}) + def delete_email_template_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_email_template ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_email_template" @@ -1929,25 +2006,29 @@ def delete_email_template_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param error_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [String] :error_id (required) # @return [APIEmptyResponse] - def delete_email_template_render_error(tenant_id, id, error_id, opts = {}) - data, _status_code, _headers = delete_email_template_render_error_with_http_info(tenant_id, id, error_id, opts) + def delete_email_template_render_error(opts = {}) + data, _status_code, _headers = delete_email_template_render_error_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param error_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [String] :error_id (required) # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def delete_email_template_render_error_with_http_info(tenant_id, id, error_id, opts = {}) + def delete_email_template_render_error_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_email_template_render_error ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] + error_id = opts[:'error_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_email_template_render_error" @@ -2001,25 +2082,27 @@ def delete_email_template_render_error_with_http_info(tenant_id, id, error_id, o return data, status_code, headers end - # @param tag [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tag (required) # @option opts [String] :tenant_id # @option opts [DeleteHashTagRequestBody] :delete_hash_tag_request_body # @return [APIEmptyResponse] - def delete_hash_tag(tag, opts = {}) - data, _status_code, _headers = delete_hash_tag_with_http_info(tag, opts) + def delete_hash_tag(opts = {}) + data, _status_code, _headers = delete_hash_tag_with_http_info(opts) data end - # @param tag [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tag (required) # @option opts [String] :tenant_id # @option opts [DeleteHashTagRequestBody] :delete_hash_tag_request_body # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def delete_hash_tag_with_http_info(tag, opts = {}) + def delete_hash_tag_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_hash_tag ...' end + # unbox the parameters from the hash + tag = opts[:'tag'] # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.delete_hash_tag" @@ -2070,25 +2153,28 @@ def delete_hash_tag_with_http_info(tag, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @option opts [String] :send_email # @return [APIEmptyResponse] - def delete_moderator(tenant_id, id, opts = {}) - data, _status_code, _headers = delete_moderator_with_http_info(tenant_id, id, opts) + def delete_moderator(opts = {}) + data, _status_code, _headers = delete_moderator_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @option opts [String] :send_email # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def delete_moderator_with_http_info(tenant_id, id, opts = {}) + def delete_moderator_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_moderator ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_moderator" @@ -2139,23 +2225,26 @@ def delete_moderator_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [APIEmptyResponse] - def delete_notification_count(tenant_id, id, opts = {}) - data, _status_code, _headers = delete_notification_count_with_http_info(tenant_id, id, opts) + def delete_notification_count(opts = {}) + data, _status_code, _headers = delete_notification_count_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def delete_notification_count_with_http_info(tenant_id, id, opts = {}) + def delete_notification_count_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_notification_count ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_notification_count" @@ -2205,23 +2294,26 @@ def delete_notification_count_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [DeletePageAPIResponse] - def delete_page(tenant_id, id, opts = {}) - data, _status_code, _headers = delete_page_with_http_info(tenant_id, id, opts) + def delete_page(opts = {}) + data, _status_code, _headers = delete_page_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [Array<(DeletePageAPIResponse, Integer, Hash)>] DeletePageAPIResponse data, response status code and response headers - def delete_page_with_http_info(tenant_id, id, opts = {}) + def delete_page_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_page ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_page" @@ -2271,23 +2363,26 @@ def delete_page_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [APIEmptyResponse] - def delete_pending_webhook_event(tenant_id, id, opts = {}) - data, _status_code, _headers = delete_pending_webhook_event_with_http_info(tenant_id, id, opts) + def delete_pending_webhook_event(opts = {}) + data, _status_code, _headers = delete_pending_webhook_event_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def delete_pending_webhook_event_with_http_info(tenant_id, id, opts = {}) + def delete_pending_webhook_event_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_pending_webhook_event ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_pending_webhook_event" @@ -2337,23 +2432,26 @@ def delete_pending_webhook_event_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [APIEmptyResponse] - def delete_question_config(tenant_id, id, opts = {}) - data, _status_code, _headers = delete_question_config_with_http_info(tenant_id, id, opts) + def delete_question_config(opts = {}) + data, _status_code, _headers = delete_question_config_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def delete_question_config_with_http_info(tenant_id, id, opts = {}) + def delete_question_config_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_question_config ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_question_config" @@ -2403,23 +2501,26 @@ def delete_question_config_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [APIEmptyResponse] - def delete_question_result(tenant_id, id, opts = {}) - data, _status_code, _headers = delete_question_result_with_http_info(tenant_id, id, opts) + def delete_question_result(opts = {}) + data, _status_code, _headers = delete_question_result_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def delete_question_result_with_http_info(tenant_id, id, opts = {}) + def delete_question_result_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_question_result ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_question_result" @@ -2469,27 +2570,30 @@ def delete_question_result_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @option opts [Boolean] :delete_comments # @option opts [String] :comment_delete_mode # @return [DeleteSSOUserAPIResponse] - def delete_sso_user(tenant_id, id, opts = {}) - data, _status_code, _headers = delete_sso_user_with_http_info(tenant_id, id, opts) + def delete_sso_user(opts = {}) + data, _status_code, _headers = delete_sso_user_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @option opts [Boolean] :delete_comments # @option opts [String] :comment_delete_mode # @return [Array<(DeleteSSOUserAPIResponse, Integer, Hash)>] DeleteSSOUserAPIResponse data, response status code and response headers - def delete_sso_user_with_http_info(tenant_id, id, opts = {}) + def delete_sso_user_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_sso_user ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_sso_user" @@ -2541,25 +2645,28 @@ def delete_sso_user_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @option opts [String] :user_id # @return [DeleteSubscriptionAPIResponse] - def delete_subscription(tenant_id, id, opts = {}) - data, _status_code, _headers = delete_subscription_with_http_info(tenant_id, id, opts) + def delete_subscription(opts = {}) + data, _status_code, _headers = delete_subscription_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @option opts [String] :user_id # @return [Array<(DeleteSubscriptionAPIResponse, Integer, Hash)>] DeleteSubscriptionAPIResponse data, response status code and response headers - def delete_subscription_with_http_info(tenant_id, id, opts = {}) + def delete_subscription_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_subscription ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_subscription" @@ -2610,25 +2717,28 @@ def delete_subscription_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @option opts [String] :sure # @return [APIEmptyResponse] - def delete_tenant(tenant_id, id, opts = {}) - data, _status_code, _headers = delete_tenant_with_http_info(tenant_id, id, opts) + def delete_tenant(opts = {}) + data, _status_code, _headers = delete_tenant_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @option opts [String] :sure # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def delete_tenant_with_http_info(tenant_id, id, opts = {}) + def delete_tenant_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_tenant ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_tenant" @@ -2679,23 +2789,26 @@ def delete_tenant_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [APIEmptyResponse] - def delete_tenant_package(tenant_id, id, opts = {}) - data, _status_code, _headers = delete_tenant_package_with_http_info(tenant_id, id, opts) + def delete_tenant_package(opts = {}) + data, _status_code, _headers = delete_tenant_package_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def delete_tenant_package_with_http_info(tenant_id, id, opts = {}) + def delete_tenant_package_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_tenant_package ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_tenant_package" @@ -2745,27 +2858,30 @@ def delete_tenant_package_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @option opts [String] :delete_comments # @option opts [String] :comment_delete_mode # @return [APIEmptyResponse] - def delete_tenant_user(tenant_id, id, opts = {}) - data, _status_code, _headers = delete_tenant_user_with_http_info(tenant_id, id, opts) + def delete_tenant_user(opts = {}) + data, _status_code, _headers = delete_tenant_user_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @option opts [String] :delete_comments # @option opts [String] :comment_delete_mode # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def delete_tenant_user_with_http_info(tenant_id, id, opts = {}) + def delete_tenant_user_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_tenant_user ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_tenant_user" @@ -2817,23 +2933,26 @@ def delete_tenant_user_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [APIEmptySuccessResponse] - def delete_user_badge(tenant_id, id, opts = {}) - data, _status_code, _headers = delete_user_badge_with_http_info(tenant_id, id, opts) + def delete_user_badge(opts = {}) + data, _status_code, _headers = delete_user_badge_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [Array<(APIEmptySuccessResponse, Integer, Hash)>] APIEmptySuccessResponse data, response status code and response headers - def delete_user_badge_with_http_info(tenant_id, id, opts = {}) + def delete_user_badge_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_user_badge ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_user_badge" @@ -2883,25 +3002,28 @@ def delete_user_badge_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @option opts [String] :edit_key # @return [VoteDeleteResponse] - def delete_vote(tenant_id, id, opts = {}) - data, _status_code, _headers = delete_vote_with_http_info(tenant_id, id, opts) + def delete_vote(opts = {}) + data, _status_code, _headers = delete_vote_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @option opts [String] :edit_key # @return [Array<(VoteDeleteResponse, Integer, Hash)>] VoteDeleteResponse data, response status code and response headers - def delete_vote_with_http_info(tenant_id, id, opts = {}) + def delete_vote_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_vote ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_vote" @@ -2952,27 +3074,30 @@ def delete_vote_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @option opts [String] :user_id # @option opts [String] :anon_user_id # @return [FlagCommentResponse] - def flag_comment(tenant_id, id, opts = {}) - data, _status_code, _headers = flag_comment_with_http_info(tenant_id, id, opts) + def flag_comment(opts = {}) + data, _status_code, _headers = flag_comment_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @option opts [String] :user_id # @option opts [String] :anon_user_id # @return [Array<(FlagCommentResponse, Integer, Hash)>] FlagCommentResponse data, response status code and response headers - def flag_comment_with_http_info(tenant_id, id, opts = {}) + def flag_comment_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.flag_comment ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.flag_comment" @@ -3024,31 +3149,33 @@ def flag_comment_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [Float] :limit # @option opts [Float] :skip # @option opts [SORTDIR] :order # @option opts [Float] :after # @option opts [Float] :before # @return [GetAuditLogsResponse] - def get_audit_logs(tenant_id, opts = {}) - data, _status_code, _headers = get_audit_logs_with_http_info(tenant_id, opts) + def get_audit_logs(opts = {}) + data, _status_code, _headers = get_audit_logs_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [Float] :limit # @option opts [Float] :skip # @option opts [SORTDIR] :order # @option opts [Float] :after # @option opts [Float] :before # @return [Array<(GetAuditLogsResponse, Integer, Hash)>] GetAuditLogsResponse data, response status code and response headers - def get_audit_logs_with_http_info(tenant_id, opts = {}) + def get_audit_logs_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_audit_logs ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_audit_logs" @@ -3099,23 +3226,26 @@ def get_audit_logs_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [GetCachedNotificationCountResponse] - def get_cached_notification_count(tenant_id, id, opts = {}) - data, _status_code, _headers = get_cached_notification_count_with_http_info(tenant_id, id, opts) + def get_cached_notification_count(opts = {}) + data, _status_code, _headers = get_cached_notification_count_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [Array<(GetCachedNotificationCountResponse, Integer, Hash)>] GetCachedNotificationCountResponse data, response status code and response headers - def get_cached_notification_count_with_http_info(tenant_id, id, opts = {}) + def get_cached_notification_count_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_cached_notification_count ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_cached_notification_count" @@ -3165,23 +3295,26 @@ def get_cached_notification_count_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [APIGetCommentResponse] - def get_comment(tenant_id, id, opts = {}) - data, _status_code, _headers = get_comment_with_http_info(tenant_id, id, opts) + def get_comment(opts = {}) + data, _status_code, _headers = get_comment_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [Array<(APIGetCommentResponse, Integer, Hash)>] APIGetCommentResponse data, response status code and response headers - def get_comment_with_http_info(tenant_id, id, opts = {}) + def get_comment_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_comment ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_comment" @@ -3231,8 +3364,8 @@ def get_comment_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [Integer] :page # @option opts [Integer] :limit # @option opts [Integer] :skip @@ -3250,13 +3383,13 @@ def get_comment_with_http_info(tenant_id, id, opts = {}) # @option opts [Integer] :from_date # @option opts [Integer] :to_date # @return [APIGetCommentsResponse] - def get_comments(tenant_id, opts = {}) - data, _status_code, _headers = get_comments_with_http_info(tenant_id, opts) + def get_comments(opts = {}) + data, _status_code, _headers = get_comments_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [Integer] :page # @option opts [Integer] :limit # @option opts [Integer] :skip @@ -3274,10 +3407,12 @@ def get_comments(tenant_id, opts = {}) # @option opts [Integer] :from_date # @option opts [Integer] :to_date # @return [Array<(APIGetCommentsResponse, Integer, Hash)>] APIGetCommentsResponse data, response status code and response headers - def get_comments_with_http_info(tenant_id, opts = {}) + def get_comments_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_comments ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_comments" @@ -3339,23 +3474,26 @@ def get_comments_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param domain [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :domain (required) # @return [GetDomainConfigResponse] - def get_domain_config(tenant_id, domain, opts = {}) - data, _status_code, _headers = get_domain_config_with_http_info(tenant_id, domain, opts) + def get_domain_config(opts = {}) + data, _status_code, _headers = get_domain_config_with_http_info(opts) data end - # @param tenant_id [String] - # @param domain [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :domain (required) # @return [Array<(GetDomainConfigResponse, Integer, Hash)>] GetDomainConfigResponse data, response status code and response headers - def get_domain_config_with_http_info(tenant_id, domain, opts = {}) + def get_domain_config_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_domain_config ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + domain = opts[:'domain'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_domain_config" @@ -3405,21 +3543,23 @@ def get_domain_config_with_http_info(tenant_id, domain, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @return [GetDomainConfigsResponse] - def get_domain_configs(tenant_id, opts = {}) - data, _status_code, _headers = get_domain_configs_with_http_info(tenant_id, opts) + def get_domain_configs(opts = {}) + data, _status_code, _headers = get_domain_configs_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @return [Array<(GetDomainConfigsResponse, Integer, Hash)>] GetDomainConfigsResponse data, response status code and response headers - def get_domain_configs_with_http_info(tenant_id, opts = {}) + def get_domain_configs_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_domain_configs ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_domain_configs" @@ -3465,23 +3605,26 @@ def get_domain_configs_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [GetEmailTemplateResponse] - def get_email_template(tenant_id, id, opts = {}) - data, _status_code, _headers = get_email_template_with_http_info(tenant_id, id, opts) + def get_email_template(opts = {}) + data, _status_code, _headers = get_email_template_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [Array<(GetEmailTemplateResponse, Integer, Hash)>] GetEmailTemplateResponse data, response status code and response headers - def get_email_template_with_http_info(tenant_id, id, opts = {}) + def get_email_template_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_email_template ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_email_template" @@ -3531,21 +3674,23 @@ def get_email_template_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @return [GetEmailTemplateDefinitionsResponse] - def get_email_template_definitions(tenant_id, opts = {}) - data, _status_code, _headers = get_email_template_definitions_with_http_info(tenant_id, opts) + def get_email_template_definitions(opts = {}) + data, _status_code, _headers = get_email_template_definitions_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @return [Array<(GetEmailTemplateDefinitionsResponse, Integer, Hash)>] GetEmailTemplateDefinitionsResponse data, response status code and response headers - def get_email_template_definitions_with_http_info(tenant_id, opts = {}) + def get_email_template_definitions_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_email_template_definitions ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_email_template_definitions" @@ -3591,25 +3736,28 @@ def get_email_template_definitions_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @option opts [Float] :skip # @return [GetEmailTemplateRenderErrorsResponse] - def get_email_template_render_errors(tenant_id, id, opts = {}) - data, _status_code, _headers = get_email_template_render_errors_with_http_info(tenant_id, id, opts) + def get_email_template_render_errors(opts = {}) + data, _status_code, _headers = get_email_template_render_errors_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @option opts [Float] :skip # @return [Array<(GetEmailTemplateRenderErrorsResponse, Integer, Hash)>] GetEmailTemplateRenderErrorsResponse data, response status code and response headers - def get_email_template_render_errors_with_http_info(tenant_id, id, opts = {}) + def get_email_template_render_errors_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_email_template_render_errors ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_email_template_render_errors" @@ -3660,23 +3808,25 @@ def get_email_template_render_errors_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [Float] :skip # @return [GetEmailTemplatesResponse] - def get_email_templates(tenant_id, opts = {}) - data, _status_code, _headers = get_email_templates_with_http_info(tenant_id, opts) + def get_email_templates(opts = {}) + data, _status_code, _headers = get_email_templates_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [Float] :skip # @return [Array<(GetEmailTemplatesResponse, Integer, Hash)>] GetEmailTemplatesResponse data, response status code and response headers - def get_email_templates_with_http_info(tenant_id, opts = {}) + def get_email_templates_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_email_templates ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_email_templates" @@ -3724,28 +3874,30 @@ def get_email_templates_with_http_info(tenant_id, opts = {}) end # req tenantId afterId - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :after_id # @option opts [Integer] :limit # @option opts [Array] :tags # @return [GetFeedPostsResponse] - def get_feed_posts(tenant_id, opts = {}) - data, _status_code, _headers = get_feed_posts_with_http_info(tenant_id, opts) + def get_feed_posts(opts = {}) + data, _status_code, _headers = get_feed_posts_with_http_info(opts) data end # req tenantId afterId - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :after_id # @option opts [Integer] :limit # @option opts [Array] :tags # @return [Array<(GetFeedPostsResponse, Integer, Hash)>] GetFeedPostsResponse data, response status code and response headers - def get_feed_posts_with_http_info(tenant_id, opts = {}) + def get_feed_posts_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_feed_posts ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_feed_posts" @@ -3794,23 +3946,25 @@ def get_feed_posts_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [Float] :page # @return [GetHashTagsResponse] - def get_hash_tags(tenant_id, opts = {}) - data, _status_code, _headers = get_hash_tags_with_http_info(tenant_id, opts) + def get_hash_tags(opts = {}) + data, _status_code, _headers = get_hash_tags_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [Float] :page # @return [Array<(GetHashTagsResponse, Integer, Hash)>] GetHashTagsResponse data, response status code and response headers - def get_hash_tags_with_http_info(tenant_id, opts = {}) + def get_hash_tags_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_hash_tags ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_hash_tags" @@ -3857,23 +4011,26 @@ def get_hash_tags_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [GetModeratorResponse] - def get_moderator(tenant_id, id, opts = {}) - data, _status_code, _headers = get_moderator_with_http_info(tenant_id, id, opts) + def get_moderator(opts = {}) + data, _status_code, _headers = get_moderator_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [Array<(GetModeratorResponse, Integer, Hash)>] GetModeratorResponse data, response status code and response headers - def get_moderator_with_http_info(tenant_id, id, opts = {}) + def get_moderator_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_moderator ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_moderator" @@ -3923,23 +4080,25 @@ def get_moderator_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [Float] :skip # @return [GetModeratorsResponse] - def get_moderators(tenant_id, opts = {}) - data, _status_code, _headers = get_moderators_with_http_info(tenant_id, opts) + def get_moderators(opts = {}) + data, _status_code, _headers = get_moderators_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [Float] :skip # @return [Array<(GetModeratorsResponse, Integer, Hash)>] GetModeratorsResponse data, response status code and response headers - def get_moderators_with_http_info(tenant_id, opts = {}) + def get_moderators_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_moderators ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_moderators" @@ -3986,31 +4145,33 @@ def get_moderators_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :user_id # @option opts [String] :url_id # @option opts [String] :from_comment_id # @option opts [Boolean] :viewed # @option opts [String] :type # @return [GetNotificationCountResponse] - def get_notification_count(tenant_id, opts = {}) - data, _status_code, _headers = get_notification_count_with_http_info(tenant_id, opts) + def get_notification_count(opts = {}) + data, _status_code, _headers = get_notification_count_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :user_id # @option opts [String] :url_id # @option opts [String] :from_comment_id # @option opts [Boolean] :viewed # @option opts [String] :type # @return [Array<(GetNotificationCountResponse, Integer, Hash)>] GetNotificationCountResponse data, response status code and response headers - def get_notification_count_with_http_info(tenant_id, opts = {}) + def get_notification_count_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_notification_count ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_notification_count" @@ -4061,8 +4222,8 @@ def get_notification_count_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :user_id # @option opts [String] :url_id # @option opts [String] :from_comment_id @@ -4070,13 +4231,13 @@ def get_notification_count_with_http_info(tenant_id, opts = {}) # @option opts [String] :type # @option opts [Float] :skip # @return [GetNotificationsResponse] - def get_notifications(tenant_id, opts = {}) - data, _status_code, _headers = get_notifications_with_http_info(tenant_id, opts) + def get_notifications(opts = {}) + data, _status_code, _headers = get_notifications_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :user_id # @option opts [String] :url_id # @option opts [String] :from_comment_id @@ -4084,10 +4245,12 @@ def get_notifications(tenant_id, opts = {}) # @option opts [String] :type # @option opts [Float] :skip # @return [Array<(GetNotificationsResponse, Integer, Hash)>] GetNotificationsResponse data, response status code and response headers - def get_notifications_with_http_info(tenant_id, opts = {}) + def get_notifications_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_notifications ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_notifications" @@ -4139,23 +4302,26 @@ def get_notifications_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param url_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) # @return [GetPageByURLIdAPIResponse] - def get_page_by_urlid(tenant_id, url_id, opts = {}) - data, _status_code, _headers = get_page_by_urlid_with_http_info(tenant_id, url_id, opts) + def get_page_by_urlid(opts = {}) + data, _status_code, _headers = get_page_by_urlid_with_http_info(opts) data end - # @param tenant_id [String] - # @param url_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) # @return [Array<(GetPageByURLIdAPIResponse, Integer, Hash)>] GetPageByURLIdAPIResponse data, response status code and response headers - def get_page_by_urlid_with_http_info(tenant_id, url_id, opts = {}) + def get_page_by_urlid_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_page_by_urlid ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + url_id = opts[:'url_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_page_by_urlid" @@ -4206,21 +4372,23 @@ def get_page_by_urlid_with_http_info(tenant_id, url_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @return [GetPagesAPIResponse] - def get_pages(tenant_id, opts = {}) - data, _status_code, _headers = get_pages_with_http_info(tenant_id, opts) + def get_pages(opts = {}) + data, _status_code, _headers = get_pages_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @return [Array<(GetPagesAPIResponse, Integer, Hash)>] GetPagesAPIResponse data, response status code and response headers - def get_pages_with_http_info(tenant_id, opts = {}) + def get_pages_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_pages ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_pages" @@ -4266,8 +4434,8 @@ def get_pages_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :comment_id # @option opts [String] :external_id # @option opts [String] :event_type @@ -4275,13 +4443,13 @@ def get_pages_with_http_info(tenant_id, opts = {}) # @option opts [String] :domain # @option opts [Float] :attempt_count_gt # @return [GetPendingWebhookEventCountResponse] - def get_pending_webhook_event_count(tenant_id, opts = {}) - data, _status_code, _headers = get_pending_webhook_event_count_with_http_info(tenant_id, opts) + def get_pending_webhook_event_count(opts = {}) + data, _status_code, _headers = get_pending_webhook_event_count_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :comment_id # @option opts [String] :external_id # @option opts [String] :event_type @@ -4289,10 +4457,12 @@ def get_pending_webhook_event_count(tenant_id, opts = {}) # @option opts [String] :domain # @option opts [Float] :attempt_count_gt # @return [Array<(GetPendingWebhookEventCountResponse, Integer, Hash)>] GetPendingWebhookEventCountResponse data, response status code and response headers - def get_pending_webhook_event_count_with_http_info(tenant_id, opts = {}) + def get_pending_webhook_event_count_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_pending_webhook_event_count ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_pending_webhook_event_count" @@ -4344,8 +4514,8 @@ def get_pending_webhook_event_count_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :comment_id # @option opts [String] :external_id # @option opts [String] :event_type @@ -4354,13 +4524,13 @@ def get_pending_webhook_event_count_with_http_info(tenant_id, opts = {}) # @option opts [Float] :attempt_count_gt # @option opts [Float] :skip # @return [GetPendingWebhookEventsResponse] - def get_pending_webhook_events(tenant_id, opts = {}) - data, _status_code, _headers = get_pending_webhook_events_with_http_info(tenant_id, opts) + def get_pending_webhook_events(opts = {}) + data, _status_code, _headers = get_pending_webhook_events_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :comment_id # @option opts [String] :external_id # @option opts [String] :event_type @@ -4369,10 +4539,12 @@ def get_pending_webhook_events(tenant_id, opts = {}) # @option opts [Float] :attempt_count_gt # @option opts [Float] :skip # @return [Array<(GetPendingWebhookEventsResponse, Integer, Hash)>] GetPendingWebhookEventsResponse data, response status code and response headers - def get_pending_webhook_events_with_http_info(tenant_id, opts = {}) + def get_pending_webhook_events_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_pending_webhook_events ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_pending_webhook_events" @@ -4425,23 +4597,26 @@ def get_pending_webhook_events_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [GetQuestionConfigResponse] - def get_question_config(tenant_id, id, opts = {}) - data, _status_code, _headers = get_question_config_with_http_info(tenant_id, id, opts) + def get_question_config(opts = {}) + data, _status_code, _headers = get_question_config_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [Array<(GetQuestionConfigResponse, Integer, Hash)>] GetQuestionConfigResponse data, response status code and response headers - def get_question_config_with_http_info(tenant_id, id, opts = {}) + def get_question_config_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_question_config ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_question_config" @@ -4491,23 +4666,25 @@ def get_question_config_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [Float] :skip # @return [GetQuestionConfigsResponse] - def get_question_configs(tenant_id, opts = {}) - data, _status_code, _headers = get_question_configs_with_http_info(tenant_id, opts) + def get_question_configs(opts = {}) + data, _status_code, _headers = get_question_configs_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [Float] :skip # @return [Array<(GetQuestionConfigsResponse, Integer, Hash)>] GetQuestionConfigsResponse data, response status code and response headers - def get_question_configs_with_http_info(tenant_id, opts = {}) + def get_question_configs_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_question_configs ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_question_configs" @@ -4554,23 +4731,26 @@ def get_question_configs_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [GetQuestionResultResponse] - def get_question_result(tenant_id, id, opts = {}) - data, _status_code, _headers = get_question_result_with_http_info(tenant_id, id, opts) + def get_question_result(opts = {}) + data, _status_code, _headers = get_question_result_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [Array<(GetQuestionResultResponse, Integer, Hash)>] GetQuestionResultResponse data, response status code and response headers - def get_question_result_with_http_info(tenant_id, id, opts = {}) + def get_question_result_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_question_result ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_question_result" @@ -4620,8 +4800,8 @@ def get_question_result_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :url_id # @option opts [String] :user_id # @option opts [String] :start_date @@ -4629,13 +4809,13 @@ def get_question_result_with_http_info(tenant_id, id, opts = {}) # @option opts [String] :question_ids # @option opts [Float] :skip # @return [GetQuestionResultsResponse] - def get_question_results(tenant_id, opts = {}) - data, _status_code, _headers = get_question_results_with_http_info(tenant_id, opts) + def get_question_results(opts = {}) + data, _status_code, _headers = get_question_results_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :url_id # @option opts [String] :user_id # @option opts [String] :start_date @@ -4643,10 +4823,12 @@ def get_question_results(tenant_id, opts = {}) # @option opts [String] :question_ids # @option opts [Float] :skip # @return [Array<(GetQuestionResultsResponse, Integer, Hash)>] GetQuestionResultsResponse data, response status code and response headers - def get_question_results_with_http_info(tenant_id, opts = {}) + def get_question_results_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_question_results ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_question_results" @@ -4698,23 +4880,26 @@ def get_question_results_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param email [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :email (required) # @return [GetSSOUserByEmailAPIResponse] - def get_sso_user_by_email(tenant_id, email, opts = {}) - data, _status_code, _headers = get_sso_user_by_email_with_http_info(tenant_id, email, opts) + def get_sso_user_by_email(opts = {}) + data, _status_code, _headers = get_sso_user_by_email_with_http_info(opts) data end - # @param tenant_id [String] - # @param email [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :email (required) # @return [Array<(GetSSOUserByEmailAPIResponse, Integer, Hash)>] GetSSOUserByEmailAPIResponse data, response status code and response headers - def get_sso_user_by_email_with_http_info(tenant_id, email, opts = {}) + def get_sso_user_by_email_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_sso_user_by_email ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + email = opts[:'email'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_sso_user_by_email" @@ -4764,23 +4949,26 @@ def get_sso_user_by_email_with_http_info(tenant_id, email, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [GetSSOUserByIdAPIResponse] - def get_sso_user_by_id(tenant_id, id, opts = {}) - data, _status_code, _headers = get_sso_user_by_id_with_http_info(tenant_id, id, opts) + def get_sso_user_by_id(opts = {}) + data, _status_code, _headers = get_sso_user_by_id_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [Array<(GetSSOUserByIdAPIResponse, Integer, Hash)>] GetSSOUserByIdAPIResponse data, response status code and response headers - def get_sso_user_by_id_with_http_info(tenant_id, id, opts = {}) + def get_sso_user_by_id_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_sso_user_by_id ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_sso_user_by_id" @@ -4830,23 +5018,25 @@ def get_sso_user_by_id_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [Integer] :skip # @return [GetSSOUsersResponse] - def get_sso_users(tenant_id, opts = {}) - data, _status_code, _headers = get_sso_users_with_http_info(tenant_id, opts) + def get_sso_users(opts = {}) + data, _status_code, _headers = get_sso_users_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [Integer] :skip # @return [Array<(GetSSOUsersResponse, Integer, Hash)>] GetSSOUsersResponse data, response status code and response headers - def get_sso_users_with_http_info(tenant_id, opts = {}) + def get_sso_users_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_sso_users ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_sso_users" @@ -4893,23 +5083,25 @@ def get_sso_users_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :user_id # @return [GetSubscriptionsAPIResponse] - def get_subscriptions(tenant_id, opts = {}) - data, _status_code, _headers = get_subscriptions_with_http_info(tenant_id, opts) + def get_subscriptions(opts = {}) + data, _status_code, _headers = get_subscriptions_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :user_id # @return [Array<(GetSubscriptionsAPIResponse, Integer, Hash)>] GetSubscriptionsAPIResponse data, response status code and response headers - def get_subscriptions_with_http_info(tenant_id, opts = {}) + def get_subscriptions_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_subscriptions ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_subscriptions" @@ -4956,23 +5148,26 @@ def get_subscriptions_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [GetTenantResponse] - def get_tenant(tenant_id, id, opts = {}) - data, _status_code, _headers = get_tenant_with_http_info(tenant_id, id, opts) + def get_tenant(opts = {}) + data, _status_code, _headers = get_tenant_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [Array<(GetTenantResponse, Integer, Hash)>] GetTenantResponse data, response status code and response headers - def get_tenant_with_http_info(tenant_id, id, opts = {}) + def get_tenant_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenant ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_tenant" @@ -5022,29 +5217,31 @@ def get_tenant_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [Float] :year_number # @option opts [Float] :month_number # @option opts [Float] :day_number # @option opts [Float] :skip # @return [GetTenantDailyUsagesResponse] - def get_tenant_daily_usages(tenant_id, opts = {}) - data, _status_code, _headers = get_tenant_daily_usages_with_http_info(tenant_id, opts) + def get_tenant_daily_usages(opts = {}) + data, _status_code, _headers = get_tenant_daily_usages_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [Float] :year_number # @option opts [Float] :month_number # @option opts [Float] :day_number # @option opts [Float] :skip # @return [Array<(GetTenantDailyUsagesResponse, Integer, Hash)>] GetTenantDailyUsagesResponse data, response status code and response headers - def get_tenant_daily_usages_with_http_info(tenant_id, opts = {}) + def get_tenant_daily_usages_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenant_daily_usages ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_tenant_daily_usages" @@ -5094,23 +5291,26 @@ def get_tenant_daily_usages_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [GetTenantPackageResponse] - def get_tenant_package(tenant_id, id, opts = {}) - data, _status_code, _headers = get_tenant_package_with_http_info(tenant_id, id, opts) + def get_tenant_package(opts = {}) + data, _status_code, _headers = get_tenant_package_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [Array<(GetTenantPackageResponse, Integer, Hash)>] GetTenantPackageResponse data, response status code and response headers - def get_tenant_package_with_http_info(tenant_id, id, opts = {}) + def get_tenant_package_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenant_package ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_tenant_package" @@ -5160,23 +5360,25 @@ def get_tenant_package_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [Float] :skip # @return [GetTenantPackagesResponse] - def get_tenant_packages(tenant_id, opts = {}) - data, _status_code, _headers = get_tenant_packages_with_http_info(tenant_id, opts) + def get_tenant_packages(opts = {}) + data, _status_code, _headers = get_tenant_packages_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [Float] :skip # @return [Array<(GetTenantPackagesResponse, Integer, Hash)>] GetTenantPackagesResponse data, response status code and response headers - def get_tenant_packages_with_http_info(tenant_id, opts = {}) + def get_tenant_packages_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenant_packages ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_tenant_packages" @@ -5223,23 +5425,26 @@ def get_tenant_packages_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [GetTenantUserResponse] - def get_tenant_user(tenant_id, id, opts = {}) - data, _status_code, _headers = get_tenant_user_with_http_info(tenant_id, id, opts) + def get_tenant_user(opts = {}) + data, _status_code, _headers = get_tenant_user_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [Array<(GetTenantUserResponse, Integer, Hash)>] GetTenantUserResponse data, response status code and response headers - def get_tenant_user_with_http_info(tenant_id, id, opts = {}) + def get_tenant_user_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenant_user ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_tenant_user" @@ -5289,23 +5494,25 @@ def get_tenant_user_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [Float] :skip # @return [GetTenantUsersResponse] - def get_tenant_users(tenant_id, opts = {}) - data, _status_code, _headers = get_tenant_users_with_http_info(tenant_id, opts) + def get_tenant_users(opts = {}) + data, _status_code, _headers = get_tenant_users_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [Float] :skip # @return [Array<(GetTenantUsersResponse, Integer, Hash)>] GetTenantUsersResponse data, response status code and response headers - def get_tenant_users_with_http_info(tenant_id, opts = {}) + def get_tenant_users_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenant_users ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_tenant_users" @@ -5352,25 +5559,27 @@ def get_tenant_users_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :meta # @option opts [Float] :skip # @return [GetTenantsResponse] - def get_tenants(tenant_id, opts = {}) - data, _status_code, _headers = get_tenants_with_http_info(tenant_id, opts) + def get_tenants(opts = {}) + data, _status_code, _headers = get_tenants_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :meta # @option opts [Float] :skip # @return [Array<(GetTenantsResponse, Integer, Hash)>] GetTenantsResponse data, response status code and response headers - def get_tenants_with_http_info(tenant_id, opts = {}) + def get_tenants_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenants ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_tenants" @@ -5418,25 +5627,28 @@ def get_tenants_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @option opts [String] :user_id # @return [GetTicketResponse] - def get_ticket(tenant_id, id, opts = {}) - data, _status_code, _headers = get_ticket_with_http_info(tenant_id, id, opts) + def get_ticket(opts = {}) + data, _status_code, _headers = get_ticket_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @option opts [String] :user_id # @return [Array<(GetTicketResponse, Integer, Hash)>] GetTicketResponse data, response status code and response headers - def get_ticket_with_http_info(tenant_id, id, opts = {}) + def get_ticket_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_ticket ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_ticket" @@ -5487,29 +5699,31 @@ def get_ticket_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :user_id # @option opts [Float] :state # @option opts [Float] :skip # @option opts [Float] :limit # @return [GetTicketsResponse] - def get_tickets(tenant_id, opts = {}) - data, _status_code, _headers = get_tickets_with_http_info(tenant_id, opts) + def get_tickets(opts = {}) + data, _status_code, _headers = get_tickets_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :user_id # @option opts [Float] :state # @option opts [Float] :skip # @option opts [Float] :limit # @return [Array<(GetTicketsResponse, Integer, Hash)>] GetTicketsResponse data, response status code and response headers - def get_tickets_with_http_info(tenant_id, opts = {}) + def get_tickets_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tickets ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_tickets" @@ -5559,23 +5773,26 @@ def get_tickets_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [GetUserResponse] - def get_user(tenant_id, id, opts = {}) - data, _status_code, _headers = get_user_with_http_info(tenant_id, id, opts) + def get_user(opts = {}) + data, _status_code, _headers = get_user_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [Array<(GetUserResponse, Integer, Hash)>] GetUserResponse data, response status code and response headers - def get_user_with_http_info(tenant_id, id, opts = {}) + def get_user_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_user ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_user" @@ -5625,23 +5842,26 @@ def get_user_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [APIGetUserBadgeResponse] - def get_user_badge(tenant_id, id, opts = {}) - data, _status_code, _headers = get_user_badge_with_http_info(tenant_id, id, opts) + def get_user_badge(opts = {}) + data, _status_code, _headers = get_user_badge_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [Array<(APIGetUserBadgeResponse, Integer, Hash)>] APIGetUserBadgeResponse data, response status code and response headers - def get_user_badge_with_http_info(tenant_id, id, opts = {}) + def get_user_badge_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_user_badge ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_user_badge" @@ -5691,23 +5911,26 @@ def get_user_badge_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [APIGetUserBadgeProgressResponse] - def get_user_badge_progress_by_id(tenant_id, id, opts = {}) - data, _status_code, _headers = get_user_badge_progress_by_id_with_http_info(tenant_id, id, opts) + def get_user_badge_progress_by_id(opts = {}) + data, _status_code, _headers = get_user_badge_progress_by_id_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @return [Array<(APIGetUserBadgeProgressResponse, Integer, Hash)>] APIGetUserBadgeProgressResponse data, response status code and response headers - def get_user_badge_progress_by_id_with_http_info(tenant_id, id, opts = {}) + def get_user_badge_progress_by_id_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_user_badge_progress_by_id ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_user_badge_progress_by_id" @@ -5757,23 +5980,26 @@ def get_user_badge_progress_by_id_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param user_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :user_id (required) # @return [APIGetUserBadgeProgressResponse] - def get_user_badge_progress_by_user_id(tenant_id, user_id, opts = {}) - data, _status_code, _headers = get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id, opts) + def get_user_badge_progress_by_user_id(opts = {}) + data, _status_code, _headers = get_user_badge_progress_by_user_id_with_http_info(opts) data end - # @param tenant_id [String] - # @param user_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :user_id (required) # @return [Array<(APIGetUserBadgeProgressResponse, Integer, Hash)>] APIGetUserBadgeProgressResponse data, response status code and response headers - def get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id, opts = {}) + def get_user_badge_progress_by_user_id_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_user_badge_progress_by_user_id ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + user_id = opts[:'user_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_user_badge_progress_by_user_id" @@ -5823,27 +6049,29 @@ def get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id, opts = return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :user_id # @option opts [Float] :limit # @option opts [Float] :skip # @return [APIGetUserBadgeProgressListResponse] - def get_user_badge_progress_list(tenant_id, opts = {}) - data, _status_code, _headers = get_user_badge_progress_list_with_http_info(tenant_id, opts) + def get_user_badge_progress_list(opts = {}) + data, _status_code, _headers = get_user_badge_progress_list_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :user_id # @option opts [Float] :limit # @option opts [Float] :skip # @return [Array<(APIGetUserBadgeProgressListResponse, Integer, Hash)>] APIGetUserBadgeProgressListResponse data, response status code and response headers - def get_user_badge_progress_list_with_http_info(tenant_id, opts = {}) + def get_user_badge_progress_list_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_user_badge_progress_list ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_user_badge_progress_list" @@ -5892,8 +6120,8 @@ def get_user_badge_progress_list_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :user_id # @option opts [String] :badge_id # @option opts [Float] :type @@ -5901,13 +6129,13 @@ def get_user_badge_progress_list_with_http_info(tenant_id, opts = {}) # @option opts [Float] :limit # @option opts [Float] :skip # @return [APIGetUserBadgesResponse] - def get_user_badges(tenant_id, opts = {}) - data, _status_code, _headers = get_user_badges_with_http_info(tenant_id, opts) + def get_user_badges(opts = {}) + data, _status_code, _headers = get_user_badges_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :user_id # @option opts [String] :badge_id # @option opts [Float] :type @@ -5915,10 +6143,12 @@ def get_user_badges(tenant_id, opts = {}) # @option opts [Float] :limit # @option opts [Float] :skip # @return [Array<(APIGetUserBadgesResponse, Integer, Hash)>] APIGetUserBadgesResponse data, response status code and response headers - def get_user_badges_with_http_info(tenant_id, opts = {}) + def get_user_badges_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_user_badges ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_user_badges" @@ -5970,23 +6200,26 @@ def get_user_badges_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param url_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) # @return [GetVotesResponse] - def get_votes(tenant_id, url_id, opts = {}) - data, _status_code, _headers = get_votes_with_http_info(tenant_id, url_id, opts) + def get_votes(opts = {}) + data, _status_code, _headers = get_votes_with_http_info(opts) data end - # @param tenant_id [String] - # @param url_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) # @return [Array<(GetVotesResponse, Integer, Hash)>] GetVotesResponse data, response status code and response headers - def get_votes_with_http_info(tenant_id, url_id, opts = {}) + def get_votes_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_votes ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + url_id = opts[:'url_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_votes" @@ -6037,27 +6270,30 @@ def get_votes_with_http_info(tenant_id, url_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param url_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) # @option opts [String] :user_id # @option opts [String] :anon_user_id # @return [GetVotesForUserResponse] - def get_votes_for_user(tenant_id, url_id, opts = {}) - data, _status_code, _headers = get_votes_for_user_with_http_info(tenant_id, url_id, opts) + def get_votes_for_user(opts = {}) + data, _status_code, _headers = get_votes_for_user_with_http_info(opts) data end - # @param tenant_id [String] - # @param url_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) # @option opts [String] :user_id # @option opts [String] :anon_user_id # @return [Array<(GetVotesForUserResponse, Integer, Hash)>] GetVotesForUserResponse data, response status code and response headers - def get_votes_for_user_with_http_info(tenant_id, url_id, opts = {}) + def get_votes_for_user_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_votes_for_user ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + url_id = opts[:'url_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_votes_for_user" @@ -6110,25 +6346,29 @@ def get_votes_for_user_with_http_info(tenant_id, url_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param domain_to_update [String] - # @param patch_domain_config_params [PatchDomainConfigParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :domain_to_update (required) + # @option opts [PatchDomainConfigParams] :patch_domain_config_params (required) # @return [PatchDomainConfigResponse] - def patch_domain_config(tenant_id, domain_to_update, patch_domain_config_params, opts = {}) - data, _status_code, _headers = patch_domain_config_with_http_info(tenant_id, domain_to_update, patch_domain_config_params, opts) + def patch_domain_config(opts = {}) + data, _status_code, _headers = patch_domain_config_with_http_info(opts) data end - # @param tenant_id [String] - # @param domain_to_update [String] - # @param patch_domain_config_params [PatchDomainConfigParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :domain_to_update (required) + # @option opts [PatchDomainConfigParams] :patch_domain_config_params (required) # @return [Array<(PatchDomainConfigResponse, Integer, Hash)>] PatchDomainConfigResponse data, response status code and response headers - def patch_domain_config_with_http_info(tenant_id, domain_to_update, patch_domain_config_params, opts = {}) + def patch_domain_config_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.patch_domain_config ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + domain_to_update = opts[:'domain_to_update'] + patch_domain_config_params = opts[:'patch_domain_config_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.patch_domain_config" @@ -6187,25 +6427,27 @@ def patch_domain_config_with_http_info(tenant_id, domain_to_update, patch_domain return data, status_code, headers end - # @param tag [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tag (required) # @option opts [String] :tenant_id # @option opts [UpdateHashTagBody] :update_hash_tag_body # @return [UpdateHashTagResponse] - def patch_hash_tag(tag, opts = {}) - data, _status_code, _headers = patch_hash_tag_with_http_info(tag, opts) + def patch_hash_tag(opts = {}) + data, _status_code, _headers = patch_hash_tag_with_http_info(opts) data end - # @param tag [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tag (required) # @option opts [String] :tenant_id # @option opts [UpdateHashTagBody] :update_hash_tag_body # @return [Array<(UpdateHashTagResponse, Integer, Hash)>] UpdateHashTagResponse data, response status code and response headers - def patch_hash_tag_with_http_info(tag, opts = {}) + def patch_hash_tag_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.patch_hash_tag ...' end + # unbox the parameters from the hash + tag = opts[:'tag'] # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.patch_hash_tag" @@ -6256,25 +6498,29 @@ def patch_hash_tag_with_http_info(tag, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param update_api_page_data [UpdateAPIPageData] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdateAPIPageData] :update_api_page_data (required) # @return [PatchPageAPIResponse] - def patch_page(tenant_id, id, update_api_page_data, opts = {}) - data, _status_code, _headers = patch_page_with_http_info(tenant_id, id, update_api_page_data, opts) + def patch_page(opts = {}) + data, _status_code, _headers = patch_page_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param update_api_page_data [UpdateAPIPageData] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdateAPIPageData] :update_api_page_data (required) # @return [Array<(PatchPageAPIResponse, Integer, Hash)>] PatchPageAPIResponse data, response status code and response headers - def patch_page_with_http_info(tenant_id, id, update_api_page_data, opts = {}) + def patch_page_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.patch_page ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] + update_api_page_data = opts[:'update_api_page_data'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.patch_page" @@ -6333,27 +6579,31 @@ def patch_page_with_http_info(tenant_id, id, update_api_page_data, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param update_apisso_user_data [UpdateAPISSOUserData] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdateAPISSOUserData] :update_apisso_user_data (required) # @option opts [Boolean] :update_comments # @return [PatchSSOUserAPIResponse] - def patch_sso_user(tenant_id, id, update_apisso_user_data, opts = {}) - data, _status_code, _headers = patch_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts) + def patch_sso_user(opts = {}) + data, _status_code, _headers = patch_sso_user_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param update_apisso_user_data [UpdateAPISSOUserData] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdateAPISSOUserData] :update_apisso_user_data (required) # @option opts [Boolean] :update_comments # @return [Array<(PatchSSOUserAPIResponse, Integer, Hash)>] PatchSSOUserAPIResponse data, response status code and response headers - def patch_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts = {}) + def patch_sso_user_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.patch_sso_user ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] + update_apisso_user_data = opts[:'update_apisso_user_data'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.patch_sso_user" @@ -6413,25 +6663,29 @@ def patch_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts = return data, status_code, headers end - # @param tenant_id [String] - # @param domain_to_update [String] - # @param update_domain_config_params [UpdateDomainConfigParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :domain_to_update (required) + # @option opts [UpdateDomainConfigParams] :update_domain_config_params (required) # @return [PutDomainConfigResponse] - def put_domain_config(tenant_id, domain_to_update, update_domain_config_params, opts = {}) - data, _status_code, _headers = put_domain_config_with_http_info(tenant_id, domain_to_update, update_domain_config_params, opts) + def put_domain_config(opts = {}) + data, _status_code, _headers = put_domain_config_with_http_info(opts) data end - # @param tenant_id [String] - # @param domain_to_update [String] - # @param update_domain_config_params [UpdateDomainConfigParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :domain_to_update (required) + # @option opts [UpdateDomainConfigParams] :update_domain_config_params (required) # @return [Array<(PutDomainConfigResponse, Integer, Hash)>] PutDomainConfigResponse data, response status code and response headers - def put_domain_config_with_http_info(tenant_id, domain_to_update, update_domain_config_params, opts = {}) + def put_domain_config_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.put_domain_config ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + domain_to_update = opts[:'domain_to_update'] + update_domain_config_params = opts[:'update_domain_config_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.put_domain_config" @@ -6490,27 +6744,31 @@ def put_domain_config_with_http_info(tenant_id, domain_to_update, update_domain_ return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param update_apisso_user_data [UpdateAPISSOUserData] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdateAPISSOUserData] :update_apisso_user_data (required) # @option opts [Boolean] :update_comments # @return [PutSSOUserAPIResponse] - def put_sso_user(tenant_id, id, update_apisso_user_data, opts = {}) - data, _status_code, _headers = put_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts) + def put_sso_user(opts = {}) + data, _status_code, _headers = put_sso_user_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param update_apisso_user_data [UpdateAPISSOUserData] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdateAPISSOUserData] :update_apisso_user_data (required) # @option opts [Boolean] :update_comments # @return [Array<(PutSSOUserAPIResponse, Integer, Hash)>] PutSSOUserAPIResponse data, response status code and response headers - def put_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts = {}) + def put_sso_user_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.put_sso_user ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] + update_apisso_user_data = opts[:'update_apisso_user_data'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.put_sso_user" @@ -6570,25 +6828,28 @@ def put_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts = { return data, status_code, headers end - # @param tenant_id [String] - # @param render_email_template_body [RenderEmailTemplateBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [RenderEmailTemplateBody] :render_email_template_body (required) # @option opts [String] :locale # @return [RenderEmailTemplateResponse] - def render_email_template(tenant_id, render_email_template_body, opts = {}) - data, _status_code, _headers = render_email_template_with_http_info(tenant_id, render_email_template_body, opts) + def render_email_template(opts = {}) + data, _status_code, _headers = render_email_template_with_http_info(opts) data end - # @param tenant_id [String] - # @param render_email_template_body [RenderEmailTemplateBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [RenderEmailTemplateBody] :render_email_template_body (required) # @option opts [String] :locale # @return [Array<(RenderEmailTemplateResponse, Integer, Hash)>] RenderEmailTemplateResponse data, response status code and response headers - def render_email_template_with_http_info(tenant_id, render_email_template_body, opts = {}) + def render_email_template_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.render_email_template ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + render_email_template_body = opts[:'render_email_template_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.render_email_template" @@ -6644,25 +6905,29 @@ def render_email_template_with_http_info(tenant_id, render_email_template_body, return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param replace_tenant_package_body [ReplaceTenantPackageBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [ReplaceTenantPackageBody] :replace_tenant_package_body (required) # @return [APIEmptyResponse] - def replace_tenant_package(tenant_id, id, replace_tenant_package_body, opts = {}) - data, _status_code, _headers = replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_body, opts) + def replace_tenant_package(opts = {}) + data, _status_code, _headers = replace_tenant_package_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param replace_tenant_package_body [ReplaceTenantPackageBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [ReplaceTenantPackageBody] :replace_tenant_package_body (required) # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_body, opts = {}) + def replace_tenant_package_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.replace_tenant_package ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] + replace_tenant_package_body = opts[:'replace_tenant_package_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.replace_tenant_package" @@ -6721,27 +6986,31 @@ def replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_ return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param replace_tenant_user_body [ReplaceTenantUserBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [ReplaceTenantUserBody] :replace_tenant_user_body (required) # @option opts [String] :update_comments # @return [APIEmptyResponse] - def replace_tenant_user(tenant_id, id, replace_tenant_user_body, opts = {}) - data, _status_code, _headers = replace_tenant_user_with_http_info(tenant_id, id, replace_tenant_user_body, opts) + def replace_tenant_user(opts = {}) + data, _status_code, _headers = replace_tenant_user_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param replace_tenant_user_body [ReplaceTenantUserBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [ReplaceTenantUserBody] :replace_tenant_user_body (required) # @option opts [String] :update_comments # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def replace_tenant_user_with_http_info(tenant_id, id, replace_tenant_user_body, opts = {}) + def replace_tenant_user_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.replace_tenant_user ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] + replace_tenant_user_body = opts[:'replace_tenant_user_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.replace_tenant_user" @@ -6801,31 +7070,34 @@ def replace_tenant_user_with_http_info(tenant_id, id, replace_tenant_user_body, return data, status_code, headers end - # @param tenant_id [String] - # @param create_comment_params [CreateCommentParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateCommentParams] :create_comment_params (required) # @option opts [Boolean] :is_live # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :send_emails # @option opts [Boolean] :populate_notifications # @return [APISaveCommentResponse] - def save_comment(tenant_id, create_comment_params, opts = {}) - data, _status_code, _headers = save_comment_with_http_info(tenant_id, create_comment_params, opts) + def save_comment(opts = {}) + data, _status_code, _headers = save_comment_with_http_info(opts) data end - # @param tenant_id [String] - # @param create_comment_params [CreateCommentParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateCommentParams] :create_comment_params (required) # @option opts [Boolean] :is_live # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :send_emails # @option opts [Boolean] :populate_notifications # @return [Array<(APISaveCommentResponse, Integer, Hash)>] APISaveCommentResponse data, response status code and response headers - def save_comment_with_http_info(tenant_id, create_comment_params, opts = {}) + def save_comment_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.save_comment ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + create_comment_params = opts[:'create_comment_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.save_comment" @@ -6884,31 +7156,34 @@ def save_comment_with_http_info(tenant_id, create_comment_params, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param create_comment_params [Array] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [Array] :create_comment_params (required) # @option opts [Boolean] :is_live # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :send_emails # @option opts [Boolean] :populate_notifications # @return [Array] - def save_comments_bulk(tenant_id, create_comment_params, opts = {}) - data, _status_code, _headers = save_comments_bulk_with_http_info(tenant_id, create_comment_params, opts) + def save_comments_bulk(opts = {}) + data, _status_code, _headers = save_comments_bulk_with_http_info(opts) data end - # @param tenant_id [String] - # @param create_comment_params [Array] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [Array] :create_comment_params (required) # @option opts [Boolean] :is_live # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :send_emails # @option opts [Boolean] :populate_notifications # @return [Array<(Array, Integer, Hash)>] Array data, response status code and response headers - def save_comments_bulk_with_http_info(tenant_id, create_comment_params, opts = {}) + def save_comments_bulk_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.save_comments_bulk ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + create_comment_params = opts[:'create_comment_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.save_comments_bulk" @@ -6967,25 +7242,29 @@ def save_comments_bulk_with_http_info(tenant_id, create_comment_params, opts = { return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param from_name [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [String] :from_name (required) # @return [APIEmptyResponse] - def send_invite(tenant_id, id, from_name, opts = {}) - data, _status_code, _headers = send_invite_with_http_info(tenant_id, id, from_name, opts) + def send_invite(opts = {}) + data, _status_code, _headers = send_invite_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param from_name [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [String] :from_name (required) # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def send_invite_with_http_info(tenant_id, id, from_name, opts = {}) + def send_invite_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.send_invite ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] + from_name = opts[:'from_name'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.send_invite" @@ -7040,25 +7319,28 @@ def send_invite_with_http_info(tenant_id, id, from_name, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @option opts [String] :redirect_url # @return [APIEmptyResponse] - def send_login_link(tenant_id, id, opts = {}) - data, _status_code, _headers = send_login_link_with_http_info(tenant_id, id, opts) + def send_login_link(opts = {}) + data, _status_code, _headers = send_login_link_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @option opts [String] :redirect_url # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def send_login_link_with_http_info(tenant_id, id, opts = {}) + def send_login_link_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.send_login_link ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.send_login_link" @@ -7109,29 +7391,33 @@ def send_login_link_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param un_block_from_comment_params [UnBlockFromCommentParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UnBlockFromCommentParams] :un_block_from_comment_params (required) # @option opts [String] :user_id # @option opts [String] :anon_user_id # @return [UnblockSuccess] - def un_block_user_from_comment(tenant_id, id, un_block_from_comment_params, opts = {}) - data, _status_code, _headers = un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comment_params, opts) + def un_block_user_from_comment(opts = {}) + data, _status_code, _headers = un_block_user_from_comment_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param un_block_from_comment_params [UnBlockFromCommentParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UnBlockFromCommentParams] :un_block_from_comment_params (required) # @option opts [String] :user_id # @option opts [String] :anon_user_id # @return [Array<(UnblockSuccess, Integer, Hash)>] UnblockSuccess data, response status code and response headers - def un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comment_params, opts = {}) + def un_block_user_from_comment_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.un_block_user_from_comment ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] + un_block_from_comment_params = opts[:'un_block_from_comment_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.un_block_user_from_comment" @@ -7192,27 +7478,30 @@ def un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comme return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @option opts [String] :user_id # @option opts [String] :anon_user_id # @return [FlagCommentResponse] - def un_flag_comment(tenant_id, id, opts = {}) - data, _status_code, _headers = un_flag_comment_with_http_info(tenant_id, id, opts) + def un_flag_comment(opts = {}) + data, _status_code, _headers = un_flag_comment_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) # @option opts [String] :user_id # @option opts [String] :anon_user_id # @return [Array<(FlagCommentResponse, Integer, Hash)>] FlagCommentResponse data, response status code and response headers - def un_flag_comment_with_http_info(tenant_id, id, opts = {}) + def un_flag_comment_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.un_flag_comment ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.un_flag_comment" @@ -7264,31 +7553,35 @@ def un_flag_comment_with_http_info(tenant_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param updatable_comment_params [UpdatableCommentParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdatableCommentParams] :updatable_comment_params (required) # @option opts [String] :context_user_id # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :is_live # @return [APIEmptyResponse] - def update_comment(tenant_id, id, updatable_comment_params, opts = {}) - data, _status_code, _headers = update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts) + def update_comment(opts = {}) + data, _status_code, _headers = update_comment_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param updatable_comment_params [UpdatableCommentParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdatableCommentParams] :updatable_comment_params (required) # @option opts [String] :context_user_id # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :is_live # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts = {}) + def update_comment_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_comment ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] + updatable_comment_params = opts[:'updatable_comment_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_comment" @@ -7350,25 +7643,29 @@ def update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param update_email_template_body [UpdateEmailTemplateBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdateEmailTemplateBody] :update_email_template_body (required) # @return [APIEmptyResponse] - def update_email_template(tenant_id, id, update_email_template_body, opts = {}) - data, _status_code, _headers = update_email_template_with_http_info(tenant_id, id, update_email_template_body, opts) + def update_email_template(opts = {}) + data, _status_code, _headers = update_email_template_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param update_email_template_body [UpdateEmailTemplateBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdateEmailTemplateBody] :update_email_template_body (required) # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def update_email_template_with_http_info(tenant_id, id, update_email_template_body, opts = {}) + def update_email_template_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_email_template ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] + update_email_template_body = opts[:'update_email_template_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_email_template" @@ -7427,25 +7724,29 @@ def update_email_template_with_http_info(tenant_id, id, update_email_template_bo return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param feed_post [FeedPost] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [FeedPost] :feed_post (required) # @return [APIEmptyResponse] - def update_feed_post(tenant_id, id, feed_post, opts = {}) - data, _status_code, _headers = update_feed_post_with_http_info(tenant_id, id, feed_post, opts) + def update_feed_post(opts = {}) + data, _status_code, _headers = update_feed_post_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param feed_post [FeedPost] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [FeedPost] :feed_post (required) # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def update_feed_post_with_http_info(tenant_id, id, feed_post, opts = {}) + def update_feed_post_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_feed_post ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] + feed_post = opts[:'feed_post'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_feed_post" @@ -7504,25 +7805,29 @@ def update_feed_post_with_http_info(tenant_id, id, feed_post, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param update_moderator_body [UpdateModeratorBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdateModeratorBody] :update_moderator_body (required) # @return [APIEmptyResponse] - def update_moderator(tenant_id, id, update_moderator_body, opts = {}) - data, _status_code, _headers = update_moderator_with_http_info(tenant_id, id, update_moderator_body, opts) + def update_moderator(opts = {}) + data, _status_code, _headers = update_moderator_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param update_moderator_body [UpdateModeratorBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdateModeratorBody] :update_moderator_body (required) # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def update_moderator_with_http_info(tenant_id, id, update_moderator_body, opts = {}) + def update_moderator_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_moderator ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] + update_moderator_body = opts[:'update_moderator_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_moderator" @@ -7581,27 +7886,31 @@ def update_moderator_with_http_info(tenant_id, id, update_moderator_body, opts = return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param update_notification_body [UpdateNotificationBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdateNotificationBody] :update_notification_body (required) # @option opts [String] :user_id # @return [APIEmptyResponse] - def update_notification(tenant_id, id, update_notification_body, opts = {}) - data, _status_code, _headers = update_notification_with_http_info(tenant_id, id, update_notification_body, opts) + def update_notification(opts = {}) + data, _status_code, _headers = update_notification_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param update_notification_body [UpdateNotificationBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdateNotificationBody] :update_notification_body (required) # @option opts [String] :user_id # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def update_notification_with_http_info(tenant_id, id, update_notification_body, opts = {}) + def update_notification_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_notification ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] + update_notification_body = opts[:'update_notification_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_notification" @@ -7661,25 +7970,29 @@ def update_notification_with_http_info(tenant_id, id, update_notification_body, return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param update_question_config_body [UpdateQuestionConfigBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdateQuestionConfigBody] :update_question_config_body (required) # @return [APIEmptyResponse] - def update_question_config(tenant_id, id, update_question_config_body, opts = {}) - data, _status_code, _headers = update_question_config_with_http_info(tenant_id, id, update_question_config_body, opts) + def update_question_config(opts = {}) + data, _status_code, _headers = update_question_config_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param update_question_config_body [UpdateQuestionConfigBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdateQuestionConfigBody] :update_question_config_body (required) # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def update_question_config_with_http_info(tenant_id, id, update_question_config_body, opts = {}) + def update_question_config_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_question_config ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] + update_question_config_body = opts[:'update_question_config_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_question_config" @@ -7738,25 +8051,29 @@ def update_question_config_with_http_info(tenant_id, id, update_question_config_ return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param update_question_result_body [UpdateQuestionResultBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdateQuestionResultBody] :update_question_result_body (required) # @return [APIEmptyResponse] - def update_question_result(tenant_id, id, update_question_result_body, opts = {}) - data, _status_code, _headers = update_question_result_with_http_info(tenant_id, id, update_question_result_body, opts) + def update_question_result(opts = {}) + data, _status_code, _headers = update_question_result_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param update_question_result_body [UpdateQuestionResultBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdateQuestionResultBody] :update_question_result_body (required) # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def update_question_result_with_http_info(tenant_id, id, update_question_result_body, opts = {}) + def update_question_result_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_question_result ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] + update_question_result_body = opts[:'update_question_result_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_question_result" @@ -7815,27 +8132,31 @@ def update_question_result_with_http_info(tenant_id, id, update_question_result_ return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param update_api_user_subscription_data [UpdateAPIUserSubscriptionData] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdateAPIUserSubscriptionData] :update_api_user_subscription_data (required) # @option opts [String] :user_id # @return [UpdateSubscriptionAPIResponse] - def update_subscription(tenant_id, id, update_api_user_subscription_data, opts = {}) - data, _status_code, _headers = update_subscription_with_http_info(tenant_id, id, update_api_user_subscription_data, opts) + def update_subscription(opts = {}) + data, _status_code, _headers = update_subscription_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param update_api_user_subscription_data [UpdateAPIUserSubscriptionData] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdateAPIUserSubscriptionData] :update_api_user_subscription_data (required) # @option opts [String] :user_id # @return [Array<(UpdateSubscriptionAPIResponse, Integer, Hash)>] UpdateSubscriptionAPIResponse data, response status code and response headers - def update_subscription_with_http_info(tenant_id, id, update_api_user_subscription_data, opts = {}) + def update_subscription_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_subscription ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] + update_api_user_subscription_data = opts[:'update_api_user_subscription_data'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_subscription" @@ -7895,25 +8216,29 @@ def update_subscription_with_http_info(tenant_id, id, update_api_user_subscripti return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param update_tenant_body [UpdateTenantBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdateTenantBody] :update_tenant_body (required) # @return [APIEmptyResponse] - def update_tenant(tenant_id, id, update_tenant_body, opts = {}) - data, _status_code, _headers = update_tenant_with_http_info(tenant_id, id, update_tenant_body, opts) + def update_tenant(opts = {}) + data, _status_code, _headers = update_tenant_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param update_tenant_body [UpdateTenantBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdateTenantBody] :update_tenant_body (required) # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def update_tenant_with_http_info(tenant_id, id, update_tenant_body, opts = {}) + def update_tenant_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_tenant ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] + update_tenant_body = opts[:'update_tenant_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_tenant" @@ -7972,25 +8297,29 @@ def update_tenant_with_http_info(tenant_id, id, update_tenant_body, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param update_tenant_package_body [UpdateTenantPackageBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdateTenantPackageBody] :update_tenant_package_body (required) # @return [APIEmptyResponse] - def update_tenant_package(tenant_id, id, update_tenant_package_body, opts = {}) - data, _status_code, _headers = update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_body, opts) + def update_tenant_package(opts = {}) + data, _status_code, _headers = update_tenant_package_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param update_tenant_package_body [UpdateTenantPackageBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdateTenantPackageBody] :update_tenant_package_body (required) # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_body, opts = {}) + def update_tenant_package_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_tenant_package ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] + update_tenant_package_body = opts[:'update_tenant_package_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_tenant_package" @@ -8049,27 +8378,31 @@ def update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_bo return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param update_tenant_user_body [UpdateTenantUserBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdateTenantUserBody] :update_tenant_user_body (required) # @option opts [String] :update_comments # @return [APIEmptyResponse] - def update_tenant_user(tenant_id, id, update_tenant_user_body, opts = {}) - data, _status_code, _headers = update_tenant_user_with_http_info(tenant_id, id, update_tenant_user_body, opts) + def update_tenant_user(opts = {}) + data, _status_code, _headers = update_tenant_user_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param update_tenant_user_body [UpdateTenantUserBody] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdateTenantUserBody] :update_tenant_user_body (required) # @option opts [String] :update_comments # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def update_tenant_user_with_http_info(tenant_id, id, update_tenant_user_body, opts = {}) + def update_tenant_user_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_tenant_user ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] + update_tenant_user_body = opts[:'update_tenant_user_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_tenant_user" @@ -8129,25 +8462,29 @@ def update_tenant_user_with_http_info(tenant_id, id, update_tenant_user_body, op return data, status_code, headers end - # @param tenant_id [String] - # @param id [String] - # @param update_user_badge_params [UpdateUserBadgeParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdateUserBadgeParams] :update_user_badge_params (required) # @return [APIEmptySuccessResponse] - def update_user_badge(tenant_id, id, update_user_badge_params, opts = {}) - data, _status_code, _headers = update_user_badge_with_http_info(tenant_id, id, update_user_badge_params, opts) + def update_user_badge(opts = {}) + data, _status_code, _headers = update_user_badge_with_http_info(opts) data end - # @param tenant_id [String] - # @param id [String] - # @param update_user_badge_params [UpdateUserBadgeParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :id (required) + # @option opts [UpdateUserBadgeParams] :update_user_badge_params (required) # @return [Array<(APIEmptySuccessResponse, Integer, Hash)>] APIEmptySuccessResponse data, response status code and response headers - def update_user_badge_with_http_info(tenant_id, id, update_user_badge_params, opts = {}) + def update_user_badge_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_user_badge ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + id = opts[:'id'] + update_user_badge_params = opts[:'update_user_badge_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_user_badge" diff --git a/client/lib/fastcomments-client/api/moderation_api.rb b/client/lib/fastcomments-client/api/moderation_api.rb index 1c6d05d..200c0b5 100644 --- a/client/lib/fastcomments-client/api/moderation_api.rb +++ b/client/lib/fastcomments-client/api/moderation_api.rb @@ -19,29 +19,32 @@ class ModerationApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # @param comment_id [String] - # @param vote_id [String] - # @param [Hash] opts the optional parameters - # @option opts [String] :broadcast_id + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) + # @option opts [String] :vote_id (required) # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [VoteDeleteResponse] - def delete_moderation_vote(comment_id, vote_id, opts = {}) - data, _status_code, _headers = delete_moderation_vote_with_http_info(comment_id, vote_id, opts) + def delete_moderation_vote(opts = {}) + data, _status_code, _headers = delete_moderation_vote_with_http_info(opts) data end - # @param comment_id [String] - # @param vote_id [String] - # @param [Hash] opts the optional parameters - # @option opts [String] :broadcast_id + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) + # @option opts [String] :vote_id (required) # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(VoteDeleteResponse, Integer, Hash)>] VoteDeleteResponse data, response status code and response headers - def delete_moderation_vote_with_http_info(comment_id, vote_id, opts = {}) + def delete_moderation_vote_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.delete_moderation_vote ...' end + # unbox the parameters from the hash + comment_id = opts[:'comment_id'] + vote_id = opts[:'vote_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.delete_moderation_vote" @@ -55,8 +58,8 @@ def delete_moderation_vote_with_http_info(comment_id, vote_id, opts = {}) # query parameters query_params = opts[:query_params] || {} - query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -93,7 +96,7 @@ def delete_moderation_vote_with_http_info(comment_id, vote_id, opts = {}) return data, status_code, headers end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [Float] :page # @option opts [Float] :count # @option opts [String] :text_search @@ -110,7 +113,7 @@ def get_api_comments(opts = {}) data end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [Float] :page # @option opts [Float] :count # @option opts [String] :text_search @@ -126,6 +129,7 @@ def get_api_comments_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_api_comments ...' end + # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/api/comments' @@ -176,7 +180,7 @@ def get_api_comments_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :batch_job_id # @option opts [String] :tenant_id # @option opts [String] :sso @@ -186,7 +190,7 @@ def get_api_export_status(opts = {}) data end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :batch_job_id # @option opts [String] :tenant_id # @option opts [String] :sso @@ -195,6 +199,7 @@ def get_api_export_status_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_api_export_status ...' end + # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/api/export/status' @@ -238,7 +243,7 @@ def get_api_export_status_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment # @option opts [String] :filters @@ -253,7 +258,7 @@ def get_api_ids(opts = {}) data end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment # @option opts [String] :filters @@ -267,6 +272,7 @@ def get_api_ids_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_api_ids ...' end + # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/api/ids' @@ -315,25 +321,27 @@ def get_api_ids_with_http_info(opts = {}) return data, status_code, headers end - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [String] :tenant_id # @option opts [String] :sso # @return [GetBannedUsersFromCommentResponse] - def get_ban_users_from_comment(comment_id, opts = {}) - data, _status_code, _headers = get_ban_users_from_comment_with_http_info(comment_id, opts) + def get_ban_users_from_comment(opts = {}) + data, _status_code, _headers = get_ban_users_from_comment_with_http_info(opts) data end - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(GetBannedUsersFromCommentResponse, Integer, Hash)>] GetBannedUsersFromCommentResponse data, response status code and response headers - def get_ban_users_from_comment_with_http_info(comment_id, opts = {}) + def get_ban_users_from_comment_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_ban_users_from_comment ...' end + # unbox the parameters from the hash + comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_ban_users_from_comment" @@ -380,25 +388,27 @@ def get_ban_users_from_comment_with_http_info(comment_id, opts = {}) return data, status_code, headers end - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [String] :tenant_id # @option opts [String] :sso # @return [GetCommentBanStatusResponse] - def get_comment_ban_status(comment_id, opts = {}) - data, _status_code, _headers = get_comment_ban_status_with_http_info(comment_id, opts) + def get_comment_ban_status(opts = {}) + data, _status_code, _headers = get_comment_ban_status_with_http_info(opts) data end - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(GetCommentBanStatusResponse, Integer, Hash)>] GetCommentBanStatusResponse data, response status code and response headers - def get_comment_ban_status_with_http_info(comment_id, opts = {}) + def get_comment_ban_status_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_comment_ban_status ...' end + # unbox the parameters from the hash + comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_comment_ban_status" @@ -445,25 +455,27 @@ def get_comment_ban_status_with_http_info(comment_id, opts = {}) return data, status_code, headers end - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationAPIChildCommentsResponse] - def get_comment_children(comment_id, opts = {}) - data, _status_code, _headers = get_comment_children_with_http_info(comment_id, opts) + def get_comment_children(opts = {}) + data, _status_code, _headers = get_comment_children_with_http_info(opts) data end - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(ModerationAPIChildCommentsResponse, Integer, Hash)>] ModerationAPIChildCommentsResponse data, response status code and response headers - def get_comment_children_with_http_info(comment_id, opts = {}) + def get_comment_children_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_comment_children ...' end + # unbox the parameters from the hash + comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_comment_children" @@ -510,7 +522,7 @@ def get_comment_children_with_http_info(comment_id, opts = {}) return data, status_code, headers end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment # @option opts [String] :filter @@ -524,7 +536,7 @@ def get_count(opts = {}) data end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment # @option opts [String] :filter @@ -537,6 +549,7 @@ def get_count_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_count ...' end + # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/count' @@ -584,7 +597,7 @@ def get_count_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [GetBannedUsersCountResponse] @@ -593,7 +606,7 @@ def get_counts(opts = {}) data end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(GetBannedUsersCountResponse, Integer, Hash)>] GetBannedUsersCountResponse data, response status code and response headers @@ -601,6 +614,7 @@ def get_counts_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_counts ...' end + # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/banned-users/counts' @@ -643,25 +657,27 @@ def get_counts_with_http_info(opts = {}) return data, status_code, headers end - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationAPIGetLogsResponse] - def get_logs(comment_id, opts = {}) - data, _status_code, _headers = get_logs_with_http_info(comment_id, opts) + def get_logs(opts = {}) + data, _status_code, _headers = get_logs_with_http_info(opts) data end - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(ModerationAPIGetLogsResponse, Integer, Hash)>] ModerationAPIGetLogsResponse data, response status code and response headers - def get_logs_with_http_info(comment_id, opts = {}) + def get_logs_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_logs ...' end + # unbox the parameters from the hash + comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_logs" @@ -708,7 +724,7 @@ def get_logs_with_http_info(comment_id, opts = {}) return data, status_code, headers end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [GetTenantManualBadgesResponse] @@ -717,7 +733,7 @@ def get_manual_badges(opts = {}) data end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(GetTenantManualBadgesResponse, Integer, Hash)>] GetTenantManualBadgesResponse data, response status code and response headers @@ -725,6 +741,7 @@ def get_manual_badges_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_manual_badges ...' end + # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/get-manual-badges' @@ -767,7 +784,7 @@ def get_manual_badges_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :badges_user_id # @option opts [String] :comment_id # @option opts [String] :tenant_id @@ -778,7 +795,7 @@ def get_manual_badges_for_user(opts = {}) data end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :badges_user_id # @option opts [String] :comment_id # @option opts [String] :tenant_id @@ -788,6 +805,7 @@ def get_manual_badges_for_user_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_manual_badges_for_user ...' end + # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/get-manual-badges-for-user' @@ -832,29 +850,31 @@ def get_manual_badges_for_user_with_http_info(opts = {}) return data, status_code, headers end - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [Boolean] :include_email # @option opts [Boolean] :include_ip # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationAPICommentResponse] - def get_moderation_comment(comment_id, opts = {}) - data, _status_code, _headers = get_moderation_comment_with_http_info(comment_id, opts) + def get_moderation_comment(opts = {}) + data, _status_code, _headers = get_moderation_comment_with_http_info(opts) data end - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [Boolean] :include_email # @option opts [Boolean] :include_ip # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(ModerationAPICommentResponse, Integer, Hash)>] ModerationAPICommentResponse data, response status code and response headers - def get_moderation_comment_with_http_info(comment_id, opts = {}) + def get_moderation_comment_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_moderation_comment ...' end + # unbox the parameters from the hash + comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_moderation_comment" @@ -903,25 +923,27 @@ def get_moderation_comment_with_http_info(comment_id, opts = {}) return data, status_code, headers end - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [String] :tenant_id # @option opts [String] :sso # @return [GetCommentTextResponse] - def get_moderation_comment_text(comment_id, opts = {}) - data, _status_code, _headers = get_moderation_comment_text_with_http_info(comment_id, opts) + def get_moderation_comment_text(opts = {}) + data, _status_code, _headers = get_moderation_comment_text_with_http_info(opts) data end - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(GetCommentTextResponse, Integer, Hash)>] GetCommentTextResponse data, response status code and response headers - def get_moderation_comment_text_with_http_info(comment_id, opts = {}) + def get_moderation_comment_text_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_moderation_comment_text ...' end + # unbox the parameters from the hash + comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_moderation_comment_text" @@ -968,31 +990,33 @@ def get_moderation_comment_text_with_http_info(comment_id, opts = {}) return data, status_code, headers end - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [Boolean] :include_by_user_id_and_email # @option opts [Boolean] :include_by_ip # @option opts [Boolean] :include_by_email_domain # @option opts [String] :tenant_id # @option opts [String] :sso # @return [PreBanSummary] - def get_pre_ban_summary(comment_id, opts = {}) - data, _status_code, _headers = get_pre_ban_summary_with_http_info(comment_id, opts) + def get_pre_ban_summary(opts = {}) + data, _status_code, _headers = get_pre_ban_summary_with_http_info(opts) data end - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [Boolean] :include_by_user_id_and_email # @option opts [Boolean] :include_by_ip # @option opts [Boolean] :include_by_email_domain # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(PreBanSummary, Integer, Hash)>] PreBanSummary data, response status code and response headers - def get_pre_ban_summary_with_http_info(comment_id, opts = {}) + def get_pre_ban_summary_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_pre_ban_summary ...' end + # unbox the parameters from the hash + comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_pre_ban_summary" @@ -1042,7 +1066,7 @@ def get_pre_ban_summary_with_http_info(comment_id, opts = {}) return data, status_code, headers end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :value # @option opts [String] :filters # @option opts [String] :search_filters @@ -1054,7 +1078,7 @@ def get_search_comments_summary(opts = {}) data end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :value # @option opts [String] :filters # @option opts [String] :search_filters @@ -1065,6 +1089,7 @@ def get_search_comments_summary_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_comments_summary ...' end + # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/search/comments/summary' @@ -1110,7 +1135,7 @@ def get_search_comments_summary_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :value # @option opts [String] :tenant_id # @option opts [String] :sso @@ -1120,7 +1145,7 @@ def get_search_pages(opts = {}) data end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :value # @option opts [String] :tenant_id # @option opts [String] :sso @@ -1129,6 +1154,7 @@ def get_search_pages_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_pages ...' end + # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/search/pages' @@ -1172,7 +1198,7 @@ def get_search_pages_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :value # @option opts [String] :tenant_id # @option opts [String] :sso @@ -1182,7 +1208,7 @@ def get_search_sites(opts = {}) data end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :value # @option opts [String] :tenant_id # @option opts [String] :sso @@ -1191,6 +1217,7 @@ def get_search_sites_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_sites ...' end + # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/search/sites' @@ -1234,7 +1261,7 @@ def get_search_sites_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :text_search # @option opts [String] :tenant_id # @option opts [String] :sso @@ -1244,7 +1271,7 @@ def get_search_suggest(opts = {}) data end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :text_search # @option opts [String] :tenant_id # @option opts [String] :sso @@ -1253,6 +1280,7 @@ def get_search_suggest_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_suggest ...' end + # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/search/suggest' @@ -1296,7 +1324,7 @@ def get_search_suggest_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :value # @option opts [String] :tenant_id # @option opts [String] :sso @@ -1306,7 +1334,7 @@ def get_search_users(opts = {}) data end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :value # @option opts [String] :tenant_id # @option opts [String] :sso @@ -1315,6 +1343,7 @@ def get_search_users_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_users ...' end + # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/search/users' @@ -1358,7 +1387,7 @@ def get_search_users_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :user_id # @option opts [String] :tenant_id # @option opts [String] :sso @@ -1368,7 +1397,7 @@ def get_trust_factor(opts = {}) data end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :user_id # @option opts [String] :tenant_id # @option opts [String] :sso @@ -1377,6 +1406,7 @@ def get_trust_factor_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_trust_factor ...' end + # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/get-trust-factor' @@ -1420,7 +1450,7 @@ def get_trust_factor_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [APIModerateGetUserBanPreferencesResponse] @@ -1429,7 +1459,7 @@ def get_user_ban_preference(opts = {}) data end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(APIModerateGetUserBanPreferencesResponse, Integer, Hash)>] APIModerateGetUserBanPreferencesResponse data, response status code and response headers @@ -1437,6 +1467,7 @@ def get_user_ban_preference_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_user_ban_preference ...' end + # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/user-ban-preference' @@ -1479,7 +1510,7 @@ def get_user_ban_preference_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :comment_id # @option opts [String] :tenant_id # @option opts [String] :sso @@ -1489,7 +1520,7 @@ def get_user_internal_profile(opts = {}) data end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :comment_id # @option opts [String] :tenant_id # @option opts [String] :sso @@ -1498,6 +1529,7 @@ def get_user_internal_profile_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_user_internal_profile ...' end + # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/get-user-internal-profile' @@ -1541,29 +1573,32 @@ def get_user_internal_profile_with_http_info(opts = {}) return data, status_code, headers end - # @param comment_id [String] - # @param adjust_comment_votes_params [AdjustCommentVotesParams] - # @param [Hash] opts the optional parameters - # @option opts [String] :broadcast_id + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) + # @option opts [AdjustCommentVotesParams] :adjust_comment_votes_params (required) # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [AdjustVotesResponse] - def post_adjust_comment_votes(comment_id, adjust_comment_votes_params, opts = {}) - data, _status_code, _headers = post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts) + def post_adjust_comment_votes(opts = {}) + data, _status_code, _headers = post_adjust_comment_votes_with_http_info(opts) data end - # @param comment_id [String] - # @param adjust_comment_votes_params [AdjustCommentVotesParams] - # @param [Hash] opts the optional parameters - # @option opts [String] :broadcast_id + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) + # @option opts [AdjustCommentVotesParams] :adjust_comment_votes_params (required) # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(AdjustVotesResponse, Integer, Hash)>] AdjustVotesResponse data, response status code and response headers - def post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts = {}) + def post_adjust_comment_votes_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_adjust_comment_votes ...' end + # unbox the parameters from the hash + comment_id = opts[:'comment_id'] + adjust_comment_votes_params = opts[:'adjust_comment_votes_params'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_adjust_comment_votes" @@ -1577,8 +1612,8 @@ def post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_pa # query parameters query_params = opts[:query_params] || {} - query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1620,7 +1655,7 @@ def post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_pa return data, status_code, headers end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment # @option opts [String] :filters @@ -1634,7 +1669,7 @@ def post_api_export(opts = {}) data end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment # @option opts [String] :filters @@ -1647,6 +1682,7 @@ def post_api_export_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_api_export ...' end + # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/api/export' @@ -1694,8 +1730,8 @@ def post_api_export_with_http_info(opts = {}) return data, status_code, headers end - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [Boolean] :ban_email # @option opts [Boolean] :ban_email_domain # @option opts [Boolean] :ban_ip @@ -1707,13 +1743,13 @@ def post_api_export_with_http_info(opts = {}) # @option opts [String] :tenant_id # @option opts [String] :sso # @return [BanUserFromCommentResult] - def post_ban_user_from_comment(comment_id, opts = {}) - data, _status_code, _headers = post_ban_user_from_comment_with_http_info(comment_id, opts) + def post_ban_user_from_comment(opts = {}) + data, _status_code, _headers = post_ban_user_from_comment_with_http_info(opts) data end - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [Boolean] :ban_email # @option opts [Boolean] :ban_email_domain # @option opts [Boolean] :ban_ip @@ -1725,10 +1761,12 @@ def post_ban_user_from_comment(comment_id, opts = {}) # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(BanUserFromCommentResult, Integer, Hash)>] BanUserFromCommentResult data, response status code and response headers - def post_ban_user_from_comment_with_http_info(comment_id, opts = {}) + def post_ban_user_from_comment_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_ban_user_from_comment ...' end + # unbox the parameters from the hash + comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_ban_user_from_comment" @@ -1783,25 +1821,27 @@ def post_ban_user_from_comment_with_http_info(comment_id, opts = {}) return data, status_code, headers end - # @param ban_user_undo_params [BanUserUndoParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [BanUserUndoParams] :ban_user_undo_params (required) # @option opts [String] :tenant_id # @option opts [String] :sso # @return [APIEmptyResponse] - def post_ban_user_undo(ban_user_undo_params, opts = {}) - data, _status_code, _headers = post_ban_user_undo_with_http_info(ban_user_undo_params, opts) + def post_ban_user_undo(opts = {}) + data, _status_code, _headers = post_ban_user_undo_with_http_info(opts) data end - # @param ban_user_undo_params [BanUserUndoParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [BanUserUndoParams] :ban_user_undo_params (required) # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def post_ban_user_undo_with_http_info(ban_user_undo_params, opts = {}) + def post_ban_user_undo_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_ban_user_undo ...' end + # unbox the parameters from the hash + ban_user_undo_params = opts[:'ban_user_undo_params'] # verify the required parameter 'ban_user_undo_params' is set if @api_client.config.client_side_validation && ban_user_undo_params.nil? fail ArgumentError, "Missing the required parameter 'ban_user_undo_params' when calling ModerationApi.post_ban_user_undo" @@ -1853,31 +1893,33 @@ def post_ban_user_undo_with_http_info(ban_user_undo_params, opts = {}) return data, status_code, headers end - # @param bulk_pre_ban_params [BulkPreBanParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [BulkPreBanParams] :bulk_pre_ban_params (required) # @option opts [Boolean] :include_by_user_id_and_email # @option opts [Boolean] :include_by_ip # @option opts [Boolean] :include_by_email_domain # @option opts [String] :tenant_id # @option opts [String] :sso # @return [BulkPreBanSummary] - def post_bulk_pre_ban_summary(bulk_pre_ban_params, opts = {}) - data, _status_code, _headers = post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts) + def post_bulk_pre_ban_summary(opts = {}) + data, _status_code, _headers = post_bulk_pre_ban_summary_with_http_info(opts) data end - # @param bulk_pre_ban_params [BulkPreBanParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [BulkPreBanParams] :bulk_pre_ban_params (required) # @option opts [Boolean] :include_by_user_id_and_email # @option opts [Boolean] :include_by_ip # @option opts [Boolean] :include_by_email_domain # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(BulkPreBanSummary, Integer, Hash)>] BulkPreBanSummary data, response status code and response headers - def post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts = {}) + def post_bulk_pre_ban_summary_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_bulk_pre_ban_summary ...' end + # unbox the parameters from the hash + bulk_pre_ban_params = opts[:'bulk_pre_ban_params'] # verify the required parameter 'bulk_pre_ban_params' is set if @api_client.config.client_side_validation && bulk_pre_ban_params.nil? fail ArgumentError, "Missing the required parameter 'bulk_pre_ban_params' when calling ModerationApi.post_bulk_pre_ban_summary" @@ -1932,25 +1974,27 @@ def post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts = {}) return data, status_code, headers end - # @param comments_by_ids_params [CommentsByIdsParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [CommentsByIdsParams] :comments_by_ids_params (required) # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationAPIChildCommentsResponse] - def post_comments_by_ids(comments_by_ids_params, opts = {}) - data, _status_code, _headers = post_comments_by_ids_with_http_info(comments_by_ids_params, opts) + def post_comments_by_ids(opts = {}) + data, _status_code, _headers = post_comments_by_ids_with_http_info(opts) data end - # @param comments_by_ids_params [CommentsByIdsParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [CommentsByIdsParams] :comments_by_ids_params (required) # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(ModerationAPIChildCommentsResponse, Integer, Hash)>] ModerationAPIChildCommentsResponse data, response status code and response headers - def post_comments_by_ids_with_http_info(comments_by_ids_params, opts = {}) + def post_comments_by_ids_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_comments_by_ids ...' end + # unbox the parameters from the hash + comments_by_ids_params = opts[:'comments_by_ids_params'] # verify the required parameter 'comments_by_ids_params' is set if @api_client.config.client_side_validation && comments_by_ids_params.nil? fail ArgumentError, "Missing the required parameter 'comments_by_ids_params' when calling ModerationApi.post_comments_by_ids" @@ -2002,27 +2046,29 @@ def post_comments_by_ids_with_http_info(comments_by_ids_params, opts = {}) return data, status_code, headers end - # @param comment_id [String] - # @param [Hash] opts the optional parameters - # @option opts [String] :broadcast_id + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] - def post_flag_comment(comment_id, opts = {}) - data, _status_code, _headers = post_flag_comment_with_http_info(comment_id, opts) + def post_flag_comment(opts = {}) + data, _status_code, _headers = post_flag_comment_with_http_info(opts) data end - # @param comment_id [String] - # @param [Hash] opts the optional parameters - # @option opts [String] :broadcast_id + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def post_flag_comment_with_http_info(comment_id, opts = {}) + def post_flag_comment_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_flag_comment ...' end + # unbox the parameters from the hash + comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_flag_comment" @@ -2032,8 +2078,8 @@ def post_flag_comment_with_http_info(comment_id, opts = {}) # query parameters query_params = opts[:query_params] || {} - query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2070,27 +2116,29 @@ def post_flag_comment_with_http_info(comment_id, opts = {}) return data, status_code, headers end - # @param comment_id [String] - # @param [Hash] opts the optional parameters - # @option opts [String] :broadcast_id + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [PostRemoveCommentResponse] - def post_remove_comment(comment_id, opts = {}) - data, _status_code, _headers = post_remove_comment_with_http_info(comment_id, opts) + def post_remove_comment(opts = {}) + data, _status_code, _headers = post_remove_comment_with_http_info(opts) data end - # @param comment_id [String] - # @param [Hash] opts the optional parameters - # @option opts [String] :broadcast_id + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(PostRemoveCommentResponse, Integer, Hash)>] PostRemoveCommentResponse data, response status code and response headers - def post_remove_comment_with_http_info(comment_id, opts = {}) + def post_remove_comment_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_remove_comment ...' end + # unbox the parameters from the hash + comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_remove_comment" @@ -2100,8 +2148,8 @@ def post_remove_comment_with_http_info(comment_id, opts = {}) # query parameters query_params = opts[:query_params] || {} - query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2138,27 +2186,29 @@ def post_remove_comment_with_http_info(comment_id, opts = {}) return data, status_code, headers end - # @param comment_id [String] - # @param [Hash] opts the optional parameters - # @option opts [String] :broadcast_id + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] - def post_restore_deleted_comment(comment_id, opts = {}) - data, _status_code, _headers = post_restore_deleted_comment_with_http_info(comment_id, opts) + def post_restore_deleted_comment(opts = {}) + data, _status_code, _headers = post_restore_deleted_comment_with_http_info(opts) data end - # @param comment_id [String] - # @param [Hash] opts the optional parameters - # @option opts [String] :broadcast_id + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def post_restore_deleted_comment_with_http_info(comment_id, opts = {}) + def post_restore_deleted_comment_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_restore_deleted_comment ...' end + # unbox the parameters from the hash + comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_restore_deleted_comment" @@ -2168,8 +2218,8 @@ def post_restore_deleted_comment_with_http_info(comment_id, opts = {}) # query parameters query_params = opts[:query_params] || {} - query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2206,29 +2256,31 @@ def post_restore_deleted_comment_with_http_info(comment_id, opts = {}) return data, status_code, headers end - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [Boolean] :approved - # @option opts [String] :broadcast_id # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [SetCommentApprovedResponse] - def post_set_comment_approval_status(comment_id, opts = {}) - data, _status_code, _headers = post_set_comment_approval_status_with_http_info(comment_id, opts) + def post_set_comment_approval_status(opts = {}) + data, _status_code, _headers = post_set_comment_approval_status_with_http_info(opts) data end - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [Boolean] :approved - # @option opts [String] :broadcast_id # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(SetCommentApprovedResponse, Integer, Hash)>] SetCommentApprovedResponse data, response status code and response headers - def post_set_comment_approval_status_with_http_info(comment_id, opts = {}) + def post_set_comment_approval_status_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_approval_status ...' end + # unbox the parameters from the hash + comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_set_comment_approval_status" @@ -2239,8 +2291,8 @@ def post_set_comment_approval_status_with_http_info(comment_id, opts = {}) # query parameters query_params = opts[:query_params] || {} query_params[:'approved'] = opts[:'approved'] if !opts[:'approved'].nil? - query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2277,29 +2329,31 @@ def post_set_comment_approval_status_with_http_info(comment_id, opts = {}) return data, status_code, headers end - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [Boolean] :reviewed - # @option opts [String] :broadcast_id # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] - def post_set_comment_review_status(comment_id, opts = {}) - data, _status_code, _headers = post_set_comment_review_status_with_http_info(comment_id, opts) + def post_set_comment_review_status(opts = {}) + data, _status_code, _headers = post_set_comment_review_status_with_http_info(opts) data end - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [Boolean] :reviewed - # @option opts [String] :broadcast_id # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def post_set_comment_review_status_with_http_info(comment_id, opts = {}) + def post_set_comment_review_status_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_review_status ...' end + # unbox the parameters from the hash + comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_set_comment_review_status" @@ -2310,8 +2364,8 @@ def post_set_comment_review_status_with_http_info(comment_id, opts = {}) # query parameters query_params = opts[:query_params] || {} query_params[:'reviewed'] = opts[:'reviewed'] if !opts[:'reviewed'].nil? - query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2348,31 +2402,33 @@ def post_set_comment_review_status_with_http_info(comment_id, opts = {}) return data, status_code, headers end - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [Boolean] :spam # @option opts [Boolean] :perm_not_spam - # @option opts [String] :broadcast_id # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] - def post_set_comment_spam_status(comment_id, opts = {}) - data, _status_code, _headers = post_set_comment_spam_status_with_http_info(comment_id, opts) + def post_set_comment_spam_status(opts = {}) + data, _status_code, _headers = post_set_comment_spam_status_with_http_info(opts) data end - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [Boolean] :spam # @option opts [Boolean] :perm_not_spam - # @option opts [String] :broadcast_id # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def post_set_comment_spam_status_with_http_info(comment_id, opts = {}) + def post_set_comment_spam_status_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_spam_status ...' end + # unbox the parameters from the hash + comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_set_comment_spam_status" @@ -2384,8 +2440,8 @@ def post_set_comment_spam_status_with_http_info(comment_id, opts = {}) query_params = opts[:query_params] || {} query_params[:'spam'] = opts[:'spam'] if !opts[:'spam'].nil? query_params[:'permNotSpam'] = opts[:'perm_not_spam'] if !opts[:'perm_not_spam'].nil? - query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2422,29 +2478,32 @@ def post_set_comment_spam_status_with_http_info(comment_id, opts = {}) return data, status_code, headers end - # @param comment_id [String] - # @param set_comment_text_params [SetCommentTextParams] - # @param [Hash] opts the optional parameters - # @option opts [String] :broadcast_id + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) + # @option opts [SetCommentTextParams] :set_comment_text_params (required) # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [SetCommentTextResponse] - def post_set_comment_text(comment_id, set_comment_text_params, opts = {}) - data, _status_code, _headers = post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts) + def post_set_comment_text(opts = {}) + data, _status_code, _headers = post_set_comment_text_with_http_info(opts) data end - # @param comment_id [String] - # @param set_comment_text_params [SetCommentTextParams] - # @param [Hash] opts the optional parameters - # @option opts [String] :broadcast_id + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) + # @option opts [SetCommentTextParams] :set_comment_text_params (required) # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(SetCommentTextResponse, Integer, Hash)>] SetCommentTextResponse data, response status code and response headers - def post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts = {}) + def post_set_comment_text_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_text ...' end + # unbox the parameters from the hash + comment_id = opts[:'comment_id'] + set_comment_text_params = opts[:'set_comment_text_params'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_set_comment_text" @@ -2458,8 +2517,8 @@ def post_set_comment_text_with_http_info(comment_id, set_comment_text_params, op # query parameters query_params = opts[:query_params] || {} - query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2501,27 +2560,29 @@ def post_set_comment_text_with_http_info(comment_id, set_comment_text_params, op return data, status_code, headers end - # @param comment_id [String] - # @param [Hash] opts the optional parameters - # @option opts [String] :broadcast_id + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] - def post_un_flag_comment(comment_id, opts = {}) - data, _status_code, _headers = post_un_flag_comment_with_http_info(comment_id, opts) + def post_un_flag_comment(opts = {}) + data, _status_code, _headers = post_un_flag_comment_with_http_info(opts) data end - # @param comment_id [String] - # @param [Hash] opts the optional parameters - # @option opts [String] :broadcast_id + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def post_un_flag_comment_with_http_info(comment_id, opts = {}) + def post_un_flag_comment_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_un_flag_comment ...' end + # unbox the parameters from the hash + comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_un_flag_comment" @@ -2531,8 +2592,8 @@ def post_un_flag_comment_with_http_info(comment_id, opts = {}) # query parameters query_params = opts[:query_params] || {} - query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2569,29 +2630,31 @@ def post_un_flag_comment_with_http_info(comment_id, opts = {}) return data, status_code, headers end - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [String] :direction - # @option opts [String] :broadcast_id # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [VoteResponse] - def post_vote(comment_id, opts = {}) - data, _status_code, _headers = post_vote_with_http_info(comment_id, opts) + def post_vote(opts = {}) + data, _status_code, _headers = post_vote_with_http_info(opts) data end - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :comment_id (required) # @option opts [String] :direction - # @option opts [String] :broadcast_id # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(VoteResponse, Integer, Hash)>] VoteResponse data, response status code and response headers - def post_vote_with_http_info(comment_id, opts = {}) + def post_vote_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_vote ...' end + # unbox the parameters from the hash + comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_vote" @@ -2602,8 +2665,8 @@ def post_vote_with_http_info(comment_id, opts = {}) # query parameters query_params = opts[:query_params] || {} query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil? - query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2640,31 +2703,33 @@ def post_vote_with_http_info(comment_id, opts = {}) return data, status_code, headers end - # @param badge_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :badge_id (required) # @option opts [String] :user_id # @option opts [String] :comment_id - # @option opts [String] :broadcast_id # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [AwardUserBadgeResponse] - def put_award_badge(badge_id, opts = {}) - data, _status_code, _headers = put_award_badge_with_http_info(badge_id, opts) + def put_award_badge(opts = {}) + data, _status_code, _headers = put_award_badge_with_http_info(opts) data end - # @param badge_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :badge_id (required) # @option opts [String] :user_id # @option opts [String] :comment_id - # @option opts [String] :broadcast_id # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(AwardUserBadgeResponse, Integer, Hash)>] AwardUserBadgeResponse data, response status code and response headers - def put_award_badge_with_http_info(badge_id, opts = {}) + def put_award_badge_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.put_award_badge ...' end + # unbox the parameters from the hash + badge_id = opts[:'badge_id'] # verify the required parameter 'badge_id' is set if @api_client.config.client_side_validation && badge_id.nil? fail ArgumentError, "Missing the required parameter 'badge_id' when calling ModerationApi.put_award_badge" @@ -2677,8 +2742,8 @@ def put_award_badge_with_http_info(badge_id, opts = {}) query_params[:'badgeId'] = badge_id query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? query_params[:'commentId'] = opts[:'comment_id'] if !opts[:'comment_id'].nil? - query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2715,25 +2780,27 @@ def put_award_badge_with_http_info(badge_id, opts = {}) return data, status_code, headers end - # @param url_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :url_id (required) # @option opts [String] :tenant_id # @option opts [String] :sso # @return [APIEmptyResponse] - def put_close_thread(url_id, opts = {}) - data, _status_code, _headers = put_close_thread_with_http_info(url_id, opts) + def put_close_thread(opts = {}) + data, _status_code, _headers = put_close_thread_with_http_info(opts) data end - # @param url_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :url_id (required) # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def put_close_thread_with_http_info(url_id, opts = {}) + def put_close_thread_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.put_close_thread ...' end + # unbox the parameters from the hash + url_id = opts[:'url_id'] # verify the required parameter 'url_id' is set if @api_client.config.client_side_validation && url_id.nil? fail ArgumentError, "Missing the required parameter 'url_id' when calling ModerationApi.put_close_thread" @@ -2781,31 +2848,33 @@ def put_close_thread_with_http_info(url_id, opts = {}) return data, status_code, headers end - # @param badge_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :badge_id (required) # @option opts [String] :user_id # @option opts [String] :comment_id - # @option opts [String] :broadcast_id # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [RemoveUserBadgeResponse] - def put_remove_badge(badge_id, opts = {}) - data, _status_code, _headers = put_remove_badge_with_http_info(badge_id, opts) + def put_remove_badge(opts = {}) + data, _status_code, _headers = put_remove_badge_with_http_info(opts) data end - # @param badge_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :badge_id (required) # @option opts [String] :user_id # @option opts [String] :comment_id - # @option opts [String] :broadcast_id # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(RemoveUserBadgeResponse, Integer, Hash)>] RemoveUserBadgeResponse data, response status code and response headers - def put_remove_badge_with_http_info(badge_id, opts = {}) + def put_remove_badge_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.put_remove_badge ...' end + # unbox the parameters from the hash + badge_id = opts[:'badge_id'] # verify the required parameter 'badge_id' is set if @api_client.config.client_side_validation && badge_id.nil? fail ArgumentError, "Missing the required parameter 'badge_id' when calling ModerationApi.put_remove_badge" @@ -2818,8 +2887,8 @@ def put_remove_badge_with_http_info(badge_id, opts = {}) query_params[:'badgeId'] = badge_id query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? query_params[:'commentId'] = opts[:'comment_id'] if !opts[:'comment_id'].nil? - query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2856,25 +2925,27 @@ def put_remove_badge_with_http_info(badge_id, opts = {}) return data, status_code, headers end - # @param url_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :url_id (required) # @option opts [String] :tenant_id # @option opts [String] :sso # @return [APIEmptyResponse] - def put_reopen_thread(url_id, opts = {}) - data, _status_code, _headers = put_reopen_thread_with_http_info(url_id, opts) + def put_reopen_thread(opts = {}) + data, _status_code, _headers = put_reopen_thread_with_http_info(opts) data end - # @param url_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :url_id (required) # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def put_reopen_thread_with_http_info(url_id, opts = {}) + def put_reopen_thread_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.put_reopen_thread ...' end + # unbox the parameters from the hash + url_id = opts[:'url_id'] # verify the required parameter 'url_id' is set if @api_client.config.client_side_validation && url_id.nil? fail ArgumentError, "Missing the required parameter 'url_id' when calling ModerationApi.put_reopen_thread" @@ -2922,7 +2993,7 @@ def put_reopen_thread_with_http_info(url_id, opts = {}) return data, status_code, headers end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :user_id # @option opts [String] :trust_factor # @option opts [String] :tenant_id @@ -2933,7 +3004,7 @@ def set_trust_factor(opts = {}) data end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :user_id # @option opts [String] :trust_factor # @option opts [String] :tenant_id @@ -2943,6 +3014,7 @@ def set_trust_factor_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.set_trust_factor ...' end + # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/set-trust-factor' diff --git a/client/lib/fastcomments-client/api/public_api.rb b/client/lib/fastcomments-client/api/public_api.rb index 4e5e672..1e4bf83 100644 --- a/client/lib/fastcomments-client/api/public_api.rb +++ b/client/lib/fastcomments-client/api/public_api.rb @@ -19,27 +19,31 @@ class PublicApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # @param tenant_id [String] - # @param comment_id [String] - # @param public_block_from_comment_params [PublicBlockFromCommentParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) + # @option opts [PublicBlockFromCommentParams] :public_block_from_comment_params (required) # @option opts [String] :sso # @return [BlockSuccess] - def block_from_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts = {}) - data, _status_code, _headers = block_from_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) + def block_from_comment_public(opts = {}) + data, _status_code, _headers = block_from_comment_public_with_http_info(opts) data end - # @param tenant_id [String] - # @param comment_id [String] - # @param public_block_from_comment_params [PublicBlockFromCommentParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) + # @option opts [PublicBlockFromCommentParams] :public_block_from_comment_params (required) # @option opts [String] :sso # @return [Array<(BlockSuccess, Integer, Hash)>] BlockSuccess data, response status code and response headers - def block_from_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts = {}) + def block_from_comment_public_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.block_from_comment_public ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + comment_id = opts[:'comment_id'] + public_block_from_comment_params = opts[:'public_block_from_comment_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.block_from_comment_public" @@ -99,25 +103,28 @@ def block_from_comment_public_with_http_info(tenant_id, comment_id, public_block return data, status_code, headers end - # @param tenant_id [String] - # @param comment_ids [String] A comma separated list of comment ids. - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_ids A comma separated list of comment ids. (required) # @option opts [String] :sso # @return [CheckBlockedCommentsResponse] - def checked_comments_for_blocked(tenant_id, comment_ids, opts = {}) - data, _status_code, _headers = checked_comments_for_blocked_with_http_info(tenant_id, comment_ids, opts) + def checked_comments_for_blocked(opts = {}) + data, _status_code, _headers = checked_comments_for_blocked_with_http_info(opts) data end - # @param tenant_id [String] - # @param comment_ids [String] A comma separated list of comment ids. - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_ids A comma separated list of comment ids. (required) # @option opts [String] :sso # @return [Array<(CheckBlockedCommentsResponse, Integer, Hash)>] CheckBlockedCommentsResponse data, response status code and response headers - def checked_comments_for_blocked_with_http_info(tenant_id, comment_ids, opts = {}) + def checked_comments_for_blocked_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.checked_comments_for_blocked ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + comment_ids = opts[:'comment_ids'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.checked_comments_for_blocked" @@ -169,31 +176,36 @@ def checked_comments_for_blocked_with_http_info(tenant_id, comment_ids, opts = { return data, status_code, headers end - # @param tenant_id [String] - # @param url_id [String] - # @param broadcast_id [String] - # @param comment_data [CommentData] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) + # @option opts [String] :broadcast_id (required) + # @option opts [CommentData] :comment_data (required) # @option opts [String] :session_id # @option opts [String] :sso # @return [SaveCommentsResponseWithPresence] - def create_comment_public(tenant_id, url_id, broadcast_id, comment_data, opts = {}) - data, _status_code, _headers = create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, comment_data, opts) + def create_comment_public(opts = {}) + data, _status_code, _headers = create_comment_public_with_http_info(opts) data end - # @param tenant_id [String] - # @param url_id [String] - # @param broadcast_id [String] - # @param comment_data [CommentData] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) + # @option opts [String] :broadcast_id (required) + # @option opts [CommentData] :comment_data (required) # @option opts [String] :session_id # @option opts [String] :sso # @return [Array<(SaveCommentsResponseWithPresence, Integer, Hash)>] SaveCommentsResponseWithPresence data, response status code and response headers - def create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, comment_data, opts = {}) + def create_comment_public_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.create_comment_public ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + url_id = opts[:'url_id'] + broadcast_id = opts[:'broadcast_id'] + comment_data = opts[:'comment_data'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.create_comment_public" @@ -259,27 +271,30 @@ def create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, commen return data, status_code, headers end - # @param tenant_id [String] - # @param create_feed_post_params [CreateFeedPostParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateFeedPostParams] :create_feed_post_params (required) # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [CreateFeedPostResponse] - def create_feed_post_public(tenant_id, create_feed_post_params, opts = {}) - data, _status_code, _headers = create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, opts) + def create_feed_post_public(opts = {}) + data, _status_code, _headers = create_feed_post_public_with_http_info(opts) data end - # @param tenant_id [String] - # @param create_feed_post_params [CreateFeedPostParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [CreateFeedPostParams] :create_feed_post_params (required) # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(CreateFeedPostResponse, Integer, Hash)>] CreateFeedPostResponse data, response status code and response headers - def create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, opts = {}) + def create_feed_post_public_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.create_feed_post_public ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + create_feed_post_params = opts[:'create_feed_post_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.create_feed_post_public" @@ -335,25 +350,28 @@ def create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, o return data, status_code, headers end - # @param tenant_id [String] - # @param url_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) # @option opts [String] :title # @return [CreateV1PageReact] - def create_v1_page_react(tenant_id, url_id, opts = {}) - data, _status_code, _headers = create_v1_page_react_with_http_info(tenant_id, url_id, opts) + def create_v1_page_react(opts = {}) + data, _status_code, _headers = create_v1_page_react_with_http_info(opts) data end - # @param tenant_id [String] - # @param url_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) # @option opts [String] :title # @return [Array<(CreateV1PageReact, Integer, Hash)>] CreateV1PageReact data, response status code and response headers - def create_v1_page_react_with_http_info(tenant_id, url_id, opts = {}) + def create_v1_page_react_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.create_v1_page_react ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + url_id = opts[:'url_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.create_v1_page_react" @@ -404,27 +422,31 @@ def create_v1_page_react_with_http_info(tenant_id, url_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param url_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) + # @option opts [String] :id (required) # @option opts [String] :title # @return [CreateV1PageReact] - def create_v2_page_react(tenant_id, url_id, id, opts = {}) - data, _status_code, _headers = create_v2_page_react_with_http_info(tenant_id, url_id, id, opts) + def create_v2_page_react(opts = {}) + data, _status_code, _headers = create_v2_page_react_with_http_info(opts) data end - # @param tenant_id [String] - # @param url_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) + # @option opts [String] :id (required) # @option opts [String] :title # @return [Array<(CreateV1PageReact, Integer, Hash)>] CreateV1PageReact data, response status code and response headers - def create_v2_page_react_with_http_info(tenant_id, url_id, id, opts = {}) + def create_v2_page_react_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.create_v2_page_react ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + url_id = opts[:'url_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.create_v2_page_react" @@ -480,29 +502,33 @@ def create_v2_page_react_with_http_info(tenant_id, url_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param comment_id [String] - # @param broadcast_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) + # @option opts [String] :broadcast_id (required) # @option opts [String] :edit_key # @option opts [String] :sso # @return [PublicAPIDeleteCommentResponse] - def delete_comment_public(tenant_id, comment_id, broadcast_id, opts = {}) - data, _status_code, _headers = delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, opts) + def delete_comment_public(opts = {}) + data, _status_code, _headers = delete_comment_public_with_http_info(opts) data end - # @param tenant_id [String] - # @param comment_id [String] - # @param broadcast_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) + # @option opts [String] :broadcast_id (required) # @option opts [String] :edit_key # @option opts [String] :sso # @return [Array<(PublicAPIDeleteCommentResponse, Integer, Hash)>] PublicAPIDeleteCommentResponse data, response status code and response headers - def delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) + def delete_comment_public_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.delete_comment_public ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + comment_id = opts[:'comment_id'] + broadcast_id = opts[:'broadcast_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.delete_comment_public" @@ -558,33 +584,39 @@ def delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, op return data, status_code, headers end - # @param tenant_id [String] - # @param comment_id [String] - # @param vote_id [String] - # @param url_id [String] - # @param broadcast_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) + # @option opts [String] :vote_id (required) + # @option opts [String] :url_id (required) + # @option opts [String] :broadcast_id (required) # @option opts [String] :edit_key # @option opts [String] :sso # @return [VoteDeleteResponse] - def delete_comment_vote(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts = {}) - data, _status_code, _headers = delete_comment_vote_with_http_info(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts) + def delete_comment_vote(opts = {}) + data, _status_code, _headers = delete_comment_vote_with_http_info(opts) data end - # @param tenant_id [String] - # @param comment_id [String] - # @param vote_id [String] - # @param url_id [String] - # @param broadcast_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) + # @option opts [String] :vote_id (required) + # @option opts [String] :url_id (required) + # @option opts [String] :broadcast_id (required) # @option opts [String] :edit_key # @option opts [String] :sso # @return [Array<(VoteDeleteResponse, Integer, Hash)>] VoteDeleteResponse data, response status code and response headers - def delete_comment_vote_with_http_info(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts = {}) + def delete_comment_vote_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.delete_comment_vote ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + comment_id = opts[:'comment_id'] + vote_id = opts[:'vote_id'] + url_id = opts[:'url_id'] + broadcast_id = opts[:'broadcast_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.delete_comment_vote" @@ -649,27 +681,30 @@ def delete_comment_vote_with_http_info(tenant_id, comment_id, vote_id, url_id, b return data, status_code, headers end - # @param tenant_id [String] - # @param post_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :post_id (required) # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [DeleteFeedPostPublicResponse] - def delete_feed_post_public(tenant_id, post_id, opts = {}) - data, _status_code, _headers = delete_feed_post_public_with_http_info(tenant_id, post_id, opts) + def delete_feed_post_public(opts = {}) + data, _status_code, _headers = delete_feed_post_public_with_http_info(opts) data end - # @param tenant_id [String] - # @param post_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :post_id (required) # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(DeleteFeedPostPublicResponse, Integer, Hash)>] DeleteFeedPostPublicResponse data, response status code and response headers - def delete_feed_post_public_with_http_info(tenant_id, post_id, opts = {}) + def delete_feed_post_public_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.delete_feed_post_public ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + post_id = opts[:'post_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.delete_feed_post_public" @@ -720,23 +755,26 @@ def delete_feed_post_public_with_http_info(tenant_id, post_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param url_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) # @return [CreateV1PageReact] - def delete_v1_page_react(tenant_id, url_id, opts = {}) - data, _status_code, _headers = delete_v1_page_react_with_http_info(tenant_id, url_id, opts) + def delete_v1_page_react(opts = {}) + data, _status_code, _headers = delete_v1_page_react_with_http_info(opts) data end - # @param tenant_id [String] - # @param url_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) # @return [Array<(CreateV1PageReact, Integer, Hash)>] CreateV1PageReact data, response status code and response headers - def delete_v1_page_react_with_http_info(tenant_id, url_id, opts = {}) + def delete_v1_page_react_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.delete_v1_page_react ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + url_id = opts[:'url_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.delete_v1_page_react" @@ -786,25 +824,29 @@ def delete_v1_page_react_with_http_info(tenant_id, url_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param url_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) + # @option opts [String] :id (required) # @return [CreateV1PageReact] - def delete_v2_page_react(tenant_id, url_id, id, opts = {}) - data, _status_code, _headers = delete_v2_page_react_with_http_info(tenant_id, url_id, id, opts) + def delete_v2_page_react(opts = {}) + data, _status_code, _headers = delete_v2_page_react_with_http_info(opts) data end - # @param tenant_id [String] - # @param url_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) + # @option opts [String] :id (required) # @return [Array<(CreateV1PageReact, Integer, Hash)>] CreateV1PageReact data, response status code and response headers - def delete_v2_page_react_with_http_info(tenant_id, url_id, id, opts = {}) + def delete_v2_page_react_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.delete_v2_page_react ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + url_id = opts[:'url_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.delete_v2_page_react" @@ -859,27 +901,31 @@ def delete_v2_page_react_with_http_info(tenant_id, url_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param comment_id [String] - # @param is_flagged [Boolean] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) + # @option opts [Boolean] :is_flagged (required) # @option opts [String] :sso # @return [APIEmptyResponse] - def flag_comment_public(tenant_id, comment_id, is_flagged, opts = {}) - data, _status_code, _headers = flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts) + def flag_comment_public(opts = {}) + data, _status_code, _headers = flag_comment_public_with_http_info(opts) data end - # @param tenant_id [String] - # @param comment_id [String] - # @param is_flagged [Boolean] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) + # @option opts [Boolean] :is_flagged (required) # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts = {}) + def flag_comment_public_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.flag_comment_public ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + comment_id = opts[:'comment_id'] + is_flagged = opts[:'is_flagged'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.flag_comment_public" @@ -935,27 +981,30 @@ def flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts = return data, status_code, headers end - # @param tenant_id [String] - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) # @option opts [String] :edit_key # @option opts [String] :sso # @return [PublicAPIGetCommentTextResponse] - def get_comment_text(tenant_id, comment_id, opts = {}) - data, _status_code, _headers = get_comment_text_with_http_info(tenant_id, comment_id, opts) + def get_comment_text(opts = {}) + data, _status_code, _headers = get_comment_text_with_http_info(opts) data end - # @param tenant_id [String] - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) # @option opts [String] :edit_key # @option opts [String] :sso # @return [Array<(PublicAPIGetCommentTextResponse, Integer, Hash)>] PublicAPIGetCommentTextResponse data, response status code and response headers - def get_comment_text_with_http_info(tenant_id, comment_id, opts = {}) + def get_comment_text_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_comment_text ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + comment_id = opts[:'comment_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_comment_text" @@ -1006,27 +1055,31 @@ def get_comment_text_with_http_info(tenant_id, comment_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param comment_id [String] - # @param dir [Integer] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) + # @option opts [Integer] :dir (required) # @option opts [String] :sso # @return [GetCommentVoteUserNamesSuccessResponse] - def get_comment_vote_user_names(tenant_id, comment_id, dir, opts = {}) - data, _status_code, _headers = get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts) + def get_comment_vote_user_names(opts = {}) + data, _status_code, _headers = get_comment_vote_user_names_with_http_info(opts) data end - # @param tenant_id [String] - # @param comment_id [String] - # @param dir [Integer] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) + # @option opts [Integer] :dir (required) # @option opts [String] :sso # @return [Array<(GetCommentVoteUserNamesSuccessResponse, Integer, Hash)>] GetCommentVoteUserNamesSuccessResponse data, response status code and response headers - def get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts = {}) + def get_comment_vote_user_names_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_comment_vote_user_names ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + comment_id = opts[:'comment_id'] + dir = opts[:'dir'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_comment_vote_user_names" @@ -1081,7 +1134,7 @@ def get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts return data, status_code, headers end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :user_id # @option opts [SortDirections] :direction # @option opts [String] :replies_to_user_id @@ -1095,7 +1148,7 @@ def get_comments_for_user(opts = {}) data end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @option opts [String] :user_id # @option opts [SortDirections] :direction # @option opts [String] :replies_to_user_id @@ -1108,6 +1161,7 @@ def get_comments_for_user_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_comments_for_user ...' end + # unbox the parameters from the hash # resource path local_var_path = '/comments-for-user' @@ -1156,9 +1210,9 @@ def get_comments_for_user_with_http_info(opts = {}) end # req tenantId urlId - # @param tenant_id [String] - # @param url_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) # @option opts [Integer] :page # @option opts [SortDirections] :direction # @option opts [String] :sso @@ -1186,15 +1240,15 @@ def get_comments_for_user_with_http_info(opts = {}) # @option opts [String] :after_comment_id # @option opts [String] :before_comment_id # @return [GetCommentsResponseWithPresencePublicComment] - def get_comments_public(tenant_id, url_id, opts = {}) - data, _status_code, _headers = get_comments_public_with_http_info(tenant_id, url_id, opts) + def get_comments_public(opts = {}) + data, _status_code, _headers = get_comments_public_with_http_info(opts) data end # req tenantId urlId - # @param tenant_id [String] - # @param url_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) # @option opts [Integer] :page # @option opts [SortDirections] :direction # @option opts [String] :sso @@ -1222,10 +1276,13 @@ def get_comments_public(tenant_id, url_id, opts = {}) # @option opts [String] :after_comment_id # @option opts [String] :before_comment_id # @return [Array<(GetCommentsResponseWithPresencePublicComment, Integer, Hash)>] GetCommentsResponseWithPresencePublicComment data, response status code and response headers - def get_comments_public_with_http_info(tenant_id, url_id, opts = {}) + def get_comments_public_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_comments_public ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + url_id = opts[:'url_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_comments_public" @@ -1302,30 +1359,35 @@ def get_comments_public_with_http_info(tenant_id, url_id, opts = {}) end # req tenantId urlId userIdWS - # @param tenant_id [String] - # @param url_id [String] - # @param user_id_ws [String] - # @param start_time [Integer] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) + # @option opts [String] :user_id_ws (required) + # @option opts [Integer] :start_time (required) # @option opts [Integer] :end_time # @return [GetEventLogResponse] - def get_event_log(tenant_id, url_id, user_id_ws, start_time, opts = {}) - data, _status_code, _headers = get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) + def get_event_log(opts = {}) + data, _status_code, _headers = get_event_log_with_http_info(opts) data end # req tenantId urlId userIdWS - # @param tenant_id [String] - # @param url_id [String] - # @param user_id_ws [String] - # @param start_time [Integer] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) + # @option opts [String] :user_id_ws (required) + # @option opts [Integer] :start_time (required) # @option opts [Integer] :end_time # @return [Array<(GetEventLogResponse, Integer, Hash)>] GetEventLogResponse data, response status code and response headers - def get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts = {}) + def get_event_log_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_event_log ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + url_id = opts[:'url_id'] + user_id_ws = opts[:'user_id_ws'] + start_time = opts[:'start_time'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_event_log" @@ -1387,8 +1449,8 @@ def get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts end # req tenantId afterId - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :after_id # @option opts [Integer] :limit # @option opts [Array] :tags @@ -1396,14 +1458,14 @@ def get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts # @option opts [Boolean] :is_crawler # @option opts [Boolean] :include_user_info # @return [PublicFeedPostsResponse] - def get_feed_posts_public(tenant_id, opts = {}) - data, _status_code, _headers = get_feed_posts_public_with_http_info(tenant_id, opts) + def get_feed_posts_public(opts = {}) + data, _status_code, _headers = get_feed_posts_public_with_http_info(opts) data end # req tenantId afterId - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :after_id # @option opts [Integer] :limit # @option opts [Array] :tags @@ -1411,10 +1473,12 @@ def get_feed_posts_public(tenant_id, opts = {}) # @option opts [Boolean] :is_crawler # @option opts [Boolean] :include_user_info # @return [Array<(PublicFeedPostsResponse, Integer, Hash)>] PublicFeedPostsResponse data, response status code and response headers - def get_feed_posts_public_with_http_info(tenant_id, opts = {}) + def get_feed_posts_public_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_feed_posts_public ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_feed_posts_public" @@ -1465,25 +1529,28 @@ def get_feed_posts_public_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param post_ids [Array] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [Array] :post_ids (required) # @option opts [String] :sso # @return [FeedPostsStatsResponse] - def get_feed_posts_stats(tenant_id, post_ids, opts = {}) - data, _status_code, _headers = get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts) + def get_feed_posts_stats(opts = {}) + data, _status_code, _headers = get_feed_posts_stats_with_http_info(opts) data end - # @param tenant_id [String] - # @param post_ids [Array] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [Array] :post_ids (required) # @option opts [String] :sso # @return [Array<(FeedPostsStatsResponse, Integer, Hash)>] FeedPostsStatsResponse data, response status code and response headers - def get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts = {}) + def get_feed_posts_stats_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_feed_posts_stats ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + post_ids = opts[:'post_ids'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_feed_posts_stats" @@ -1534,23 +1601,26 @@ def get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param large_internal_url_sanitized [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :large_internal_url_sanitized (required) # @return [GifGetLargeResponse] - def get_gif_large(tenant_id, large_internal_url_sanitized, opts = {}) - data, _status_code, _headers = get_gif_large_with_http_info(tenant_id, large_internal_url_sanitized, opts) + def get_gif_large(opts = {}) + data, _status_code, _headers = get_gif_large_with_http_info(opts) data end - # @param tenant_id [String] - # @param large_internal_url_sanitized [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :large_internal_url_sanitized (required) # @return [Array<(GifGetLargeResponse, Integer, Hash)>] GifGetLargeResponse data, response status code and response headers - def get_gif_large_with_http_info(tenant_id, large_internal_url_sanitized, opts = {}) + def get_gif_large_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_gif_large ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + large_internal_url_sanitized = opts[:'large_internal_url_sanitized'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_gif_large" @@ -1600,29 +1670,32 @@ def get_gif_large_with_http_info(tenant_id, large_internal_url_sanitized, opts = return data, status_code, headers end - # @param tenant_id [String] - # @param search [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :search (required) # @option opts [String] :locale # @option opts [String] :rating # @option opts [Float] :page # @return [GetGifsSearchResponse] - def get_gifs_search(tenant_id, search, opts = {}) - data, _status_code, _headers = get_gifs_search_with_http_info(tenant_id, search, opts) + def get_gifs_search(opts = {}) + data, _status_code, _headers = get_gifs_search_with_http_info(opts) data end - # @param tenant_id [String] - # @param search [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :search (required) # @option opts [String] :locale # @option opts [String] :rating # @option opts [Float] :page # @return [Array<(GetGifsSearchResponse, Integer, Hash)>] GetGifsSearchResponse data, response status code and response headers - def get_gifs_search_with_http_info(tenant_id, search, opts = {}) + def get_gifs_search_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_gifs_search ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + search = opts[:'search'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_gifs_search" @@ -1675,27 +1748,29 @@ def get_gifs_search_with_http_info(tenant_id, search, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :locale # @option opts [String] :rating # @option opts [Float] :page # @return [GetGifsTrendingResponse] - def get_gifs_trending(tenant_id, opts = {}) - data, _status_code, _headers = get_gifs_trending_with_http_info(tenant_id, opts) + def get_gifs_trending(opts = {}) + data, _status_code, _headers = get_gifs_trending_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :locale # @option opts [String] :rating # @option opts [Float] :page # @return [Array<(GetGifsTrendingResponse, Integer, Hash)>] GetGifsTrendingResponse data, response status code and response headers - def get_gifs_trending_with_http_info(tenant_id, opts = {}) + def get_gifs_trending_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_gifs_trending ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_gifs_trending" @@ -1744,30 +1819,35 @@ def get_gifs_trending_with_http_info(tenant_id, opts = {}) end # req tenantId urlId userIdWS - # @param tenant_id [String] - # @param url_id [String] - # @param user_id_ws [String] - # @param start_time [Integer] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) + # @option opts [String] :user_id_ws (required) + # @option opts [Integer] :start_time (required) # @option opts [Integer] :end_time # @return [GetEventLogResponse] - def get_global_event_log(tenant_id, url_id, user_id_ws, start_time, opts = {}) - data, _status_code, _headers = get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) + def get_global_event_log(opts = {}) + data, _status_code, _headers = get_global_event_log_with_http_info(opts) data end # req tenantId urlId userIdWS - # @param tenant_id [String] - # @param url_id [String] - # @param user_id_ws [String] - # @param start_time [Integer] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) + # @option opts [String] :user_id_ws (required) + # @option opts [Integer] :start_time (required) # @option opts [Integer] :end_time # @return [Array<(GetEventLogResponse, Integer, Hash)>] GetEventLogResponse data, response status code and response headers - def get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts = {}) + def get_global_event_log_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_global_event_log ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + url_id = opts[:'url_id'] + user_id_ws = opts[:'user_id_ws'] + start_time = opts[:'start_time'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_global_event_log" @@ -1829,28 +1909,31 @@ def get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_tim end # Past commenters on the page who are NOT currently online. Sorted by displayName. Use this after exhausting /users/online to render a \"Members\" section. Cursor pagination on commenterName: server walks the partial {tenantId, urlId, commenterName} index from afterName forward via $gt, no $skip cost. - # @param tenant_id [String] - # @param url_id [String] Page URL identifier (cleaned server-side). - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id Page URL identifier (cleaned server-side). (required) # @option opts [String] :after_name Cursor: pass nextAfterName from the previous response. # @option opts [String] :after_user_id Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. # @return [PageUsersOfflineResponse] - def get_offline_users(tenant_id, url_id, opts = {}) - data, _status_code, _headers = get_offline_users_with_http_info(tenant_id, url_id, opts) + def get_offline_users(opts = {}) + data, _status_code, _headers = get_offline_users_with_http_info(opts) data end # Past commenters on the page who are NOT currently online. Sorted by displayName. Use this after exhausting /users/online to render a \"Members\" section. Cursor pagination on commenterName: server walks the partial {tenantId, urlId, commenterName} index from afterName forward via $gt, no $skip cost. - # @param tenant_id [String] - # @param url_id [String] Page URL identifier (cleaned server-side). - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id Page URL identifier (cleaned server-side). (required) # @option opts [String] :after_name Cursor: pass nextAfterName from the previous response. # @option opts [String] :after_user_id Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. # @return [Array<(PageUsersOfflineResponse, Integer, Hash)>] PageUsersOfflineResponse data, response status code and response headers - def get_offline_users_with_http_info(tenant_id, url_id, opts = {}) + def get_offline_users_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_offline_users ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + url_id = opts[:'url_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_offline_users" @@ -1903,28 +1986,31 @@ def get_offline_users_with_http_info(tenant_id, url_id, opts = {}) end # Currently-online viewers of a page: people whose websocket session is subscribed to the page right now. Returns anonCount + totalCount (room-wide subscribers, including anon viewers we don't enumerate). - # @param tenant_id [String] - # @param url_id [String] Page URL identifier (cleaned server-side). - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id Page URL identifier (cleaned server-side). (required) # @option opts [String] :after_name Cursor: pass nextAfterName from the previous response. # @option opts [String] :after_user_id Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. # @return [PageUsersOnlineResponse] - def get_online_users(tenant_id, url_id, opts = {}) - data, _status_code, _headers = get_online_users_with_http_info(tenant_id, url_id, opts) + def get_online_users(opts = {}) + data, _status_code, _headers = get_online_users_with_http_info(opts) data end # Currently-online viewers of a page: people whose websocket session is subscribed to the page right now. Returns anonCount + totalCount (room-wide subscribers, including anon viewers we don't enumerate). - # @param tenant_id [String] - # @param url_id [String] Page URL identifier (cleaned server-side). - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id Page URL identifier (cleaned server-side). (required) # @option opts [String] :after_name Cursor: pass nextAfterName from the previous response. # @option opts [String] :after_user_id Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. # @return [Array<(PageUsersOnlineResponse, Integer, Hash)>] PageUsersOnlineResponse data, response status code and response headers - def get_online_users_with_http_info(tenant_id, url_id, opts = {}) + def get_online_users_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_online_users ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + url_id = opts[:'url_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_online_users" @@ -1977,32 +2063,34 @@ def get_online_users_with_http_info(tenant_id, url_id, opts = {}) end # List pages for a tenant. Used by the FChat desktop client to populate its room list. Requires `enableFChat` to be true on the resolved custom config for each page. Pages that require SSO are filtered against the requesting user's group access. - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :cursor Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. # @option opts [Integer] :limit 1..200, default 50 # @option opts [String] :q Optional case-insensitive title prefix filter. # @option opts [PagesSortBy] :sort_by Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). # @option opts [Boolean] :has_comments If true, only return pages with at least one comment. # @return [GetPublicPagesResponse] - def get_pages_public(tenant_id, opts = {}) - data, _status_code, _headers = get_pages_public_with_http_info(tenant_id, opts) + def get_pages_public(opts = {}) + data, _status_code, _headers = get_pages_public_with_http_info(opts) data end # List pages for a tenant. Used by the FChat desktop client to populate its room list. Requires `enableFChat` to be true on the resolved custom config for each page. Pages that require SSO are filtered against the requesting user's group access. - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :cursor Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. # @option opts [Integer] :limit 1..200, default 50 # @option opts [String] :q Optional case-insensitive title prefix filter. # @option opts [PagesSortBy] :sort_by Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). # @option opts [Boolean] :has_comments If true, only return pages with at least one comment. # @return [Array<(GetPublicPagesResponse, Integer, Hash)>] GetPublicPagesResponse data, response status code and response headers - def get_pages_public_with_http_info(tenant_id, opts = {}) + def get_pages_public_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_pages_public ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_pages_public" @@ -2052,27 +2140,30 @@ def get_pages_public_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param namespace [String] - # @param component [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :namespace (required) + # @option opts [String] :component (required) # @option opts [String] :locale # @option opts [Boolean] :use_full_translation_ids # @return [GetTranslationsResponse] - def get_translations(namespace, component, opts = {}) - data, _status_code, _headers = get_translations_with_http_info(namespace, component, opts) + def get_translations(opts = {}) + data, _status_code, _headers = get_translations_with_http_info(opts) data end - # @param namespace [String] - # @param component [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :namespace (required) + # @option opts [String] :component (required) # @option opts [String] :locale # @option opts [Boolean] :use_full_translation_ids # @return [Array<(GetTranslationsResponse, Integer, Hash)>] GetTranslationsResponse data, response status code and response headers - def get_translations_with_http_info(namespace, component, opts = {}) + def get_translations_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_translations ...' end + # unbox the parameters from the hash + namespace = opts[:'namespace'] + component = opts[:'component'] # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling PublicApi.get_translations" @@ -2123,23 +2214,25 @@ def get_translations_with_http_info(namespace, component, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :sso # @return [GetUserNotificationCountResponse] - def get_user_notification_count(tenant_id, opts = {}) - data, _status_code, _headers = get_user_notification_count_with_http_info(tenant_id, opts) + def get_user_notification_count(opts = {}) + data, _status_code, _headers = get_user_notification_count_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :sso # @return [Array<(GetUserNotificationCountResponse, Integer, Hash)>] GetUserNotificationCountResponse data, response status code and response headers - def get_user_notification_count_with_http_info(tenant_id, opts = {}) + def get_user_notification_count_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_user_notification_count ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_user_notification_count" @@ -2186,8 +2279,8 @@ def get_user_notification_count_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :url_id Used to determine whether the current page is subscribed. # @option opts [Integer] :page_size # @option opts [String] :after_id @@ -2200,13 +2293,13 @@ def get_user_notification_count_with_http_info(tenant_id, opts = {}) # @option opts [Boolean] :include_tenant_notifications # @option opts [String] :sso # @return [GetMyNotificationsResponse] - def get_user_notifications(tenant_id, opts = {}) - data, _status_code, _headers = get_user_notifications_with_http_info(tenant_id, opts) + def get_user_notifications(opts = {}) + data, _status_code, _headers = get_user_notifications_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :url_id Used to determine whether the current page is subscribed. # @option opts [Integer] :page_size # @option opts [String] :after_id @@ -2219,10 +2312,12 @@ def get_user_notifications(tenant_id, opts = {}) # @option opts [Boolean] :include_tenant_notifications # @option opts [String] :sso # @return [Array<(GetMyNotificationsResponse, Integer, Hash)>] GetMyNotificationsResponse data, response status code and response headers - def get_user_notifications_with_http_info(tenant_id, opts = {}) + def get_user_notifications_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_user_notifications ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_user_notifications" @@ -2279,25 +2374,29 @@ def get_user_notifications_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param url_id_ws [String] - # @param user_ids [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id_ws (required) + # @option opts [String] :user_ids (required) # @return [GetUserPresenceStatusesResponse] - def get_user_presence_statuses(tenant_id, url_id_ws, user_ids, opts = {}) - data, _status_code, _headers = get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids, opts) + def get_user_presence_statuses(opts = {}) + data, _status_code, _headers = get_user_presence_statuses_with_http_info(opts) data end - # @param tenant_id [String] - # @param url_id_ws [String] - # @param user_ids [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id_ws (required) + # @option opts [String] :user_ids (required) # @return [Array<(GetUserPresenceStatusesResponse, Integer, Hash)>] GetUserPresenceStatusesResponse data, response status code and response headers - def get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids, opts = {}) + def get_user_presence_statuses_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_user_presence_statuses ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + url_id_ws = opts[:'url_id_ws'] + user_ids = opts[:'user_ids'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_user_presence_statuses" @@ -2353,25 +2452,27 @@ def get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids, op return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [Array] :post_ids # @option opts [String] :sso # @return [UserReactsResponse] - def get_user_reacts_public(tenant_id, opts = {}) - data, _status_code, _headers = get_user_reacts_public_with_http_info(tenant_id, opts) + def get_user_reacts_public(opts = {}) + data, _status_code, _headers = get_user_reacts_public_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [Array] :post_ids # @option opts [String] :sso # @return [Array<(UserReactsResponse, Integer, Hash)>] UserReactsResponse data, response status code and response headers - def get_user_reacts_public_with_http_info(tenant_id, opts = {}) + def get_user_reacts_public_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_user_reacts_public ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_user_reacts_public" @@ -2419,24 +2520,27 @@ def get_user_reacts_public_with_http_info(tenant_id, opts = {}) end # Bulk user info for a tenant. Given userIds, return display info from User / SSOUser. Used by the comment widget to enrich users that just appeared via a presence event. No page context: privacy is enforced uniformly (private profiles are masked). - # @param tenant_id [String] - # @param ids [String] Comma-delimited userIds. - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :ids Comma-delimited userIds. (required) # @return [PageUsersInfoResponse] - def get_users_info(tenant_id, ids, opts = {}) - data, _status_code, _headers = get_users_info_with_http_info(tenant_id, ids, opts) + def get_users_info(opts = {}) + data, _status_code, _headers = get_users_info_with_http_info(opts) data end # Bulk user info for a tenant. Given userIds, return display info from User / SSOUser. Used by the comment widget to enrich users that just appeared via a presence event. No page context: privacy is enforced uniformly (private profiles are masked). - # @param tenant_id [String] - # @param ids [String] Comma-delimited userIds. - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :ids Comma-delimited userIds. (required) # @return [Array<(PageUsersInfoResponse, Integer, Hash)>] PageUsersInfoResponse data, response status code and response headers - def get_users_info_with_http_info(tenant_id, ids, opts = {}) + def get_users_info_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_users_info ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + ids = opts[:'ids'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_users_info" @@ -2486,23 +2590,26 @@ def get_users_info_with_http_info(tenant_id, ids, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param url_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) # @return [GetV1PageLikes] - def get_v1_page_likes(tenant_id, url_id, opts = {}) - data, _status_code, _headers = get_v1_page_likes_with_http_info(tenant_id, url_id, opts) + def get_v1_page_likes(opts = {}) + data, _status_code, _headers = get_v1_page_likes_with_http_info(opts) data end - # @param tenant_id [String] - # @param url_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) # @return [Array<(GetV1PageLikes, Integer, Hash)>] GetV1PageLikes data, response status code and response headers - def get_v1_page_likes_with_http_info(tenant_id, url_id, opts = {}) + def get_v1_page_likes_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_v1_page_likes ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + url_id = opts[:'url_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_v1_page_likes" @@ -2552,25 +2659,29 @@ def get_v1_page_likes_with_http_info(tenant_id, url_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param url_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) + # @option opts [String] :id (required) # @return [GetV2PageReactUsersResponse] - def get_v2_page_react_users(tenant_id, url_id, id, opts = {}) - data, _status_code, _headers = get_v2_page_react_users_with_http_info(tenant_id, url_id, id, opts) + def get_v2_page_react_users(opts = {}) + data, _status_code, _headers = get_v2_page_react_users_with_http_info(opts) data end - # @param tenant_id [String] - # @param url_id [String] - # @param id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) + # @option opts [String] :id (required) # @return [Array<(GetV2PageReactUsersResponse, Integer, Hash)>] GetV2PageReactUsersResponse data, response status code and response headers - def get_v2_page_react_users_with_http_info(tenant_id, url_id, id, opts = {}) + def get_v2_page_react_users_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_v2_page_react_users ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + url_id = opts[:'url_id'] + id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_v2_page_react_users" @@ -2625,23 +2736,26 @@ def get_v2_page_react_users_with_http_info(tenant_id, url_id, id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param url_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) # @return [GetV2PageReacts] - def get_v2_page_reacts(tenant_id, url_id, opts = {}) - data, _status_code, _headers = get_v2_page_reacts_with_http_info(tenant_id, url_id, opts) + def get_v2_page_reacts(opts = {}) + data, _status_code, _headers = get_v2_page_reacts_with_http_info(opts) data end - # @param tenant_id [String] - # @param url_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) # @return [Array<(GetV2PageReacts, Integer, Hash)>] GetV2PageReacts data, response status code and response headers - def get_v2_page_reacts_with_http_info(tenant_id, url_id, opts = {}) + def get_v2_page_reacts_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_v2_page_reacts ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + url_id = opts[:'url_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_v2_page_reacts" @@ -2691,27 +2805,31 @@ def get_v2_page_reacts_with_http_info(tenant_id, url_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param comment_id [String] - # @param broadcast_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) + # @option opts [String] :broadcast_id (required) # @option opts [String] :sso # @return [APIEmptyResponse] - def lock_comment(tenant_id, comment_id, broadcast_id, opts = {}) - data, _status_code, _headers = lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) + def lock_comment(opts = {}) + data, _status_code, _headers = lock_comment_with_http_info(opts) data end - # @param tenant_id [String] - # @param comment_id [String] - # @param broadcast_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) + # @option opts [String] :broadcast_id (required) # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) + def lock_comment_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.lock_comment ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + comment_id = opts[:'comment_id'] + broadcast_id = opts[:'broadcast_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.lock_comment" @@ -2766,19 +2884,20 @@ def lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) return data, status_code, headers end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @return [APIEmptyResponse] def logout_public(opts = {}) data, _status_code, _headers = logout_public_with_http_info(opts) data end - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def logout_public_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.logout_public ...' end + # unbox the parameters from the hash # resource path local_var_path = '/auth/logout' @@ -2819,27 +2938,31 @@ def logout_public_with_http_info(opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param comment_id [String] - # @param broadcast_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) + # @option opts [String] :broadcast_id (required) # @option opts [String] :sso # @return [ChangeCommentPinStatusResponse] - def pin_comment(tenant_id, comment_id, broadcast_id, opts = {}) - data, _status_code, _headers = pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) + def pin_comment(opts = {}) + data, _status_code, _headers = pin_comment_with_http_info(opts) data end - # @param tenant_id [String] - # @param comment_id [String] - # @param broadcast_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) + # @option opts [String] :broadcast_id (required) # @option opts [String] :sso # @return [Array<(ChangeCommentPinStatusResponse, Integer, Hash)>] ChangeCommentPinStatusResponse data, response status code and response headers - def pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) + def pin_comment_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.pin_comment ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + comment_id = opts[:'comment_id'] + broadcast_id = opts[:'broadcast_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.pin_comment" @@ -2894,31 +3017,35 @@ def pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param post_id [String] - # @param react_body_params [ReactBodyParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :post_id (required) + # @option opts [ReactBodyParams] :react_body_params (required) # @option opts [Boolean] :is_undo # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [ReactFeedPostResponse] - def react_feed_post_public(tenant_id, post_id, react_body_params, opts = {}) - data, _status_code, _headers = react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, opts) + def react_feed_post_public(opts = {}) + data, _status_code, _headers = react_feed_post_public_with_http_info(opts) data end - # @param tenant_id [String] - # @param post_id [String] - # @param react_body_params [ReactBodyParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :post_id (required) + # @option opts [ReactBodyParams] :react_body_params (required) # @option opts [Boolean] :is_undo # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(ReactFeedPostResponse, Integer, Hash)>] ReactFeedPostResponse data, response status code and response headers - def react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, opts = {}) + def react_feed_post_public_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.react_feed_post_public ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + post_id = opts[:'post_id'] + react_body_params = opts[:'react_body_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.react_feed_post_public" @@ -2979,23 +3106,25 @@ def react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :sso # @return [ResetUserNotificationsResponse] - def reset_user_notification_count(tenant_id, opts = {}) - data, _status_code, _headers = reset_user_notification_count_with_http_info(tenant_id, opts) + def reset_user_notification_count(opts = {}) + data, _status_code, _headers = reset_user_notification_count_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :sso # @return [Array<(ResetUserNotificationsResponse, Integer, Hash)>] ResetUserNotificationsResponse data, response status code and response headers - def reset_user_notification_count_with_http_info(tenant_id, opts = {}) + def reset_user_notification_count_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.reset_user_notification_count ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.reset_user_notification_count" @@ -3042,8 +3171,8 @@ def reset_user_notification_count_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :after_id # @option opts [Integer] :after_created_at # @option opts [Boolean] :unread_only @@ -3051,13 +3180,13 @@ def reset_user_notification_count_with_http_info(tenant_id, opts = {}) # @option opts [Boolean] :no_dm # @option opts [String] :sso # @return [ResetUserNotificationsResponse] - def reset_user_notifications(tenant_id, opts = {}) - data, _status_code, _headers = reset_user_notifications_with_http_info(tenant_id, opts) + def reset_user_notifications(opts = {}) + data, _status_code, _headers = reset_user_notifications_with_http_info(opts) data end - # @param tenant_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) # @option opts [String] :after_id # @option opts [Integer] :after_created_at # @option opts [Boolean] :unread_only @@ -3065,10 +3194,12 @@ def reset_user_notifications(tenant_id, opts = {}) # @option opts [Boolean] :no_dm # @option opts [String] :sso # @return [Array<(ResetUserNotificationsResponse, Integer, Hash)>] ResetUserNotificationsResponse data, response status code and response headers - def reset_user_notifications_with_http_info(tenant_id, opts = {}) + def reset_user_notifications_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.reset_user_notifications ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.reset_user_notifications" @@ -3120,31 +3251,34 @@ def reset_user_notifications_with_http_info(tenant_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param url_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) # @option opts [String] :username_starts_with # @option opts [Array] :mention_group_ids # @option opts [String] :sso # @option opts [String] :search_section # @return [SearchUsersResult] - def search_users(tenant_id, url_id, opts = {}) - data, _status_code, _headers = search_users_with_http_info(tenant_id, url_id, opts) + def search_users(opts = {}) + data, _status_code, _headers = search_users_with_http_info(opts) data end - # @param tenant_id [String] - # @param url_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) # @option opts [String] :username_starts_with # @option opts [Array] :mention_group_ids # @option opts [String] :sso # @option opts [String] :search_section # @return [Array<(SearchUsersResult, Integer, Hash)>] SearchUsersResult data, response status code and response headers - def search_users_with_http_info(tenant_id, url_id, opts = {}) + def search_users_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.search_users ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + url_id = opts[:'url_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.search_users" @@ -3202,31 +3336,36 @@ def search_users_with_http_info(tenant_id, url_id, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param comment_id [String] - # @param broadcast_id [String] - # @param comment_text_update_request [CommentTextUpdateRequest] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) + # @option opts [String] :broadcast_id (required) + # @option opts [CommentTextUpdateRequest] :comment_text_update_request (required) # @option opts [String] :edit_key # @option opts [String] :sso # @return [PublicAPISetCommentTextResponse] - def set_comment_text(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts = {}) - data, _status_code, _headers = set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts) + def set_comment_text(opts = {}) + data, _status_code, _headers = set_comment_text_with_http_info(opts) data end - # @param tenant_id [String] - # @param comment_id [String] - # @param broadcast_id [String] - # @param comment_text_update_request [CommentTextUpdateRequest] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) + # @option opts [String] :broadcast_id (required) + # @option opts [CommentTextUpdateRequest] :comment_text_update_request (required) # @option opts [String] :edit_key # @option opts [String] :sso # @return [Array<(PublicAPISetCommentTextResponse, Integer, Hash)>] PublicAPISetCommentTextResponse data, response status code and response headers - def set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts = {}) + def set_comment_text_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.set_comment_text ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + comment_id = opts[:'comment_id'] + broadcast_id = opts[:'broadcast_id'] + comment_text_update_request = opts[:'comment_text_update_request'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.set_comment_text" @@ -3291,27 +3430,31 @@ def set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment return data, status_code, headers end - # @param tenant_id [String] - # @param comment_id [String] - # @param public_block_from_comment_params [PublicBlockFromCommentParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) + # @option opts [PublicBlockFromCommentParams] :public_block_from_comment_params (required) # @option opts [String] :sso # @return [UnblockSuccess] - def un_block_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts = {}) - data, _status_code, _headers = un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) + def un_block_comment_public(opts = {}) + data, _status_code, _headers = un_block_comment_public_with_http_info(opts) data end - # @param tenant_id [String] - # @param comment_id [String] - # @param public_block_from_comment_params [PublicBlockFromCommentParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) + # @option opts [PublicBlockFromCommentParams] :public_block_from_comment_params (required) # @option opts [String] :sso # @return [Array<(UnblockSuccess, Integer, Hash)>] UnblockSuccess data, response status code and response headers - def un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts = {}) + def un_block_comment_public_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.un_block_comment_public ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + comment_id = opts[:'comment_id'] + public_block_from_comment_params = opts[:'public_block_from_comment_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.un_block_comment_public" @@ -3371,27 +3514,31 @@ def un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_f return data, status_code, headers end - # @param tenant_id [String] - # @param comment_id [String] - # @param broadcast_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) + # @option opts [String] :broadcast_id (required) # @option opts [String] :sso # @return [APIEmptyResponse] - def un_lock_comment(tenant_id, comment_id, broadcast_id, opts = {}) - data, _status_code, _headers = un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) + def un_lock_comment(opts = {}) + data, _status_code, _headers = un_lock_comment_with_http_info(opts) data end - # @param tenant_id [String] - # @param comment_id [String] - # @param broadcast_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) + # @option opts [String] :broadcast_id (required) # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) + def un_lock_comment_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.un_lock_comment ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + comment_id = opts[:'comment_id'] + broadcast_id = opts[:'broadcast_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.un_lock_comment" @@ -3446,27 +3593,31 @@ def un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = { return data, status_code, headers end - # @param tenant_id [String] - # @param comment_id [String] - # @param broadcast_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) + # @option opts [String] :broadcast_id (required) # @option opts [String] :sso # @return [ChangeCommentPinStatusResponse] - def un_pin_comment(tenant_id, comment_id, broadcast_id, opts = {}) - data, _status_code, _headers = un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) + def un_pin_comment(opts = {}) + data, _status_code, _headers = un_pin_comment_with_http_info(opts) data end - # @param tenant_id [String] - # @param comment_id [String] - # @param broadcast_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) + # @option opts [String] :broadcast_id (required) # @option opts [String] :sso # @return [Array<(ChangeCommentPinStatusResponse, Integer, Hash)>] ChangeCommentPinStatusResponse data, response status code and response headers - def un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) + def un_pin_comment_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.un_pin_comment ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + comment_id = opts[:'comment_id'] + broadcast_id = opts[:'broadcast_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.un_pin_comment" @@ -3521,29 +3672,33 @@ def un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {} return data, status_code, headers end - # @param tenant_id [String] - # @param post_id [String] - # @param update_feed_post_params [UpdateFeedPostParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :post_id (required) + # @option opts [UpdateFeedPostParams] :update_feed_post_params (required) # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [CreateFeedPostResponse] - def update_feed_post_public(tenant_id, post_id, update_feed_post_params, opts = {}) - data, _status_code, _headers = update_feed_post_public_with_http_info(tenant_id, post_id, update_feed_post_params, opts) + def update_feed_post_public(opts = {}) + data, _status_code, _headers = update_feed_post_public_with_http_info(opts) data end - # @param tenant_id [String] - # @param post_id [String] - # @param update_feed_post_params [UpdateFeedPostParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :post_id (required) + # @option opts [UpdateFeedPostParams] :update_feed_post_params (required) # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(CreateFeedPostResponse, Integer, Hash)>] CreateFeedPostResponse data, response status code and response headers - def update_feed_post_public_with_http_info(tenant_id, post_id, update_feed_post_params, opts = {}) + def update_feed_post_public_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.update_feed_post_public ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + post_id = opts[:'post_id'] + update_feed_post_params = opts[:'update_feed_post_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.update_feed_post_public" @@ -3604,30 +3759,35 @@ def update_feed_post_public_with_http_info(tenant_id, post_id, update_feed_post_ end # Enable or disable notifications for a specific comment. - # @param tenant_id [String] - # @param notification_id [String] - # @param opted_in_or_out [String] - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :notification_id (required) + # @option opts [String] :opted_in_or_out (required) + # @option opts [String] :comment_id (required) # @option opts [String] :sso # @return [UpdateUserNotificationCommentSubscriptionStatusResponse] - def update_user_notification_comment_subscription_status(tenant_id, notification_id, opted_in_or_out, comment_id, opts = {}) - data, _status_code, _headers = update_user_notification_comment_subscription_status_with_http_info(tenant_id, notification_id, opted_in_or_out, comment_id, opts) + def update_user_notification_comment_subscription_status(opts = {}) + data, _status_code, _headers = update_user_notification_comment_subscription_status_with_http_info(opts) data end # Enable or disable notifications for a specific comment. - # @param tenant_id [String] - # @param notification_id [String] - # @param opted_in_or_out [String] - # @param comment_id [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :notification_id (required) + # @option opts [String] :opted_in_or_out (required) + # @option opts [String] :comment_id (required) # @option opts [String] :sso # @return [Array<(UpdateUserNotificationCommentSubscriptionStatusResponse, Integer, Hash)>] UpdateUserNotificationCommentSubscriptionStatusResponse data, response status code and response headers - def update_user_notification_comment_subscription_status_with_http_info(tenant_id, notification_id, opted_in_or_out, comment_id, opts = {}) + def update_user_notification_comment_subscription_status_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.update_user_notification_comment_subscription_status ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + notification_id = opts[:'notification_id'] + opted_in_or_out = opts[:'opted_in_or_out'] + comment_id = opts[:'comment_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.update_user_notification_comment_subscription_status" @@ -3693,32 +3853,38 @@ def update_user_notification_comment_subscription_status_with_http_info(tenant_i end # Enable or disable notifications for a page. When users are subscribed to a page, notifications are created for new root comments, and also - # @param tenant_id [String] - # @param url_id [String] - # @param url [String] - # @param page_title [String] - # @param subscribed_or_unsubscribed [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) + # @option opts [String] :url (required) + # @option opts [String] :page_title (required) + # @option opts [String] :subscribed_or_unsubscribed (required) # @option opts [String] :sso # @return [UpdateUserNotificationPageSubscriptionStatusResponse] - def update_user_notification_page_subscription_status(tenant_id, url_id, url, page_title, subscribed_or_unsubscribed, opts = {}) - data, _status_code, _headers = update_user_notification_page_subscription_status_with_http_info(tenant_id, url_id, url, page_title, subscribed_or_unsubscribed, opts) + def update_user_notification_page_subscription_status(opts = {}) + data, _status_code, _headers = update_user_notification_page_subscription_status_with_http_info(opts) data end # Enable or disable notifications for a page. When users are subscribed to a page, notifications are created for new root comments, and also - # @param tenant_id [String] - # @param url_id [String] - # @param url [String] - # @param page_title [String] - # @param subscribed_or_unsubscribed [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :url_id (required) + # @option opts [String] :url (required) + # @option opts [String] :page_title (required) + # @option opts [String] :subscribed_or_unsubscribed (required) # @option opts [String] :sso # @return [Array<(UpdateUserNotificationPageSubscriptionStatusResponse, Integer, Hash)>] UpdateUserNotificationPageSubscriptionStatusResponse data, response status code and response headers - def update_user_notification_page_subscription_status_with_http_info(tenant_id, url_id, url, page_title, subscribed_or_unsubscribed, opts = {}) + def update_user_notification_page_subscription_status_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.update_user_notification_page_subscription_status ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + url_id = opts[:'url_id'] + url = opts[:'url'] + page_title = opts[:'page_title'] + subscribed_or_unsubscribed = opts[:'subscribed_or_unsubscribed'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.update_user_notification_page_subscription_status" @@ -3789,27 +3955,31 @@ def update_user_notification_page_subscription_status_with_http_info(tenant_id, return data, status_code, headers end - # @param tenant_id [String] - # @param notification_id [String] - # @param new_status [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :notification_id (required) + # @option opts [String] :new_status (required) # @option opts [String] :sso # @return [UpdateUserNotificationStatusResponse] - def update_user_notification_status(tenant_id, notification_id, new_status, opts = {}) - data, _status_code, _headers = update_user_notification_status_with_http_info(tenant_id, notification_id, new_status, opts) + def update_user_notification_status(opts = {}) + data, _status_code, _headers = update_user_notification_status_with_http_info(opts) data end - # @param tenant_id [String] - # @param notification_id [String] - # @param new_status [String] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :notification_id (required) + # @option opts [String] :new_status (required) # @option opts [String] :sso # @return [Array<(UpdateUserNotificationStatusResponse, Integer, Hash)>] UpdateUserNotificationStatusResponse data, response status code and response headers - def update_user_notification_status_with_http_info(tenant_id, notification_id, new_status, opts = {}) + def update_user_notification_status_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.update_user_notification_status ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + notification_id = opts[:'notification_id'] + new_status = opts[:'new_status'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.update_user_notification_status" @@ -3870,28 +4040,31 @@ def update_user_notification_status_with_http_info(tenant_id, notification_id, n end # Upload and resize an image - # @param tenant_id [String] - # @param file [File] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [File] :file (required) # @option opts [SizePreset] :size_preset Size preset: \"Default\" (1000x1000px) or \"CrossPlatform\" (creates sizes for popular devices) # @option opts [String] :url_id Page id that upload is happening from, to configure # @return [UploadImageResponse] - def upload_image(tenant_id, file, opts = {}) - data, _status_code, _headers = upload_image_with_http_info(tenant_id, file, opts) + def upload_image(opts = {}) + data, _status_code, _headers = upload_image_with_http_info(opts) data end # Upload and resize an image - # @param tenant_id [String] - # @param file [File] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [File] :file (required) # @option opts [SizePreset] :size_preset Size preset: \"Default\" (1000x1000px) or \"CrossPlatform\" (creates sizes for popular devices) # @option opts [String] :url_id Page id that upload is happening from, to configure # @return [Array<(UploadImageResponse, Integer, Hash)>] UploadImageResponse data, response status code and response headers - def upload_image_with_http_info(tenant_id, file, opts = {}) + def upload_image_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.upload_image ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + file = opts[:'file'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.upload_image" @@ -3948,33 +4121,39 @@ def upload_image_with_http_info(tenant_id, file, opts = {}) return data, status_code, headers end - # @param tenant_id [String] - # @param comment_id [String] - # @param url_id [String] - # @param broadcast_id [String] - # @param vote_body_params [VoteBodyParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) + # @option opts [String] :url_id (required) + # @option opts [String] :broadcast_id (required) + # @option opts [VoteBodyParams] :vote_body_params (required) # @option opts [String] :session_id # @option opts [String] :sso # @return [VoteResponse] - def vote_comment(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts = {}) - data, _status_code, _headers = vote_comment_with_http_info(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts) + def vote_comment(opts = {}) + data, _status_code, _headers = vote_comment_with_http_info(opts) data end - # @param tenant_id [String] - # @param comment_id [String] - # @param url_id [String] - # @param broadcast_id [String] - # @param vote_body_params [VoteBodyParams] - # @param [Hash] opts the optional parameters + # @param [Hash] opts the parameters + # @option opts [String] :tenant_id (required) + # @option opts [String] :comment_id (required) + # @option opts [String] :url_id (required) + # @option opts [String] :broadcast_id (required) + # @option opts [VoteBodyParams] :vote_body_params (required) # @option opts [String] :session_id # @option opts [String] :sso # @return [Array<(VoteResponse, Integer, Hash)>] VoteResponse data, response status code and response headers - def vote_comment_with_http_info(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts = {}) + def vote_comment_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.vote_comment ...' end + # unbox the parameters from the hash + tenant_id = opts[:'tenant_id'] + comment_id = opts[:'comment_id'] + url_id = opts[:'url_id'] + broadcast_id = opts[:'broadcast_id'] + vote_body_params = opts[:'vote_body_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.vote_comment" diff --git a/client/spec/api/moderation_api_spec.rb b/client/spec/api/moderation_api_spec.rb index 7465c71..79efbf4 100644 --- a/client/spec/api/moderation_api_spec.rb +++ b/client/spec/api/moderation_api_spec.rb @@ -36,8 +36,8 @@ # @param comment_id # @param vote_id # @param [Hash] opts the optional parameters - # @option opts [String] :broadcast_id # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [VoteDeleteResponse] describe 'delete_moderation_vote test' do @@ -335,8 +335,8 @@ # @param comment_id # @param adjust_comment_votes_params # @param [Hash] opts the optional parameters - # @option opts [String] :broadcast_id # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [AdjustVotesResponse] describe 'post_adjust_comment_votes test' do @@ -423,8 +423,8 @@ # unit tests for post_flag_comment # @param comment_id # @param [Hash] opts the optional parameters - # @option opts [String] :broadcast_id # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] describe 'post_flag_comment test' do @@ -436,8 +436,8 @@ # unit tests for post_remove_comment # @param comment_id # @param [Hash] opts the optional parameters - # @option opts [String] :broadcast_id # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [PostRemoveCommentResponse] describe 'post_remove_comment test' do @@ -449,8 +449,8 @@ # unit tests for post_restore_deleted_comment # @param comment_id # @param [Hash] opts the optional parameters - # @option opts [String] :broadcast_id # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] describe 'post_restore_deleted_comment test' do @@ -463,8 +463,8 @@ # @param comment_id # @param [Hash] opts the optional parameters # @option opts [Boolean] :approved - # @option opts [String] :broadcast_id # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [SetCommentApprovedResponse] describe 'post_set_comment_approval_status test' do @@ -477,8 +477,8 @@ # @param comment_id # @param [Hash] opts the optional parameters # @option opts [Boolean] :reviewed - # @option opts [String] :broadcast_id # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] describe 'post_set_comment_review_status test' do @@ -492,8 +492,8 @@ # @param [Hash] opts the optional parameters # @option opts [Boolean] :spam # @option opts [Boolean] :perm_not_spam - # @option opts [String] :broadcast_id # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] describe 'post_set_comment_spam_status test' do @@ -506,8 +506,8 @@ # @param comment_id # @param set_comment_text_params # @param [Hash] opts the optional parameters - # @option opts [String] :broadcast_id # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [SetCommentTextResponse] describe 'post_set_comment_text test' do @@ -519,8 +519,8 @@ # unit tests for post_un_flag_comment # @param comment_id # @param [Hash] opts the optional parameters - # @option opts [String] :broadcast_id # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] describe 'post_un_flag_comment test' do @@ -533,8 +533,8 @@ # @param comment_id # @param [Hash] opts the optional parameters # @option opts [String] :direction - # @option opts [String] :broadcast_id # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [VoteResponse] describe 'post_vote test' do @@ -548,8 +548,8 @@ # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :comment_id - # @option opts [String] :broadcast_id # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [AwardUserBadgeResponse] describe 'put_award_badge test' do @@ -575,8 +575,8 @@ # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :comment_id - # @option opts [String] :broadcast_id # @option opts [String] :tenant_id + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [RemoveUserBadgeResponse] describe 'put_remove_badge test' do diff --git a/config.json b/config.json index e8721e1..a74ae95 100644 --- a/config.json +++ b/config.json @@ -1,5 +1,6 @@ { "gemName": "fastcomments-client", "moduleName": "FastCommentsClient", - "gemVersion": "2.0.1" + "gemVersion": "2.0.1", + "useSingleRequestParameter": true } diff --git a/openapi.json b/openapi.json index 0f72c9c..9ed89a9 100644 --- a/openapi.json +++ b/openapi.json @@ -14304,7 +14304,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -14312,7 +14312,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -14369,7 +14369,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -14377,7 +14377,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -14434,7 +14434,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -14442,7 +14442,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -14499,7 +14499,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -14507,7 +14507,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -14572,7 +14572,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -14580,7 +14580,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -14653,7 +14653,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -14661,7 +14661,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -14726,7 +14726,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -14734,7 +14734,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -15094,7 +15094,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -15102,7 +15102,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -15169,7 +15169,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -15177,7 +15177,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -15252,7 +15252,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -15260,7 +15260,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -15325,7 +15325,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -15333,7 +15333,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -15626,7 +15626,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -15634,7 +15634,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -15707,7 +15707,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -15715,7 +15715,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" diff --git a/spec/sso_integration_spec.rb b/spec/sso_integration_spec.rb index 98ddf1c..34f276c 100644 --- a/spec/sso_integration_spec.rb +++ b/spec/sso_integration_spec.rb @@ -61,9 +61,9 @@ def get_tenant_id sso_token = sso.create_token response = public_api.get_comments_public( - TENANT_ID, - 'sdk-test-page-secure', - { sso: sso_token } + tenant_id: TENANT_ID, + url_id: 'sdk-test-page-secure', + sso: sso_token ) expect(response).not_to be_nil @@ -83,11 +83,11 @@ def get_tenant_id } response = public_api.create_comment_public( - TENANT_ID, - 'sdk-test-page-secure-comment', - "test-#{timestamp}", - comment_data, - { sso: sso_token } + tenant_id: TENANT_ID, + url_id: 'sdk-test-page-secure-comment', + broadcast_id: "test-#{timestamp}", + comment_data: comment_data, + sso: sso_token ) expect(response).not_to be_nil @@ -110,15 +110,16 @@ def get_tenant_id display_name: mock_secure_user.username }) - default_api.add_sso_user(TENANT_ID, user_data) + default_api.add_sso_user( + tenant_id: TENANT_ID, + create_apisso_user_data: user_data + ) # Then get comments with that user's context response = default_api.get_comments( - TENANT_ID, - { - url_id: 'sdk-test-page-secure-admin', - context_user_id: mock_secure_user.user_id - } + tenant_id: TENANT_ID, + url_id: 'sdk-test-page-secure-admin', + context_user_id: mock_secure_user.user_id ) expect(response).not_to be_nil @@ -131,9 +132,9 @@ def get_tenant_id sso_token = sso.create_token response = public_api.get_comments_public( - TENANT_ID, - 'sdk-test-page-simple', - { sso: sso_token } + tenant_id: TENANT_ID, + url_id: 'sdk-test-page-simple', + sso: sso_token ) expect(response).not_to be_nil @@ -153,11 +154,11 @@ def get_tenant_id } response = public_api.create_comment_public( - TENANT_ID, - 'sdk-test-page-simple-comment', - "test-#{timestamp}", - comment_data, - { sso: sso_token } + tenant_id: TENANT_ID, + url_id: 'sdk-test-page-simple-comment', + broadcast_id: "test-#{timestamp}", + comment_data: comment_data, + sso: sso_token ) expect(response).not_to be_nil @@ -171,9 +172,9 @@ def get_tenant_id expect { public_api.get_comments_public( - 'invalid-tenant-123', - 'sdk-test-page-secure', - { sso: sso_token } + tenant_id: 'invalid-tenant-123', + url_id: 'sdk-test-page-secure', + sso: sso_token ) }.to raise_error(FastCommentsClient::ApiError) do |error| expect(error.code).to be >= 400 From 8b0e9c0780f6c88116d155740f3e72071f7f6e28 Mon Sep 17 00:00:00 2001 From: winrid Date: Tue, 23 Jun 2026 00:25:46 -0700 Subject: [PATCH 5/9] Regenerate: required params + body positional, optionals in one object API methods now take required params + body positionally, with optional params in the opts hash (was: everything in opts). Updated SSO spec + README. --- README.md | 14 +- client/docs/DefaultApi.md | 1780 ++++++------ client/docs/ModerationApi.md | 590 ++-- client/docs/PublicApi.md | 912 +++---- .../fastcomments-client/api/default_api.rb | 2393 +++++++---------- .../fastcomments-client/api/moderation_api.rb | 516 ++-- .../lib/fastcomments-client/api/public_api.rb | 1195 ++++---- spec/sso_integration_spec.rb | 34 +- 8 files changed, 3357 insertions(+), 4077 deletions(-) diff --git a/README.md b/README.md index 1abe844..52081be 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ begin displayName: 'John Doe' } - response = api.add_sso_user(tenant_id: 'YOUR_TENANT_ID', create_apisso_user_data: user_data) + response = api.add_sso_user('YOUR_TENANT_ID', user_data) puts "User created: #{response}" rescue FastCommentsClient::ApiError => e @@ -86,8 +86,8 @@ public_api = FastCommentsClient::PublicApi.new begin response = public_api.get_comments_public( - tenant_id: 'YOUR_TENANT_ID', - url_id: 'page-url-id' + 'YOUR_TENANT_ID', + 'page-url-id' ) puts response rescue FastCommentsClient::ApiError => e @@ -157,8 +157,8 @@ api_client = FastCommentsClient::ApiClient.new(config) public_api = FastCommentsClient::PublicApi.new(api_client) response = public_api.get_comments_public( - tenant_id: 'your-tenant-id', - url_id: 'your-page-url-id', + 'your-tenant-id', + 'your-page-url-id', sso: token ) @@ -190,8 +190,8 @@ api_client = FastCommentsClient::ApiClient.new(config) public_api = FastCommentsClient::PublicApi.new(api_client) response = public_api.get_comments_public( - tenant_id: 'your-tenant-id', - url_id: 'your-page-url-id', + 'your-tenant-id', + 'your-page-url-id', sso: token ) diff --git a/client/docs/DefaultApi.md b/client/docs/DefaultApi.md index 6e1b4c6..bf80ed2 100644 --- a/client/docs/DefaultApi.md +++ b/client/docs/DefaultApi.md @@ -122,7 +122,7 @@ All URIs are relative to *https://fastcomments.com* ## add_domain_config -> add_domain_config(opts) +> add_domain_config(tenant_id, add_domain_config_params, opts) @@ -140,14 +140,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - add_domain_config_params: FastCommentsClient::AddDomainConfigParams.new({domain: 'domain_example'}), # AddDomainConfigParams | (required) -} +tenant_id = 'tenant_id_example' # String | +add_domain_config_params = FastCommentsClient::AddDomainConfigParams.new({domain: 'domain_example'}) # AddDomainConfigParams | begin - result = api_instance.add_domain_config(opts) + result = api_instance.add_domain_config(tenant_id, add_domain_config_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->add_domain_config: #{e}" @@ -158,12 +156,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> add_domain_config_with_http_info(opts) +> , Integer, Hash)> add_domain_config_with_http_info(tenant_id, add_domain_config_params, opts) ```ruby begin - data, status_code, headers = api_instance.add_domain_config_with_http_info(opts) + data, status_code, headers = api_instance.add_domain_config_with_http_info(tenant_id, add_domain_config_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -195,7 +193,7 @@ end ## add_hash_tag -> add_hash_tag(opts) +> add_hash_tag(create_hash_tag_body, opts) @@ -213,14 +211,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +create_hash_tag_body = FastCommentsClient::CreateHashTagBody.new({tag: 'tag_example'}) # CreateHashTagBody | opts = { - tenant_id: 'tenant_id_example', # String | - create_hash_tag_body: FastCommentsClient::CreateHashTagBody.new({tag: 'tag_example'}), # CreateHashTagBody | + tenant_id: 'tenant_id_example' # String | } begin - result = api_instance.add_hash_tag(opts) + result = api_instance.add_hash_tag(create_hash_tag_body, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->add_hash_tag: #{e}" @@ -231,12 +229,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> add_hash_tag_with_http_info(opts) +> , Integer, Hash)> add_hash_tag_with_http_info(create_hash_tag_body, opts) ```ruby begin - data, status_code, headers = api_instance.add_hash_tag_with_http_info(opts) + data, status_code, headers = api_instance.add_hash_tag_with_http_info(create_hash_tag_body, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -268,7 +266,7 @@ end ## add_hash_tags_bulk -> add_hash_tags_bulk(opts) +> add_hash_tags_bulk(bulk_create_hash_tags_body, opts) @@ -286,14 +284,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +bulk_create_hash_tags_body = FastCommentsClient::BulkCreateHashTagsBody.new({tags: [FastCommentsClient::BulkCreateHashTagsBodyTagsInner.new({tag: 'tag_example'})]}) # BulkCreateHashTagsBody | opts = { - tenant_id: 'tenant_id_example', # String | - bulk_create_hash_tags_body: FastCommentsClient::BulkCreateHashTagsBody.new({tags: [FastCommentsClient::BulkCreateHashTagsBodyTagsInner.new({tag: 'tag_example'})]}), # BulkCreateHashTagsBody | + tenant_id: 'tenant_id_example' # String | } begin - result = api_instance.add_hash_tags_bulk(opts) + result = api_instance.add_hash_tags_bulk(bulk_create_hash_tags_body, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->add_hash_tags_bulk: #{e}" @@ -304,12 +302,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> add_hash_tags_bulk_with_http_info(opts) +> , Integer, Hash)> add_hash_tags_bulk_with_http_info(bulk_create_hash_tags_body, opts) ```ruby begin - data, status_code, headers = api_instance.add_hash_tags_bulk_with_http_info(opts) + data, status_code, headers = api_instance.add_hash_tags_bulk_with_http_info(bulk_create_hash_tags_body, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -341,7 +339,7 @@ end ## add_page -> add_page(opts) +> add_page(tenant_id, create_api_page_data, opts) @@ -359,14 +357,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - create_api_page_data: FastCommentsClient::CreateAPIPageData.new({title: 'title_example', url: 'url_example', url_id: 'url_id_example'}), # CreateAPIPageData | (required) -} +tenant_id = 'tenant_id_example' # String | +create_api_page_data = FastCommentsClient::CreateAPIPageData.new({title: 'title_example', url: 'url_example', url_id: 'url_id_example'}) # CreateAPIPageData | begin - result = api_instance.add_page(opts) + result = api_instance.add_page(tenant_id, create_api_page_data, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->add_page: #{e}" @@ -377,12 +373,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> add_page_with_http_info(opts) +> , Integer, Hash)> add_page_with_http_info(tenant_id, create_api_page_data, opts) ```ruby begin - data, status_code, headers = api_instance.add_page_with_http_info(opts) + data, status_code, headers = api_instance.add_page_with_http_info(tenant_id, create_api_page_data, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -414,7 +410,7 @@ end ## add_sso_user -> add_sso_user(opts) +> add_sso_user(tenant_id, create_apisso_user_data, opts) @@ -432,14 +428,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - create_apisso_user_data: FastCommentsClient::CreateAPISSOUserData.new({email: 'email_example', username: 'username_example', id: 'id_example'}), # CreateAPISSOUserData | (required) -} +tenant_id = 'tenant_id_example' # String | +create_apisso_user_data = FastCommentsClient::CreateAPISSOUserData.new({email: 'email_example', username: 'username_example', id: 'id_example'}) # CreateAPISSOUserData | begin - result = api_instance.add_sso_user(opts) + result = api_instance.add_sso_user(tenant_id, create_apisso_user_data, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->add_sso_user: #{e}" @@ -450,12 +444,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> add_sso_user_with_http_info(opts) +> , Integer, Hash)> add_sso_user_with_http_info(tenant_id, create_apisso_user_data, opts) ```ruby begin - data, status_code, headers = api_instance.add_sso_user_with_http_info(opts) + data, status_code, headers = api_instance.add_sso_user_with_http_info(tenant_id, create_apisso_user_data, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -487,7 +481,7 @@ end ## aggregate -> aggregate(opts) +> aggregate(tenant_id, aggregation_request, opts) @@ -507,16 +501,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +aggregation_request = FastCommentsClient::AggregationRequest.new({resource_name: 'resource_name_example', operations: [FastCommentsClient::AggregationOperation.new({field: 'field_example', op: FastCommentsClient::AggregationOpType::SUM})]}) # AggregationRequest | opts = { - tenant_id: 'tenant_id_example', # String | (required) - aggregation_request: FastCommentsClient::AggregationRequest.new({resource_name: 'resource_name_example', operations: [FastCommentsClient::AggregationOperation.new({field: 'field_example', op: FastCommentsClient::AggregationOpType::SUM})]}), # AggregationRequest | (required) - parent_tenant_id: 'parent_tenant_id_example', # String | - include_stats: true, # Boolean | + parent_tenant_id: 'parent_tenant_id_example', # String | + include_stats: true # Boolean | } begin - result = api_instance.aggregate(opts) + result = api_instance.aggregate(tenant_id, aggregation_request, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->aggregate: #{e}" @@ -527,12 +521,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> aggregate_with_http_info(opts) +> , Integer, Hash)> aggregate_with_http_info(tenant_id, aggregation_request, opts) ```ruby begin - data, status_code, headers = api_instance.aggregate_with_http_info(opts) + data, status_code, headers = api_instance.aggregate_with_http_info(tenant_id, aggregation_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -566,7 +560,7 @@ end ## aggregate_question_results -> aggregate_question_results(opts) +> aggregate_question_results(tenant_id, opts) @@ -584,19 +578,19 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - question_id: 'question_id_example', # String | - question_ids: ['inner_example'], # Array | - url_id: 'url_id_example', # String | - time_bucket: FastCommentsClient::AggregateTimeBucket::DAY, # AggregateTimeBucket | - start_date: Time.parse('2013-10-20T19:20:30+01:00'), # Time | - force_recalculate: true, # Boolean | + question_id: 'question_id_example', # String | + question_ids: ['inner_example'], # Array | + url_id: 'url_id_example', # String | + time_bucket: FastCommentsClient::AggregateTimeBucket::DAY, # AggregateTimeBucket | + start_date: Time.parse('2013-10-20T19:20:30+01:00'), # Time | + force_recalculate: true # Boolean | } begin - result = api_instance.aggregate_question_results(opts) + result = api_instance.aggregate_question_results(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->aggregate_question_results: #{e}" @@ -607,12 +601,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> aggregate_question_results_with_http_info(opts) +> , Integer, Hash)> aggregate_question_results_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.aggregate_question_results_with_http_info(opts) + data, status_code, headers = api_instance.aggregate_question_results_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -649,7 +643,7 @@ end ## block_user_from_comment -> block_user_from_comment(opts) +> block_user_from_comment(tenant_id, id, block_from_comment_params, opts) @@ -667,17 +661,17 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | +block_from_comment_params = FastCommentsClient::BlockFromCommentParams.new # BlockFromCommentParams | opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - block_from_comment_params: FastCommentsClient::BlockFromCommentParams.new, # BlockFromCommentParams | (required) - user_id: 'user_id_example', # String | - anon_user_id: 'anon_user_id_example', # String | + user_id: 'user_id_example', # String | + anon_user_id: 'anon_user_id_example' # String | } begin - result = api_instance.block_user_from_comment(opts) + result = api_instance.block_user_from_comment(tenant_id, id, block_from_comment_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->block_user_from_comment: #{e}" @@ -688,12 +682,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> block_user_from_comment_with_http_info(opts) +> , Integer, Hash)> block_user_from_comment_with_http_info(tenant_id, id, block_from_comment_params, opts) ```ruby begin - data, status_code, headers = api_instance.block_user_from_comment_with_http_info(opts) + data, status_code, headers = api_instance.block_user_from_comment_with_http_info(tenant_id, id, block_from_comment_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -728,7 +722,7 @@ end ## bulk_aggregate_question_results -> bulk_aggregate_question_results(opts) +> bulk_aggregate_question_results(tenant_id, bulk_aggregate_question_results_request, opts) @@ -746,15 +740,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +bulk_aggregate_question_results_request = FastCommentsClient::BulkAggregateQuestionResultsRequest.new({aggregations: [FastCommentsClient::BulkAggregateQuestionItem.new({agg_id: 'agg_id_example'})]}) # BulkAggregateQuestionResultsRequest | opts = { - tenant_id: 'tenant_id_example', # String | (required) - bulk_aggregate_question_results_request: FastCommentsClient::BulkAggregateQuestionResultsRequest.new({aggregations: [FastCommentsClient::BulkAggregateQuestionItem.new({agg_id: 'agg_id_example'})]}), # BulkAggregateQuestionResultsRequest | (required) - force_recalculate: true, # Boolean | + force_recalculate: true # Boolean | } begin - result = api_instance.bulk_aggregate_question_results(opts) + result = api_instance.bulk_aggregate_question_results(tenant_id, bulk_aggregate_question_results_request, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->bulk_aggregate_question_results: #{e}" @@ -765,12 +759,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> bulk_aggregate_question_results_with_http_info(opts) +> , Integer, Hash)> bulk_aggregate_question_results_with_http_info(tenant_id, bulk_aggregate_question_results_request, opts) ```ruby begin - data, status_code, headers = api_instance.bulk_aggregate_question_results_with_http_info(opts) + data, status_code, headers = api_instance.bulk_aggregate_question_results_with_http_info(tenant_id, bulk_aggregate_question_results_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -803,7 +797,7 @@ end ## change_ticket_state -> change_ticket_state(opts) +> change_ticket_state(tenant_id, user_id, id, change_ticket_state_body, opts) @@ -821,16 +815,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - user_id: 'user_id_example', # String | (required) - id: 'id_example', # String | (required) - change_ticket_state_body: FastCommentsClient::ChangeTicketStateBody.new({state: 37}), # ChangeTicketStateBody | (required) -} +tenant_id = 'tenant_id_example' # String | +user_id = 'user_id_example' # String | +id = 'id_example' # String | +change_ticket_state_body = FastCommentsClient::ChangeTicketStateBody.new({state: 37}) # ChangeTicketStateBody | begin - result = api_instance.change_ticket_state(opts) + result = api_instance.change_ticket_state(tenant_id, user_id, id, change_ticket_state_body, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->change_ticket_state: #{e}" @@ -841,12 +833,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> change_ticket_state_with_http_info(opts) +> , Integer, Hash)> change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_state_body, opts) ```ruby begin - data, status_code, headers = api_instance.change_ticket_state_with_http_info(opts) + data, status_code, headers = api_instance.change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_state_body, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -880,7 +872,7 @@ end ## combine_comments_with_question_results -> combine_comments_with_question_results(opts) +> combine_comments_with_question_results(tenant_id, opts) @@ -898,21 +890,21 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - question_id: 'question_id_example', # String | - question_ids: ['inner_example'], # Array | - url_id: 'url_id_example', # String | - start_date: Time.parse('2013-10-20T19:20:30+01:00'), # Time | - force_recalculate: true, # Boolean | - min_value: 1.2, # Float | - max_value: 1.2, # Float | - limit: 1.2, # Float | + question_id: 'question_id_example', # String | + question_ids: ['inner_example'], # Array | + url_id: 'url_id_example', # String | + start_date: Time.parse('2013-10-20T19:20:30+01:00'), # Time | + force_recalculate: true, # Boolean | + min_value: 1.2, # Float | + max_value: 1.2, # Float | + limit: 1.2 # Float | } begin - result = api_instance.combine_comments_with_question_results(opts) + result = api_instance.combine_comments_with_question_results(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->combine_comments_with_question_results: #{e}" @@ -923,12 +915,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> combine_comments_with_question_results_with_http_info(opts) +> , Integer, Hash)> combine_comments_with_question_results_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.combine_comments_with_question_results_with_http_info(opts) + data, status_code, headers = api_instance.combine_comments_with_question_results_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -967,7 +959,7 @@ end ## create_email_template -> create_email_template(opts) +> create_email_template(tenant_id, create_email_template_body, opts) @@ -985,14 +977,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - create_email_template_body: FastCommentsClient::CreateEmailTemplateBody.new({email_template_id: 'email_template_id_example', display_name: 'display_name_example', ejs: 'ejs_example'}), # CreateEmailTemplateBody | (required) -} +tenant_id = 'tenant_id_example' # String | +create_email_template_body = FastCommentsClient::CreateEmailTemplateBody.new({email_template_id: 'email_template_id_example', display_name: 'display_name_example', ejs: 'ejs_example'}) # CreateEmailTemplateBody | begin - result = api_instance.create_email_template(opts) + result = api_instance.create_email_template(tenant_id, create_email_template_body, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_email_template: #{e}" @@ -1003,12 +993,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_email_template_with_http_info(opts) +> , Integer, Hash)> create_email_template_with_http_info(tenant_id, create_email_template_body, opts) ```ruby begin - data, status_code, headers = api_instance.create_email_template_with_http_info(opts) + data, status_code, headers = api_instance.create_email_template_with_http_info(tenant_id, create_email_template_body, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1040,7 +1030,7 @@ end ## create_feed_post -> create_feed_post(opts) +> create_feed_post(tenant_id, create_feed_post_params, opts) @@ -1058,18 +1048,18 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +create_feed_post_params = FastCommentsClient::CreateFeedPostParams.new # CreateFeedPostParams | opts = { - tenant_id: 'tenant_id_example', # String | (required) - create_feed_post_params: FastCommentsClient::CreateFeedPostParams.new, # CreateFeedPostParams | (required) - broadcast_id: 'broadcast_id_example', # String | - is_live: true, # Boolean | - do_spam_check: true, # Boolean | - skip_dup_check: true, # Boolean | + broadcast_id: 'broadcast_id_example', # String | + is_live: true, # Boolean | + do_spam_check: true, # Boolean | + skip_dup_check: true # Boolean | } begin - result = api_instance.create_feed_post(opts) + result = api_instance.create_feed_post(tenant_id, create_feed_post_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_feed_post: #{e}" @@ -1080,12 +1070,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_feed_post_with_http_info(opts) +> , Integer, Hash)> create_feed_post_with_http_info(tenant_id, create_feed_post_params, opts) ```ruby begin - data, status_code, headers = api_instance.create_feed_post_with_http_info(opts) + data, status_code, headers = api_instance.create_feed_post_with_http_info(tenant_id, create_feed_post_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1121,7 +1111,7 @@ end ## create_moderator -> create_moderator(opts) +> create_moderator(tenant_id, create_moderator_body, opts) @@ -1139,14 +1129,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - create_moderator_body: FastCommentsClient::CreateModeratorBody.new({name: 'name_example', email: 'email_example'}), # CreateModeratorBody | (required) -} +tenant_id = 'tenant_id_example' # String | +create_moderator_body = FastCommentsClient::CreateModeratorBody.new({name: 'name_example', email: 'email_example'}) # CreateModeratorBody | begin - result = api_instance.create_moderator(opts) + result = api_instance.create_moderator(tenant_id, create_moderator_body, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_moderator: #{e}" @@ -1157,12 +1145,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_moderator_with_http_info(opts) +> , Integer, Hash)> create_moderator_with_http_info(tenant_id, create_moderator_body, opts) ```ruby begin - data, status_code, headers = api_instance.create_moderator_with_http_info(opts) + data, status_code, headers = api_instance.create_moderator_with_http_info(tenant_id, create_moderator_body, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1194,7 +1182,7 @@ end ## create_question_config -> create_question_config(opts) +> create_question_config(tenant_id, create_question_config_body, opts) @@ -1212,14 +1200,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - create_question_config_body: FastCommentsClient::CreateQuestionConfigBody.new({name: 'name_example', question: 'question_example', type: 'type_example', reporting_order: 3.56}), # CreateQuestionConfigBody | (required) -} +tenant_id = 'tenant_id_example' # String | +create_question_config_body = FastCommentsClient::CreateQuestionConfigBody.new({name: 'name_example', question: 'question_example', type: 'type_example', reporting_order: 3.56}) # CreateQuestionConfigBody | begin - result = api_instance.create_question_config(opts) + result = api_instance.create_question_config(tenant_id, create_question_config_body, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_question_config: #{e}" @@ -1230,12 +1216,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_question_config_with_http_info(opts) +> , Integer, Hash)> create_question_config_with_http_info(tenant_id, create_question_config_body, opts) ```ruby begin - data, status_code, headers = api_instance.create_question_config_with_http_info(opts) + data, status_code, headers = api_instance.create_question_config_with_http_info(tenant_id, create_question_config_body, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1267,7 +1253,7 @@ end ## create_question_result -> create_question_result(opts) +> create_question_result(tenant_id, create_question_result_body, opts) @@ -1285,14 +1271,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - create_question_result_body: FastCommentsClient::CreateQuestionResultBody.new({url_id: 'url_id_example', value: 3.56, question_id: 'question_id_example'}), # CreateQuestionResultBody | (required) -} +tenant_id = 'tenant_id_example' # String | +create_question_result_body = FastCommentsClient::CreateQuestionResultBody.new({url_id: 'url_id_example', value: 3.56, question_id: 'question_id_example'}) # CreateQuestionResultBody | begin - result = api_instance.create_question_result(opts) + result = api_instance.create_question_result(tenant_id, create_question_result_body, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_question_result: #{e}" @@ -1303,12 +1287,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_question_result_with_http_info(opts) +> , Integer, Hash)> create_question_result_with_http_info(tenant_id, create_question_result_body, opts) ```ruby begin - data, status_code, headers = api_instance.create_question_result_with_http_info(opts) + data, status_code, headers = api_instance.create_question_result_with_http_info(tenant_id, create_question_result_body, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1340,7 +1324,7 @@ end ## create_subscription -> create_subscription(opts) +> create_subscription(tenant_id, create_api_user_subscription_data, opts) @@ -1358,14 +1342,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - create_api_user_subscription_data: FastCommentsClient::CreateAPIUserSubscriptionData.new({url_id: 'url_id_example'}), # CreateAPIUserSubscriptionData | (required) -} +tenant_id = 'tenant_id_example' # String | +create_api_user_subscription_data = FastCommentsClient::CreateAPIUserSubscriptionData.new({url_id: 'url_id_example'}) # CreateAPIUserSubscriptionData | begin - result = api_instance.create_subscription(opts) + result = api_instance.create_subscription(tenant_id, create_api_user_subscription_data, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_subscription: #{e}" @@ -1376,12 +1358,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_subscription_with_http_info(opts) +> , Integer, Hash)> create_subscription_with_http_info(tenant_id, create_api_user_subscription_data, opts) ```ruby begin - data, status_code, headers = api_instance.create_subscription_with_http_info(opts) + data, status_code, headers = api_instance.create_subscription_with_http_info(tenant_id, create_api_user_subscription_data, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1413,7 +1395,7 @@ end ## create_tenant -> create_tenant(opts) +> create_tenant(tenant_id, create_tenant_body, opts) @@ -1431,14 +1413,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - create_tenant_body: FastCommentsClient::CreateTenantBody.new({name: 'name_example', domain_configuration: [FastCommentsClient::APIDomainConfiguration.new({id: 'id_example', domain: 'domain_example', created_at: Time.now})]}), # CreateTenantBody | (required) -} +tenant_id = 'tenant_id_example' # String | +create_tenant_body = FastCommentsClient::CreateTenantBody.new({name: 'name_example', domain_configuration: [FastCommentsClient::APIDomainConfiguration.new({id: 'id_example', domain: 'domain_example', created_at: Time.now})]}) # CreateTenantBody | begin - result = api_instance.create_tenant(opts) + result = api_instance.create_tenant(tenant_id, create_tenant_body, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_tenant: #{e}" @@ -1449,12 +1429,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_tenant_with_http_info(opts) +> , Integer, Hash)> create_tenant_with_http_info(tenant_id, create_tenant_body, opts) ```ruby begin - data, status_code, headers = api_instance.create_tenant_with_http_info(opts) + data, status_code, headers = api_instance.create_tenant_with_http_info(tenant_id, create_tenant_body, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1486,7 +1466,7 @@ end ## create_tenant_package -> create_tenant_package(opts) +> create_tenant_package(tenant_id, create_tenant_package_body, opts) @@ -1504,14 +1484,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - create_tenant_package_body: FastCommentsClient::CreateTenantPackageBody.new({name: 'name_example', max_monthly_page_loads: 3.56, max_monthly_api_credits: 3.56, max_monthly_comments: 3.56, max_concurrent_users: 3.56, max_tenant_users: 3.56, max_sso_users: 3.56, max_moderators: 3.56, max_domains: 3.56, has_debranding: false, for_who_text: 'for_who_text_example', feature_taglines: ['feature_taglines_example'], has_flex_pricing: false}), # CreateTenantPackageBody | (required) -} +tenant_id = 'tenant_id_example' # String | +create_tenant_package_body = FastCommentsClient::CreateTenantPackageBody.new({name: 'name_example', max_monthly_page_loads: 3.56, max_monthly_api_credits: 3.56, max_monthly_comments: 3.56, max_concurrent_users: 3.56, max_tenant_users: 3.56, max_sso_users: 3.56, max_moderators: 3.56, max_domains: 3.56, has_debranding: false, for_who_text: 'for_who_text_example', feature_taglines: ['feature_taglines_example'], has_flex_pricing: false}) # CreateTenantPackageBody | begin - result = api_instance.create_tenant_package(opts) + result = api_instance.create_tenant_package(tenant_id, create_tenant_package_body, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_tenant_package: #{e}" @@ -1522,12 +1500,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_tenant_package_with_http_info(opts) +> , Integer, Hash)> create_tenant_package_with_http_info(tenant_id, create_tenant_package_body, opts) ```ruby begin - data, status_code, headers = api_instance.create_tenant_package_with_http_info(opts) + data, status_code, headers = api_instance.create_tenant_package_with_http_info(tenant_id, create_tenant_package_body, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1559,7 +1537,7 @@ end ## create_tenant_user -> create_tenant_user(opts) +> create_tenant_user(tenant_id, create_tenant_user_body, opts) @@ -1577,14 +1555,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - create_tenant_user_body: FastCommentsClient::CreateTenantUserBody.new({username: 'username_example', email: 'email_example'}), # CreateTenantUserBody | (required) -} +tenant_id = 'tenant_id_example' # String | +create_tenant_user_body = FastCommentsClient::CreateTenantUserBody.new({username: 'username_example', email: 'email_example'}) # CreateTenantUserBody | begin - result = api_instance.create_tenant_user(opts) + result = api_instance.create_tenant_user(tenant_id, create_tenant_user_body, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_tenant_user: #{e}" @@ -1595,12 +1571,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_tenant_user_with_http_info(opts) +> , Integer, Hash)> create_tenant_user_with_http_info(tenant_id, create_tenant_user_body, opts) ```ruby begin - data, status_code, headers = api_instance.create_tenant_user_with_http_info(opts) + data, status_code, headers = api_instance.create_tenant_user_with_http_info(tenant_id, create_tenant_user_body, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1632,7 +1608,7 @@ end ## create_ticket -> create_ticket(opts) +> create_ticket(tenant_id, user_id, create_ticket_body, opts) @@ -1650,15 +1626,13 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - user_id: 'user_id_example', # String | (required) - create_ticket_body: FastCommentsClient::CreateTicketBody.new({subject: 'subject_example'}), # CreateTicketBody | (required) -} +tenant_id = 'tenant_id_example' # String | +user_id = 'user_id_example' # String | +create_ticket_body = FastCommentsClient::CreateTicketBody.new({subject: 'subject_example'}) # CreateTicketBody | begin - result = api_instance.create_ticket(opts) + result = api_instance.create_ticket(tenant_id, user_id, create_ticket_body, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_ticket: #{e}" @@ -1669,12 +1643,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_ticket_with_http_info(opts) +> , Integer, Hash)> create_ticket_with_http_info(tenant_id, user_id, create_ticket_body, opts) ```ruby begin - data, status_code, headers = api_instance.create_ticket_with_http_info(opts) + data, status_code, headers = api_instance.create_ticket_with_http_info(tenant_id, user_id, create_ticket_body, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1707,7 +1681,7 @@ end ## create_user_badge -> create_user_badge(opts) +> create_user_badge(tenant_id, create_user_badge_params, opts) @@ -1725,14 +1699,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - create_user_badge_params: FastCommentsClient::CreateUserBadgeParams.new({user_id: 'user_id_example', badge_id: 'badge_id_example'}), # CreateUserBadgeParams | (required) -} +tenant_id = 'tenant_id_example' # String | +create_user_badge_params = FastCommentsClient::CreateUserBadgeParams.new({user_id: 'user_id_example', badge_id: 'badge_id_example'}) # CreateUserBadgeParams | begin - result = api_instance.create_user_badge(opts) + result = api_instance.create_user_badge(tenant_id, create_user_badge_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_user_badge: #{e}" @@ -1743,12 +1715,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_user_badge_with_http_info(opts) +> , Integer, Hash)> create_user_badge_with_http_info(tenant_id, create_user_badge_params, opts) ```ruby begin - data, status_code, headers = api_instance.create_user_badge_with_http_info(opts) + data, status_code, headers = api_instance.create_user_badge_with_http_info(tenant_id, create_user_badge_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1780,7 +1752,7 @@ end ## create_vote -> create_vote(opts) +> create_vote(tenant_id, comment_id, direction, opts) @@ -1798,17 +1770,17 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +comment_id = 'comment_id_example' # String | +direction = 'up' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - comment_id: 'comment_id_example', # String | (required) - direction: 'up', # String | (required) - user_id: 'user_id_example', # String | - anon_user_id: 'anon_user_id_example', # String | + user_id: 'user_id_example', # String | + anon_user_id: 'anon_user_id_example' # String | } begin - result = api_instance.create_vote(opts) + result = api_instance.create_vote(tenant_id, comment_id, direction, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_vote: #{e}" @@ -1819,12 +1791,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_vote_with_http_info(opts) +> , Integer, Hash)> create_vote_with_http_info(tenant_id, comment_id, direction, opts) ```ruby begin - data, status_code, headers = api_instance.create_vote_with_http_info(opts) + data, status_code, headers = api_instance.create_vote_with_http_info(tenant_id, comment_id, direction, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1859,7 +1831,7 @@ end ## delete_comment -> delete_comment(opts) +> delete_comment(tenant_id, id, opts) @@ -1877,16 +1849,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - context_user_id: 'context_user_id_example', # String | - is_live: true, # Boolean | + context_user_id: 'context_user_id_example', # String | + is_live: true # Boolean | } begin - result = api_instance.delete_comment(opts) + result = api_instance.delete_comment(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_comment: #{e}" @@ -1897,12 +1869,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_comment_with_http_info(opts) +> , Integer, Hash)> delete_comment_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.delete_comment_with_http_info(opts) + data, status_code, headers = api_instance.delete_comment_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1936,7 +1908,7 @@ end ## delete_domain_config -> delete_domain_config(opts) +> delete_domain_config(tenant_id, domain, opts) @@ -1954,14 +1926,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - domain: 'domain_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +domain = 'domain_example' # String | begin - result = api_instance.delete_domain_config(opts) + result = api_instance.delete_domain_config(tenant_id, domain, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_domain_config: #{e}" @@ -1972,12 +1942,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_domain_config_with_http_info(opts) +> , Integer, Hash)> delete_domain_config_with_http_info(tenant_id, domain, opts) ```ruby begin - data, status_code, headers = api_instance.delete_domain_config_with_http_info(opts) + data, status_code, headers = api_instance.delete_domain_config_with_http_info(tenant_id, domain, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2009,7 +1979,7 @@ end ## delete_email_template -> delete_email_template(opts) +> delete_email_template(tenant_id, id, opts) @@ -2027,14 +1997,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | begin - result = api_instance.delete_email_template(opts) + result = api_instance.delete_email_template(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_email_template: #{e}" @@ -2045,12 +2013,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_email_template_with_http_info(opts) +> , Integer, Hash)> delete_email_template_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.delete_email_template_with_http_info(opts) + data, status_code, headers = api_instance.delete_email_template_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2082,7 +2050,7 @@ end ## delete_email_template_render_error -> delete_email_template_render_error(opts) +> delete_email_template_render_error(tenant_id, id, error_id, opts) @@ -2100,15 +2068,13 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - error_id: 'error_id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | +error_id = 'error_id_example' # String | begin - result = api_instance.delete_email_template_render_error(opts) + result = api_instance.delete_email_template_render_error(tenant_id, id, error_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_email_template_render_error: #{e}" @@ -2119,12 +2085,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_email_template_render_error_with_http_info(opts) +> , Integer, Hash)> delete_email_template_render_error_with_http_info(tenant_id, id, error_id, opts) ```ruby begin - data, status_code, headers = api_instance.delete_email_template_render_error_with_http_info(opts) + data, status_code, headers = api_instance.delete_email_template_render_error_with_http_info(tenant_id, id, error_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2157,7 +2123,7 @@ end ## delete_hash_tag -> delete_hash_tag(opts) +> delete_hash_tag(tag, delete_hash_tag_request_body, opts) @@ -2175,15 +2141,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tag = 'tag_example' # String | +delete_hash_tag_request_body = FastCommentsClient::DeleteHashTagRequestBody.new # DeleteHashTagRequestBody | opts = { - tag: 'tag_example', # String | (required) - tenant_id: 'tenant_id_example', # String | - delete_hash_tag_request_body: FastCommentsClient::DeleteHashTagRequestBody.new, # DeleteHashTagRequestBody | + tenant_id: 'tenant_id_example' # String | } begin - result = api_instance.delete_hash_tag(opts) + result = api_instance.delete_hash_tag(tag, delete_hash_tag_request_body, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_hash_tag: #{e}" @@ -2194,12 +2160,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_hash_tag_with_http_info(opts) +> , Integer, Hash)> delete_hash_tag_with_http_info(tag, delete_hash_tag_request_body, opts) ```ruby begin - data, status_code, headers = api_instance.delete_hash_tag_with_http_info(opts) + data, status_code, headers = api_instance.delete_hash_tag_with_http_info(tag, delete_hash_tag_request_body, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2232,7 +2198,7 @@ end ## delete_moderator -> delete_moderator(opts) +> delete_moderator(tenant_id, id, opts) @@ -2250,15 +2216,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - send_email: 'send_email_example', # String | + send_email: 'send_email_example' # String | } begin - result = api_instance.delete_moderator(opts) + result = api_instance.delete_moderator(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_moderator: #{e}" @@ -2269,12 +2235,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_moderator_with_http_info(opts) +> , Integer, Hash)> delete_moderator_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.delete_moderator_with_http_info(opts) + data, status_code, headers = api_instance.delete_moderator_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2307,7 +2273,7 @@ end ## delete_notification_count -> delete_notification_count(opts) +> delete_notification_count(tenant_id, id, opts) @@ -2325,14 +2291,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | begin - result = api_instance.delete_notification_count(opts) + result = api_instance.delete_notification_count(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_notification_count: #{e}" @@ -2343,12 +2307,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_notification_count_with_http_info(opts) +> , Integer, Hash)> delete_notification_count_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.delete_notification_count_with_http_info(opts) + data, status_code, headers = api_instance.delete_notification_count_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2380,7 +2344,7 @@ end ## delete_page -> delete_page(opts) +> delete_page(tenant_id, id, opts) @@ -2398,14 +2362,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | begin - result = api_instance.delete_page(opts) + result = api_instance.delete_page(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_page: #{e}" @@ -2416,12 +2378,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_page_with_http_info(opts) +> , Integer, Hash)> delete_page_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.delete_page_with_http_info(opts) + data, status_code, headers = api_instance.delete_page_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2453,7 +2415,7 @@ end ## delete_pending_webhook_event -> delete_pending_webhook_event(opts) +> delete_pending_webhook_event(tenant_id, id, opts) @@ -2471,14 +2433,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | begin - result = api_instance.delete_pending_webhook_event(opts) + result = api_instance.delete_pending_webhook_event(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_pending_webhook_event: #{e}" @@ -2489,12 +2449,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_pending_webhook_event_with_http_info(opts) +> , Integer, Hash)> delete_pending_webhook_event_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.delete_pending_webhook_event_with_http_info(opts) + data, status_code, headers = api_instance.delete_pending_webhook_event_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2526,7 +2486,7 @@ end ## delete_question_config -> delete_question_config(opts) +> delete_question_config(tenant_id, id, opts) @@ -2544,14 +2504,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | begin - result = api_instance.delete_question_config(opts) + result = api_instance.delete_question_config(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_question_config: #{e}" @@ -2562,12 +2520,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_question_config_with_http_info(opts) +> , Integer, Hash)> delete_question_config_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.delete_question_config_with_http_info(opts) + data, status_code, headers = api_instance.delete_question_config_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2599,7 +2557,7 @@ end ## delete_question_result -> delete_question_result(opts) +> delete_question_result(tenant_id, id, opts) @@ -2617,14 +2575,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | begin - result = api_instance.delete_question_result(opts) + result = api_instance.delete_question_result(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_question_result: #{e}" @@ -2635,12 +2591,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_question_result_with_http_info(opts) +> , Integer, Hash)> delete_question_result_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.delete_question_result_with_http_info(opts) + data, status_code, headers = api_instance.delete_question_result_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2672,7 +2628,7 @@ end ## delete_sso_user -> delete_sso_user(opts) +> delete_sso_user(tenant_id, id, opts) @@ -2690,16 +2646,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - delete_comments: true, # Boolean | - comment_delete_mode: 'comment_delete_mode_example', # String | + delete_comments: true, # Boolean | + comment_delete_mode: 'comment_delete_mode_example' # String | } begin - result = api_instance.delete_sso_user(opts) + result = api_instance.delete_sso_user(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_sso_user: #{e}" @@ -2710,12 +2666,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_sso_user_with_http_info(opts) +> , Integer, Hash)> delete_sso_user_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.delete_sso_user_with_http_info(opts) + data, status_code, headers = api_instance.delete_sso_user_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2749,7 +2705,7 @@ end ## delete_subscription -> delete_subscription(opts) +> delete_subscription(tenant_id, id, opts) @@ -2767,15 +2723,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - user_id: 'user_id_example', # String | + user_id: 'user_id_example' # String | } begin - result = api_instance.delete_subscription(opts) + result = api_instance.delete_subscription(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_subscription: #{e}" @@ -2786,12 +2742,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_subscription_with_http_info(opts) +> , Integer, Hash)> delete_subscription_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.delete_subscription_with_http_info(opts) + data, status_code, headers = api_instance.delete_subscription_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2824,7 +2780,7 @@ end ## delete_tenant -> delete_tenant(opts) +> delete_tenant(tenant_id, id, opts) @@ -2842,15 +2798,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - sure: 'sure_example', # String | + sure: 'sure_example' # String | } begin - result = api_instance.delete_tenant(opts) + result = api_instance.delete_tenant(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_tenant: #{e}" @@ -2861,12 +2817,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_tenant_with_http_info(opts) +> , Integer, Hash)> delete_tenant_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.delete_tenant_with_http_info(opts) + data, status_code, headers = api_instance.delete_tenant_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2899,7 +2855,7 @@ end ## delete_tenant_package -> delete_tenant_package(opts) +> delete_tenant_package(tenant_id, id, opts) @@ -2917,14 +2873,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | begin - result = api_instance.delete_tenant_package(opts) + result = api_instance.delete_tenant_package(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_tenant_package: #{e}" @@ -2935,12 +2889,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_tenant_package_with_http_info(opts) +> , Integer, Hash)> delete_tenant_package_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.delete_tenant_package_with_http_info(opts) + data, status_code, headers = api_instance.delete_tenant_package_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2972,7 +2926,7 @@ end ## delete_tenant_user -> delete_tenant_user(opts) +> delete_tenant_user(tenant_id, id, opts) @@ -2990,16 +2944,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - delete_comments: 'delete_comments_example', # String | - comment_delete_mode: 'comment_delete_mode_example', # String | + delete_comments: 'delete_comments_example', # String | + comment_delete_mode: 'comment_delete_mode_example' # String | } begin - result = api_instance.delete_tenant_user(opts) + result = api_instance.delete_tenant_user(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_tenant_user: #{e}" @@ -3010,12 +2964,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_tenant_user_with_http_info(opts) +> , Integer, Hash)> delete_tenant_user_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.delete_tenant_user_with_http_info(opts) + data, status_code, headers = api_instance.delete_tenant_user_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3049,7 +3003,7 @@ end ## delete_user_badge -> delete_user_badge(opts) +> delete_user_badge(tenant_id, id, opts) @@ -3067,14 +3021,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | begin - result = api_instance.delete_user_badge(opts) + result = api_instance.delete_user_badge(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_user_badge: #{e}" @@ -3085,12 +3037,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_user_badge_with_http_info(opts) +> , Integer, Hash)> delete_user_badge_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.delete_user_badge_with_http_info(opts) + data, status_code, headers = api_instance.delete_user_badge_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3122,7 +3074,7 @@ end ## delete_vote -> delete_vote(opts) +> delete_vote(tenant_id, id, opts) @@ -3140,15 +3092,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - edit_key: 'edit_key_example', # String | + edit_key: 'edit_key_example' # String | } begin - result = api_instance.delete_vote(opts) + result = api_instance.delete_vote(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_vote: #{e}" @@ -3159,12 +3111,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_vote_with_http_info(opts) +> , Integer, Hash)> delete_vote_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.delete_vote_with_http_info(opts) + data, status_code, headers = api_instance.delete_vote_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3197,7 +3149,7 @@ end ## flag_comment -> flag_comment(opts) +> flag_comment(tenant_id, id, opts) @@ -3215,16 +3167,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - user_id: 'user_id_example', # String | - anon_user_id: 'anon_user_id_example', # String | + user_id: 'user_id_example', # String | + anon_user_id: 'anon_user_id_example' # String | } begin - result = api_instance.flag_comment(opts) + result = api_instance.flag_comment(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->flag_comment: #{e}" @@ -3235,12 +3187,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> flag_comment_with_http_info(opts) +> , Integer, Hash)> flag_comment_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.flag_comment_with_http_info(opts) + data, status_code, headers = api_instance.flag_comment_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3274,7 +3226,7 @@ end ## get_audit_logs -> get_audit_logs(opts) +> get_audit_logs(tenant_id, opts) @@ -3292,18 +3244,18 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - limit: 1.2, # Float | - skip: 1.2, # Float | - order: FastCommentsClient::SORTDIR::ASC, # SORTDIR | - after: 1.2, # Float | - before: 1.2, # Float | + limit: 1.2, # Float | + skip: 1.2, # Float | + order: FastCommentsClient::SORTDIR::ASC, # SORTDIR | + after: 1.2, # Float | + before: 1.2 # Float | } begin - result = api_instance.get_audit_logs(opts) + result = api_instance.get_audit_logs(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_audit_logs: #{e}" @@ -3314,12 +3266,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_audit_logs_with_http_info(opts) +> , Integer, Hash)> get_audit_logs_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_audit_logs_with_http_info(opts) + data, status_code, headers = api_instance.get_audit_logs_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3355,7 +3307,7 @@ end ## get_cached_notification_count -> get_cached_notification_count(opts) +> get_cached_notification_count(tenant_id, id, opts) @@ -3373,14 +3325,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | begin - result = api_instance.get_cached_notification_count(opts) + result = api_instance.get_cached_notification_count(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_cached_notification_count: #{e}" @@ -3391,12 +3341,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_cached_notification_count_with_http_info(opts) +> , Integer, Hash)> get_cached_notification_count_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.get_cached_notification_count_with_http_info(opts) + data, status_code, headers = api_instance.get_cached_notification_count_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3428,7 +3378,7 @@ end ## get_comment -> get_comment(opts) +> get_comment(tenant_id, id, opts) @@ -3446,14 +3396,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | begin - result = api_instance.get_comment(opts) + result = api_instance.get_comment(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_comment: #{e}" @@ -3464,12 +3412,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comment_with_http_info(opts) +> , Integer, Hash)> get_comment_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.get_comment_with_http_info(opts) + data, status_code, headers = api_instance.get_comment_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3501,7 +3449,7 @@ end ## get_comments -> get_comments(opts) +> get_comments(tenant_id, opts) @@ -3519,29 +3467,29 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - page: 56, # Integer | - limit: 56, # Integer | - skip: 56, # Integer | - as_tree: true, # Boolean | - skip_children: 56, # Integer | - limit_children: 56, # Integer | - max_tree_depth: 56, # Integer | - url_id: 'url_id_example', # String | - user_id: 'user_id_example', # String | - anon_user_id: 'anon_user_id_example', # String | - context_user_id: 'context_user_id_example', # String | - hash_tag: 'hash_tag_example', # String | - parent_id: 'parent_id_example', # String | - direction: FastCommentsClient::SortDirections::OF, # SortDirections | - from_date: 789, # Integer | - to_date: 789, # Integer | + page: 56, # Integer | + limit: 56, # Integer | + skip: 56, # Integer | + as_tree: true, # Boolean | + skip_children: 56, # Integer | + limit_children: 56, # Integer | + max_tree_depth: 56, # Integer | + url_id: 'url_id_example', # String | + user_id: 'user_id_example', # String | + anon_user_id: 'anon_user_id_example', # String | + context_user_id: 'context_user_id_example', # String | + hash_tag: 'hash_tag_example', # String | + parent_id: 'parent_id_example', # String | + direction: FastCommentsClient::SortDirections::OF, # SortDirections | + from_date: 789, # Integer | + to_date: 789 # Integer | } begin - result = api_instance.get_comments(opts) + result = api_instance.get_comments(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_comments: #{e}" @@ -3552,12 +3500,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comments_with_http_info(opts) +> , Integer, Hash)> get_comments_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_comments_with_http_info(opts) + data, status_code, headers = api_instance.get_comments_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3604,7 +3552,7 @@ end ## get_domain_config -> get_domain_config(opts) +> get_domain_config(tenant_id, domain, opts) @@ -3622,14 +3570,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - domain: 'domain_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +domain = 'domain_example' # String | begin - result = api_instance.get_domain_config(opts) + result = api_instance.get_domain_config(tenant_id, domain, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_domain_config: #{e}" @@ -3640,12 +3586,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_domain_config_with_http_info(opts) +> , Integer, Hash)> get_domain_config_with_http_info(tenant_id, domain, opts) ```ruby begin - data, status_code, headers = api_instance.get_domain_config_with_http_info(opts) + data, status_code, headers = api_instance.get_domain_config_with_http_info(tenant_id, domain, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3677,7 +3623,7 @@ end ## get_domain_configs -> get_domain_configs(opts) +> get_domain_configs(tenant_id, opts) @@ -3695,13 +3641,11 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | begin - result = api_instance.get_domain_configs(opts) + result = api_instance.get_domain_configs(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_domain_configs: #{e}" @@ -3712,12 +3656,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_domain_configs_with_http_info(opts) +> , Integer, Hash)> get_domain_configs_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_domain_configs_with_http_info(opts) + data, status_code, headers = api_instance.get_domain_configs_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3748,7 +3692,7 @@ end ## get_email_template -> get_email_template(opts) +> get_email_template(tenant_id, id, opts) @@ -3766,14 +3710,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | begin - result = api_instance.get_email_template(opts) + result = api_instance.get_email_template(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_email_template: #{e}" @@ -3784,12 +3726,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_email_template_with_http_info(opts) +> , Integer, Hash)> get_email_template_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.get_email_template_with_http_info(opts) + data, status_code, headers = api_instance.get_email_template_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3821,7 +3763,7 @@ end ## get_email_template_definitions -> get_email_template_definitions(opts) +> get_email_template_definitions(tenant_id, opts) @@ -3839,13 +3781,11 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | begin - result = api_instance.get_email_template_definitions(opts) + result = api_instance.get_email_template_definitions(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_email_template_definitions: #{e}" @@ -3856,12 +3796,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_email_template_definitions_with_http_info(opts) +> , Integer, Hash)> get_email_template_definitions_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_email_template_definitions_with_http_info(opts) + data, status_code, headers = api_instance.get_email_template_definitions_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3892,7 +3832,7 @@ end ## get_email_template_render_errors -> get_email_template_render_errors(opts) +> get_email_template_render_errors(tenant_id, id, opts) @@ -3910,15 +3850,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - skip: 1.2, # Float | + skip: 1.2 # Float | } begin - result = api_instance.get_email_template_render_errors(opts) + result = api_instance.get_email_template_render_errors(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_email_template_render_errors: #{e}" @@ -3929,12 +3869,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_email_template_render_errors_with_http_info(opts) +> , Integer, Hash)> get_email_template_render_errors_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.get_email_template_render_errors_with_http_info(opts) + data, status_code, headers = api_instance.get_email_template_render_errors_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3967,7 +3907,7 @@ end ## get_email_templates -> get_email_templates(opts) +> get_email_templates(tenant_id, opts) @@ -3985,14 +3925,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - skip: 1.2, # Float | + skip: 1.2 # Float | } begin - result = api_instance.get_email_templates(opts) + result = api_instance.get_email_templates(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_email_templates: #{e}" @@ -4003,12 +3943,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_email_templates_with_http_info(opts) +> , Integer, Hash)> get_email_templates_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_email_templates_with_http_info(opts) + data, status_code, headers = api_instance.get_email_templates_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -4040,7 +3980,7 @@ end ## get_feed_posts -> get_feed_posts(opts) +> get_feed_posts(tenant_id, opts) @@ -4060,16 +4000,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - after_id: 'after_id_example', # String | - limit: 56, # Integer | - tags: ['inner_example'], # Array | + after_id: 'after_id_example', # String | + limit: 56, # Integer | + tags: ['inner_example'] # Array | } begin - result = api_instance.get_feed_posts(opts) + result = api_instance.get_feed_posts(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_feed_posts: #{e}" @@ -4080,12 +4020,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_feed_posts_with_http_info(opts) +> , Integer, Hash)> get_feed_posts_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_feed_posts_with_http_info(opts) + data, status_code, headers = api_instance.get_feed_posts_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -4119,7 +4059,7 @@ end ## get_hash_tags -> get_hash_tags(opts) +> get_hash_tags(tenant_id, opts) @@ -4137,14 +4077,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - page: 1.2, # Float | + page: 1.2 # Float | } begin - result = api_instance.get_hash_tags(opts) + result = api_instance.get_hash_tags(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_hash_tags: #{e}" @@ -4155,12 +4095,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_hash_tags_with_http_info(opts) +> , Integer, Hash)> get_hash_tags_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_hash_tags_with_http_info(opts) + data, status_code, headers = api_instance.get_hash_tags_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -4192,7 +4132,7 @@ end ## get_moderator -> get_moderator(opts) +> get_moderator(tenant_id, id, opts) @@ -4210,14 +4150,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | begin - result = api_instance.get_moderator(opts) + result = api_instance.get_moderator(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_moderator: #{e}" @@ -4228,12 +4166,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_moderator_with_http_info(opts) +> , Integer, Hash)> get_moderator_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.get_moderator_with_http_info(opts) + data, status_code, headers = api_instance.get_moderator_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -4265,7 +4203,7 @@ end ## get_moderators -> get_moderators(opts) +> get_moderators(tenant_id, opts) @@ -4283,14 +4221,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - skip: 1.2, # Float | + skip: 1.2 # Float | } begin - result = api_instance.get_moderators(opts) + result = api_instance.get_moderators(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_moderators: #{e}" @@ -4301,12 +4239,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_moderators_with_http_info(opts) +> , Integer, Hash)> get_moderators_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_moderators_with_http_info(opts) + data, status_code, headers = api_instance.get_moderators_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -4338,7 +4276,7 @@ end ## get_notification_count -> get_notification_count(opts) +> get_notification_count(tenant_id, opts) @@ -4356,18 +4294,18 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - user_id: 'user_id_example', # String | - url_id: 'url_id_example', # String | - from_comment_id: 'from_comment_id_example', # String | - viewed: true, # Boolean | - type: 'type_example', # String | + user_id: 'user_id_example', # String | + url_id: 'url_id_example', # String | + from_comment_id: 'from_comment_id_example', # String | + viewed: true, # Boolean | + type: 'type_example' # String | } begin - result = api_instance.get_notification_count(opts) + result = api_instance.get_notification_count(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_notification_count: #{e}" @@ -4378,12 +4316,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_notification_count_with_http_info(opts) +> , Integer, Hash)> get_notification_count_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_notification_count_with_http_info(opts) + data, status_code, headers = api_instance.get_notification_count_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -4419,7 +4357,7 @@ end ## get_notifications -> get_notifications(opts) +> get_notifications(tenant_id, opts) @@ -4437,19 +4375,19 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - user_id: 'user_id_example', # String | - url_id: 'url_id_example', # String | - from_comment_id: 'from_comment_id_example', # String | - viewed: true, # Boolean | - type: 'type_example', # String | - skip: 1.2, # Float | + user_id: 'user_id_example', # String | + url_id: 'url_id_example', # String | + from_comment_id: 'from_comment_id_example', # String | + viewed: true, # Boolean | + type: 'type_example', # String | + skip: 1.2 # Float | } begin - result = api_instance.get_notifications(opts) + result = api_instance.get_notifications(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_notifications: #{e}" @@ -4460,12 +4398,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_notifications_with_http_info(opts) +> , Integer, Hash)> get_notifications_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_notifications_with_http_info(opts) + data, status_code, headers = api_instance.get_notifications_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -4502,7 +4440,7 @@ end ## get_page_by_urlid -> get_page_by_urlid(opts) +> get_page_by_urlid(tenant_id, url_id, opts) @@ -4520,14 +4458,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - url_id: 'url_id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +url_id = 'url_id_example' # String | begin - result = api_instance.get_page_by_urlid(opts) + result = api_instance.get_page_by_urlid(tenant_id, url_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_page_by_urlid: #{e}" @@ -4538,12 +4474,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_page_by_urlid_with_http_info(opts) +> , Integer, Hash)> get_page_by_urlid_with_http_info(tenant_id, url_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_page_by_urlid_with_http_info(opts) + data, status_code, headers = api_instance.get_page_by_urlid_with_http_info(tenant_id, url_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -4575,7 +4511,7 @@ end ## get_pages -> get_pages(opts) +> get_pages(tenant_id, opts) @@ -4593,13 +4529,11 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | begin - result = api_instance.get_pages(opts) + result = api_instance.get_pages(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_pages: #{e}" @@ -4610,12 +4544,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_pages_with_http_info(opts) +> , Integer, Hash)> get_pages_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_pages_with_http_info(opts) + data, status_code, headers = api_instance.get_pages_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -4646,7 +4580,7 @@ end ## get_pending_webhook_event_count -> get_pending_webhook_event_count(opts) +> get_pending_webhook_event_count(tenant_id, opts) @@ -4664,19 +4598,19 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - comment_id: 'comment_id_example', # String | - external_id: 'external_id_example', # String | - event_type: 'event_type_example', # String | - type: 'type_example', # String | - domain: 'domain_example', # String | - attempt_count_gt: 1.2, # Float | + comment_id: 'comment_id_example', # String | + external_id: 'external_id_example', # String | + event_type: 'event_type_example', # String | + type: 'type_example', # String | + domain: 'domain_example', # String | + attempt_count_gt: 1.2 # Float | } begin - result = api_instance.get_pending_webhook_event_count(opts) + result = api_instance.get_pending_webhook_event_count(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_pending_webhook_event_count: #{e}" @@ -4687,12 +4621,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_pending_webhook_event_count_with_http_info(opts) +> , Integer, Hash)> get_pending_webhook_event_count_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_pending_webhook_event_count_with_http_info(opts) + data, status_code, headers = api_instance.get_pending_webhook_event_count_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -4729,7 +4663,7 @@ end ## get_pending_webhook_events -> get_pending_webhook_events(opts) +> get_pending_webhook_events(tenant_id, opts) @@ -4747,20 +4681,20 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - comment_id: 'comment_id_example', # String | - external_id: 'external_id_example', # String | - event_type: 'event_type_example', # String | - type: 'type_example', # String | - domain: 'domain_example', # String | - attempt_count_gt: 1.2, # Float | - skip: 1.2, # Float | + comment_id: 'comment_id_example', # String | + external_id: 'external_id_example', # String | + event_type: 'event_type_example', # String | + type: 'type_example', # String | + domain: 'domain_example', # String | + attempt_count_gt: 1.2, # Float | + skip: 1.2 # Float | } begin - result = api_instance.get_pending_webhook_events(opts) + result = api_instance.get_pending_webhook_events(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_pending_webhook_events: #{e}" @@ -4771,12 +4705,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_pending_webhook_events_with_http_info(opts) +> , Integer, Hash)> get_pending_webhook_events_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_pending_webhook_events_with_http_info(opts) + data, status_code, headers = api_instance.get_pending_webhook_events_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -4814,7 +4748,7 @@ end ## get_question_config -> get_question_config(opts) +> get_question_config(tenant_id, id, opts) @@ -4832,14 +4766,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | begin - result = api_instance.get_question_config(opts) + result = api_instance.get_question_config(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_question_config: #{e}" @@ -4850,12 +4782,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_question_config_with_http_info(opts) +> , Integer, Hash)> get_question_config_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.get_question_config_with_http_info(opts) + data, status_code, headers = api_instance.get_question_config_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -4887,7 +4819,7 @@ end ## get_question_configs -> get_question_configs(opts) +> get_question_configs(tenant_id, opts) @@ -4905,14 +4837,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - skip: 1.2, # Float | + skip: 1.2 # Float | } begin - result = api_instance.get_question_configs(opts) + result = api_instance.get_question_configs(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_question_configs: #{e}" @@ -4923,12 +4855,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_question_configs_with_http_info(opts) +> , Integer, Hash)> get_question_configs_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_question_configs_with_http_info(opts) + data, status_code, headers = api_instance.get_question_configs_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -4960,7 +4892,7 @@ end ## get_question_result -> get_question_result(opts) +> get_question_result(tenant_id, id, opts) @@ -4978,14 +4910,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | begin - result = api_instance.get_question_result(opts) + result = api_instance.get_question_result(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_question_result: #{e}" @@ -4996,12 +4926,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_question_result_with_http_info(opts) +> , Integer, Hash)> get_question_result_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.get_question_result_with_http_info(opts) + data, status_code, headers = api_instance.get_question_result_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -5033,7 +4963,7 @@ end ## get_question_results -> get_question_results(opts) +> get_question_results(tenant_id, opts) @@ -5051,19 +4981,19 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - url_id: 'url_id_example', # String | - user_id: 'user_id_example', # String | - start_date: 'start_date_example', # String | - question_id: 'question_id_example', # String | - question_ids: 'question_ids_example', # String | - skip: 1.2, # Float | + url_id: 'url_id_example', # String | + user_id: 'user_id_example', # String | + start_date: 'start_date_example', # String | + question_id: 'question_id_example', # String | + question_ids: 'question_ids_example', # String | + skip: 1.2 # Float | } begin - result = api_instance.get_question_results(opts) + result = api_instance.get_question_results(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_question_results: #{e}" @@ -5074,12 +5004,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_question_results_with_http_info(opts) +> , Integer, Hash)> get_question_results_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_question_results_with_http_info(opts) + data, status_code, headers = api_instance.get_question_results_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -5116,7 +5046,7 @@ end ## get_sso_user_by_email -> get_sso_user_by_email(opts) +> get_sso_user_by_email(tenant_id, email, opts) @@ -5134,14 +5064,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - email: 'email_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +email = 'email_example' # String | begin - result = api_instance.get_sso_user_by_email(opts) + result = api_instance.get_sso_user_by_email(tenant_id, email, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_sso_user_by_email: #{e}" @@ -5152,12 +5080,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_sso_user_by_email_with_http_info(opts) +> , Integer, Hash)> get_sso_user_by_email_with_http_info(tenant_id, email, opts) ```ruby begin - data, status_code, headers = api_instance.get_sso_user_by_email_with_http_info(opts) + data, status_code, headers = api_instance.get_sso_user_by_email_with_http_info(tenant_id, email, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -5189,7 +5117,7 @@ end ## get_sso_user_by_id -> get_sso_user_by_id(opts) +> get_sso_user_by_id(tenant_id, id, opts) @@ -5207,14 +5135,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | begin - result = api_instance.get_sso_user_by_id(opts) + result = api_instance.get_sso_user_by_id(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_sso_user_by_id: #{e}" @@ -5225,12 +5151,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_sso_user_by_id_with_http_info(opts) +> , Integer, Hash)> get_sso_user_by_id_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.get_sso_user_by_id_with_http_info(opts) + data, status_code, headers = api_instance.get_sso_user_by_id_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -5262,7 +5188,7 @@ end ## get_sso_users -> get_sso_users(opts) +> get_sso_users(tenant_id, opts) @@ -5280,14 +5206,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - skip: 56, # Integer | + skip: 56 # Integer | } begin - result = api_instance.get_sso_users(opts) + result = api_instance.get_sso_users(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_sso_users: #{e}" @@ -5298,12 +5224,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_sso_users_with_http_info(opts) +> , Integer, Hash)> get_sso_users_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_sso_users_with_http_info(opts) + data, status_code, headers = api_instance.get_sso_users_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -5335,7 +5261,7 @@ end ## get_subscriptions -> get_subscriptions(opts) +> get_subscriptions(tenant_id, opts) @@ -5353,14 +5279,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - user_id: 'user_id_example', # String | + user_id: 'user_id_example' # String | } begin - result = api_instance.get_subscriptions(opts) + result = api_instance.get_subscriptions(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_subscriptions: #{e}" @@ -5371,12 +5297,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_subscriptions_with_http_info(opts) +> , Integer, Hash)> get_subscriptions_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_subscriptions_with_http_info(opts) + data, status_code, headers = api_instance.get_subscriptions_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -5408,7 +5334,7 @@ end ## get_tenant -> get_tenant(opts) +> get_tenant(tenant_id, id, opts) @@ -5426,14 +5352,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | begin - result = api_instance.get_tenant(opts) + result = api_instance.get_tenant(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenant: #{e}" @@ -5444,12 +5368,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenant_with_http_info(opts) +> , Integer, Hash)> get_tenant_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.get_tenant_with_http_info(opts) + data, status_code, headers = api_instance.get_tenant_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -5481,7 +5405,7 @@ end ## get_tenant_daily_usages -> get_tenant_daily_usages(opts) +> get_tenant_daily_usages(tenant_id, opts) @@ -5499,17 +5423,17 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - year_number: 1.2, # Float | - month_number: 1.2, # Float | - day_number: 1.2, # Float | - skip: 1.2, # Float | + year_number: 1.2, # Float | + month_number: 1.2, # Float | + day_number: 1.2, # Float | + skip: 1.2 # Float | } begin - result = api_instance.get_tenant_daily_usages(opts) + result = api_instance.get_tenant_daily_usages(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenant_daily_usages: #{e}" @@ -5520,12 +5444,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenant_daily_usages_with_http_info(opts) +> , Integer, Hash)> get_tenant_daily_usages_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_tenant_daily_usages_with_http_info(opts) + data, status_code, headers = api_instance.get_tenant_daily_usages_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -5560,7 +5484,7 @@ end ## get_tenant_package -> get_tenant_package(opts) +> get_tenant_package(tenant_id, id, opts) @@ -5578,14 +5502,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | begin - result = api_instance.get_tenant_package(opts) + result = api_instance.get_tenant_package(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenant_package: #{e}" @@ -5596,12 +5518,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenant_package_with_http_info(opts) +> , Integer, Hash)> get_tenant_package_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.get_tenant_package_with_http_info(opts) + data, status_code, headers = api_instance.get_tenant_package_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -5633,7 +5555,7 @@ end ## get_tenant_packages -> get_tenant_packages(opts) +> get_tenant_packages(tenant_id, opts) @@ -5651,14 +5573,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - skip: 1.2, # Float | + skip: 1.2 # Float | } begin - result = api_instance.get_tenant_packages(opts) + result = api_instance.get_tenant_packages(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenant_packages: #{e}" @@ -5669,12 +5591,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenant_packages_with_http_info(opts) +> , Integer, Hash)> get_tenant_packages_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_tenant_packages_with_http_info(opts) + data, status_code, headers = api_instance.get_tenant_packages_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -5706,7 +5628,7 @@ end ## get_tenant_user -> get_tenant_user(opts) +> get_tenant_user(tenant_id, id, opts) @@ -5724,14 +5646,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | begin - result = api_instance.get_tenant_user(opts) + result = api_instance.get_tenant_user(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenant_user: #{e}" @@ -5742,12 +5662,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenant_user_with_http_info(opts) +> , Integer, Hash)> get_tenant_user_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.get_tenant_user_with_http_info(opts) + data, status_code, headers = api_instance.get_tenant_user_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -5779,7 +5699,7 @@ end ## get_tenant_users -> get_tenant_users(opts) +> get_tenant_users(tenant_id, opts) @@ -5797,14 +5717,14 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - skip: 1.2, # Float | + skip: 1.2 # Float | } begin - result = api_instance.get_tenant_users(opts) + result = api_instance.get_tenant_users(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenant_users: #{e}" @@ -5815,12 +5735,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenant_users_with_http_info(opts) +> , Integer, Hash)> get_tenant_users_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_tenant_users_with_http_info(opts) + data, status_code, headers = api_instance.get_tenant_users_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -5852,7 +5772,7 @@ end ## get_tenants -> get_tenants(opts) +> get_tenants(tenant_id, opts) @@ -5870,15 +5790,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - meta: 'meta_example', # String | - skip: 1.2, # Float | + meta: 'meta_example', # String | + skip: 1.2 # Float | } begin - result = api_instance.get_tenants(opts) + result = api_instance.get_tenants(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenants: #{e}" @@ -5889,12 +5809,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenants_with_http_info(opts) +> , Integer, Hash)> get_tenants_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_tenants_with_http_info(opts) + data, status_code, headers = api_instance.get_tenants_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -5927,7 +5847,7 @@ end ## get_ticket -> get_ticket(opts) +> get_ticket(tenant_id, id, opts) @@ -5945,15 +5865,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - user_id: 'user_id_example', # String | + user_id: 'user_id_example' # String | } begin - result = api_instance.get_ticket(opts) + result = api_instance.get_ticket(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_ticket: #{e}" @@ -5964,12 +5884,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_ticket_with_http_info(opts) +> , Integer, Hash)> get_ticket_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.get_ticket_with_http_info(opts) + data, status_code, headers = api_instance.get_ticket_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6002,7 +5922,7 @@ end ## get_tickets -> get_tickets(opts) +> get_tickets(tenant_id, opts) @@ -6020,17 +5940,17 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - user_id: 'user_id_example', # String | - state: 1.2, # Float | - skip: 1.2, # Float | - limit: 1.2, # Float | + user_id: 'user_id_example', # String | + state: 1.2, # Float | + skip: 1.2, # Float | + limit: 1.2 # Float | } begin - result = api_instance.get_tickets(opts) + result = api_instance.get_tickets(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tickets: #{e}" @@ -6041,12 +5961,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tickets_with_http_info(opts) +> , Integer, Hash)> get_tickets_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_tickets_with_http_info(opts) + data, status_code, headers = api_instance.get_tickets_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6081,7 +6001,7 @@ end ## get_user -> get_user(opts) +> get_user(tenant_id, id, opts) @@ -6099,14 +6019,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | begin - result = api_instance.get_user(opts) + result = api_instance.get_user(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user: #{e}" @@ -6117,12 +6035,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_with_http_info(opts) +> , Integer, Hash)> get_user_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.get_user_with_http_info(opts) + data, status_code, headers = api_instance.get_user_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6154,7 +6072,7 @@ end ## get_user_badge -> get_user_badge(opts) +> get_user_badge(tenant_id, id, opts) @@ -6172,14 +6090,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | begin - result = api_instance.get_user_badge(opts) + result = api_instance.get_user_badge(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user_badge: #{e}" @@ -6190,12 +6106,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_badge_with_http_info(opts) +> , Integer, Hash)> get_user_badge_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.get_user_badge_with_http_info(opts) + data, status_code, headers = api_instance.get_user_badge_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6227,7 +6143,7 @@ end ## get_user_badge_progress_by_id -> get_user_badge_progress_by_id(opts) +> get_user_badge_progress_by_id(tenant_id, id, opts) @@ -6245,14 +6161,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | begin - result = api_instance.get_user_badge_progress_by_id(opts) + result = api_instance.get_user_badge_progress_by_id(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user_badge_progress_by_id: #{e}" @@ -6263,12 +6177,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_badge_progress_by_id_with_http_info(opts) +> , Integer, Hash)> get_user_badge_progress_by_id_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.get_user_badge_progress_by_id_with_http_info(opts) + data, status_code, headers = api_instance.get_user_badge_progress_by_id_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6300,7 +6214,7 @@ end ## get_user_badge_progress_by_user_id -> get_user_badge_progress_by_user_id(opts) +> get_user_badge_progress_by_user_id(tenant_id, user_id, opts) @@ -6318,14 +6232,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - user_id: 'user_id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +user_id = 'user_id_example' # String | begin - result = api_instance.get_user_badge_progress_by_user_id(opts) + result = api_instance.get_user_badge_progress_by_user_id(tenant_id, user_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user_badge_progress_by_user_id: #{e}" @@ -6336,12 +6248,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_badge_progress_by_user_id_with_http_info(opts) +> , Integer, Hash)> get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_user_badge_progress_by_user_id_with_http_info(opts) + data, status_code, headers = api_instance.get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6373,7 +6285,7 @@ end ## get_user_badge_progress_list -> get_user_badge_progress_list(opts) +> get_user_badge_progress_list(tenant_id, opts) @@ -6391,16 +6303,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - user_id: 'user_id_example', # String | - limit: 1.2, # Float | - skip: 1.2, # Float | + user_id: 'user_id_example', # String | + limit: 1.2, # Float | + skip: 1.2 # Float | } begin - result = api_instance.get_user_badge_progress_list(opts) + result = api_instance.get_user_badge_progress_list(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user_badge_progress_list: #{e}" @@ -6411,12 +6323,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_badge_progress_list_with_http_info(opts) +> , Integer, Hash)> get_user_badge_progress_list_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_user_badge_progress_list_with_http_info(opts) + data, status_code, headers = api_instance.get_user_badge_progress_list_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6450,7 +6362,7 @@ end ## get_user_badges -> get_user_badges(opts) +> get_user_badges(tenant_id, opts) @@ -6468,19 +6380,19 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - user_id: 'user_id_example', # String | - badge_id: 'badge_id_example', # String | - type: 1.2, # Float | - displayed_on_comments: true, # Boolean | - limit: 1.2, # Float | - skip: 1.2, # Float | + user_id: 'user_id_example', # String | + badge_id: 'badge_id_example', # String | + type: 1.2, # Float | + displayed_on_comments: true, # Boolean | + limit: 1.2, # Float | + skip: 1.2 # Float | } begin - result = api_instance.get_user_badges(opts) + result = api_instance.get_user_badges(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user_badges: #{e}" @@ -6491,12 +6403,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_badges_with_http_info(opts) +> , Integer, Hash)> get_user_badges_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_user_badges_with_http_info(opts) + data, status_code, headers = api_instance.get_user_badges_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6533,7 +6445,7 @@ end ## get_votes -> get_votes(opts) +> get_votes(tenant_id, url_id, opts) @@ -6551,14 +6463,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - url_id: 'url_id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +url_id = 'url_id_example' # String | begin - result = api_instance.get_votes(opts) + result = api_instance.get_votes(tenant_id, url_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_votes: #{e}" @@ -6569,12 +6479,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_votes_with_http_info(opts) +> , Integer, Hash)> get_votes_with_http_info(tenant_id, url_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_votes_with_http_info(opts) + data, status_code, headers = api_instance.get_votes_with_http_info(tenant_id, url_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6606,7 +6516,7 @@ end ## get_votes_for_user -> get_votes_for_user(opts) +> get_votes_for_user(tenant_id, url_id, opts) @@ -6624,16 +6534,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +url_id = 'url_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - url_id: 'url_id_example', # String | (required) - user_id: 'user_id_example', # String | - anon_user_id: 'anon_user_id_example', # String | + user_id: 'user_id_example', # String | + anon_user_id: 'anon_user_id_example' # String | } begin - result = api_instance.get_votes_for_user(opts) + result = api_instance.get_votes_for_user(tenant_id, url_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_votes_for_user: #{e}" @@ -6644,12 +6554,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_votes_for_user_with_http_info(opts) +> , Integer, Hash)> get_votes_for_user_with_http_info(tenant_id, url_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_votes_for_user_with_http_info(opts) + data, status_code, headers = api_instance.get_votes_for_user_with_http_info(tenant_id, url_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6683,7 +6593,7 @@ end ## patch_domain_config -> patch_domain_config(opts) +> patch_domain_config(tenant_id, domain_to_update, patch_domain_config_params, opts) @@ -6701,15 +6611,13 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - domain_to_update: 'domain_to_update_example', # String | (required) - patch_domain_config_params: FastCommentsClient::PatchDomainConfigParams.new, # PatchDomainConfigParams | (required) -} +tenant_id = 'tenant_id_example' # String | +domain_to_update = 'domain_to_update_example' # String | +patch_domain_config_params = FastCommentsClient::PatchDomainConfigParams.new # PatchDomainConfigParams | begin - result = api_instance.patch_domain_config(opts) + result = api_instance.patch_domain_config(tenant_id, domain_to_update, patch_domain_config_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->patch_domain_config: #{e}" @@ -6720,12 +6628,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> patch_domain_config_with_http_info(opts) +> , Integer, Hash)> patch_domain_config_with_http_info(tenant_id, domain_to_update, patch_domain_config_params, opts) ```ruby begin - data, status_code, headers = api_instance.patch_domain_config_with_http_info(opts) + data, status_code, headers = api_instance.patch_domain_config_with_http_info(tenant_id, domain_to_update, patch_domain_config_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6758,7 +6666,7 @@ end ## patch_hash_tag -> patch_hash_tag(opts) +> patch_hash_tag(tag, update_hash_tag_body, opts) @@ -6776,15 +6684,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tag = 'tag_example' # String | +update_hash_tag_body = FastCommentsClient::UpdateHashTagBody.new # UpdateHashTagBody | opts = { - tag: 'tag_example', # String | (required) - tenant_id: 'tenant_id_example', # String | - update_hash_tag_body: FastCommentsClient::UpdateHashTagBody.new, # UpdateHashTagBody | + tenant_id: 'tenant_id_example' # String | } begin - result = api_instance.patch_hash_tag(opts) + result = api_instance.patch_hash_tag(tag, update_hash_tag_body, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->patch_hash_tag: #{e}" @@ -6795,12 +6703,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> patch_hash_tag_with_http_info(opts) +> , Integer, Hash)> patch_hash_tag_with_http_info(tag, update_hash_tag_body, opts) ```ruby begin - data, status_code, headers = api_instance.patch_hash_tag_with_http_info(opts) + data, status_code, headers = api_instance.patch_hash_tag_with_http_info(tag, update_hash_tag_body, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6833,7 +6741,7 @@ end ## patch_page -> patch_page(opts) +> patch_page(tenant_id, id, update_api_page_data, opts) @@ -6851,15 +6759,13 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - update_api_page_data: FastCommentsClient::UpdateAPIPageData.new, # UpdateAPIPageData | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | +update_api_page_data = FastCommentsClient::UpdateAPIPageData.new # UpdateAPIPageData | begin - result = api_instance.patch_page(opts) + result = api_instance.patch_page(tenant_id, id, update_api_page_data, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->patch_page: #{e}" @@ -6870,12 +6776,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> patch_page_with_http_info(opts) +> , Integer, Hash)> patch_page_with_http_info(tenant_id, id, update_api_page_data, opts) ```ruby begin - data, status_code, headers = api_instance.patch_page_with_http_info(opts) + data, status_code, headers = api_instance.patch_page_with_http_info(tenant_id, id, update_api_page_data, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6908,7 +6814,7 @@ end ## patch_sso_user -> patch_sso_user(opts) +> patch_sso_user(tenant_id, id, update_apisso_user_data, opts) @@ -6926,16 +6832,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | +update_apisso_user_data = FastCommentsClient::UpdateAPISSOUserData.new # UpdateAPISSOUserData | opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - update_apisso_user_data: FastCommentsClient::UpdateAPISSOUserData.new, # UpdateAPISSOUserData | (required) - update_comments: true, # Boolean | + update_comments: true # Boolean | } begin - result = api_instance.patch_sso_user(opts) + result = api_instance.patch_sso_user(tenant_id, id, update_apisso_user_data, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->patch_sso_user: #{e}" @@ -6946,12 +6852,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> patch_sso_user_with_http_info(opts) +> , Integer, Hash)> patch_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts) ```ruby begin - data, status_code, headers = api_instance.patch_sso_user_with_http_info(opts) + data, status_code, headers = api_instance.patch_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -6985,7 +6891,7 @@ end ## put_domain_config -> put_domain_config(opts) +> put_domain_config(tenant_id, domain_to_update, update_domain_config_params, opts) @@ -7003,15 +6909,13 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - domain_to_update: 'domain_to_update_example', # String | (required) - update_domain_config_params: FastCommentsClient::UpdateDomainConfigParams.new({domain: 'domain_example'}), # UpdateDomainConfigParams | (required) -} +tenant_id = 'tenant_id_example' # String | +domain_to_update = 'domain_to_update_example' # String | +update_domain_config_params = FastCommentsClient::UpdateDomainConfigParams.new({domain: 'domain_example'}) # UpdateDomainConfigParams | begin - result = api_instance.put_domain_config(opts) + result = api_instance.put_domain_config(tenant_id, domain_to_update, update_domain_config_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->put_domain_config: #{e}" @@ -7022,12 +6926,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_domain_config_with_http_info(opts) +> , Integer, Hash)> put_domain_config_with_http_info(tenant_id, domain_to_update, update_domain_config_params, opts) ```ruby begin - data, status_code, headers = api_instance.put_domain_config_with_http_info(opts) + data, status_code, headers = api_instance.put_domain_config_with_http_info(tenant_id, domain_to_update, update_domain_config_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -7060,7 +6964,7 @@ end ## put_sso_user -> put_sso_user(opts) +> put_sso_user(tenant_id, id, update_apisso_user_data, opts) @@ -7078,16 +6982,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | +update_apisso_user_data = FastCommentsClient::UpdateAPISSOUserData.new # UpdateAPISSOUserData | opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - update_apisso_user_data: FastCommentsClient::UpdateAPISSOUserData.new, # UpdateAPISSOUserData | (required) - update_comments: true, # Boolean | + update_comments: true # Boolean | } begin - result = api_instance.put_sso_user(opts) + result = api_instance.put_sso_user(tenant_id, id, update_apisso_user_data, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->put_sso_user: #{e}" @@ -7098,12 +7002,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_sso_user_with_http_info(opts) +> , Integer, Hash)> put_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts) ```ruby begin - data, status_code, headers = api_instance.put_sso_user_with_http_info(opts) + data, status_code, headers = api_instance.put_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -7137,7 +7041,7 @@ end ## render_email_template -> render_email_template(opts) +> render_email_template(tenant_id, render_email_template_body, opts) @@ -7155,15 +7059,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +render_email_template_body = FastCommentsClient::RenderEmailTemplateBody.new({email_template_id: 'email_template_id_example', ejs: 'ejs_example'}) # RenderEmailTemplateBody | opts = { - tenant_id: 'tenant_id_example', # String | (required) - render_email_template_body: FastCommentsClient::RenderEmailTemplateBody.new({email_template_id: 'email_template_id_example', ejs: 'ejs_example'}), # RenderEmailTemplateBody | (required) - locale: 'locale_example', # String | + locale: 'locale_example' # String | } begin - result = api_instance.render_email_template(opts) + result = api_instance.render_email_template(tenant_id, render_email_template_body, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->render_email_template: #{e}" @@ -7174,12 +7078,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> render_email_template_with_http_info(opts) +> , Integer, Hash)> render_email_template_with_http_info(tenant_id, render_email_template_body, opts) ```ruby begin - data, status_code, headers = api_instance.render_email_template_with_http_info(opts) + data, status_code, headers = api_instance.render_email_template_with_http_info(tenant_id, render_email_template_body, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -7212,7 +7116,7 @@ end ## replace_tenant_package -> replace_tenant_package(opts) +> replace_tenant_package(tenant_id, id, replace_tenant_package_body, opts) @@ -7230,15 +7134,13 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - replace_tenant_package_body: FastCommentsClient::ReplaceTenantPackageBody.new({name: 'name_example', monthly_cost_usd: 3.56, yearly_cost_usd: 3.56, max_monthly_page_loads: 3.56, max_monthly_api_credits: 3.56, max_monthly_comments: 3.56, max_concurrent_users: 3.56, max_tenant_users: 3.56, max_sso_users: 3.56, max_moderators: 3.56, max_domains: 3.56, has_debranding: false, for_who_text: 'for_who_text_example', feature_taglines: ['feature_taglines_example'], has_flex_pricing: false}), # ReplaceTenantPackageBody | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | +replace_tenant_package_body = FastCommentsClient::ReplaceTenantPackageBody.new({name: 'name_example', monthly_cost_usd: 3.56, yearly_cost_usd: 3.56, max_monthly_page_loads: 3.56, max_monthly_api_credits: 3.56, max_monthly_comments: 3.56, max_concurrent_users: 3.56, max_tenant_users: 3.56, max_sso_users: 3.56, max_moderators: 3.56, max_domains: 3.56, has_debranding: false, for_who_text: 'for_who_text_example', feature_taglines: ['feature_taglines_example'], has_flex_pricing: false}) # ReplaceTenantPackageBody | begin - result = api_instance.replace_tenant_package(opts) + result = api_instance.replace_tenant_package(tenant_id, id, replace_tenant_package_body, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->replace_tenant_package: #{e}" @@ -7249,12 +7151,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> replace_tenant_package_with_http_info(opts) +> , Integer, Hash)> replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_body, opts) ```ruby begin - data, status_code, headers = api_instance.replace_tenant_package_with_http_info(opts) + data, status_code, headers = api_instance.replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_body, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -7287,7 +7189,7 @@ end ## replace_tenant_user -> replace_tenant_user(opts) +> replace_tenant_user(tenant_id, id, replace_tenant_user_body, opts) @@ -7305,16 +7207,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | +replace_tenant_user_body = FastCommentsClient::ReplaceTenantUserBody.new({username: 'username_example', email: 'email_example'}) # ReplaceTenantUserBody | opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - replace_tenant_user_body: FastCommentsClient::ReplaceTenantUserBody.new({username: 'username_example', email: 'email_example'}), # ReplaceTenantUserBody | (required) - update_comments: 'update_comments_example', # String | + update_comments: 'update_comments_example' # String | } begin - result = api_instance.replace_tenant_user(opts) + result = api_instance.replace_tenant_user(tenant_id, id, replace_tenant_user_body, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->replace_tenant_user: #{e}" @@ -7325,12 +7227,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> replace_tenant_user_with_http_info(opts) +> , Integer, Hash)> replace_tenant_user_with_http_info(tenant_id, id, replace_tenant_user_body, opts) ```ruby begin - data, status_code, headers = api_instance.replace_tenant_user_with_http_info(opts) + data, status_code, headers = api_instance.replace_tenant_user_with_http_info(tenant_id, id, replace_tenant_user_body, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -7364,7 +7266,7 @@ end ## save_comment -> save_comment(opts) +> save_comment(tenant_id, create_comment_params, opts) @@ -7382,18 +7284,18 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +create_comment_params = FastCommentsClient::CreateCommentParams.new({commenter_name: 'commenter_name_example', comment: 'comment_example', url: 'url_example', url_id: 'url_id_example', locale: 'locale_example'}) # CreateCommentParams | opts = { - tenant_id: 'tenant_id_example', # String | (required) - create_comment_params: FastCommentsClient::CreateCommentParams.new({commenter_name: 'commenter_name_example', comment: 'comment_example', url: 'url_example', url_id: 'url_id_example', locale: 'locale_example'}), # CreateCommentParams | (required) - is_live: true, # Boolean | - do_spam_check: true, # Boolean | - send_emails: true, # Boolean | - populate_notifications: true, # Boolean | + is_live: true, # Boolean | + do_spam_check: true, # Boolean | + send_emails: true, # Boolean | + populate_notifications: true # Boolean | } begin - result = api_instance.save_comment(opts) + result = api_instance.save_comment(tenant_id, create_comment_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->save_comment: #{e}" @@ -7404,12 +7306,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> save_comment_with_http_info(opts) +> , Integer, Hash)> save_comment_with_http_info(tenant_id, create_comment_params, opts) ```ruby begin - data, status_code, headers = api_instance.save_comment_with_http_info(opts) + data, status_code, headers = api_instance.save_comment_with_http_info(tenant_id, create_comment_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -7445,7 +7347,7 @@ end ## save_comments_bulk -> > save_comments_bulk(opts) +> > save_comments_bulk(tenant_id, create_comment_params, opts) @@ -7463,18 +7365,18 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +create_comment_params = [FastCommentsClient::CreateCommentParams.new({commenter_name: 'commenter_name_example', comment: 'comment_example', url: 'url_example', url_id: 'url_id_example', locale: 'locale_example'})] # Array | opts = { - tenant_id: 'tenant_id_example', # String | (required) - create_comment_params: [FastCommentsClient::CreateCommentParams.new({commenter_name: 'commenter_name_example', comment: 'comment_example', url: 'url_example', url_id: 'url_id_example', locale: 'locale_example'})], # Array | (required) - is_live: true, # Boolean | - do_spam_check: true, # Boolean | - send_emails: true, # Boolean | - populate_notifications: true, # Boolean | + is_live: true, # Boolean | + do_spam_check: true, # Boolean | + send_emails: true, # Boolean | + populate_notifications: true # Boolean | } begin - result = api_instance.save_comments_bulk(opts) + result = api_instance.save_comments_bulk(tenant_id, create_comment_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->save_comments_bulk: #{e}" @@ -7485,12 +7387,12 @@ end This returns an Array which contains the response data, status code and headers. -> >, Integer, Hash)> save_comments_bulk_with_http_info(opts) +> >, Integer, Hash)> save_comments_bulk_with_http_info(tenant_id, create_comment_params, opts) ```ruby begin - data, status_code, headers = api_instance.save_comments_bulk_with_http_info(opts) + data, status_code, headers = api_instance.save_comments_bulk_with_http_info(tenant_id, create_comment_params, opts) p status_code # => 2xx p headers # => { ... } p data # => > @@ -7526,7 +7428,7 @@ end ## send_invite -> send_invite(opts) +> send_invite(tenant_id, id, from_name, opts) @@ -7544,15 +7446,13 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - from_name: 'from_name_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | +from_name = 'from_name_example' # String | begin - result = api_instance.send_invite(opts) + result = api_instance.send_invite(tenant_id, id, from_name, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->send_invite: #{e}" @@ -7563,12 +7463,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> send_invite_with_http_info(opts) +> , Integer, Hash)> send_invite_with_http_info(tenant_id, id, from_name, opts) ```ruby begin - data, status_code, headers = api_instance.send_invite_with_http_info(opts) + data, status_code, headers = api_instance.send_invite_with_http_info(tenant_id, id, from_name, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -7601,7 +7501,7 @@ end ## send_login_link -> send_login_link(opts) +> send_login_link(tenant_id, id, opts) @@ -7619,15 +7519,15 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - redirect_url: 'redirect_url_example', # String | + redirect_url: 'redirect_url_example' # String | } begin - result = api_instance.send_login_link(opts) + result = api_instance.send_login_link(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->send_login_link: #{e}" @@ -7638,12 +7538,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> send_login_link_with_http_info(opts) +> , Integer, Hash)> send_login_link_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.send_login_link_with_http_info(opts) + data, status_code, headers = api_instance.send_login_link_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -7676,7 +7576,7 @@ end ## un_block_user_from_comment -> un_block_user_from_comment(opts) +> un_block_user_from_comment(tenant_id, id, un_block_from_comment_params, opts) @@ -7694,17 +7594,17 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | +un_block_from_comment_params = FastCommentsClient::UnBlockFromCommentParams.new # UnBlockFromCommentParams | opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - un_block_from_comment_params: FastCommentsClient::UnBlockFromCommentParams.new, # UnBlockFromCommentParams | (required) - user_id: 'user_id_example', # String | - anon_user_id: 'anon_user_id_example', # String | + user_id: 'user_id_example', # String | + anon_user_id: 'anon_user_id_example' # String | } begin - result = api_instance.un_block_user_from_comment(opts) + result = api_instance.un_block_user_from_comment(tenant_id, id, un_block_from_comment_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->un_block_user_from_comment: #{e}" @@ -7715,12 +7615,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> un_block_user_from_comment_with_http_info(opts) +> , Integer, Hash)> un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comment_params, opts) ```ruby begin - data, status_code, headers = api_instance.un_block_user_from_comment_with_http_info(opts) + data, status_code, headers = api_instance.un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comment_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -7755,7 +7655,7 @@ end ## un_flag_comment -> un_flag_comment(opts) +> un_flag_comment(tenant_id, id, opts) @@ -7773,16 +7673,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - user_id: 'user_id_example', # String | - anon_user_id: 'anon_user_id_example', # String | + user_id: 'user_id_example', # String | + anon_user_id: 'anon_user_id_example' # String | } begin - result = api_instance.un_flag_comment(opts) + result = api_instance.un_flag_comment(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->un_flag_comment: #{e}" @@ -7793,12 +7693,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> un_flag_comment_with_http_info(opts) +> , Integer, Hash)> un_flag_comment_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.un_flag_comment_with_http_info(opts) + data, status_code, headers = api_instance.un_flag_comment_with_http_info(tenant_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -7832,7 +7732,7 @@ end ## update_comment -> update_comment(opts) +> update_comment(tenant_id, id, updatable_comment_params, opts) @@ -7850,18 +7750,18 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | +updatable_comment_params = FastCommentsClient::UpdatableCommentParams.new # UpdatableCommentParams | opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - updatable_comment_params: FastCommentsClient::UpdatableCommentParams.new, # UpdatableCommentParams | (required) - context_user_id: 'context_user_id_example', # String | - do_spam_check: true, # Boolean | - is_live: true, # Boolean | + context_user_id: 'context_user_id_example', # String | + do_spam_check: true, # Boolean | + is_live: true # Boolean | } begin - result = api_instance.update_comment(opts) + result = api_instance.update_comment(tenant_id, id, updatable_comment_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_comment: #{e}" @@ -7872,12 +7772,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_comment_with_http_info(opts) +> , Integer, Hash)> update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts) ```ruby begin - data, status_code, headers = api_instance.update_comment_with_http_info(opts) + data, status_code, headers = api_instance.update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -7913,7 +7813,7 @@ end ## update_email_template -> update_email_template(opts) +> update_email_template(tenant_id, id, update_email_template_body, opts) @@ -7931,15 +7831,13 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - update_email_template_body: FastCommentsClient::UpdateEmailTemplateBody.new, # UpdateEmailTemplateBody | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | +update_email_template_body = FastCommentsClient::UpdateEmailTemplateBody.new # UpdateEmailTemplateBody | begin - result = api_instance.update_email_template(opts) + result = api_instance.update_email_template(tenant_id, id, update_email_template_body, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_email_template: #{e}" @@ -7950,12 +7848,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_email_template_with_http_info(opts) +> , Integer, Hash)> update_email_template_with_http_info(tenant_id, id, update_email_template_body, opts) ```ruby begin - data, status_code, headers = api_instance.update_email_template_with_http_info(opts) + data, status_code, headers = api_instance.update_email_template_with_http_info(tenant_id, id, update_email_template_body, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -7988,7 +7886,7 @@ end ## update_feed_post -> update_feed_post(opts) +> update_feed_post(tenant_id, id, feed_post, opts) @@ -8006,15 +7904,13 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - feed_post: FastCommentsClient::FeedPost.new({_id: '_id_example', tenant_id: 'tenant_id_example', created_at: Time.now}), # FeedPost | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | +feed_post = FastCommentsClient::FeedPost.new({_id: '_id_example', tenant_id: 'tenant_id_example', created_at: Time.now}) # FeedPost | begin - result = api_instance.update_feed_post(opts) + result = api_instance.update_feed_post(tenant_id, id, feed_post, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_feed_post: #{e}" @@ -8025,12 +7921,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_feed_post_with_http_info(opts) +> , Integer, Hash)> update_feed_post_with_http_info(tenant_id, id, feed_post, opts) ```ruby begin - data, status_code, headers = api_instance.update_feed_post_with_http_info(opts) + data, status_code, headers = api_instance.update_feed_post_with_http_info(tenant_id, id, feed_post, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -8063,7 +7959,7 @@ end ## update_moderator -> update_moderator(opts) +> update_moderator(tenant_id, id, update_moderator_body, opts) @@ -8081,15 +7977,13 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - update_moderator_body: FastCommentsClient::UpdateModeratorBody.new, # UpdateModeratorBody | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | +update_moderator_body = FastCommentsClient::UpdateModeratorBody.new # UpdateModeratorBody | begin - result = api_instance.update_moderator(opts) + result = api_instance.update_moderator(tenant_id, id, update_moderator_body, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_moderator: #{e}" @@ -8100,12 +7994,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_moderator_with_http_info(opts) +> , Integer, Hash)> update_moderator_with_http_info(tenant_id, id, update_moderator_body, opts) ```ruby begin - data, status_code, headers = api_instance.update_moderator_with_http_info(opts) + data, status_code, headers = api_instance.update_moderator_with_http_info(tenant_id, id, update_moderator_body, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -8138,7 +8032,7 @@ end ## update_notification -> update_notification(opts) +> update_notification(tenant_id, id, update_notification_body, opts) @@ -8156,16 +8050,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | +update_notification_body = FastCommentsClient::UpdateNotificationBody.new # UpdateNotificationBody | opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - update_notification_body: FastCommentsClient::UpdateNotificationBody.new, # UpdateNotificationBody | (required) - user_id: 'user_id_example', # String | + user_id: 'user_id_example' # String | } begin - result = api_instance.update_notification(opts) + result = api_instance.update_notification(tenant_id, id, update_notification_body, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_notification: #{e}" @@ -8176,12 +8070,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_notification_with_http_info(opts) +> , Integer, Hash)> update_notification_with_http_info(tenant_id, id, update_notification_body, opts) ```ruby begin - data, status_code, headers = api_instance.update_notification_with_http_info(opts) + data, status_code, headers = api_instance.update_notification_with_http_info(tenant_id, id, update_notification_body, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -8215,7 +8109,7 @@ end ## update_question_config -> update_question_config(opts) +> update_question_config(tenant_id, id, update_question_config_body, opts) @@ -8233,15 +8127,13 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - update_question_config_body: FastCommentsClient::UpdateQuestionConfigBody.new, # UpdateQuestionConfigBody | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | +update_question_config_body = FastCommentsClient::UpdateQuestionConfigBody.new # UpdateQuestionConfigBody | begin - result = api_instance.update_question_config(opts) + result = api_instance.update_question_config(tenant_id, id, update_question_config_body, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_question_config: #{e}" @@ -8252,12 +8144,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_question_config_with_http_info(opts) +> , Integer, Hash)> update_question_config_with_http_info(tenant_id, id, update_question_config_body, opts) ```ruby begin - data, status_code, headers = api_instance.update_question_config_with_http_info(opts) + data, status_code, headers = api_instance.update_question_config_with_http_info(tenant_id, id, update_question_config_body, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -8290,7 +8182,7 @@ end ## update_question_result -> update_question_result(opts) +> update_question_result(tenant_id, id, update_question_result_body, opts) @@ -8308,15 +8200,13 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - update_question_result_body: FastCommentsClient::UpdateQuestionResultBody.new, # UpdateQuestionResultBody | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | +update_question_result_body = FastCommentsClient::UpdateQuestionResultBody.new # UpdateQuestionResultBody | begin - result = api_instance.update_question_result(opts) + result = api_instance.update_question_result(tenant_id, id, update_question_result_body, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_question_result: #{e}" @@ -8327,12 +8217,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_question_result_with_http_info(opts) +> , Integer, Hash)> update_question_result_with_http_info(tenant_id, id, update_question_result_body, opts) ```ruby begin - data, status_code, headers = api_instance.update_question_result_with_http_info(opts) + data, status_code, headers = api_instance.update_question_result_with_http_info(tenant_id, id, update_question_result_body, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -8365,7 +8255,7 @@ end ## update_subscription -> update_subscription(opts) +> update_subscription(tenant_id, id, update_api_user_subscription_data, opts) @@ -8383,16 +8273,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | +update_api_user_subscription_data = FastCommentsClient::UpdateAPIUserSubscriptionData.new # UpdateAPIUserSubscriptionData | opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - update_api_user_subscription_data: FastCommentsClient::UpdateAPIUserSubscriptionData.new, # UpdateAPIUserSubscriptionData | (required) - user_id: 'user_id_example', # String | + user_id: 'user_id_example' # String | } begin - result = api_instance.update_subscription(opts) + result = api_instance.update_subscription(tenant_id, id, update_api_user_subscription_data, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_subscription: #{e}" @@ -8403,12 +8293,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_subscription_with_http_info(opts) +> , Integer, Hash)> update_subscription_with_http_info(tenant_id, id, update_api_user_subscription_data, opts) ```ruby begin - data, status_code, headers = api_instance.update_subscription_with_http_info(opts) + data, status_code, headers = api_instance.update_subscription_with_http_info(tenant_id, id, update_api_user_subscription_data, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -8442,7 +8332,7 @@ end ## update_tenant -> update_tenant(opts) +> update_tenant(tenant_id, id, update_tenant_body, opts) @@ -8460,15 +8350,13 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - update_tenant_body: FastCommentsClient::UpdateTenantBody.new, # UpdateTenantBody | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | +update_tenant_body = FastCommentsClient::UpdateTenantBody.new # UpdateTenantBody | begin - result = api_instance.update_tenant(opts) + result = api_instance.update_tenant(tenant_id, id, update_tenant_body, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_tenant: #{e}" @@ -8479,12 +8367,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_tenant_with_http_info(opts) +> , Integer, Hash)> update_tenant_with_http_info(tenant_id, id, update_tenant_body, opts) ```ruby begin - data, status_code, headers = api_instance.update_tenant_with_http_info(opts) + data, status_code, headers = api_instance.update_tenant_with_http_info(tenant_id, id, update_tenant_body, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -8517,7 +8405,7 @@ end ## update_tenant_package -> update_tenant_package(opts) +> update_tenant_package(tenant_id, id, update_tenant_package_body, opts) @@ -8535,15 +8423,13 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - update_tenant_package_body: FastCommentsClient::UpdateTenantPackageBody.new, # UpdateTenantPackageBody | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | +update_tenant_package_body = FastCommentsClient::UpdateTenantPackageBody.new # UpdateTenantPackageBody | begin - result = api_instance.update_tenant_package(opts) + result = api_instance.update_tenant_package(tenant_id, id, update_tenant_package_body, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_tenant_package: #{e}" @@ -8554,12 +8440,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_tenant_package_with_http_info(opts) +> , Integer, Hash)> update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_body, opts) ```ruby begin - data, status_code, headers = api_instance.update_tenant_package_with_http_info(opts) + data, status_code, headers = api_instance.update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_body, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -8592,7 +8478,7 @@ end ## update_tenant_user -> update_tenant_user(opts) +> update_tenant_user(tenant_id, id, update_tenant_user_body, opts) @@ -8610,16 +8496,16 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | +update_tenant_user_body = FastCommentsClient::UpdateTenantUserBody.new # UpdateTenantUserBody | opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - update_tenant_user_body: FastCommentsClient::UpdateTenantUserBody.new, # UpdateTenantUserBody | (required) - update_comments: 'update_comments_example', # String | + update_comments: 'update_comments_example' # String | } begin - result = api_instance.update_tenant_user(opts) + result = api_instance.update_tenant_user(tenant_id, id, update_tenant_user_body, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_tenant_user: #{e}" @@ -8630,12 +8516,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_tenant_user_with_http_info(opts) +> , Integer, Hash)> update_tenant_user_with_http_info(tenant_id, id, update_tenant_user_body, opts) ```ruby begin - data, status_code, headers = api_instance.update_tenant_user_with_http_info(opts) + data, status_code, headers = api_instance.update_tenant_user_with_http_info(tenant_id, id, update_tenant_user_body, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -8669,7 +8555,7 @@ end ## update_user_badge -> update_user_badge(opts) +> update_user_badge(tenant_id, id, update_user_badge_params, opts) @@ -8687,15 +8573,13 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - id: 'id_example', # String | (required) - update_user_badge_params: FastCommentsClient::UpdateUserBadgeParams.new, # UpdateUserBadgeParams | (required) -} +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | +update_user_badge_params = FastCommentsClient::UpdateUserBadgeParams.new # UpdateUserBadgeParams | begin - result = api_instance.update_user_badge(opts) + result = api_instance.update_user_badge(tenant_id, id, update_user_badge_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_user_badge: #{e}" @@ -8706,12 +8590,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_user_badge_with_http_info(opts) +> , Integer, Hash)> update_user_badge_with_http_info(tenant_id, id, update_user_badge_params, opts) ```ruby begin - data, status_code, headers = api_instance.update_user_badge_with_http_info(opts) + data, status_code, headers = api_instance.update_user_badge_with_http_info(tenant_id, id, update_user_badge_params, opts) p status_code # => 2xx p headers # => { ... } p data # => diff --git a/client/docs/ModerationApi.md b/client/docs/ModerationApi.md index 42b57c7..e835043 100644 --- a/client/docs/ModerationApi.md +++ b/client/docs/ModerationApi.md @@ -51,7 +51,7 @@ All URIs are relative to *https://fastcomments.com* ## delete_moderation_vote -> delete_moderation_vote(opts) +> delete_moderation_vote(comment_id, vote_id, opts) @@ -62,17 +62,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +comment_id = 'comment_id_example' # String | +vote_id = 'vote_id_example' # String | opts = { - comment_id: 'comment_id_example', # String | (required) - vote_id: 'vote_id_example', # String | (required) - tenant_id: 'tenant_id_example', # String | - broadcast_id: 'broadcast_id_example', # String | - sso: 'sso_example', # String | + tenant_id: 'tenant_id_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.delete_moderation_vote(opts) + result = api_instance.delete_moderation_vote(comment_id, vote_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->delete_moderation_vote: #{e}" @@ -83,12 +83,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_moderation_vote_with_http_info(opts) +> , Integer, Hash)> delete_moderation_vote_with_http_info(comment_id, vote_id, opts) ```ruby begin - data, status_code, headers = api_instance.delete_moderation_vote_with_http_info(opts) + data, status_code, headers = api_instance.delete_moderation_vote_with_http_info(comment_id, vote_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -135,16 +135,16 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - page: 1.2, # Float | - count: 1.2, # Float | - text_search: 'text_search_example', # String | - by_ip_from_comment: 'by_ip_from_comment_example', # String | - filters: 'filters_example', # String | - search_filters: 'search_filters_example', # String | - sorts: 'sorts_example', # String | - demo: true, # Boolean | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + page: 1.2, # Float | + count: 1.2, # Float | + text_search: 'text_search_example', # String | + by_ip_from_comment: 'by_ip_from_comment_example', # String | + filters: 'filters_example', # String | + search_filters: 'search_filters_example', # String | + sorts: 'sorts_example', # String | + demo: true, # Boolean | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin @@ -217,9 +217,9 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - batch_job_id: 'batch_job_id_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + batch_job_id: 'batch_job_id_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin @@ -285,14 +285,14 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - text_search: 'text_search_example', # String | - by_ip_from_comment: 'by_ip_from_comment_example', # String | - filters: 'filters_example', # String | - search_filters: 'search_filters_example', # String | - after_id: 'after_id_example', # String | - demo: true, # Boolean | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + text_search: 'text_search_example', # String | + by_ip_from_comment: 'by_ip_from_comment_example', # String | + filters: 'filters_example', # String | + search_filters: 'search_filters_example', # String | + after_id: 'after_id_example', # String | + demo: true, # Boolean | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin @@ -351,7 +351,7 @@ No authorization required ## get_ban_users_from_comment -> get_ban_users_from_comment(opts) +> get_ban_users_from_comment(comment_id, opts) @@ -362,15 +362,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +comment_id = 'comment_id_example' # String | opts = { - comment_id: 'comment_id_example', # String | (required) - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.get_ban_users_from_comment(opts) + result = api_instance.get_ban_users_from_comment(comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_ban_users_from_comment: #{e}" @@ -381,12 +381,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_ban_users_from_comment_with_http_info(opts) +> , Integer, Hash)> get_ban_users_from_comment_with_http_info(comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_ban_users_from_comment_with_http_info(opts) + data, status_code, headers = api_instance.get_ban_users_from_comment_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -419,7 +419,7 @@ No authorization required ## get_comment_ban_status -> get_comment_ban_status(opts) +> get_comment_ban_status(comment_id, opts) @@ -430,15 +430,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +comment_id = 'comment_id_example' # String | opts = { - comment_id: 'comment_id_example', # String | (required) - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.get_comment_ban_status(opts) + result = api_instance.get_comment_ban_status(comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_comment_ban_status: #{e}" @@ -449,12 +449,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comment_ban_status_with_http_info(opts) +> , Integer, Hash)> get_comment_ban_status_with_http_info(comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_comment_ban_status_with_http_info(opts) + data, status_code, headers = api_instance.get_comment_ban_status_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -487,7 +487,7 @@ No authorization required ## get_comment_children -> get_comment_children(opts) +> get_comment_children(comment_id, opts) @@ -498,15 +498,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +comment_id = 'comment_id_example' # String | opts = { - comment_id: 'comment_id_example', # String | (required) - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.get_comment_children(opts) + result = api_instance.get_comment_children(comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_comment_children: #{e}" @@ -517,12 +517,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comment_children_with_http_info(opts) +> , Integer, Hash)> get_comment_children_with_http_info(comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_comment_children_with_http_info(opts) + data, status_code, headers = api_instance.get_comment_children_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -567,13 +567,13 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - text_search: 'text_search_example', # String | - by_ip_from_comment: 'by_ip_from_comment_example', # String | - filter: 'filter_example', # String | - search_filters: 'search_filters_example', # String | - demo: true, # Boolean | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + text_search: 'text_search_example', # String | + by_ip_from_comment: 'by_ip_from_comment_example', # String | + filter: 'filter_example', # String | + search_filters: 'search_filters_example', # String | + demo: true, # Boolean | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin @@ -643,8 +643,8 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin @@ -697,7 +697,7 @@ No authorization required ## get_logs -> get_logs(opts) +> get_logs(comment_id, opts) @@ -708,15 +708,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +comment_id = 'comment_id_example' # String | opts = { - comment_id: 'comment_id_example', # String | (required) - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.get_logs(opts) + result = api_instance.get_logs(comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_logs: #{e}" @@ -727,12 +727,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_logs_with_http_info(opts) +> , Integer, Hash)> get_logs_with_http_info(comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_logs_with_http_info(opts) + data, status_code, headers = api_instance.get_logs_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -777,8 +777,8 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin @@ -843,10 +843,10 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - badges_user_id: 'badges_user_id_example', # String | - comment_id: 'comment_id_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + badges_user_id: 'badges_user_id_example', # String | + comment_id: 'comment_id_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin @@ -901,7 +901,7 @@ No authorization required ## get_moderation_comment -> get_moderation_comment(opts) +> get_moderation_comment(comment_id, opts) @@ -912,17 +912,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +comment_id = 'comment_id_example' # String | opts = { - comment_id: 'comment_id_example', # String | (required) - include_email: true, # Boolean | - include_ip: true, # Boolean | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + include_email: true, # Boolean | + include_ip: true, # Boolean | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.get_moderation_comment(opts) + result = api_instance.get_moderation_comment(comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_moderation_comment: #{e}" @@ -933,12 +933,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_moderation_comment_with_http_info(opts) +> , Integer, Hash)> get_moderation_comment_with_http_info(comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_moderation_comment_with_http_info(opts) + data, status_code, headers = api_instance.get_moderation_comment_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -973,7 +973,7 @@ No authorization required ## get_moderation_comment_text -> get_moderation_comment_text(opts) +> get_moderation_comment_text(comment_id, opts) @@ -984,15 +984,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +comment_id = 'comment_id_example' # String | opts = { - comment_id: 'comment_id_example', # String | (required) - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.get_moderation_comment_text(opts) + result = api_instance.get_moderation_comment_text(comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_moderation_comment_text: #{e}" @@ -1003,12 +1003,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_moderation_comment_text_with_http_info(opts) +> , Integer, Hash)> get_moderation_comment_text_with_http_info(comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_moderation_comment_text_with_http_info(opts) + data, status_code, headers = api_instance.get_moderation_comment_text_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1041,7 +1041,7 @@ No authorization required ## get_pre_ban_summary -> get_pre_ban_summary(opts) +> get_pre_ban_summary(comment_id, opts) @@ -1052,18 +1052,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +comment_id = 'comment_id_example' # String | opts = { - comment_id: 'comment_id_example', # String | (required) - include_by_user_id_and_email: true, # Boolean | - include_by_ip: true, # Boolean | - include_by_email_domain: true, # Boolean | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + include_by_user_id_and_email: true, # Boolean | + include_by_ip: true, # Boolean | + include_by_email_domain: true, # Boolean | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.get_pre_ban_summary(opts) + result = api_instance.get_pre_ban_summary(comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_pre_ban_summary: #{e}" @@ -1074,12 +1074,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_pre_ban_summary_with_http_info(opts) +> , Integer, Hash)> get_pre_ban_summary_with_http_info(comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_pre_ban_summary_with_http_info(opts) + data, status_code, headers = api_instance.get_pre_ban_summary_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1127,11 +1127,11 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - value: 'value_example', # String | - filters: 'filters_example', # String | - search_filters: 'search_filters_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + value: 'value_example', # String | + filters: 'filters_example', # String | + search_filters: 'search_filters_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin @@ -1199,9 +1199,9 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - value: 'value_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + value: 'value_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin @@ -1267,9 +1267,9 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - value: 'value_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + value: 'value_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin @@ -1335,9 +1335,9 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - text_search: 'text_search_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + text_search: 'text_search_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin @@ -1403,9 +1403,9 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - value: 'value_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + value: 'value_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin @@ -1471,9 +1471,9 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - user_id: 'user_id_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + user_id: 'user_id_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin @@ -1539,8 +1539,8 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin @@ -1605,9 +1605,9 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - comment_id: 'comment_id_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + comment_id: 'comment_id_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin @@ -1661,7 +1661,7 @@ No authorization required ## post_adjust_comment_votes -> post_adjust_comment_votes(opts) +> post_adjust_comment_votes(comment_id, adjust_comment_votes_params, opts) @@ -1672,17 +1672,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +comment_id = 'comment_id_example' # String | +adjust_comment_votes_params = FastCommentsClient::AdjustCommentVotesParams.new({adjust_vote_amount: 3.56}) # AdjustCommentVotesParams | opts = { - comment_id: 'comment_id_example', # String | (required) - adjust_comment_votes_params: FastCommentsClient::AdjustCommentVotesParams.new({adjust_vote_amount: 3.56}), # AdjustCommentVotesParams | (required) - tenant_id: 'tenant_id_example', # String | - broadcast_id: 'broadcast_id_example', # String | - sso: 'sso_example', # String | + tenant_id: 'tenant_id_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.post_adjust_comment_votes(opts) + result = api_instance.post_adjust_comment_votes(comment_id, adjust_comment_votes_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_adjust_comment_votes: #{e}" @@ -1693,12 +1693,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_adjust_comment_votes_with_http_info(opts) +> , Integer, Hash)> post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts) ```ruby begin - data, status_code, headers = api_instance.post_adjust_comment_votes_with_http_info(opts) + data, status_code, headers = api_instance.post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1745,13 +1745,13 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - text_search: 'text_search_example', # String | - by_ip_from_comment: 'by_ip_from_comment_example', # String | - filters: 'filters_example', # String | - search_filters: 'search_filters_example', # String | - sorts: 'sorts_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + text_search: 'text_search_example', # String | + by_ip_from_comment: 'by_ip_from_comment_example', # String | + filters: 'filters_example', # String | + search_filters: 'search_filters_example', # String | + sorts: 'sorts_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin @@ -1809,7 +1809,7 @@ No authorization required ## post_ban_user_from_comment -> post_ban_user_from_comment(opts) +> post_ban_user_from_comment(comment_id, opts) @@ -1820,23 +1820,23 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +comment_id = 'comment_id_example' # String | opts = { - comment_id: 'comment_id_example', # String | (required) - ban_email: true, # Boolean | - ban_email_domain: true, # Boolean | - ban_ip: true, # Boolean | - delete_all_users_comments: true, # Boolean | - banned_until: 'banned_until_example', # String | - is_shadow_ban: true, # Boolean | - update_id: 'update_id_example', # String | - ban_reason: 'ban_reason_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + ban_email: true, # Boolean | + ban_email_domain: true, # Boolean | + ban_ip: true, # Boolean | + delete_all_users_comments: true, # Boolean | + banned_until: 'banned_until_example', # String | + is_shadow_ban: true, # Boolean | + update_id: 'update_id_example', # String | + ban_reason: 'ban_reason_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.post_ban_user_from_comment(opts) + result = api_instance.post_ban_user_from_comment(comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_ban_user_from_comment: #{e}" @@ -1847,12 +1847,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_ban_user_from_comment_with_http_info(opts) +> , Integer, Hash)> post_ban_user_from_comment_with_http_info(comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_ban_user_from_comment_with_http_info(opts) + data, status_code, headers = api_instance.post_ban_user_from_comment_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1893,7 +1893,7 @@ No authorization required ## post_ban_user_undo -> post_ban_user_undo(opts) +> post_ban_user_undo(ban_user_undo_params, opts) @@ -1904,15 +1904,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +ban_user_undo_params = FastCommentsClient::BanUserUndoParams.new({changelog: FastCommentsClient::APIBanUserChangeLog.new}) # BanUserUndoParams | opts = { - ban_user_undo_params: FastCommentsClient::BanUserUndoParams.new({changelog: FastCommentsClient::APIBanUserChangeLog.new}), # BanUserUndoParams | (required) - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.post_ban_user_undo(opts) + result = api_instance.post_ban_user_undo(ban_user_undo_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_ban_user_undo: #{e}" @@ -1923,12 +1923,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_ban_user_undo_with_http_info(opts) +> , Integer, Hash)> post_ban_user_undo_with_http_info(ban_user_undo_params, opts) ```ruby begin - data, status_code, headers = api_instance.post_ban_user_undo_with_http_info(opts) + data, status_code, headers = api_instance.post_ban_user_undo_with_http_info(ban_user_undo_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1961,7 +1961,7 @@ No authorization required ## post_bulk_pre_ban_summary -> post_bulk_pre_ban_summary(opts) +> post_bulk_pre_ban_summary(bulk_pre_ban_params, opts) @@ -1972,18 +1972,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +bulk_pre_ban_params = FastCommentsClient::BulkPreBanParams.new({comment_ids: ['comment_ids_example']}) # BulkPreBanParams | opts = { - bulk_pre_ban_params: FastCommentsClient::BulkPreBanParams.new({comment_ids: ['comment_ids_example']}), # BulkPreBanParams | (required) - include_by_user_id_and_email: true, # Boolean | - include_by_ip: true, # Boolean | - include_by_email_domain: true, # Boolean | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + include_by_user_id_and_email: true, # Boolean | + include_by_ip: true, # Boolean | + include_by_email_domain: true, # Boolean | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.post_bulk_pre_ban_summary(opts) + result = api_instance.post_bulk_pre_ban_summary(bulk_pre_ban_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_bulk_pre_ban_summary: #{e}" @@ -1994,12 +1994,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_bulk_pre_ban_summary_with_http_info(opts) +> , Integer, Hash)> post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts) ```ruby begin - data, status_code, headers = api_instance.post_bulk_pre_ban_summary_with_http_info(opts) + data, status_code, headers = api_instance.post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2035,7 +2035,7 @@ No authorization required ## post_comments_by_ids -> post_comments_by_ids(opts) +> post_comments_by_ids(comments_by_ids_params, opts) @@ -2046,15 +2046,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +comments_by_ids_params = FastCommentsClient::CommentsByIdsParams.new({ids: ['ids_example']}) # CommentsByIdsParams | opts = { - comments_by_ids_params: FastCommentsClient::CommentsByIdsParams.new({ids: ['ids_example']}), # CommentsByIdsParams | (required) - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.post_comments_by_ids(opts) + result = api_instance.post_comments_by_ids(comments_by_ids_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_comments_by_ids: #{e}" @@ -2065,12 +2065,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_comments_by_ids_with_http_info(opts) +> , Integer, Hash)> post_comments_by_ids_with_http_info(comments_by_ids_params, opts) ```ruby begin - data, status_code, headers = api_instance.post_comments_by_ids_with_http_info(opts) + data, status_code, headers = api_instance.post_comments_by_ids_with_http_info(comments_by_ids_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2103,7 +2103,7 @@ No authorization required ## post_flag_comment -> post_flag_comment(opts) +> post_flag_comment(comment_id, opts) @@ -2114,16 +2114,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +comment_id = 'comment_id_example' # String | opts = { - comment_id: 'comment_id_example', # String | (required) - tenant_id: 'tenant_id_example', # String | - broadcast_id: 'broadcast_id_example', # String | - sso: 'sso_example', # String | + tenant_id: 'tenant_id_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.post_flag_comment(opts) + result = api_instance.post_flag_comment(comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_flag_comment: #{e}" @@ -2134,12 +2134,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_flag_comment_with_http_info(opts) +> , Integer, Hash)> post_flag_comment_with_http_info(comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_flag_comment_with_http_info(opts) + data, status_code, headers = api_instance.post_flag_comment_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2173,7 +2173,7 @@ No authorization required ## post_remove_comment -> post_remove_comment(opts) +> post_remove_comment(comment_id, opts) @@ -2184,16 +2184,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +comment_id = 'comment_id_example' # String | opts = { - comment_id: 'comment_id_example', # String | (required) - tenant_id: 'tenant_id_example', # String | - broadcast_id: 'broadcast_id_example', # String | - sso: 'sso_example', # String | + tenant_id: 'tenant_id_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.post_remove_comment(opts) + result = api_instance.post_remove_comment(comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_remove_comment: #{e}" @@ -2204,12 +2204,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_remove_comment_with_http_info(opts) +> , Integer, Hash)> post_remove_comment_with_http_info(comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_remove_comment_with_http_info(opts) + data, status_code, headers = api_instance.post_remove_comment_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2243,7 +2243,7 @@ No authorization required ## post_restore_deleted_comment -> post_restore_deleted_comment(opts) +> post_restore_deleted_comment(comment_id, opts) @@ -2254,16 +2254,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +comment_id = 'comment_id_example' # String | opts = { - comment_id: 'comment_id_example', # String | (required) - tenant_id: 'tenant_id_example', # String | - broadcast_id: 'broadcast_id_example', # String | - sso: 'sso_example', # String | + tenant_id: 'tenant_id_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.post_restore_deleted_comment(opts) + result = api_instance.post_restore_deleted_comment(comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_restore_deleted_comment: #{e}" @@ -2274,12 +2274,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_restore_deleted_comment_with_http_info(opts) +> , Integer, Hash)> post_restore_deleted_comment_with_http_info(comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_restore_deleted_comment_with_http_info(opts) + data, status_code, headers = api_instance.post_restore_deleted_comment_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2313,7 +2313,7 @@ No authorization required ## post_set_comment_approval_status -> post_set_comment_approval_status(opts) +> post_set_comment_approval_status(comment_id, opts) @@ -2324,17 +2324,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +comment_id = 'comment_id_example' # String | opts = { - comment_id: 'comment_id_example', # String | (required) - approved: true, # Boolean | - tenant_id: 'tenant_id_example', # String | - broadcast_id: 'broadcast_id_example', # String | - sso: 'sso_example', # String | + approved: true, # Boolean | + tenant_id: 'tenant_id_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.post_set_comment_approval_status(opts) + result = api_instance.post_set_comment_approval_status(comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_set_comment_approval_status: #{e}" @@ -2345,12 +2345,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_set_comment_approval_status_with_http_info(opts) +> , Integer, Hash)> post_set_comment_approval_status_with_http_info(comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_set_comment_approval_status_with_http_info(opts) + data, status_code, headers = api_instance.post_set_comment_approval_status_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2385,7 +2385,7 @@ No authorization required ## post_set_comment_review_status -> post_set_comment_review_status(opts) +> post_set_comment_review_status(comment_id, opts) @@ -2396,17 +2396,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +comment_id = 'comment_id_example' # String | opts = { - comment_id: 'comment_id_example', # String | (required) - reviewed: true, # Boolean | - tenant_id: 'tenant_id_example', # String | - broadcast_id: 'broadcast_id_example', # String | - sso: 'sso_example', # String | + reviewed: true, # Boolean | + tenant_id: 'tenant_id_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.post_set_comment_review_status(opts) + result = api_instance.post_set_comment_review_status(comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_set_comment_review_status: #{e}" @@ -2417,12 +2417,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_set_comment_review_status_with_http_info(opts) +> , Integer, Hash)> post_set_comment_review_status_with_http_info(comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_set_comment_review_status_with_http_info(opts) + data, status_code, headers = api_instance.post_set_comment_review_status_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2457,7 +2457,7 @@ No authorization required ## post_set_comment_spam_status -> post_set_comment_spam_status(opts) +> post_set_comment_spam_status(comment_id, opts) @@ -2468,18 +2468,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +comment_id = 'comment_id_example' # String | opts = { - comment_id: 'comment_id_example', # String | (required) - spam: true, # Boolean | - perm_not_spam: true, # Boolean | - tenant_id: 'tenant_id_example', # String | - broadcast_id: 'broadcast_id_example', # String | - sso: 'sso_example', # String | + spam: true, # Boolean | + perm_not_spam: true, # Boolean | + tenant_id: 'tenant_id_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.post_set_comment_spam_status(opts) + result = api_instance.post_set_comment_spam_status(comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_set_comment_spam_status: #{e}" @@ -2490,12 +2490,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_set_comment_spam_status_with_http_info(opts) +> , Integer, Hash)> post_set_comment_spam_status_with_http_info(comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_set_comment_spam_status_with_http_info(opts) + data, status_code, headers = api_instance.post_set_comment_spam_status_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2531,7 +2531,7 @@ No authorization required ## post_set_comment_text -> post_set_comment_text(opts) +> post_set_comment_text(comment_id, set_comment_text_params, opts) @@ -2542,17 +2542,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +comment_id = 'comment_id_example' # String | +set_comment_text_params = FastCommentsClient::SetCommentTextParams.new({comment: 'comment_example'}) # SetCommentTextParams | opts = { - comment_id: 'comment_id_example', # String | (required) - set_comment_text_params: FastCommentsClient::SetCommentTextParams.new({comment: 'comment_example'}), # SetCommentTextParams | (required) - tenant_id: 'tenant_id_example', # String | - broadcast_id: 'broadcast_id_example', # String | - sso: 'sso_example', # String | + tenant_id: 'tenant_id_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.post_set_comment_text(opts) + result = api_instance.post_set_comment_text(comment_id, set_comment_text_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_set_comment_text: #{e}" @@ -2563,12 +2563,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_set_comment_text_with_http_info(opts) +> , Integer, Hash)> post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts) ```ruby begin - data, status_code, headers = api_instance.post_set_comment_text_with_http_info(opts) + data, status_code, headers = api_instance.post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2603,7 +2603,7 @@ No authorization required ## post_un_flag_comment -> post_un_flag_comment(opts) +> post_un_flag_comment(comment_id, opts) @@ -2614,16 +2614,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +comment_id = 'comment_id_example' # String | opts = { - comment_id: 'comment_id_example', # String | (required) - tenant_id: 'tenant_id_example', # String | - broadcast_id: 'broadcast_id_example', # String | - sso: 'sso_example', # String | + tenant_id: 'tenant_id_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.post_un_flag_comment(opts) + result = api_instance.post_un_flag_comment(comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_un_flag_comment: #{e}" @@ -2634,12 +2634,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_un_flag_comment_with_http_info(opts) +> , Integer, Hash)> post_un_flag_comment_with_http_info(comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_un_flag_comment_with_http_info(opts) + data, status_code, headers = api_instance.post_un_flag_comment_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2673,7 +2673,7 @@ No authorization required ## post_vote -> post_vote(opts) +> post_vote(comment_id, opts) @@ -2684,17 +2684,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +comment_id = 'comment_id_example' # String | opts = { - comment_id: 'comment_id_example', # String | (required) - direction: 'direction_example', # String | - tenant_id: 'tenant_id_example', # String | - broadcast_id: 'broadcast_id_example', # String | - sso: 'sso_example', # String | + direction: 'direction_example', # String | + tenant_id: 'tenant_id_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.post_vote(opts) + result = api_instance.post_vote(comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_vote: #{e}" @@ -2705,12 +2705,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_vote_with_http_info(opts) +> , Integer, Hash)> post_vote_with_http_info(comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_vote_with_http_info(opts) + data, status_code, headers = api_instance.post_vote_with_http_info(comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2745,7 +2745,7 @@ No authorization required ## put_award_badge -> put_award_badge(opts) +> put_award_badge(badge_id, opts) @@ -2756,18 +2756,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +badge_id = 'badge_id_example' # String | opts = { - badge_id: 'badge_id_example', # String | (required) - user_id: 'user_id_example', # String | - comment_id: 'comment_id_example', # String | - tenant_id: 'tenant_id_example', # String | - broadcast_id: 'broadcast_id_example', # String | - sso: 'sso_example', # String | + user_id: 'user_id_example', # String | + comment_id: 'comment_id_example', # String | + tenant_id: 'tenant_id_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.put_award_badge(opts) + result = api_instance.put_award_badge(badge_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->put_award_badge: #{e}" @@ -2778,12 +2778,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_award_badge_with_http_info(opts) +> , Integer, Hash)> put_award_badge_with_http_info(badge_id, opts) ```ruby begin - data, status_code, headers = api_instance.put_award_badge_with_http_info(opts) + data, status_code, headers = api_instance.put_award_badge_with_http_info(badge_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2819,7 +2819,7 @@ No authorization required ## put_close_thread -> put_close_thread(opts) +> put_close_thread(url_id, opts) @@ -2830,15 +2830,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +url_id = 'url_id_example' # String | opts = { - url_id: 'url_id_example', # String | (required) - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.put_close_thread(opts) + result = api_instance.put_close_thread(url_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->put_close_thread: #{e}" @@ -2849,12 +2849,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_close_thread_with_http_info(opts) +> , Integer, Hash)> put_close_thread_with_http_info(url_id, opts) ```ruby begin - data, status_code, headers = api_instance.put_close_thread_with_http_info(opts) + data, status_code, headers = api_instance.put_close_thread_with_http_info(url_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2887,7 +2887,7 @@ No authorization required ## put_remove_badge -> put_remove_badge(opts) +> put_remove_badge(badge_id, opts) @@ -2898,18 +2898,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +badge_id = 'badge_id_example' # String | opts = { - badge_id: 'badge_id_example', # String | (required) - user_id: 'user_id_example', # String | - comment_id: 'comment_id_example', # String | - tenant_id: 'tenant_id_example', # String | - broadcast_id: 'broadcast_id_example', # String | - sso: 'sso_example', # String | + user_id: 'user_id_example', # String | + comment_id: 'comment_id_example', # String | + tenant_id: 'tenant_id_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.put_remove_badge(opts) + result = api_instance.put_remove_badge(badge_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->put_remove_badge: #{e}" @@ -2920,12 +2920,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_remove_badge_with_http_info(opts) +> , Integer, Hash)> put_remove_badge_with_http_info(badge_id, opts) ```ruby begin - data, status_code, headers = api_instance.put_remove_badge_with_http_info(opts) + data, status_code, headers = api_instance.put_remove_badge_with_http_info(badge_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2961,7 +2961,7 @@ No authorization required ## put_reopen_thread -> put_reopen_thread(opts) +> put_reopen_thread(url_id, opts) @@ -2972,15 +2972,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +url_id = 'url_id_example' # String | opts = { - url_id: 'url_id_example', # String | (required) - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.put_reopen_thread(opts) + result = api_instance.put_reopen_thread(url_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->put_reopen_thread: #{e}" @@ -2991,12 +2991,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_reopen_thread_with_http_info(opts) +> , Integer, Hash)> put_reopen_thread_with_http_info(url_id, opts) ```ruby begin - data, status_code, headers = api_instance.put_reopen_thread_with_http_info(opts) + data, status_code, headers = api_instance.put_reopen_thread_with_http_info(url_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3041,10 +3041,10 @@ require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new opts = { - user_id: 'user_id_example', # String | - trust_factor: 'trust_factor_example', # String | - tenant_id: 'tenant_id_example', # String | - sso: 'sso_example', # String | + user_id: 'user_id_example', # String | + trust_factor: 'trust_factor_example', # String | + tenant_id: 'tenant_id_example', # String | + sso: 'sso_example' # String | } begin diff --git a/client/docs/PublicApi.md b/client/docs/PublicApi.md index d051a4f..bda5688 100644 --- a/client/docs/PublicApi.md +++ b/client/docs/PublicApi.md @@ -60,7 +60,7 @@ All URIs are relative to *https://fastcomments.com* ## block_from_comment_public -> block_from_comment_public(opts) +> block_from_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts) @@ -71,16 +71,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +comment_id = 'comment_id_example' # String | +public_block_from_comment_params = FastCommentsClient::PublicBlockFromCommentParams.new({comment_ids: ['comment_ids_example']}) # PublicBlockFromCommentParams | opts = { - tenant_id: 'tenant_id_example', # String | (required) - comment_id: 'comment_id_example', # String | (required) - public_block_from_comment_params: FastCommentsClient::PublicBlockFromCommentParams.new({comment_ids: ['comment_ids_example']}), # PublicBlockFromCommentParams | (required) - sso: 'sso_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.block_from_comment_public(opts) + result = api_instance.block_from_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->block_from_comment_public: #{e}" @@ -91,12 +91,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> block_from_comment_public_with_http_info(opts) +> , Integer, Hash)> block_from_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) ```ruby begin - data, status_code, headers = api_instance.block_from_comment_public_with_http_info(opts) + data, status_code, headers = api_instance.block_from_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -130,7 +130,7 @@ No authorization required ## checked_comments_for_blocked -> checked_comments_for_blocked(opts) +> checked_comments_for_blocked(tenant_id, comment_ids, opts) @@ -141,15 +141,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +comment_ids = 'comment_ids_example' # String | A comma separated list of comment ids. opts = { - tenant_id: 'tenant_id_example', # String | (required) - comment_ids: 'comment_ids_example', # String | A comma separated list of comment ids. (required) - sso: 'sso_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.checked_comments_for_blocked(opts) + result = api_instance.checked_comments_for_blocked(tenant_id, comment_ids, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->checked_comments_for_blocked: #{e}" @@ -160,12 +160,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> checked_comments_for_blocked_with_http_info(opts) +> , Integer, Hash)> checked_comments_for_blocked_with_http_info(tenant_id, comment_ids, opts) ```ruby begin - data, status_code, headers = api_instance.checked_comments_for_blocked_with_http_info(opts) + data, status_code, headers = api_instance.checked_comments_for_blocked_with_http_info(tenant_id, comment_ids, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -198,7 +198,7 @@ No authorization required ## create_comment_public -> create_comment_public(opts) +> create_comment_public(tenant_id, url_id, broadcast_id, comment_data, opts) @@ -209,18 +209,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +url_id = 'url_id_example' # String | +broadcast_id = 'broadcast_id_example' # String | +comment_data = FastCommentsClient::CommentData.new({commenter_name: 'commenter_name_example', comment: 'comment_example', url: 'url_example', url_id: 'url_id_example'}) # CommentData | opts = { - tenant_id: 'tenant_id_example', # String | (required) - url_id: 'url_id_example', # String | (required) - broadcast_id: 'broadcast_id_example', # String | (required) - comment_data: FastCommentsClient::CommentData.new({commenter_name: 'commenter_name_example', comment: 'comment_example', url: 'url_example', url_id: 'url_id_example'}), # CommentData | (required) - session_id: 'session_id_example', # String | - sso: 'sso_example', # String | + session_id: 'session_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.create_comment_public(opts) + result = api_instance.create_comment_public(tenant_id, url_id, broadcast_id, comment_data, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->create_comment_public: #{e}" @@ -231,12 +231,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_comment_public_with_http_info(opts) +> , Integer, Hash)> create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, comment_data, opts) ```ruby begin - data, status_code, headers = api_instance.create_comment_public_with_http_info(opts) + data, status_code, headers = api_instance.create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, comment_data, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -272,7 +272,7 @@ No authorization required ## create_feed_post_public -> create_feed_post_public(opts) +> create_feed_post_public(tenant_id, create_feed_post_params, opts) @@ -283,16 +283,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +create_feed_post_params = FastCommentsClient::CreateFeedPostParams.new # CreateFeedPostParams | opts = { - tenant_id: 'tenant_id_example', # String | (required) - create_feed_post_params: FastCommentsClient::CreateFeedPostParams.new, # CreateFeedPostParams | (required) - broadcast_id: 'broadcast_id_example', # String | - sso: 'sso_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.create_feed_post_public(opts) + result = api_instance.create_feed_post_public(tenant_id, create_feed_post_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->create_feed_post_public: #{e}" @@ -303,12 +303,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_feed_post_public_with_http_info(opts) +> , Integer, Hash)> create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, opts) ```ruby begin - data, status_code, headers = api_instance.create_feed_post_public_with_http_info(opts) + data, status_code, headers = api_instance.create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -342,7 +342,7 @@ No authorization required ## create_v1_page_react -> create_v1_page_react(opts) +> create_v1_page_react(tenant_id, url_id, opts) @@ -353,15 +353,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +url_id = 'url_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - url_id: 'url_id_example', # String | (required) - title: 'title_example', # String | + title: 'title_example' # String | } begin - result = api_instance.create_v1_page_react(opts) + result = api_instance.create_v1_page_react(tenant_id, url_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->create_v1_page_react: #{e}" @@ -372,12 +372,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_v1_page_react_with_http_info(opts) +> , Integer, Hash)> create_v1_page_react_with_http_info(tenant_id, url_id, opts) ```ruby begin - data, status_code, headers = api_instance.create_v1_page_react_with_http_info(opts) + data, status_code, headers = api_instance.create_v1_page_react_with_http_info(tenant_id, url_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -410,7 +410,7 @@ No authorization required ## create_v2_page_react -> create_v2_page_react(opts) +> create_v2_page_react(tenant_id, url_id, id, opts) @@ -421,16 +421,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +url_id = 'url_id_example' # String | +id = 'id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - url_id: 'url_id_example', # String | (required) - id: 'id_example', # String | (required) - title: 'title_example', # String | + title: 'title_example' # String | } begin - result = api_instance.create_v2_page_react(opts) + result = api_instance.create_v2_page_react(tenant_id, url_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->create_v2_page_react: #{e}" @@ -441,12 +441,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_v2_page_react_with_http_info(opts) +> , Integer, Hash)> create_v2_page_react_with_http_info(tenant_id, url_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.create_v2_page_react_with_http_info(opts) + data, status_code, headers = api_instance.create_v2_page_react_with_http_info(tenant_id, url_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -480,7 +480,7 @@ No authorization required ## delete_comment_public -> delete_comment_public(opts) +> delete_comment_public(tenant_id, comment_id, broadcast_id, opts) @@ -491,17 +491,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +comment_id = 'comment_id_example' # String | +broadcast_id = 'broadcast_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - comment_id: 'comment_id_example', # String | (required) - broadcast_id: 'broadcast_id_example', # String | (required) - edit_key: 'edit_key_example', # String | - sso: 'sso_example', # String | + edit_key: 'edit_key_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.delete_comment_public(opts) + result = api_instance.delete_comment_public(tenant_id, comment_id, broadcast_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->delete_comment_public: #{e}" @@ -512,12 +512,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_comment_public_with_http_info(opts) +> , Integer, Hash)> delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, opts) ```ruby begin - data, status_code, headers = api_instance.delete_comment_public_with_http_info(opts) + data, status_code, headers = api_instance.delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -552,7 +552,7 @@ No authorization required ## delete_comment_vote -> delete_comment_vote(opts) +> delete_comment_vote(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts) @@ -563,19 +563,19 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +comment_id = 'comment_id_example' # String | +vote_id = 'vote_id_example' # String | +url_id = 'url_id_example' # String | +broadcast_id = 'broadcast_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - comment_id: 'comment_id_example', # String | (required) - vote_id: 'vote_id_example', # String | (required) - url_id: 'url_id_example', # String | (required) - broadcast_id: 'broadcast_id_example', # String | (required) - edit_key: 'edit_key_example', # String | - sso: 'sso_example', # String | + edit_key: 'edit_key_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.delete_comment_vote(opts) + result = api_instance.delete_comment_vote(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->delete_comment_vote: #{e}" @@ -586,12 +586,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_comment_vote_with_http_info(opts) +> , Integer, Hash)> delete_comment_vote_with_http_info(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts) ```ruby begin - data, status_code, headers = api_instance.delete_comment_vote_with_http_info(opts) + data, status_code, headers = api_instance.delete_comment_vote_with_http_info(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -628,7 +628,7 @@ No authorization required ## delete_feed_post_public -> delete_feed_post_public(opts) +> delete_feed_post_public(tenant_id, post_id, opts) @@ -639,16 +639,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +post_id = 'post_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - post_id: 'post_id_example', # String | (required) - broadcast_id: 'broadcast_id_example', # String | - sso: 'sso_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.delete_feed_post_public(opts) + result = api_instance.delete_feed_post_public(tenant_id, post_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->delete_feed_post_public: #{e}" @@ -659,12 +659,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_feed_post_public_with_http_info(opts) +> , Integer, Hash)> delete_feed_post_public_with_http_info(tenant_id, post_id, opts) ```ruby begin - data, status_code, headers = api_instance.delete_feed_post_public_with_http_info(opts) + data, status_code, headers = api_instance.delete_feed_post_public_with_http_info(tenant_id, post_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -698,7 +698,7 @@ No authorization required ## delete_v1_page_react -> delete_v1_page_react(opts) +> delete_v1_page_react(tenant_id, url_id, opts) @@ -709,14 +709,12 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - url_id: 'url_id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +url_id = 'url_id_example' # String | begin - result = api_instance.delete_v1_page_react(opts) + result = api_instance.delete_v1_page_react(tenant_id, url_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->delete_v1_page_react: #{e}" @@ -727,12 +725,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_v1_page_react_with_http_info(opts) +> , Integer, Hash)> delete_v1_page_react_with_http_info(tenant_id, url_id, opts) ```ruby begin - data, status_code, headers = api_instance.delete_v1_page_react_with_http_info(opts) + data, status_code, headers = api_instance.delete_v1_page_react_with_http_info(tenant_id, url_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -764,7 +762,7 @@ No authorization required ## delete_v2_page_react -> delete_v2_page_react(opts) +> delete_v2_page_react(tenant_id, url_id, id, opts) @@ -775,15 +773,13 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - url_id: 'url_id_example', # String | (required) - id: 'id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +url_id = 'url_id_example' # String | +id = 'id_example' # String | begin - result = api_instance.delete_v2_page_react(opts) + result = api_instance.delete_v2_page_react(tenant_id, url_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->delete_v2_page_react: #{e}" @@ -794,12 +790,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_v2_page_react_with_http_info(opts) +> , Integer, Hash)> delete_v2_page_react_with_http_info(tenant_id, url_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.delete_v2_page_react_with_http_info(opts) + data, status_code, headers = api_instance.delete_v2_page_react_with_http_info(tenant_id, url_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -832,7 +828,7 @@ No authorization required ## flag_comment_public -> flag_comment_public(opts) +> flag_comment_public(tenant_id, comment_id, is_flagged, opts) @@ -843,16 +839,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +comment_id = 'comment_id_example' # String | +is_flagged = true # Boolean | opts = { - tenant_id: 'tenant_id_example', # String | (required) - comment_id: 'comment_id_example', # String | (required) - is_flagged: true, # Boolean | (required) - sso: 'sso_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.flag_comment_public(opts) + result = api_instance.flag_comment_public(tenant_id, comment_id, is_flagged, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->flag_comment_public: #{e}" @@ -863,12 +859,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> flag_comment_public_with_http_info(opts) +> , Integer, Hash)> flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts) ```ruby begin - data, status_code, headers = api_instance.flag_comment_public_with_http_info(opts) + data, status_code, headers = api_instance.flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -902,7 +898,7 @@ No authorization required ## get_comment_text -> get_comment_text(opts) +> get_comment_text(tenant_id, comment_id, opts) @@ -913,16 +909,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +comment_id = 'comment_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - comment_id: 'comment_id_example', # String | (required) - edit_key: 'edit_key_example', # String | - sso: 'sso_example', # String | + edit_key: 'edit_key_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.get_comment_text(opts) + result = api_instance.get_comment_text(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_comment_text: #{e}" @@ -933,12 +929,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comment_text_with_http_info(opts) +> , Integer, Hash)> get_comment_text_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_comment_text_with_http_info(opts) + data, status_code, headers = api_instance.get_comment_text_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -972,7 +968,7 @@ No authorization required ## get_comment_vote_user_names -> get_comment_vote_user_names(opts) +> get_comment_vote_user_names(tenant_id, comment_id, dir, opts) @@ -983,16 +979,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +comment_id = 'comment_id_example' # String | +dir = 56 # Integer | opts = { - tenant_id: 'tenant_id_example', # String | (required) - comment_id: 'comment_id_example', # String | (required) - dir: 56, # Integer | (required) - sso: 'sso_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.get_comment_vote_user_names(opts) + result = api_instance.get_comment_vote_user_names(tenant_id, comment_id, dir, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_comment_vote_user_names: #{e}" @@ -1003,12 +999,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comment_vote_user_names_with_http_info(opts) +> , Integer, Hash)> get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts) ```ruby begin - data, status_code, headers = api_instance.get_comment_vote_user_names_with_http_info(opts) + data, status_code, headers = api_instance.get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1054,13 +1050,13 @@ require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new opts = { - user_id: 'user_id_example', # String | - direction: FastCommentsClient::SortDirections::OF, # SortDirections | - replies_to_user_id: 'replies_to_user_id_example', # String | - page: 1.2, # Float | - includei10n: true, # Boolean | - locale: 'locale_example', # String | - is_crawler: true, # Boolean | + user_id: 'user_id_example', # String | + direction: FastCommentsClient::SortDirections::OF, # SortDirections | + replies_to_user_id: 'replies_to_user_id_example', # String | + page: 1.2, # Float | + includei10n: true, # Boolean | + locale: 'locale_example', # String | + is_crawler: true # Boolean | } begin @@ -1118,7 +1114,7 @@ No authorization required ## get_comments_public -> get_comments_public(opts) +> get_comments_public(tenant_id, url_id, opts) @@ -1131,40 +1127,40 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +url_id = 'url_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - url_id: 'url_id_example', # String | (required) - page: 56, # Integer | - direction: FastCommentsClient::SortDirections::OF, # SortDirections | - sso: 'sso_example', # String | - skip: 56, # Integer | - skip_children: 56, # Integer | - limit: 56, # Integer | - limit_children: 56, # Integer | - count_children: true, # Boolean | - fetch_page_for_comment_id: 'fetch_page_for_comment_id_example', # String | - include_config: true, # Boolean | - count_all: true, # Boolean | - includei10n: true, # Boolean | - locale: 'locale_example', # String | - modules: 'modules_example', # String | - is_crawler: true, # Boolean | - include_notification_count: true, # Boolean | - as_tree: true, # Boolean | - max_tree_depth: 56, # Integer | - use_full_translation_ids: true, # Boolean | - parent_id: 'parent_id_example', # String | - search_text: 'search_text_example', # String | - hash_tags: ['inner_example'], # Array | - user_id: 'user_id_example', # String | - custom_config_str: 'custom_config_str_example', # String | - after_comment_id: 'after_comment_id_example', # String | - before_comment_id: 'before_comment_id_example', # String | + page: 56, # Integer | + direction: FastCommentsClient::SortDirections::OF, # SortDirections | + sso: 'sso_example', # String | + skip: 56, # Integer | + skip_children: 56, # Integer | + limit: 56, # Integer | + limit_children: 56, # Integer | + count_children: true, # Boolean | + fetch_page_for_comment_id: 'fetch_page_for_comment_id_example', # String | + include_config: true, # Boolean | + count_all: true, # Boolean | + includei10n: true, # Boolean | + locale: 'locale_example', # String | + modules: 'modules_example', # String | + is_crawler: true, # Boolean | + include_notification_count: true, # Boolean | + as_tree: true, # Boolean | + max_tree_depth: 56, # Integer | + use_full_translation_ids: true, # Boolean | + parent_id: 'parent_id_example', # String | + search_text: 'search_text_example', # String | + hash_tags: ['inner_example'], # Array | + user_id: 'user_id_example', # String | + custom_config_str: 'custom_config_str_example', # String | + after_comment_id: 'after_comment_id_example', # String | + before_comment_id: 'before_comment_id_example' # String | } begin - result = api_instance.get_comments_public(opts) + result = api_instance.get_comments_public(tenant_id, url_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_comments_public: #{e}" @@ -1175,12 +1171,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comments_public_with_http_info(opts) +> , Integer, Hash)> get_comments_public_with_http_info(tenant_id, url_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_comments_public_with_http_info(opts) + data, status_code, headers = api_instance.get_comments_public_with_http_info(tenant_id, url_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1238,7 +1234,7 @@ No authorization required ## get_event_log -> get_event_log(opts) +> get_event_log(tenant_id, url_id, user_id_ws, start_time, opts) @@ -1251,17 +1247,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +url_id = 'url_id_example' # String | +user_id_ws = 'user_id_ws_example' # String | +start_time = 789 # Integer | opts = { - tenant_id: 'tenant_id_example', # String | (required) - url_id: 'url_id_example', # String | (required) - user_id_ws: 'user_id_ws_example', # String | (required) - start_time: 789, # Integer | (required) - end_time: 789, # Integer | + end_time: 789 # Integer | } begin - result = api_instance.get_event_log(opts) + result = api_instance.get_event_log(tenant_id, url_id, user_id_ws, start_time, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_event_log: #{e}" @@ -1272,12 +1268,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_event_log_with_http_info(opts) +> , Integer, Hash)> get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) ```ruby begin - data, status_code, headers = api_instance.get_event_log_with_http_info(opts) + data, status_code, headers = api_instance.get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1312,7 +1308,7 @@ No authorization required ## get_feed_posts_public -> get_feed_posts_public(opts) +> get_feed_posts_public(tenant_id, opts) @@ -1325,19 +1321,19 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - after_id: 'after_id_example', # String | - limit: 56, # Integer | - tags: ['inner_example'], # Array | - sso: 'sso_example', # String | - is_crawler: true, # Boolean | - include_user_info: true, # Boolean | + after_id: 'after_id_example', # String | + limit: 56, # Integer | + tags: ['inner_example'], # Array | + sso: 'sso_example', # String | + is_crawler: true, # Boolean | + include_user_info: true # Boolean | } begin - result = api_instance.get_feed_posts_public(opts) + result = api_instance.get_feed_posts_public(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_feed_posts_public: #{e}" @@ -1348,12 +1344,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_feed_posts_public_with_http_info(opts) +> , Integer, Hash)> get_feed_posts_public_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_feed_posts_public_with_http_info(opts) + data, status_code, headers = api_instance.get_feed_posts_public_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1390,7 +1386,7 @@ No authorization required ## get_feed_posts_stats -> get_feed_posts_stats(opts) +> get_feed_posts_stats(tenant_id, post_ids, opts) @@ -1401,15 +1397,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +post_ids = ['inner_example'] # Array | opts = { - tenant_id: 'tenant_id_example', # String | (required) - post_ids: ['inner_example'], # Array | (required) - sso: 'sso_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.get_feed_posts_stats(opts) + result = api_instance.get_feed_posts_stats(tenant_id, post_ids, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_feed_posts_stats: #{e}" @@ -1420,12 +1416,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_feed_posts_stats_with_http_info(opts) +> , Integer, Hash)> get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts) ```ruby begin - data, status_code, headers = api_instance.get_feed_posts_stats_with_http_info(opts) + data, status_code, headers = api_instance.get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1458,7 +1454,7 @@ No authorization required ## get_gif_large -> get_gif_large(opts) +> get_gif_large(tenant_id, large_internal_url_sanitized, opts) @@ -1469,14 +1465,12 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - large_internal_url_sanitized: 'large_internal_url_sanitized_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +large_internal_url_sanitized = 'large_internal_url_sanitized_example' # String | begin - result = api_instance.get_gif_large(opts) + result = api_instance.get_gif_large(tenant_id, large_internal_url_sanitized, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_gif_large: #{e}" @@ -1487,12 +1481,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_gif_large_with_http_info(opts) +> , Integer, Hash)> get_gif_large_with_http_info(tenant_id, large_internal_url_sanitized, opts) ```ruby begin - data, status_code, headers = api_instance.get_gif_large_with_http_info(opts) + data, status_code, headers = api_instance.get_gif_large_with_http_info(tenant_id, large_internal_url_sanitized, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1524,7 +1518,7 @@ No authorization required ## get_gifs_search -> get_gifs_search(opts) +> get_gifs_search(tenant_id, search, opts) @@ -1535,17 +1529,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +search = 'search_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - search: 'search_example', # String | (required) - locale: 'locale_example', # String | - rating: 'rating_example', # String | - page: 1.2, # Float | + locale: 'locale_example', # String | + rating: 'rating_example', # String | + page: 1.2 # Float | } begin - result = api_instance.get_gifs_search(opts) + result = api_instance.get_gifs_search(tenant_id, search, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_gifs_search: #{e}" @@ -1556,12 +1550,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_gifs_search_with_http_info(opts) +> , Integer, Hash)> get_gifs_search_with_http_info(tenant_id, search, opts) ```ruby begin - data, status_code, headers = api_instance.get_gifs_search_with_http_info(opts) + data, status_code, headers = api_instance.get_gifs_search_with_http_info(tenant_id, search, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1596,7 +1590,7 @@ No authorization required ## get_gifs_trending -> get_gifs_trending(opts) +> get_gifs_trending(tenant_id, opts) @@ -1607,16 +1601,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - locale: 'locale_example', # String | - rating: 'rating_example', # String | - page: 1.2, # Float | + locale: 'locale_example', # String | + rating: 'rating_example', # String | + page: 1.2 # Float | } begin - result = api_instance.get_gifs_trending(opts) + result = api_instance.get_gifs_trending(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_gifs_trending: #{e}" @@ -1627,12 +1621,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_gifs_trending_with_http_info(opts) +> , Integer, Hash)> get_gifs_trending_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_gifs_trending_with_http_info(opts) + data, status_code, headers = api_instance.get_gifs_trending_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1666,7 +1660,7 @@ No authorization required ## get_global_event_log -> get_global_event_log(opts) +> get_global_event_log(tenant_id, url_id, user_id_ws, start_time, opts) @@ -1679,17 +1673,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +url_id = 'url_id_example' # String | +user_id_ws = 'user_id_ws_example' # String | +start_time = 789 # Integer | opts = { - tenant_id: 'tenant_id_example', # String | (required) - url_id: 'url_id_example', # String | (required) - user_id_ws: 'user_id_ws_example', # String | (required) - start_time: 789, # Integer | (required) - end_time: 789, # Integer | + end_time: 789 # Integer | } begin - result = api_instance.get_global_event_log(opts) + result = api_instance.get_global_event_log(tenant_id, url_id, user_id_ws, start_time, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_global_event_log: #{e}" @@ -1700,12 +1694,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_global_event_log_with_http_info(opts) +> , Integer, Hash)> get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) ```ruby begin - data, status_code, headers = api_instance.get_global_event_log_with_http_info(opts) + data, status_code, headers = api_instance.get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1740,7 +1734,7 @@ No authorization required ## get_offline_users -> get_offline_users(opts) +> get_offline_users(tenant_id, url_id, opts) @@ -1753,16 +1747,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +url_id = 'url_id_example' # String | Page URL identifier (cleaned server-side). opts = { - tenant_id: 'tenant_id_example', # String | (required) - url_id: 'url_id_example', # String | Page URL identifier (cleaned server-side). (required) - after_name: 'after_name_example', # String | Cursor: pass nextAfterName from the previous response. - after_user_id: 'after_user_id_example', # String | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. + after_name: 'after_name_example', # String | Cursor: pass nextAfterName from the previous response. + after_user_id: 'after_user_id_example' # String | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. } begin - result = api_instance.get_offline_users(opts) + result = api_instance.get_offline_users(tenant_id, url_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_offline_users: #{e}" @@ -1773,12 +1767,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_offline_users_with_http_info(opts) +> , Integer, Hash)> get_offline_users_with_http_info(tenant_id, url_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_offline_users_with_http_info(opts) + data, status_code, headers = api_instance.get_offline_users_with_http_info(tenant_id, url_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1812,7 +1806,7 @@ No authorization required ## get_online_users -> get_online_users(opts) +> get_online_users(tenant_id, url_id, opts) @@ -1825,16 +1819,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +url_id = 'url_id_example' # String | Page URL identifier (cleaned server-side). opts = { - tenant_id: 'tenant_id_example', # String | (required) - url_id: 'url_id_example', # String | Page URL identifier (cleaned server-side). (required) - after_name: 'after_name_example', # String | Cursor: pass nextAfterName from the previous response. - after_user_id: 'after_user_id_example', # String | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. + after_name: 'after_name_example', # String | Cursor: pass nextAfterName from the previous response. + after_user_id: 'after_user_id_example' # String | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. } begin - result = api_instance.get_online_users(opts) + result = api_instance.get_online_users(tenant_id, url_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_online_users: #{e}" @@ -1845,12 +1839,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_online_users_with_http_info(opts) +> , Integer, Hash)> get_online_users_with_http_info(tenant_id, url_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_online_users_with_http_info(opts) + data, status_code, headers = api_instance.get_online_users_with_http_info(tenant_id, url_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1884,7 +1878,7 @@ No authorization required ## get_pages_public -> get_pages_public(opts) +> get_pages_public(tenant_id, opts) @@ -1897,18 +1891,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - cursor: 'cursor_example', # String | Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. - limit: 56, # Integer | 1..200, default 50 - q: 'q_example', # String | Optional case-insensitive title prefix filter. - sort_by: FastCommentsClient::PagesSortBy::UPDATED_AT, # PagesSortBy | Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). - has_comments: true, # Boolean | If true, only return pages with at least one comment. + cursor: 'cursor_example', # String | Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. + limit: 56, # Integer | 1..200, default 50 + q: 'q_example', # String | Optional case-insensitive title prefix filter. + sort_by: FastCommentsClient::PagesSortBy::UPDATED_AT, # PagesSortBy | Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). + has_comments: true # Boolean | If true, only return pages with at least one comment. } begin - result = api_instance.get_pages_public(opts) + result = api_instance.get_pages_public(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_pages_public: #{e}" @@ -1919,12 +1913,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_pages_public_with_http_info(opts) +> , Integer, Hash)> get_pages_public_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_pages_public_with_http_info(opts) + data, status_code, headers = api_instance.get_pages_public_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1960,7 +1954,7 @@ No authorization required ## get_translations -> get_translations(opts) +> get_translations(namespace, component, opts) @@ -1971,16 +1965,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +namespace = 'namespace_example' # String | +component = 'component_example' # String | opts = { - namespace: 'namespace_example', # String | (required) - component: 'component_example', # String | (required) - locale: 'locale_example', # String | - use_full_translation_ids: true, # Boolean | + locale: 'locale_example', # String | + use_full_translation_ids: true # Boolean | } begin - result = api_instance.get_translations(opts) + result = api_instance.get_translations(namespace, component, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_translations: #{e}" @@ -1991,12 +1985,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_translations_with_http_info(opts) +> , Integer, Hash)> get_translations_with_http_info(namespace, component, opts) ```ruby begin - data, status_code, headers = api_instance.get_translations_with_http_info(opts) + data, status_code, headers = api_instance.get_translations_with_http_info(namespace, component, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2030,7 +2024,7 @@ No authorization required ## get_user_notification_count -> get_user_notification_count(opts) +> get_user_notification_count(tenant_id, opts) @@ -2041,14 +2035,14 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - sso: 'sso_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.get_user_notification_count(opts) + result = api_instance.get_user_notification_count(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_user_notification_count: #{e}" @@ -2059,12 +2053,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_notification_count_with_http_info(opts) +> , Integer, Hash)> get_user_notification_count_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_user_notification_count_with_http_info(opts) + data, status_code, headers = api_instance.get_user_notification_count_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2096,7 +2090,7 @@ No authorization required ## get_user_notifications -> get_user_notifications(opts) +> get_user_notifications(tenant_id, opts) @@ -2107,24 +2101,24 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - url_id: 'url_id_example', # String | Used to determine whether the current page is subscribed. - page_size: 56, # Integer | - after_id: 'after_id_example', # String | - include_context: true, # Boolean | - after_created_at: 789, # Integer | - unread_only: true, # Boolean | - dm_only: true, # Boolean | - no_dm: true, # Boolean | - include_translations: true, # Boolean | - include_tenant_notifications: true, # Boolean | - sso: 'sso_example', # String | + url_id: 'url_id_example', # String | Used to determine whether the current page is subscribed. + page_size: 56, # Integer | + after_id: 'after_id_example', # String | + include_context: true, # Boolean | + after_created_at: 789, # Integer | + unread_only: true, # Boolean | + dm_only: true, # Boolean | + no_dm: true, # Boolean | + include_translations: true, # Boolean | + include_tenant_notifications: true, # Boolean | + sso: 'sso_example' # String | } begin - result = api_instance.get_user_notifications(opts) + result = api_instance.get_user_notifications(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_user_notifications: #{e}" @@ -2135,12 +2129,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_notifications_with_http_info(opts) +> , Integer, Hash)> get_user_notifications_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_user_notifications_with_http_info(opts) + data, status_code, headers = api_instance.get_user_notifications_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2182,7 +2176,7 @@ No authorization required ## get_user_presence_statuses -> get_user_presence_statuses(opts) +> get_user_presence_statuses(tenant_id, url_id_ws, user_ids, opts) @@ -2193,15 +2187,13 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - url_id_ws: 'url_id_ws_example', # String | (required) - user_ids: 'user_ids_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +url_id_ws = 'url_id_ws_example' # String | +user_ids = 'user_ids_example' # String | begin - result = api_instance.get_user_presence_statuses(opts) + result = api_instance.get_user_presence_statuses(tenant_id, url_id_ws, user_ids, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_user_presence_statuses: #{e}" @@ -2212,12 +2204,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_presence_statuses_with_http_info(opts) +> , Integer, Hash)> get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids, opts) ```ruby begin - data, status_code, headers = api_instance.get_user_presence_statuses_with_http_info(opts) + data, status_code, headers = api_instance.get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2250,7 +2242,7 @@ No authorization required ## get_user_reacts_public -> get_user_reacts_public(opts) +> get_user_reacts_public(tenant_id, opts) @@ -2261,15 +2253,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - post_ids: ['inner_example'], # Array | - sso: 'sso_example', # String | + post_ids: ['inner_example'], # Array | + sso: 'sso_example' # String | } begin - result = api_instance.get_user_reacts_public(opts) + result = api_instance.get_user_reacts_public(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_user_reacts_public: #{e}" @@ -2280,12 +2272,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_reacts_public_with_http_info(opts) +> , Integer, Hash)> get_user_reacts_public_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_user_reacts_public_with_http_info(opts) + data, status_code, headers = api_instance.get_user_reacts_public_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2318,7 +2310,7 @@ No authorization required ## get_users_info -> get_users_info(opts) +> get_users_info(tenant_id, ids, opts) @@ -2331,14 +2323,12 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - ids: 'ids_example', # String | Comma-delimited userIds. (required) -} +tenant_id = 'tenant_id_example' # String | +ids = 'ids_example' # String | Comma-delimited userIds. begin - result = api_instance.get_users_info(opts) + result = api_instance.get_users_info(tenant_id, ids, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_users_info: #{e}" @@ -2349,12 +2339,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_users_info_with_http_info(opts) +> , Integer, Hash)> get_users_info_with_http_info(tenant_id, ids, opts) ```ruby begin - data, status_code, headers = api_instance.get_users_info_with_http_info(opts) + data, status_code, headers = api_instance.get_users_info_with_http_info(tenant_id, ids, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2386,7 +2376,7 @@ No authorization required ## get_v1_page_likes -> get_v1_page_likes(opts) +> get_v1_page_likes(tenant_id, url_id, opts) @@ -2397,14 +2387,12 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - url_id: 'url_id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +url_id = 'url_id_example' # String | begin - result = api_instance.get_v1_page_likes(opts) + result = api_instance.get_v1_page_likes(tenant_id, url_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_v1_page_likes: #{e}" @@ -2415,12 +2403,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_v1_page_likes_with_http_info(opts) +> , Integer, Hash)> get_v1_page_likes_with_http_info(tenant_id, url_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_v1_page_likes_with_http_info(opts) + data, status_code, headers = api_instance.get_v1_page_likes_with_http_info(tenant_id, url_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2452,7 +2440,7 @@ No authorization required ## get_v2_page_react_users -> get_v2_page_react_users(opts) +> get_v2_page_react_users(tenant_id, url_id, id, opts) @@ -2463,15 +2451,13 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - url_id: 'url_id_example', # String | (required) - id: 'id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +url_id = 'url_id_example' # String | +id = 'id_example' # String | begin - result = api_instance.get_v2_page_react_users(opts) + result = api_instance.get_v2_page_react_users(tenant_id, url_id, id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_v2_page_react_users: #{e}" @@ -2482,12 +2468,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_v2_page_react_users_with_http_info(opts) +> , Integer, Hash)> get_v2_page_react_users_with_http_info(tenant_id, url_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.get_v2_page_react_users_with_http_info(opts) + data, status_code, headers = api_instance.get_v2_page_react_users_with_http_info(tenant_id, url_id, id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2520,7 +2506,7 @@ No authorization required ## get_v2_page_reacts -> get_v2_page_reacts(opts) +> get_v2_page_reacts(tenant_id, url_id, opts) @@ -2531,14 +2517,12 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new -opts = { - tenant_id: 'tenant_id_example', # String | (required) - url_id: 'url_id_example', # String | (required) -} +tenant_id = 'tenant_id_example' # String | +url_id = 'url_id_example' # String | begin - result = api_instance.get_v2_page_reacts(opts) + result = api_instance.get_v2_page_reacts(tenant_id, url_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_v2_page_reacts: #{e}" @@ -2549,12 +2533,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_v2_page_reacts_with_http_info(opts) +> , Integer, Hash)> get_v2_page_reacts_with_http_info(tenant_id, url_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_v2_page_reacts_with_http_info(opts) + data, status_code, headers = api_instance.get_v2_page_reacts_with_http_info(tenant_id, url_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2586,7 +2570,7 @@ No authorization required ## lock_comment -> lock_comment(opts) +> lock_comment(tenant_id, comment_id, broadcast_id, opts) @@ -2597,16 +2581,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +comment_id = 'comment_id_example' # String | +broadcast_id = 'broadcast_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - comment_id: 'comment_id_example', # String | (required) - broadcast_id: 'broadcast_id_example', # String | (required) - sso: 'sso_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.lock_comment(opts) + result = api_instance.lock_comment(tenant_id, comment_id, broadcast_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->lock_comment: #{e}" @@ -2617,12 +2601,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> lock_comment_with_http_info(opts) +> , Integer, Hash)> lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) ```ruby begin - data, status_code, headers = api_instance.lock_comment_with_http_info(opts) + data, status_code, headers = api_instance.lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2715,7 +2699,7 @@ No authorization required ## pin_comment -> pin_comment(opts) +> pin_comment(tenant_id, comment_id, broadcast_id, opts) @@ -2726,16 +2710,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +comment_id = 'comment_id_example' # String | +broadcast_id = 'broadcast_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - comment_id: 'comment_id_example', # String | (required) - broadcast_id: 'broadcast_id_example', # String | (required) - sso: 'sso_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.pin_comment(opts) + result = api_instance.pin_comment(tenant_id, comment_id, broadcast_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->pin_comment: #{e}" @@ -2746,12 +2730,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> pin_comment_with_http_info(opts) +> , Integer, Hash)> pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) ```ruby begin - data, status_code, headers = api_instance.pin_comment_with_http_info(opts) + data, status_code, headers = api_instance.pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2785,7 +2769,7 @@ No authorization required ## react_feed_post_public -> react_feed_post_public(opts) +> react_feed_post_public(tenant_id, post_id, react_body_params, opts) @@ -2796,18 +2780,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +post_id = 'post_id_example' # String | +react_body_params = FastCommentsClient::ReactBodyParams.new # ReactBodyParams | opts = { - tenant_id: 'tenant_id_example', # String | (required) - post_id: 'post_id_example', # String | (required) - react_body_params: FastCommentsClient::ReactBodyParams.new, # ReactBodyParams | (required) - is_undo: true, # Boolean | - broadcast_id: 'broadcast_id_example', # String | - sso: 'sso_example', # String | + is_undo: true, # Boolean | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.react_feed_post_public(opts) + result = api_instance.react_feed_post_public(tenant_id, post_id, react_body_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->react_feed_post_public: #{e}" @@ -2818,12 +2802,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> react_feed_post_public_with_http_info(opts) +> , Integer, Hash)> react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, opts) ```ruby begin - data, status_code, headers = api_instance.react_feed_post_public_with_http_info(opts) + data, status_code, headers = api_instance.react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2859,7 +2843,7 @@ No authorization required ## reset_user_notification_count -> reset_user_notification_count(opts) +> reset_user_notification_count(tenant_id, opts) @@ -2870,14 +2854,14 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - sso: 'sso_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.reset_user_notification_count(opts) + result = api_instance.reset_user_notification_count(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->reset_user_notification_count: #{e}" @@ -2888,12 +2872,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> reset_user_notification_count_with_http_info(opts) +> , Integer, Hash)> reset_user_notification_count_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.reset_user_notification_count_with_http_info(opts) + data, status_code, headers = api_instance.reset_user_notification_count_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2925,7 +2909,7 @@ No authorization required ## reset_user_notifications -> reset_user_notifications(opts) +> reset_user_notifications(tenant_id, opts) @@ -2936,19 +2920,19 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - after_id: 'after_id_example', # String | - after_created_at: 789, # Integer | - unread_only: true, # Boolean | - dm_only: true, # Boolean | - no_dm: true, # Boolean | - sso: 'sso_example', # String | + after_id: 'after_id_example', # String | + after_created_at: 789, # Integer | + unread_only: true, # Boolean | + dm_only: true, # Boolean | + no_dm: true, # Boolean | + sso: 'sso_example' # String | } begin - result = api_instance.reset_user_notifications(opts) + result = api_instance.reset_user_notifications(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->reset_user_notifications: #{e}" @@ -2959,12 +2943,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> reset_user_notifications_with_http_info(opts) +> , Integer, Hash)> reset_user_notifications_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.reset_user_notifications_with_http_info(opts) + data, status_code, headers = api_instance.reset_user_notifications_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3001,7 +2985,7 @@ No authorization required ## search_users -> search_users(opts) +> search_users(tenant_id, url_id, opts) @@ -3012,18 +2996,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +url_id = 'url_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - url_id: 'url_id_example', # String | (required) - username_starts_with: 'username_starts_with_example', # String | - mention_group_ids: ['inner_example'], # Array | - sso: 'sso_example', # String | - search_section: 'fast', # String | + username_starts_with: 'username_starts_with_example', # String | + mention_group_ids: ['inner_example'], # Array | + sso: 'sso_example', # String | + search_section: 'fast' # String | } begin - result = api_instance.search_users(opts) + result = api_instance.search_users(tenant_id, url_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->search_users: #{e}" @@ -3034,12 +3018,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> search_users_with_http_info(opts) +> , Integer, Hash)> search_users_with_http_info(tenant_id, url_id, opts) ```ruby begin - data, status_code, headers = api_instance.search_users_with_http_info(opts) + data, status_code, headers = api_instance.search_users_with_http_info(tenant_id, url_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3075,7 +3059,7 @@ No authorization required ## set_comment_text -> set_comment_text(opts) +> set_comment_text(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts) @@ -3086,18 +3070,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +comment_id = 'comment_id_example' # String | +broadcast_id = 'broadcast_id_example' # String | +comment_text_update_request = FastCommentsClient::CommentTextUpdateRequest.new({comment: 'comment_example'}) # CommentTextUpdateRequest | opts = { - tenant_id: 'tenant_id_example', # String | (required) - comment_id: 'comment_id_example', # String | (required) - broadcast_id: 'broadcast_id_example', # String | (required) - comment_text_update_request: FastCommentsClient::CommentTextUpdateRequest.new({comment: 'comment_example'}), # CommentTextUpdateRequest | (required) - edit_key: 'edit_key_example', # String | - sso: 'sso_example', # String | + edit_key: 'edit_key_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.set_comment_text(opts) + result = api_instance.set_comment_text(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->set_comment_text: #{e}" @@ -3108,12 +3092,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> set_comment_text_with_http_info(opts) +> , Integer, Hash)> set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts) ```ruby begin - data, status_code, headers = api_instance.set_comment_text_with_http_info(opts) + data, status_code, headers = api_instance.set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3149,7 +3133,7 @@ No authorization required ## un_block_comment_public -> un_block_comment_public(opts) +> un_block_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts) @@ -3160,16 +3144,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +comment_id = 'comment_id_example' # String | +public_block_from_comment_params = FastCommentsClient::PublicBlockFromCommentParams.new({comment_ids: ['comment_ids_example']}) # PublicBlockFromCommentParams | opts = { - tenant_id: 'tenant_id_example', # String | (required) - comment_id: 'comment_id_example', # String | (required) - public_block_from_comment_params: FastCommentsClient::PublicBlockFromCommentParams.new({comment_ids: ['comment_ids_example']}), # PublicBlockFromCommentParams | (required) - sso: 'sso_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.un_block_comment_public(opts) + result = api_instance.un_block_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->un_block_comment_public: #{e}" @@ -3180,12 +3164,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> un_block_comment_public_with_http_info(opts) +> , Integer, Hash)> un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) ```ruby begin - data, status_code, headers = api_instance.un_block_comment_public_with_http_info(opts) + data, status_code, headers = api_instance.un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3219,7 +3203,7 @@ No authorization required ## un_lock_comment -> un_lock_comment(opts) +> un_lock_comment(tenant_id, comment_id, broadcast_id, opts) @@ -3230,16 +3214,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +comment_id = 'comment_id_example' # String | +broadcast_id = 'broadcast_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - comment_id: 'comment_id_example', # String | (required) - broadcast_id: 'broadcast_id_example', # String | (required) - sso: 'sso_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.un_lock_comment(opts) + result = api_instance.un_lock_comment(tenant_id, comment_id, broadcast_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->un_lock_comment: #{e}" @@ -3250,12 +3234,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> un_lock_comment_with_http_info(opts) +> , Integer, Hash)> un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) ```ruby begin - data, status_code, headers = api_instance.un_lock_comment_with_http_info(opts) + data, status_code, headers = api_instance.un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3289,7 +3273,7 @@ No authorization required ## un_pin_comment -> un_pin_comment(opts) +> un_pin_comment(tenant_id, comment_id, broadcast_id, opts) @@ -3300,16 +3284,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +comment_id = 'comment_id_example' # String | +broadcast_id = 'broadcast_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - comment_id: 'comment_id_example', # String | (required) - broadcast_id: 'broadcast_id_example', # String | (required) - sso: 'sso_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.un_pin_comment(opts) + result = api_instance.un_pin_comment(tenant_id, comment_id, broadcast_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->un_pin_comment: #{e}" @@ -3320,12 +3304,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> un_pin_comment_with_http_info(opts) +> , Integer, Hash)> un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) ```ruby begin - data, status_code, headers = api_instance.un_pin_comment_with_http_info(opts) + data, status_code, headers = api_instance.un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3359,7 +3343,7 @@ No authorization required ## update_feed_post_public -> update_feed_post_public(opts) +> update_feed_post_public(tenant_id, post_id, update_feed_post_params, opts) @@ -3370,17 +3354,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +post_id = 'post_id_example' # String | +update_feed_post_params = FastCommentsClient::UpdateFeedPostParams.new # UpdateFeedPostParams | opts = { - tenant_id: 'tenant_id_example', # String | (required) - post_id: 'post_id_example', # String | (required) - update_feed_post_params: FastCommentsClient::UpdateFeedPostParams.new, # UpdateFeedPostParams | (required) - broadcast_id: 'broadcast_id_example', # String | - sso: 'sso_example', # String | + broadcast_id: 'broadcast_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.update_feed_post_public(opts) + result = api_instance.update_feed_post_public(tenant_id, post_id, update_feed_post_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->update_feed_post_public: #{e}" @@ -3391,12 +3375,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_feed_post_public_with_http_info(opts) +> , Integer, Hash)> update_feed_post_public_with_http_info(tenant_id, post_id, update_feed_post_params, opts) ```ruby begin - data, status_code, headers = api_instance.update_feed_post_public_with_http_info(opts) + data, status_code, headers = api_instance.update_feed_post_public_with_http_info(tenant_id, post_id, update_feed_post_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3431,7 +3415,7 @@ No authorization required ## update_user_notification_comment_subscription_status -> update_user_notification_comment_subscription_status(opts) +> update_user_notification_comment_subscription_status(tenant_id, notification_id, opted_in_or_out, comment_id, opts) @@ -3444,17 +3428,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +notification_id = 'notification_id_example' # String | +opted_in_or_out = 'in' # String | +comment_id = 'comment_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - notification_id: 'notification_id_example', # String | (required) - opted_in_or_out: 'in', # String | (required) - comment_id: 'comment_id_example', # String | (required) - sso: 'sso_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.update_user_notification_comment_subscription_status(opts) + result = api_instance.update_user_notification_comment_subscription_status(tenant_id, notification_id, opted_in_or_out, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->update_user_notification_comment_subscription_status: #{e}" @@ -3465,12 +3449,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_user_notification_comment_subscription_status_with_http_info(opts) +> , Integer, Hash)> update_user_notification_comment_subscription_status_with_http_info(tenant_id, notification_id, opted_in_or_out, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.update_user_notification_comment_subscription_status_with_http_info(opts) + data, status_code, headers = api_instance.update_user_notification_comment_subscription_status_with_http_info(tenant_id, notification_id, opted_in_or_out, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3505,7 +3489,7 @@ No authorization required ## update_user_notification_page_subscription_status -> update_user_notification_page_subscription_status(opts) +> update_user_notification_page_subscription_status(tenant_id, url_id, url, page_title, subscribed_or_unsubscribed, opts) @@ -3518,18 +3502,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +url_id = 'url_id_example' # String | +url = 'url_example' # String | +page_title = 'page_title_example' # String | +subscribed_or_unsubscribed = 'subscribe' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - url_id: 'url_id_example', # String | (required) - url: 'url_example', # String | (required) - page_title: 'page_title_example', # String | (required) - subscribed_or_unsubscribed: 'subscribe', # String | (required) - sso: 'sso_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.update_user_notification_page_subscription_status(opts) + result = api_instance.update_user_notification_page_subscription_status(tenant_id, url_id, url, page_title, subscribed_or_unsubscribed, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->update_user_notification_page_subscription_status: #{e}" @@ -3540,12 +3524,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_user_notification_page_subscription_status_with_http_info(opts) +> , Integer, Hash)> update_user_notification_page_subscription_status_with_http_info(tenant_id, url_id, url, page_title, subscribed_or_unsubscribed, opts) ```ruby begin - data, status_code, headers = api_instance.update_user_notification_page_subscription_status_with_http_info(opts) + data, status_code, headers = api_instance.update_user_notification_page_subscription_status_with_http_info(tenant_id, url_id, url, page_title, subscribed_or_unsubscribed, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3581,7 +3565,7 @@ No authorization required ## update_user_notification_status -> update_user_notification_status(opts) +> update_user_notification_status(tenant_id, notification_id, new_status, opts) @@ -3592,16 +3576,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +notification_id = 'notification_id_example' # String | +new_status = 'read' # String | opts = { - tenant_id: 'tenant_id_example', # String | (required) - notification_id: 'notification_id_example', # String | (required) - new_status: 'read', # String | (required) - sso: 'sso_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.update_user_notification_status(opts) + result = api_instance.update_user_notification_status(tenant_id, notification_id, new_status, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->update_user_notification_status: #{e}" @@ -3612,12 +3596,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_user_notification_status_with_http_info(opts) +> , Integer, Hash)> update_user_notification_status_with_http_info(tenant_id, notification_id, new_status, opts) ```ruby begin - data, status_code, headers = api_instance.update_user_notification_status_with_http_info(opts) + data, status_code, headers = api_instance.update_user_notification_status_with_http_info(tenant_id, notification_id, new_status, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3651,7 +3635,7 @@ No authorization required ## upload_image -> upload_image(opts) +> upload_image(tenant_id, file, opts) @@ -3664,16 +3648,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +file = File.new('/path/to/some/file') # File | opts = { - tenant_id: 'tenant_id_example', # String | (required) - file: File.new('/path/to/some/file'), # File | (required) - size_preset: FastCommentsClient::SizePreset::DEFAULT, # SizePreset | Size preset: \"Default\" (1000x1000px) or \"CrossPlatform\" (creates sizes for popular devices) - url_id: 'url_id_example', # String | Page id that upload is happening from, to configure + size_preset: FastCommentsClient::SizePreset::DEFAULT, # SizePreset | Size preset: \"Default\" (1000x1000px) or \"CrossPlatform\" (creates sizes for popular devices) + url_id: 'url_id_example' # String | Page id that upload is happening from, to configure } begin - result = api_instance.upload_image(opts) + result = api_instance.upload_image(tenant_id, file, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->upload_image: #{e}" @@ -3684,12 +3668,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> upload_image_with_http_info(opts) +> , Integer, Hash)> upload_image_with_http_info(tenant_id, file, opts) ```ruby begin - data, status_code, headers = api_instance.upload_image_with_http_info(opts) + data, status_code, headers = api_instance.upload_image_with_http_info(tenant_id, file, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3723,7 +3707,7 @@ No authorization required ## vote_comment -> vote_comment(opts) +> vote_comment(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts) @@ -3734,19 +3718,19 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new +tenant_id = 'tenant_id_example' # String | +comment_id = 'comment_id_example' # String | +url_id = 'url_id_example' # String | +broadcast_id = 'broadcast_id_example' # String | +vote_body_params = FastCommentsClient::VoteBodyParams.new({commenter_email: 'commenter_email_example', commenter_name: 'commenter_name_example', vote_dir: 'up', url: 'url_example'}) # VoteBodyParams | opts = { - tenant_id: 'tenant_id_example', # String | (required) - comment_id: 'comment_id_example', # String | (required) - url_id: 'url_id_example', # String | (required) - broadcast_id: 'broadcast_id_example', # String | (required) - vote_body_params: FastCommentsClient::VoteBodyParams.new({commenter_email: 'commenter_email_example', commenter_name: 'commenter_name_example', vote_dir: 'up', url: 'url_example'}), # VoteBodyParams | (required) - session_id: 'session_id_example', # String | - sso: 'sso_example', # String | + session_id: 'session_id_example', # String | + sso: 'sso_example' # String | } begin - result = api_instance.vote_comment(opts) + result = api_instance.vote_comment(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->vote_comment: #{e}" @@ -3757,12 +3741,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> vote_comment_with_http_info(opts) +> , Integer, Hash)> vote_comment_with_http_info(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts) ```ruby begin - data, status_code, headers = api_instance.vote_comment_with_http_info(opts) + data, status_code, headers = api_instance.vote_comment_with_http_info(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts) p status_code # => 2xx p headers # => { ... } p data # => diff --git a/client/lib/fastcomments-client/api/default_api.rb b/client/lib/fastcomments-client/api/default_api.rb index 90ca47d..1bf8960 100644 --- a/client/lib/fastcomments-client/api/default_api.rb +++ b/client/lib/fastcomments-client/api/default_api.rb @@ -19,26 +19,23 @@ class DefaultApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [AddDomainConfigParams] :add_domain_config_params (required) + # @param tenant_id [String] + # @param add_domain_config_params [AddDomainConfigParams] + # @param [Hash] opts the optional parameters # @return [AddDomainConfigResponse] - def add_domain_config(opts = {}) - data, _status_code, _headers = add_domain_config_with_http_info(opts) + def add_domain_config(tenant_id, add_domain_config_params, opts = {}) + data, _status_code, _headers = add_domain_config_with_http_info(tenant_id, add_domain_config_params, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [AddDomainConfigParams] :add_domain_config_params (required) + # @param tenant_id [String] + # @param add_domain_config_params [AddDomainConfigParams] + # @param [Hash] opts the optional parameters # @return [Array<(AddDomainConfigResponse, Integer, Hash)>] AddDomainConfigResponse data, response status code and response headers - def add_domain_config_with_http_info(opts = {}) + def add_domain_config_with_http_info(tenant_id, add_domain_config_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.add_domain_config ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - add_domain_config_params = opts[:'add_domain_config_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.add_domain_config" @@ -93,24 +90,23 @@ def add_domain_config_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters + # @param create_hash_tag_body [CreateHashTagBody] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id - # @option opts [CreateHashTagBody] :create_hash_tag_body # @return [CreateHashTagResponse] - def add_hash_tag(opts = {}) - data, _status_code, _headers = add_hash_tag_with_http_info(opts) + def add_hash_tag(create_hash_tag_body, opts = {}) + data, _status_code, _headers = add_hash_tag_with_http_info(create_hash_tag_body, opts) data end - # @param [Hash] opts the parameters + # @param create_hash_tag_body [CreateHashTagBody] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id - # @option opts [CreateHashTagBody] :create_hash_tag_body # @return [Array<(CreateHashTagResponse, Integer, Hash)>] CreateHashTagResponse data, response status code and response headers - def add_hash_tag_with_http_info(opts = {}) + def add_hash_tag_with_http_info(create_hash_tag_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.add_hash_tag ...' end - # unbox the parameters from the hash # resource path local_var_path = '/api/v1/hash-tags' @@ -132,7 +128,7 @@ def add_hash_tag_with_http_info(opts = {}) form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_hash_tag_body']) + post_body = opts[:debug_body] || @api_client.object_to_http_body(create_hash_tag_body) # return_type return_type = opts[:debug_return_type] || 'CreateHashTagResponse' @@ -157,24 +153,23 @@ def add_hash_tag_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters + # @param bulk_create_hash_tags_body [BulkCreateHashTagsBody] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id - # @option opts [BulkCreateHashTagsBody] :bulk_create_hash_tags_body # @return [BulkCreateHashTagsResponse] - def add_hash_tags_bulk(opts = {}) - data, _status_code, _headers = add_hash_tags_bulk_with_http_info(opts) + def add_hash_tags_bulk(bulk_create_hash_tags_body, opts = {}) + data, _status_code, _headers = add_hash_tags_bulk_with_http_info(bulk_create_hash_tags_body, opts) data end - # @param [Hash] opts the parameters + # @param bulk_create_hash_tags_body [BulkCreateHashTagsBody] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id - # @option opts [BulkCreateHashTagsBody] :bulk_create_hash_tags_body # @return [Array<(BulkCreateHashTagsResponse, Integer, Hash)>] BulkCreateHashTagsResponse data, response status code and response headers - def add_hash_tags_bulk_with_http_info(opts = {}) + def add_hash_tags_bulk_with_http_info(bulk_create_hash_tags_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.add_hash_tags_bulk ...' end - # unbox the parameters from the hash # resource path local_var_path = '/api/v1/hash-tags/bulk' @@ -196,7 +191,7 @@ def add_hash_tags_bulk_with_http_info(opts = {}) form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'bulk_create_hash_tags_body']) + post_body = opts[:debug_body] || @api_client.object_to_http_body(bulk_create_hash_tags_body) # return_type return_type = opts[:debug_return_type] || 'BulkCreateHashTagsResponse' @@ -221,26 +216,23 @@ def add_hash_tags_bulk_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateAPIPageData] :create_api_page_data (required) + # @param tenant_id [String] + # @param create_api_page_data [CreateAPIPageData] + # @param [Hash] opts the optional parameters # @return [AddPageAPIResponse] - def add_page(opts = {}) - data, _status_code, _headers = add_page_with_http_info(opts) + def add_page(tenant_id, create_api_page_data, opts = {}) + data, _status_code, _headers = add_page_with_http_info(tenant_id, create_api_page_data, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateAPIPageData] :create_api_page_data (required) + # @param tenant_id [String] + # @param create_api_page_data [CreateAPIPageData] + # @param [Hash] opts the optional parameters # @return [Array<(AddPageAPIResponse, Integer, Hash)>] AddPageAPIResponse data, response status code and response headers - def add_page_with_http_info(opts = {}) + def add_page_with_http_info(tenant_id, create_api_page_data, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.add_page ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - create_api_page_data = opts[:'create_api_page_data'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.add_page" @@ -295,26 +287,23 @@ def add_page_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateAPISSOUserData] :create_apisso_user_data (required) + # @param tenant_id [String] + # @param create_apisso_user_data [CreateAPISSOUserData] + # @param [Hash] opts the optional parameters # @return [AddSSOUserAPIResponse] - def add_sso_user(opts = {}) - data, _status_code, _headers = add_sso_user_with_http_info(opts) + def add_sso_user(tenant_id, create_apisso_user_data, opts = {}) + data, _status_code, _headers = add_sso_user_with_http_info(tenant_id, create_apisso_user_data, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateAPISSOUserData] :create_apisso_user_data (required) + # @param tenant_id [String] + # @param create_apisso_user_data [CreateAPISSOUserData] + # @param [Hash] opts the optional parameters # @return [Array<(AddSSOUserAPIResponse, Integer, Hash)>] AddSSOUserAPIResponse data, response status code and response headers - def add_sso_user_with_http_info(opts = {}) + def add_sso_user_with_http_info(tenant_id, create_apisso_user_data, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.add_sso_user ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - create_apisso_user_data = opts[:'create_apisso_user_data'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.add_sso_user" @@ -370,31 +359,28 @@ def add_sso_user_with_http_info(opts = {}) end # Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations. Different operations (e.g. sum, countDistinct, avg, etc.) are supported. - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [AggregationRequest] :aggregation_request (required) + # @param tenant_id [String] + # @param aggregation_request [AggregationRequest] + # @param [Hash] opts the optional parameters # @option opts [String] :parent_tenant_id # @option opts [Boolean] :include_stats # @return [AggregateResponse] - def aggregate(opts = {}) - data, _status_code, _headers = aggregate_with_http_info(opts) + def aggregate(tenant_id, aggregation_request, opts = {}) + data, _status_code, _headers = aggregate_with_http_info(tenant_id, aggregation_request, opts) data end # Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations. Different operations (e.g. sum, countDistinct, avg, etc.) are supported. - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [AggregationRequest] :aggregation_request (required) + # @param tenant_id [String] + # @param aggregation_request [AggregationRequest] + # @param [Hash] opts the optional parameters # @option opts [String] :parent_tenant_id # @option opts [Boolean] :include_stats # @return [Array<(AggregateResponse, Integer, Hash)>] AggregateResponse data, response status code and response headers - def aggregate_with_http_info(opts = {}) + def aggregate_with_http_info(tenant_id, aggregation_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.aggregate ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - aggregation_request = opts[:'aggregation_request'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.aggregate" @@ -451,8 +437,8 @@ def aggregate_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :question_id # @option opts [Array] :question_ids # @option opts [String] :url_id @@ -460,13 +446,13 @@ def aggregate_with_http_info(opts = {}) # @option opts [Time] :start_date # @option opts [Boolean] :force_recalculate # @return [AggregateQuestionResultsResponse] - def aggregate_question_results(opts = {}) - data, _status_code, _headers = aggregate_question_results_with_http_info(opts) + def aggregate_question_results(tenant_id, opts = {}) + data, _status_code, _headers = aggregate_question_results_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :question_id # @option opts [Array] :question_ids # @option opts [String] :url_id @@ -474,12 +460,10 @@ def aggregate_question_results(opts = {}) # @option opts [Time] :start_date # @option opts [Boolean] :force_recalculate # @return [Array<(AggregateQuestionResultsResponse, Integer, Hash)>] AggregateQuestionResultsResponse data, response status code and response headers - def aggregate_question_results_with_http_info(opts = {}) + def aggregate_question_results_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.aggregate_question_results ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.aggregate_question_results" @@ -531,33 +515,29 @@ def aggregate_question_results_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [BlockFromCommentParams] :block_from_comment_params (required) + # @param tenant_id [String] + # @param id [String] + # @param block_from_comment_params [BlockFromCommentParams] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id # @return [BlockSuccess] - def block_user_from_comment(opts = {}) - data, _status_code, _headers = block_user_from_comment_with_http_info(opts) + def block_user_from_comment(tenant_id, id, block_from_comment_params, opts = {}) + data, _status_code, _headers = block_user_from_comment_with_http_info(tenant_id, id, block_from_comment_params, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [BlockFromCommentParams] :block_from_comment_params (required) + # @param tenant_id [String] + # @param id [String] + # @param block_from_comment_params [BlockFromCommentParams] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id # @return [Array<(BlockSuccess, Integer, Hash)>] BlockSuccess data, response status code and response headers - def block_user_from_comment_with_http_info(opts = {}) + def block_user_from_comment_with_http_info(tenant_id, id, block_from_comment_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.block_user_from_comment ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] - block_from_comment_params = opts[:'block_from_comment_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.block_user_from_comment" @@ -618,28 +598,25 @@ def block_user_from_comment_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [BulkAggregateQuestionResultsRequest] :bulk_aggregate_question_results_request (required) + # @param tenant_id [String] + # @param bulk_aggregate_question_results_request [BulkAggregateQuestionResultsRequest] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :force_recalculate # @return [BulkAggregateQuestionResultsResponse] - def bulk_aggregate_question_results(opts = {}) - data, _status_code, _headers = bulk_aggregate_question_results_with_http_info(opts) + def bulk_aggregate_question_results(tenant_id, bulk_aggregate_question_results_request, opts = {}) + data, _status_code, _headers = bulk_aggregate_question_results_with_http_info(tenant_id, bulk_aggregate_question_results_request, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [BulkAggregateQuestionResultsRequest] :bulk_aggregate_question_results_request (required) + # @param tenant_id [String] + # @param bulk_aggregate_question_results_request [BulkAggregateQuestionResultsRequest] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :force_recalculate # @return [Array<(BulkAggregateQuestionResultsResponse, Integer, Hash)>] BulkAggregateQuestionResultsResponse data, response status code and response headers - def bulk_aggregate_question_results_with_http_info(opts = {}) + def bulk_aggregate_question_results_with_http_info(tenant_id, bulk_aggregate_question_results_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.bulk_aggregate_question_results ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - bulk_aggregate_question_results_request = opts[:'bulk_aggregate_question_results_request'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.bulk_aggregate_question_results" @@ -695,32 +672,27 @@ def bulk_aggregate_question_results_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :user_id (required) - # @option opts [String] :id (required) - # @option opts [ChangeTicketStateBody] :change_ticket_state_body (required) + # @param tenant_id [String] + # @param user_id [String] + # @param id [String] + # @param change_ticket_state_body [ChangeTicketStateBody] + # @param [Hash] opts the optional parameters # @return [ChangeTicketStateResponse] - def change_ticket_state(opts = {}) - data, _status_code, _headers = change_ticket_state_with_http_info(opts) + def change_ticket_state(tenant_id, user_id, id, change_ticket_state_body, opts = {}) + data, _status_code, _headers = change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_state_body, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :user_id (required) - # @option opts [String] :id (required) - # @option opts [ChangeTicketStateBody] :change_ticket_state_body (required) + # @param tenant_id [String] + # @param user_id [String] + # @param id [String] + # @param change_ticket_state_body [ChangeTicketStateBody] + # @param [Hash] opts the optional parameters # @return [Array<(ChangeTicketStateResponse, Integer, Hash)>] ChangeTicketStateResponse data, response status code and response headers - def change_ticket_state_with_http_info(opts = {}) + def change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_state_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.change_ticket_state ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - user_id = opts[:'user_id'] - id = opts[:'id'] - change_ticket_state_body = opts[:'change_ticket_state_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.change_ticket_state" @@ -784,8 +756,8 @@ def change_ticket_state_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :question_id # @option opts [Array] :question_ids # @option opts [String] :url_id @@ -795,13 +767,13 @@ def change_ticket_state_with_http_info(opts = {}) # @option opts [Float] :max_value # @option opts [Float] :limit # @return [CombineQuestionResultsWithCommentsResponse] - def combine_comments_with_question_results(opts = {}) - data, _status_code, _headers = combine_comments_with_question_results_with_http_info(opts) + def combine_comments_with_question_results(tenant_id, opts = {}) + data, _status_code, _headers = combine_comments_with_question_results_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :question_id # @option opts [Array] :question_ids # @option opts [String] :url_id @@ -811,12 +783,10 @@ def combine_comments_with_question_results(opts = {}) # @option opts [Float] :max_value # @option opts [Float] :limit # @return [Array<(CombineQuestionResultsWithCommentsResponse, Integer, Hash)>] CombineQuestionResultsWithCommentsResponse data, response status code and response headers - def combine_comments_with_question_results_with_http_info(opts = {}) + def combine_comments_with_question_results_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.combine_comments_with_question_results ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.combine_comments_with_question_results" @@ -870,26 +840,23 @@ def combine_comments_with_question_results_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateEmailTemplateBody] :create_email_template_body (required) + # @param tenant_id [String] + # @param create_email_template_body [CreateEmailTemplateBody] + # @param [Hash] opts the optional parameters # @return [CreateEmailTemplateResponse] - def create_email_template(opts = {}) - data, _status_code, _headers = create_email_template_with_http_info(opts) + def create_email_template(tenant_id, create_email_template_body, opts = {}) + data, _status_code, _headers = create_email_template_with_http_info(tenant_id, create_email_template_body, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateEmailTemplateBody] :create_email_template_body (required) + # @param tenant_id [String] + # @param create_email_template_body [CreateEmailTemplateBody] + # @param [Hash] opts the optional parameters # @return [Array<(CreateEmailTemplateResponse, Integer, Hash)>] CreateEmailTemplateResponse data, response status code and response headers - def create_email_template_with_http_info(opts = {}) + def create_email_template_with_http_info(tenant_id, create_email_template_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_email_template ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - create_email_template_body = opts[:'create_email_template_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_email_template" @@ -944,34 +911,31 @@ def create_email_template_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateFeedPostParams] :create_feed_post_params (required) + # @param tenant_id [String] + # @param create_feed_post_params [CreateFeedPostParams] + # @param [Hash] opts the optional parameters # @option opts [String] :broadcast_id # @option opts [Boolean] :is_live # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :skip_dup_check # @return [CreateFeedPostsResponse] - def create_feed_post(opts = {}) - data, _status_code, _headers = create_feed_post_with_http_info(opts) + def create_feed_post(tenant_id, create_feed_post_params, opts = {}) + data, _status_code, _headers = create_feed_post_with_http_info(tenant_id, create_feed_post_params, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateFeedPostParams] :create_feed_post_params (required) + # @param tenant_id [String] + # @param create_feed_post_params [CreateFeedPostParams] + # @param [Hash] opts the optional parameters # @option opts [String] :broadcast_id # @option opts [Boolean] :is_live # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :skip_dup_check # @return [Array<(CreateFeedPostsResponse, Integer, Hash)>] CreateFeedPostsResponse data, response status code and response headers - def create_feed_post_with_http_info(opts = {}) + def create_feed_post_with_http_info(tenant_id, create_feed_post_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_feed_post ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - create_feed_post_params = opts[:'create_feed_post_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_feed_post" @@ -1030,26 +994,23 @@ def create_feed_post_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateModeratorBody] :create_moderator_body (required) + # @param tenant_id [String] + # @param create_moderator_body [CreateModeratorBody] + # @param [Hash] opts the optional parameters # @return [CreateModeratorResponse] - def create_moderator(opts = {}) - data, _status_code, _headers = create_moderator_with_http_info(opts) + def create_moderator(tenant_id, create_moderator_body, opts = {}) + data, _status_code, _headers = create_moderator_with_http_info(tenant_id, create_moderator_body, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateModeratorBody] :create_moderator_body (required) + # @param tenant_id [String] + # @param create_moderator_body [CreateModeratorBody] + # @param [Hash] opts the optional parameters # @return [Array<(CreateModeratorResponse, Integer, Hash)>] CreateModeratorResponse data, response status code and response headers - def create_moderator_with_http_info(opts = {}) + def create_moderator_with_http_info(tenant_id, create_moderator_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_moderator ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - create_moderator_body = opts[:'create_moderator_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_moderator" @@ -1104,26 +1065,23 @@ def create_moderator_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateQuestionConfigBody] :create_question_config_body (required) + # @param tenant_id [String] + # @param create_question_config_body [CreateQuestionConfigBody] + # @param [Hash] opts the optional parameters # @return [CreateQuestionConfigResponse] - def create_question_config(opts = {}) - data, _status_code, _headers = create_question_config_with_http_info(opts) + def create_question_config(tenant_id, create_question_config_body, opts = {}) + data, _status_code, _headers = create_question_config_with_http_info(tenant_id, create_question_config_body, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateQuestionConfigBody] :create_question_config_body (required) + # @param tenant_id [String] + # @param create_question_config_body [CreateQuestionConfigBody] + # @param [Hash] opts the optional parameters # @return [Array<(CreateQuestionConfigResponse, Integer, Hash)>] CreateQuestionConfigResponse data, response status code and response headers - def create_question_config_with_http_info(opts = {}) + def create_question_config_with_http_info(tenant_id, create_question_config_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_question_config ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - create_question_config_body = opts[:'create_question_config_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_question_config" @@ -1178,26 +1136,23 @@ def create_question_config_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateQuestionResultBody] :create_question_result_body (required) + # @param tenant_id [String] + # @param create_question_result_body [CreateQuestionResultBody] + # @param [Hash] opts the optional parameters # @return [CreateQuestionResultResponse] - def create_question_result(opts = {}) - data, _status_code, _headers = create_question_result_with_http_info(opts) + def create_question_result(tenant_id, create_question_result_body, opts = {}) + data, _status_code, _headers = create_question_result_with_http_info(tenant_id, create_question_result_body, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateQuestionResultBody] :create_question_result_body (required) + # @param tenant_id [String] + # @param create_question_result_body [CreateQuestionResultBody] + # @param [Hash] opts the optional parameters # @return [Array<(CreateQuestionResultResponse, Integer, Hash)>] CreateQuestionResultResponse data, response status code and response headers - def create_question_result_with_http_info(opts = {}) + def create_question_result_with_http_info(tenant_id, create_question_result_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_question_result ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - create_question_result_body = opts[:'create_question_result_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_question_result" @@ -1252,26 +1207,23 @@ def create_question_result_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateAPIUserSubscriptionData] :create_api_user_subscription_data (required) + # @param tenant_id [String] + # @param create_api_user_subscription_data [CreateAPIUserSubscriptionData] + # @param [Hash] opts the optional parameters # @return [CreateSubscriptionAPIResponse] - def create_subscription(opts = {}) - data, _status_code, _headers = create_subscription_with_http_info(opts) + def create_subscription(tenant_id, create_api_user_subscription_data, opts = {}) + data, _status_code, _headers = create_subscription_with_http_info(tenant_id, create_api_user_subscription_data, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateAPIUserSubscriptionData] :create_api_user_subscription_data (required) + # @param tenant_id [String] + # @param create_api_user_subscription_data [CreateAPIUserSubscriptionData] + # @param [Hash] opts the optional parameters # @return [Array<(CreateSubscriptionAPIResponse, Integer, Hash)>] CreateSubscriptionAPIResponse data, response status code and response headers - def create_subscription_with_http_info(opts = {}) + def create_subscription_with_http_info(tenant_id, create_api_user_subscription_data, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_subscription ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - create_api_user_subscription_data = opts[:'create_api_user_subscription_data'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_subscription" @@ -1326,26 +1278,23 @@ def create_subscription_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateTenantBody] :create_tenant_body (required) + # @param tenant_id [String] + # @param create_tenant_body [CreateTenantBody] + # @param [Hash] opts the optional parameters # @return [CreateTenantResponse] - def create_tenant(opts = {}) - data, _status_code, _headers = create_tenant_with_http_info(opts) + def create_tenant(tenant_id, create_tenant_body, opts = {}) + data, _status_code, _headers = create_tenant_with_http_info(tenant_id, create_tenant_body, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateTenantBody] :create_tenant_body (required) + # @param tenant_id [String] + # @param create_tenant_body [CreateTenantBody] + # @param [Hash] opts the optional parameters # @return [Array<(CreateTenantResponse, Integer, Hash)>] CreateTenantResponse data, response status code and response headers - def create_tenant_with_http_info(opts = {}) + def create_tenant_with_http_info(tenant_id, create_tenant_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_tenant ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - create_tenant_body = opts[:'create_tenant_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_tenant" @@ -1400,26 +1349,23 @@ def create_tenant_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateTenantPackageBody] :create_tenant_package_body (required) + # @param tenant_id [String] + # @param create_tenant_package_body [CreateTenantPackageBody] + # @param [Hash] opts the optional parameters # @return [CreateTenantPackageResponse] - def create_tenant_package(opts = {}) - data, _status_code, _headers = create_tenant_package_with_http_info(opts) + def create_tenant_package(tenant_id, create_tenant_package_body, opts = {}) + data, _status_code, _headers = create_tenant_package_with_http_info(tenant_id, create_tenant_package_body, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateTenantPackageBody] :create_tenant_package_body (required) + # @param tenant_id [String] + # @param create_tenant_package_body [CreateTenantPackageBody] + # @param [Hash] opts the optional parameters # @return [Array<(CreateTenantPackageResponse, Integer, Hash)>] CreateTenantPackageResponse data, response status code and response headers - def create_tenant_package_with_http_info(opts = {}) + def create_tenant_package_with_http_info(tenant_id, create_tenant_package_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_tenant_package ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - create_tenant_package_body = opts[:'create_tenant_package_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_tenant_package" @@ -1474,26 +1420,23 @@ def create_tenant_package_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateTenantUserBody] :create_tenant_user_body (required) + # @param tenant_id [String] + # @param create_tenant_user_body [CreateTenantUserBody] + # @param [Hash] opts the optional parameters # @return [CreateTenantUserResponse] - def create_tenant_user(opts = {}) - data, _status_code, _headers = create_tenant_user_with_http_info(opts) + def create_tenant_user(tenant_id, create_tenant_user_body, opts = {}) + data, _status_code, _headers = create_tenant_user_with_http_info(tenant_id, create_tenant_user_body, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateTenantUserBody] :create_tenant_user_body (required) + # @param tenant_id [String] + # @param create_tenant_user_body [CreateTenantUserBody] + # @param [Hash] opts the optional parameters # @return [Array<(CreateTenantUserResponse, Integer, Hash)>] CreateTenantUserResponse data, response status code and response headers - def create_tenant_user_with_http_info(opts = {}) + def create_tenant_user_with_http_info(tenant_id, create_tenant_user_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_tenant_user ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - create_tenant_user_body = opts[:'create_tenant_user_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_tenant_user" @@ -1548,29 +1491,25 @@ def create_tenant_user_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :user_id (required) - # @option opts [CreateTicketBody] :create_ticket_body (required) + # @param tenant_id [String] + # @param user_id [String] + # @param create_ticket_body [CreateTicketBody] + # @param [Hash] opts the optional parameters # @return [CreateTicketResponse] - def create_ticket(opts = {}) - data, _status_code, _headers = create_ticket_with_http_info(opts) + def create_ticket(tenant_id, user_id, create_ticket_body, opts = {}) + data, _status_code, _headers = create_ticket_with_http_info(tenant_id, user_id, create_ticket_body, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :user_id (required) - # @option opts [CreateTicketBody] :create_ticket_body (required) + # @param tenant_id [String] + # @param user_id [String] + # @param create_ticket_body [CreateTicketBody] + # @param [Hash] opts the optional parameters # @return [Array<(CreateTicketResponse, Integer, Hash)>] CreateTicketResponse data, response status code and response headers - def create_ticket_with_http_info(opts = {}) + def create_ticket_with_http_info(tenant_id, user_id, create_ticket_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_ticket ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - user_id = opts[:'user_id'] - create_ticket_body = opts[:'create_ticket_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_ticket" @@ -1630,26 +1569,23 @@ def create_ticket_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateUserBadgeParams] :create_user_badge_params (required) + # @param tenant_id [String] + # @param create_user_badge_params [CreateUserBadgeParams] + # @param [Hash] opts the optional parameters # @return [APICreateUserBadgeResponse] - def create_user_badge(opts = {}) - data, _status_code, _headers = create_user_badge_with_http_info(opts) + def create_user_badge(tenant_id, create_user_badge_params, opts = {}) + data, _status_code, _headers = create_user_badge_with_http_info(tenant_id, create_user_badge_params, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateUserBadgeParams] :create_user_badge_params (required) + # @param tenant_id [String] + # @param create_user_badge_params [CreateUserBadgeParams] + # @param [Hash] opts the optional parameters # @return [Array<(APICreateUserBadgeResponse, Integer, Hash)>] APICreateUserBadgeResponse data, response status code and response headers - def create_user_badge_with_http_info(opts = {}) + def create_user_badge_with_http_info(tenant_id, create_user_badge_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_user_badge ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - create_user_badge_params = opts[:'create_user_badge_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_user_badge" @@ -1704,33 +1640,29 @@ def create_user_badge_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) - # @option opts [String] :direction (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param direction [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id # @return [VoteResponse] - def create_vote(opts = {}) - data, _status_code, _headers = create_vote_with_http_info(opts) + def create_vote(tenant_id, comment_id, direction, opts = {}) + data, _status_code, _headers = create_vote_with_http_info(tenant_id, comment_id, direction, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) - # @option opts [String] :direction (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param direction [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id # @return [Array<(VoteResponse, Integer, Hash)>] VoteResponse data, response status code and response headers - def create_vote_with_http_info(opts = {}) + def create_vote_with_http_info(tenant_id, comment_id, direction, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_vote ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - comment_id = opts[:'comment_id'] - direction = opts[:'direction'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_vote" @@ -1793,30 +1725,27 @@ def create_vote_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :context_user_id # @option opts [Boolean] :is_live # @return [DeleteCommentResult] - def delete_comment(opts = {}) - data, _status_code, _headers = delete_comment_with_http_info(opts) + def delete_comment(tenant_id, id, opts = {}) + data, _status_code, _headers = delete_comment_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :context_user_id # @option opts [Boolean] :is_live # @return [Array<(DeleteCommentResult, Integer, Hash)>] DeleteCommentResult data, response status code and response headers - def delete_comment_with_http_info(opts = {}) + def delete_comment_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_comment ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_comment" @@ -1868,26 +1797,23 @@ def delete_comment_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :domain (required) + # @param tenant_id [String] + # @param domain [String] + # @param [Hash] opts the optional parameters # @return [DeleteDomainConfigResponse] - def delete_domain_config(opts = {}) - data, _status_code, _headers = delete_domain_config_with_http_info(opts) + def delete_domain_config(tenant_id, domain, opts = {}) + data, _status_code, _headers = delete_domain_config_with_http_info(tenant_id, domain, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :domain (required) + # @param tenant_id [String] + # @param domain [String] + # @param [Hash] opts the optional parameters # @return [Array<(DeleteDomainConfigResponse, Integer, Hash)>] DeleteDomainConfigResponse data, response status code and response headers - def delete_domain_config_with_http_info(opts = {}) + def delete_domain_config_with_http_info(tenant_id, domain, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_domain_config ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - domain = opts[:'domain'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_domain_config" @@ -1937,26 +1863,23 @@ def delete_domain_config_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [APIEmptyResponse] - def delete_email_template(opts = {}) - data, _status_code, _headers = delete_email_template_with_http_info(opts) + def delete_email_template(tenant_id, id, opts = {}) + data, _status_code, _headers = delete_email_template_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def delete_email_template_with_http_info(opts = {}) + def delete_email_template_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_email_template ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_email_template" @@ -2006,29 +1929,25 @@ def delete_email_template_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [String] :error_id (required) + # @param tenant_id [String] + # @param id [String] + # @param error_id [String] + # @param [Hash] opts the optional parameters # @return [APIEmptyResponse] - def delete_email_template_render_error(opts = {}) - data, _status_code, _headers = delete_email_template_render_error_with_http_info(opts) + def delete_email_template_render_error(tenant_id, id, error_id, opts = {}) + data, _status_code, _headers = delete_email_template_render_error_with_http_info(tenant_id, id, error_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [String] :error_id (required) + # @param tenant_id [String] + # @param id [String] + # @param error_id [String] + # @param [Hash] opts the optional parameters # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def delete_email_template_render_error_with_http_info(opts = {}) + def delete_email_template_render_error_with_http_info(tenant_id, id, error_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_email_template_render_error ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] - error_id = opts[:'error_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_email_template_render_error" @@ -2082,27 +2001,25 @@ def delete_email_template_render_error_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tag (required) + # @param tag [String] + # @param delete_hash_tag_request_body [DeleteHashTagRequestBody] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id - # @option opts [DeleteHashTagRequestBody] :delete_hash_tag_request_body # @return [APIEmptyResponse] - def delete_hash_tag(opts = {}) - data, _status_code, _headers = delete_hash_tag_with_http_info(opts) + def delete_hash_tag(tag, delete_hash_tag_request_body, opts = {}) + data, _status_code, _headers = delete_hash_tag_with_http_info(tag, delete_hash_tag_request_body, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tag (required) + # @param tag [String] + # @param delete_hash_tag_request_body [DeleteHashTagRequestBody] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id - # @option opts [DeleteHashTagRequestBody] :delete_hash_tag_request_body # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def delete_hash_tag_with_http_info(opts = {}) + def delete_hash_tag_with_http_info(tag, delete_hash_tag_request_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_hash_tag ...' end - # unbox the parameters from the hash - tag = opts[:'tag'] # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.delete_hash_tag" @@ -2128,7 +2045,7 @@ def delete_hash_tag_with_http_info(opts = {}) form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'delete_hash_tag_request_body']) + post_body = opts[:debug_body] || @api_client.object_to_http_body(delete_hash_tag_request_body) # return_type return_type = opts[:debug_return_type] || 'APIEmptyResponse' @@ -2153,28 +2070,25 @@ def delete_hash_tag_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :send_email # @return [APIEmptyResponse] - def delete_moderator(opts = {}) - data, _status_code, _headers = delete_moderator_with_http_info(opts) + def delete_moderator(tenant_id, id, opts = {}) + data, _status_code, _headers = delete_moderator_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :send_email # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def delete_moderator_with_http_info(opts = {}) + def delete_moderator_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_moderator ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_moderator" @@ -2225,26 +2139,23 @@ def delete_moderator_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [APIEmptyResponse] - def delete_notification_count(opts = {}) - data, _status_code, _headers = delete_notification_count_with_http_info(opts) + def delete_notification_count(tenant_id, id, opts = {}) + data, _status_code, _headers = delete_notification_count_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def delete_notification_count_with_http_info(opts = {}) + def delete_notification_count_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_notification_count ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_notification_count" @@ -2294,26 +2205,23 @@ def delete_notification_count_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [DeletePageAPIResponse] - def delete_page(opts = {}) - data, _status_code, _headers = delete_page_with_http_info(opts) + def delete_page(tenant_id, id, opts = {}) + data, _status_code, _headers = delete_page_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [Array<(DeletePageAPIResponse, Integer, Hash)>] DeletePageAPIResponse data, response status code and response headers - def delete_page_with_http_info(opts = {}) + def delete_page_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_page ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_page" @@ -2363,26 +2271,23 @@ def delete_page_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [APIEmptyResponse] - def delete_pending_webhook_event(opts = {}) - data, _status_code, _headers = delete_pending_webhook_event_with_http_info(opts) + def delete_pending_webhook_event(tenant_id, id, opts = {}) + data, _status_code, _headers = delete_pending_webhook_event_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def delete_pending_webhook_event_with_http_info(opts = {}) + def delete_pending_webhook_event_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_pending_webhook_event ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_pending_webhook_event" @@ -2432,26 +2337,23 @@ def delete_pending_webhook_event_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [APIEmptyResponse] - def delete_question_config(opts = {}) - data, _status_code, _headers = delete_question_config_with_http_info(opts) + def delete_question_config(tenant_id, id, opts = {}) + data, _status_code, _headers = delete_question_config_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def delete_question_config_with_http_info(opts = {}) + def delete_question_config_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_question_config ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_question_config" @@ -2501,26 +2403,23 @@ def delete_question_config_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [APIEmptyResponse] - def delete_question_result(opts = {}) - data, _status_code, _headers = delete_question_result_with_http_info(opts) + def delete_question_result(tenant_id, id, opts = {}) + data, _status_code, _headers = delete_question_result_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def delete_question_result_with_http_info(opts = {}) + def delete_question_result_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_question_result ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_question_result" @@ -2570,30 +2469,27 @@ def delete_question_result_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :delete_comments # @option opts [String] :comment_delete_mode # @return [DeleteSSOUserAPIResponse] - def delete_sso_user(opts = {}) - data, _status_code, _headers = delete_sso_user_with_http_info(opts) + def delete_sso_user(tenant_id, id, opts = {}) + data, _status_code, _headers = delete_sso_user_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :delete_comments # @option opts [String] :comment_delete_mode # @return [Array<(DeleteSSOUserAPIResponse, Integer, Hash)>] DeleteSSOUserAPIResponse data, response status code and response headers - def delete_sso_user_with_http_info(opts = {}) + def delete_sso_user_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_sso_user ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_sso_user" @@ -2645,28 +2541,25 @@ def delete_sso_user_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @return [DeleteSubscriptionAPIResponse] - def delete_subscription(opts = {}) - data, _status_code, _headers = delete_subscription_with_http_info(opts) + def delete_subscription(tenant_id, id, opts = {}) + data, _status_code, _headers = delete_subscription_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @return [Array<(DeleteSubscriptionAPIResponse, Integer, Hash)>] DeleteSubscriptionAPIResponse data, response status code and response headers - def delete_subscription_with_http_info(opts = {}) + def delete_subscription_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_subscription ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_subscription" @@ -2717,28 +2610,25 @@ def delete_subscription_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :sure # @return [APIEmptyResponse] - def delete_tenant(opts = {}) - data, _status_code, _headers = delete_tenant_with_http_info(opts) + def delete_tenant(tenant_id, id, opts = {}) + data, _status_code, _headers = delete_tenant_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :sure # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def delete_tenant_with_http_info(opts = {}) + def delete_tenant_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_tenant ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_tenant" @@ -2789,26 +2679,23 @@ def delete_tenant_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [APIEmptyResponse] - def delete_tenant_package(opts = {}) - data, _status_code, _headers = delete_tenant_package_with_http_info(opts) + def delete_tenant_package(tenant_id, id, opts = {}) + data, _status_code, _headers = delete_tenant_package_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def delete_tenant_package_with_http_info(opts = {}) + def delete_tenant_package_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_tenant_package ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_tenant_package" @@ -2858,30 +2745,27 @@ def delete_tenant_package_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :delete_comments # @option opts [String] :comment_delete_mode # @return [APIEmptyResponse] - def delete_tenant_user(opts = {}) - data, _status_code, _headers = delete_tenant_user_with_http_info(opts) + def delete_tenant_user(tenant_id, id, opts = {}) + data, _status_code, _headers = delete_tenant_user_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :delete_comments # @option opts [String] :comment_delete_mode # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def delete_tenant_user_with_http_info(opts = {}) + def delete_tenant_user_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_tenant_user ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_tenant_user" @@ -2933,26 +2817,23 @@ def delete_tenant_user_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [APIEmptySuccessResponse] - def delete_user_badge(opts = {}) - data, _status_code, _headers = delete_user_badge_with_http_info(opts) + def delete_user_badge(tenant_id, id, opts = {}) + data, _status_code, _headers = delete_user_badge_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [Array<(APIEmptySuccessResponse, Integer, Hash)>] APIEmptySuccessResponse data, response status code and response headers - def delete_user_badge_with_http_info(opts = {}) + def delete_user_badge_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_user_badge ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_user_badge" @@ -3002,28 +2883,25 @@ def delete_user_badge_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @return [VoteDeleteResponse] - def delete_vote(opts = {}) - data, _status_code, _headers = delete_vote_with_http_info(opts) + def delete_vote(tenant_id, id, opts = {}) + data, _status_code, _headers = delete_vote_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @return [Array<(VoteDeleteResponse, Integer, Hash)>] VoteDeleteResponse data, response status code and response headers - def delete_vote_with_http_info(opts = {}) + def delete_vote_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_vote ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_vote" @@ -3074,30 +2952,27 @@ def delete_vote_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id # @return [FlagCommentResponse] - def flag_comment(opts = {}) - data, _status_code, _headers = flag_comment_with_http_info(opts) + def flag_comment(tenant_id, id, opts = {}) + data, _status_code, _headers = flag_comment_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id # @return [Array<(FlagCommentResponse, Integer, Hash)>] FlagCommentResponse data, response status code and response headers - def flag_comment_with_http_info(opts = {}) + def flag_comment_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.flag_comment ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.flag_comment" @@ -3149,33 +3024,31 @@ def flag_comment_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [Float] :limit # @option opts [Float] :skip # @option opts [SORTDIR] :order # @option opts [Float] :after # @option opts [Float] :before # @return [GetAuditLogsResponse] - def get_audit_logs(opts = {}) - data, _status_code, _headers = get_audit_logs_with_http_info(opts) + def get_audit_logs(tenant_id, opts = {}) + data, _status_code, _headers = get_audit_logs_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [Float] :limit # @option opts [Float] :skip # @option opts [SORTDIR] :order # @option opts [Float] :after # @option opts [Float] :before # @return [Array<(GetAuditLogsResponse, Integer, Hash)>] GetAuditLogsResponse data, response status code and response headers - def get_audit_logs_with_http_info(opts = {}) + def get_audit_logs_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_audit_logs ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_audit_logs" @@ -3226,26 +3099,23 @@ def get_audit_logs_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [GetCachedNotificationCountResponse] - def get_cached_notification_count(opts = {}) - data, _status_code, _headers = get_cached_notification_count_with_http_info(opts) + def get_cached_notification_count(tenant_id, id, opts = {}) + data, _status_code, _headers = get_cached_notification_count_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [Array<(GetCachedNotificationCountResponse, Integer, Hash)>] GetCachedNotificationCountResponse data, response status code and response headers - def get_cached_notification_count_with_http_info(opts = {}) + def get_cached_notification_count_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_cached_notification_count ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_cached_notification_count" @@ -3295,26 +3165,23 @@ def get_cached_notification_count_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [APIGetCommentResponse] - def get_comment(opts = {}) - data, _status_code, _headers = get_comment_with_http_info(opts) + def get_comment(tenant_id, id, opts = {}) + data, _status_code, _headers = get_comment_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [Array<(APIGetCommentResponse, Integer, Hash)>] APIGetCommentResponse data, response status code and response headers - def get_comment_with_http_info(opts = {}) + def get_comment_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_comment ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_comment" @@ -3364,8 +3231,8 @@ def get_comment_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [Integer] :page # @option opts [Integer] :limit # @option opts [Integer] :skip @@ -3383,13 +3250,13 @@ def get_comment_with_http_info(opts = {}) # @option opts [Integer] :from_date # @option opts [Integer] :to_date # @return [APIGetCommentsResponse] - def get_comments(opts = {}) - data, _status_code, _headers = get_comments_with_http_info(opts) + def get_comments(tenant_id, opts = {}) + data, _status_code, _headers = get_comments_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [Integer] :page # @option opts [Integer] :limit # @option opts [Integer] :skip @@ -3407,12 +3274,10 @@ def get_comments(opts = {}) # @option opts [Integer] :from_date # @option opts [Integer] :to_date # @return [Array<(APIGetCommentsResponse, Integer, Hash)>] APIGetCommentsResponse data, response status code and response headers - def get_comments_with_http_info(opts = {}) + def get_comments_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_comments ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_comments" @@ -3474,26 +3339,23 @@ def get_comments_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :domain (required) + # @param tenant_id [String] + # @param domain [String] + # @param [Hash] opts the optional parameters # @return [GetDomainConfigResponse] - def get_domain_config(opts = {}) - data, _status_code, _headers = get_domain_config_with_http_info(opts) + def get_domain_config(tenant_id, domain, opts = {}) + data, _status_code, _headers = get_domain_config_with_http_info(tenant_id, domain, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :domain (required) + # @param tenant_id [String] + # @param domain [String] + # @param [Hash] opts the optional parameters # @return [Array<(GetDomainConfigResponse, Integer, Hash)>] GetDomainConfigResponse data, response status code and response headers - def get_domain_config_with_http_info(opts = {}) + def get_domain_config_with_http_info(tenant_id, domain, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_domain_config ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - domain = opts[:'domain'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_domain_config" @@ -3543,23 +3405,21 @@ def get_domain_config_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @return [GetDomainConfigsResponse] - def get_domain_configs(opts = {}) - data, _status_code, _headers = get_domain_configs_with_http_info(opts) + def get_domain_configs(tenant_id, opts = {}) + data, _status_code, _headers = get_domain_configs_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @return [Array<(GetDomainConfigsResponse, Integer, Hash)>] GetDomainConfigsResponse data, response status code and response headers - def get_domain_configs_with_http_info(opts = {}) + def get_domain_configs_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_domain_configs ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_domain_configs" @@ -3605,26 +3465,23 @@ def get_domain_configs_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [GetEmailTemplateResponse] - def get_email_template(opts = {}) - data, _status_code, _headers = get_email_template_with_http_info(opts) + def get_email_template(tenant_id, id, opts = {}) + data, _status_code, _headers = get_email_template_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [Array<(GetEmailTemplateResponse, Integer, Hash)>] GetEmailTemplateResponse data, response status code and response headers - def get_email_template_with_http_info(opts = {}) + def get_email_template_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_email_template ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_email_template" @@ -3674,23 +3531,21 @@ def get_email_template_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @return [GetEmailTemplateDefinitionsResponse] - def get_email_template_definitions(opts = {}) - data, _status_code, _headers = get_email_template_definitions_with_http_info(opts) + def get_email_template_definitions(tenant_id, opts = {}) + data, _status_code, _headers = get_email_template_definitions_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @return [Array<(GetEmailTemplateDefinitionsResponse, Integer, Hash)>] GetEmailTemplateDefinitionsResponse data, response status code and response headers - def get_email_template_definitions_with_http_info(opts = {}) + def get_email_template_definitions_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_email_template_definitions ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_email_template_definitions" @@ -3736,28 +3591,25 @@ def get_email_template_definitions_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @option opts [Float] :skip # @return [GetEmailTemplateRenderErrorsResponse] - def get_email_template_render_errors(opts = {}) - data, _status_code, _headers = get_email_template_render_errors_with_http_info(opts) + def get_email_template_render_errors(tenant_id, id, opts = {}) + data, _status_code, _headers = get_email_template_render_errors_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @option opts [Float] :skip # @return [Array<(GetEmailTemplateRenderErrorsResponse, Integer, Hash)>] GetEmailTemplateRenderErrorsResponse data, response status code and response headers - def get_email_template_render_errors_with_http_info(opts = {}) + def get_email_template_render_errors_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_email_template_render_errors ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_email_template_render_errors" @@ -3808,25 +3660,23 @@ def get_email_template_render_errors_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [Float] :skip # @return [GetEmailTemplatesResponse] - def get_email_templates(opts = {}) - data, _status_code, _headers = get_email_templates_with_http_info(opts) + def get_email_templates(tenant_id, opts = {}) + data, _status_code, _headers = get_email_templates_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [Float] :skip # @return [Array<(GetEmailTemplatesResponse, Integer, Hash)>] GetEmailTemplatesResponse data, response status code and response headers - def get_email_templates_with_http_info(opts = {}) + def get_email_templates_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_email_templates ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_email_templates" @@ -3874,30 +3724,28 @@ def get_email_templates_with_http_info(opts = {}) end # req tenantId afterId - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :after_id # @option opts [Integer] :limit # @option opts [Array] :tags # @return [GetFeedPostsResponse] - def get_feed_posts(opts = {}) - data, _status_code, _headers = get_feed_posts_with_http_info(opts) + def get_feed_posts(tenant_id, opts = {}) + data, _status_code, _headers = get_feed_posts_with_http_info(tenant_id, opts) data end # req tenantId afterId - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :after_id # @option opts [Integer] :limit # @option opts [Array] :tags # @return [Array<(GetFeedPostsResponse, Integer, Hash)>] GetFeedPostsResponse data, response status code and response headers - def get_feed_posts_with_http_info(opts = {}) + def get_feed_posts_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_feed_posts ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_feed_posts" @@ -3946,25 +3794,23 @@ def get_feed_posts_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [Float] :page # @return [GetHashTagsResponse] - def get_hash_tags(opts = {}) - data, _status_code, _headers = get_hash_tags_with_http_info(opts) + def get_hash_tags(tenant_id, opts = {}) + data, _status_code, _headers = get_hash_tags_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [Float] :page # @return [Array<(GetHashTagsResponse, Integer, Hash)>] GetHashTagsResponse data, response status code and response headers - def get_hash_tags_with_http_info(opts = {}) + def get_hash_tags_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_hash_tags ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_hash_tags" @@ -4011,26 +3857,23 @@ def get_hash_tags_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [GetModeratorResponse] - def get_moderator(opts = {}) - data, _status_code, _headers = get_moderator_with_http_info(opts) + def get_moderator(tenant_id, id, opts = {}) + data, _status_code, _headers = get_moderator_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [Array<(GetModeratorResponse, Integer, Hash)>] GetModeratorResponse data, response status code and response headers - def get_moderator_with_http_info(opts = {}) + def get_moderator_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_moderator ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_moderator" @@ -4080,25 +3923,23 @@ def get_moderator_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [Float] :skip # @return [GetModeratorsResponse] - def get_moderators(opts = {}) - data, _status_code, _headers = get_moderators_with_http_info(opts) + def get_moderators(tenant_id, opts = {}) + data, _status_code, _headers = get_moderators_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [Float] :skip # @return [Array<(GetModeratorsResponse, Integer, Hash)>] GetModeratorsResponse data, response status code and response headers - def get_moderators_with_http_info(opts = {}) + def get_moderators_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_moderators ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_moderators" @@ -4145,33 +3986,31 @@ def get_moderators_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :url_id # @option opts [String] :from_comment_id # @option opts [Boolean] :viewed # @option opts [String] :type # @return [GetNotificationCountResponse] - def get_notification_count(opts = {}) - data, _status_code, _headers = get_notification_count_with_http_info(opts) + def get_notification_count(tenant_id, opts = {}) + data, _status_code, _headers = get_notification_count_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :url_id # @option opts [String] :from_comment_id # @option opts [Boolean] :viewed # @option opts [String] :type # @return [Array<(GetNotificationCountResponse, Integer, Hash)>] GetNotificationCountResponse data, response status code and response headers - def get_notification_count_with_http_info(opts = {}) + def get_notification_count_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_notification_count ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_notification_count" @@ -4222,8 +4061,8 @@ def get_notification_count_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :url_id # @option opts [String] :from_comment_id @@ -4231,13 +4070,13 @@ def get_notification_count_with_http_info(opts = {}) # @option opts [String] :type # @option opts [Float] :skip # @return [GetNotificationsResponse] - def get_notifications(opts = {}) - data, _status_code, _headers = get_notifications_with_http_info(opts) + def get_notifications(tenant_id, opts = {}) + data, _status_code, _headers = get_notifications_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :url_id # @option opts [String] :from_comment_id @@ -4245,12 +4084,10 @@ def get_notifications(opts = {}) # @option opts [String] :type # @option opts [Float] :skip # @return [Array<(GetNotificationsResponse, Integer, Hash)>] GetNotificationsResponse data, response status code and response headers - def get_notifications_with_http_info(opts = {}) + def get_notifications_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_notifications ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_notifications" @@ -4302,26 +4139,23 @@ def get_notifications_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) + # @param tenant_id [String] + # @param url_id [String] + # @param [Hash] opts the optional parameters # @return [GetPageByURLIdAPIResponse] - def get_page_by_urlid(opts = {}) - data, _status_code, _headers = get_page_by_urlid_with_http_info(opts) + def get_page_by_urlid(tenant_id, url_id, opts = {}) + data, _status_code, _headers = get_page_by_urlid_with_http_info(tenant_id, url_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) + # @param tenant_id [String] + # @param url_id [String] + # @param [Hash] opts the optional parameters # @return [Array<(GetPageByURLIdAPIResponse, Integer, Hash)>] GetPageByURLIdAPIResponse data, response status code and response headers - def get_page_by_urlid_with_http_info(opts = {}) + def get_page_by_urlid_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_page_by_urlid ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - url_id = opts[:'url_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_page_by_urlid" @@ -4372,23 +4206,21 @@ def get_page_by_urlid_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @return [GetPagesAPIResponse] - def get_pages(opts = {}) - data, _status_code, _headers = get_pages_with_http_info(opts) + def get_pages(tenant_id, opts = {}) + data, _status_code, _headers = get_pages_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @return [Array<(GetPagesAPIResponse, Integer, Hash)>] GetPagesAPIResponse data, response status code and response headers - def get_pages_with_http_info(opts = {}) + def get_pages_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_pages ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_pages" @@ -4434,8 +4266,8 @@ def get_pages_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :comment_id # @option opts [String] :external_id # @option opts [String] :event_type @@ -4443,13 +4275,13 @@ def get_pages_with_http_info(opts = {}) # @option opts [String] :domain # @option opts [Float] :attempt_count_gt # @return [GetPendingWebhookEventCountResponse] - def get_pending_webhook_event_count(opts = {}) - data, _status_code, _headers = get_pending_webhook_event_count_with_http_info(opts) + def get_pending_webhook_event_count(tenant_id, opts = {}) + data, _status_code, _headers = get_pending_webhook_event_count_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :comment_id # @option opts [String] :external_id # @option opts [String] :event_type @@ -4457,12 +4289,10 @@ def get_pending_webhook_event_count(opts = {}) # @option opts [String] :domain # @option opts [Float] :attempt_count_gt # @return [Array<(GetPendingWebhookEventCountResponse, Integer, Hash)>] GetPendingWebhookEventCountResponse data, response status code and response headers - def get_pending_webhook_event_count_with_http_info(opts = {}) + def get_pending_webhook_event_count_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_pending_webhook_event_count ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_pending_webhook_event_count" @@ -4514,8 +4344,8 @@ def get_pending_webhook_event_count_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :comment_id # @option opts [String] :external_id # @option opts [String] :event_type @@ -4524,13 +4354,13 @@ def get_pending_webhook_event_count_with_http_info(opts = {}) # @option opts [Float] :attempt_count_gt # @option opts [Float] :skip # @return [GetPendingWebhookEventsResponse] - def get_pending_webhook_events(opts = {}) - data, _status_code, _headers = get_pending_webhook_events_with_http_info(opts) + def get_pending_webhook_events(tenant_id, opts = {}) + data, _status_code, _headers = get_pending_webhook_events_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :comment_id # @option opts [String] :external_id # @option opts [String] :event_type @@ -4539,12 +4369,10 @@ def get_pending_webhook_events(opts = {}) # @option opts [Float] :attempt_count_gt # @option opts [Float] :skip # @return [Array<(GetPendingWebhookEventsResponse, Integer, Hash)>] GetPendingWebhookEventsResponse data, response status code and response headers - def get_pending_webhook_events_with_http_info(opts = {}) + def get_pending_webhook_events_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_pending_webhook_events ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_pending_webhook_events" @@ -4597,26 +4425,23 @@ def get_pending_webhook_events_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [GetQuestionConfigResponse] - def get_question_config(opts = {}) - data, _status_code, _headers = get_question_config_with_http_info(opts) + def get_question_config(tenant_id, id, opts = {}) + data, _status_code, _headers = get_question_config_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [Array<(GetQuestionConfigResponse, Integer, Hash)>] GetQuestionConfigResponse data, response status code and response headers - def get_question_config_with_http_info(opts = {}) + def get_question_config_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_question_config ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_question_config" @@ -4666,25 +4491,23 @@ def get_question_config_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [Float] :skip # @return [GetQuestionConfigsResponse] - def get_question_configs(opts = {}) - data, _status_code, _headers = get_question_configs_with_http_info(opts) + def get_question_configs(tenant_id, opts = {}) + data, _status_code, _headers = get_question_configs_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [Float] :skip # @return [Array<(GetQuestionConfigsResponse, Integer, Hash)>] GetQuestionConfigsResponse data, response status code and response headers - def get_question_configs_with_http_info(opts = {}) + def get_question_configs_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_question_configs ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_question_configs" @@ -4731,26 +4554,23 @@ def get_question_configs_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [GetQuestionResultResponse] - def get_question_result(opts = {}) - data, _status_code, _headers = get_question_result_with_http_info(opts) + def get_question_result(tenant_id, id, opts = {}) + data, _status_code, _headers = get_question_result_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [Array<(GetQuestionResultResponse, Integer, Hash)>] GetQuestionResultResponse data, response status code and response headers - def get_question_result_with_http_info(opts = {}) + def get_question_result_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_question_result ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_question_result" @@ -4800,8 +4620,8 @@ def get_question_result_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :url_id # @option opts [String] :user_id # @option opts [String] :start_date @@ -4809,13 +4629,13 @@ def get_question_result_with_http_info(opts = {}) # @option opts [String] :question_ids # @option opts [Float] :skip # @return [GetQuestionResultsResponse] - def get_question_results(opts = {}) - data, _status_code, _headers = get_question_results_with_http_info(opts) + def get_question_results(tenant_id, opts = {}) + data, _status_code, _headers = get_question_results_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :url_id # @option opts [String] :user_id # @option opts [String] :start_date @@ -4823,12 +4643,10 @@ def get_question_results(opts = {}) # @option opts [String] :question_ids # @option opts [Float] :skip # @return [Array<(GetQuestionResultsResponse, Integer, Hash)>] GetQuestionResultsResponse data, response status code and response headers - def get_question_results_with_http_info(opts = {}) + def get_question_results_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_question_results ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_question_results" @@ -4880,26 +4698,23 @@ def get_question_results_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :email (required) + # @param tenant_id [String] + # @param email [String] + # @param [Hash] opts the optional parameters # @return [GetSSOUserByEmailAPIResponse] - def get_sso_user_by_email(opts = {}) - data, _status_code, _headers = get_sso_user_by_email_with_http_info(opts) + def get_sso_user_by_email(tenant_id, email, opts = {}) + data, _status_code, _headers = get_sso_user_by_email_with_http_info(tenant_id, email, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :email (required) + # @param tenant_id [String] + # @param email [String] + # @param [Hash] opts the optional parameters # @return [Array<(GetSSOUserByEmailAPIResponse, Integer, Hash)>] GetSSOUserByEmailAPIResponse data, response status code and response headers - def get_sso_user_by_email_with_http_info(opts = {}) + def get_sso_user_by_email_with_http_info(tenant_id, email, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_sso_user_by_email ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - email = opts[:'email'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_sso_user_by_email" @@ -4949,26 +4764,23 @@ def get_sso_user_by_email_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [GetSSOUserByIdAPIResponse] - def get_sso_user_by_id(opts = {}) - data, _status_code, _headers = get_sso_user_by_id_with_http_info(opts) + def get_sso_user_by_id(tenant_id, id, opts = {}) + data, _status_code, _headers = get_sso_user_by_id_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [Array<(GetSSOUserByIdAPIResponse, Integer, Hash)>] GetSSOUserByIdAPIResponse data, response status code and response headers - def get_sso_user_by_id_with_http_info(opts = {}) + def get_sso_user_by_id_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_sso_user_by_id ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_sso_user_by_id" @@ -5018,25 +4830,23 @@ def get_sso_user_by_id_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [Integer] :skip # @return [GetSSOUsersResponse] - def get_sso_users(opts = {}) - data, _status_code, _headers = get_sso_users_with_http_info(opts) + def get_sso_users(tenant_id, opts = {}) + data, _status_code, _headers = get_sso_users_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [Integer] :skip # @return [Array<(GetSSOUsersResponse, Integer, Hash)>] GetSSOUsersResponse data, response status code and response headers - def get_sso_users_with_http_info(opts = {}) + def get_sso_users_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_sso_users ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_sso_users" @@ -5083,25 +4893,23 @@ def get_sso_users_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @return [GetSubscriptionsAPIResponse] - def get_subscriptions(opts = {}) - data, _status_code, _headers = get_subscriptions_with_http_info(opts) + def get_subscriptions(tenant_id, opts = {}) + data, _status_code, _headers = get_subscriptions_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @return [Array<(GetSubscriptionsAPIResponse, Integer, Hash)>] GetSubscriptionsAPIResponse data, response status code and response headers - def get_subscriptions_with_http_info(opts = {}) + def get_subscriptions_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_subscriptions ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_subscriptions" @@ -5148,26 +4956,23 @@ def get_subscriptions_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [GetTenantResponse] - def get_tenant(opts = {}) - data, _status_code, _headers = get_tenant_with_http_info(opts) + def get_tenant(tenant_id, id, opts = {}) + data, _status_code, _headers = get_tenant_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [Array<(GetTenantResponse, Integer, Hash)>] GetTenantResponse data, response status code and response headers - def get_tenant_with_http_info(opts = {}) + def get_tenant_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenant ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_tenant" @@ -5217,31 +5022,29 @@ def get_tenant_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [Float] :year_number # @option opts [Float] :month_number # @option opts [Float] :day_number # @option opts [Float] :skip # @return [GetTenantDailyUsagesResponse] - def get_tenant_daily_usages(opts = {}) - data, _status_code, _headers = get_tenant_daily_usages_with_http_info(opts) + def get_tenant_daily_usages(tenant_id, opts = {}) + data, _status_code, _headers = get_tenant_daily_usages_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [Float] :year_number # @option opts [Float] :month_number # @option opts [Float] :day_number # @option opts [Float] :skip # @return [Array<(GetTenantDailyUsagesResponse, Integer, Hash)>] GetTenantDailyUsagesResponse data, response status code and response headers - def get_tenant_daily_usages_with_http_info(opts = {}) + def get_tenant_daily_usages_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenant_daily_usages ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_tenant_daily_usages" @@ -5291,26 +5094,23 @@ def get_tenant_daily_usages_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [GetTenantPackageResponse] - def get_tenant_package(opts = {}) - data, _status_code, _headers = get_tenant_package_with_http_info(opts) + def get_tenant_package(tenant_id, id, opts = {}) + data, _status_code, _headers = get_tenant_package_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [Array<(GetTenantPackageResponse, Integer, Hash)>] GetTenantPackageResponse data, response status code and response headers - def get_tenant_package_with_http_info(opts = {}) + def get_tenant_package_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenant_package ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_tenant_package" @@ -5360,25 +5160,23 @@ def get_tenant_package_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [Float] :skip # @return [GetTenantPackagesResponse] - def get_tenant_packages(opts = {}) - data, _status_code, _headers = get_tenant_packages_with_http_info(opts) + def get_tenant_packages(tenant_id, opts = {}) + data, _status_code, _headers = get_tenant_packages_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [Float] :skip # @return [Array<(GetTenantPackagesResponse, Integer, Hash)>] GetTenantPackagesResponse data, response status code and response headers - def get_tenant_packages_with_http_info(opts = {}) + def get_tenant_packages_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenant_packages ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_tenant_packages" @@ -5425,26 +5223,23 @@ def get_tenant_packages_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [GetTenantUserResponse] - def get_tenant_user(opts = {}) - data, _status_code, _headers = get_tenant_user_with_http_info(opts) + def get_tenant_user(tenant_id, id, opts = {}) + data, _status_code, _headers = get_tenant_user_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [Array<(GetTenantUserResponse, Integer, Hash)>] GetTenantUserResponse data, response status code and response headers - def get_tenant_user_with_http_info(opts = {}) + def get_tenant_user_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenant_user ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_tenant_user" @@ -5494,25 +5289,23 @@ def get_tenant_user_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [Float] :skip # @return [GetTenantUsersResponse] - def get_tenant_users(opts = {}) - data, _status_code, _headers = get_tenant_users_with_http_info(opts) + def get_tenant_users(tenant_id, opts = {}) + data, _status_code, _headers = get_tenant_users_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [Float] :skip # @return [Array<(GetTenantUsersResponse, Integer, Hash)>] GetTenantUsersResponse data, response status code and response headers - def get_tenant_users_with_http_info(opts = {}) + def get_tenant_users_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenant_users ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_tenant_users" @@ -5559,27 +5352,25 @@ def get_tenant_users_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :meta # @option opts [Float] :skip # @return [GetTenantsResponse] - def get_tenants(opts = {}) - data, _status_code, _headers = get_tenants_with_http_info(opts) + def get_tenants(tenant_id, opts = {}) + data, _status_code, _headers = get_tenants_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :meta # @option opts [Float] :skip # @return [Array<(GetTenantsResponse, Integer, Hash)>] GetTenantsResponse data, response status code and response headers - def get_tenants_with_http_info(opts = {}) + def get_tenants_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tenants ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_tenants" @@ -5627,28 +5418,25 @@ def get_tenants_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @return [GetTicketResponse] - def get_ticket(opts = {}) - data, _status_code, _headers = get_ticket_with_http_info(opts) + def get_ticket(tenant_id, id, opts = {}) + data, _status_code, _headers = get_ticket_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @return [Array<(GetTicketResponse, Integer, Hash)>] GetTicketResponse data, response status code and response headers - def get_ticket_with_http_info(opts = {}) + def get_ticket_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_ticket ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_ticket" @@ -5699,31 +5487,29 @@ def get_ticket_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [Float] :state # @option opts [Float] :skip # @option opts [Float] :limit # @return [GetTicketsResponse] - def get_tickets(opts = {}) - data, _status_code, _headers = get_tickets_with_http_info(opts) + def get_tickets(tenant_id, opts = {}) + data, _status_code, _headers = get_tickets_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [Float] :state # @option opts [Float] :skip # @option opts [Float] :limit # @return [Array<(GetTicketsResponse, Integer, Hash)>] GetTicketsResponse data, response status code and response headers - def get_tickets_with_http_info(opts = {}) + def get_tickets_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_tickets ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_tickets" @@ -5773,26 +5559,23 @@ def get_tickets_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [GetUserResponse] - def get_user(opts = {}) - data, _status_code, _headers = get_user_with_http_info(opts) + def get_user(tenant_id, id, opts = {}) + data, _status_code, _headers = get_user_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [Array<(GetUserResponse, Integer, Hash)>] GetUserResponse data, response status code and response headers - def get_user_with_http_info(opts = {}) + def get_user_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_user ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_user" @@ -5842,26 +5625,23 @@ def get_user_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [APIGetUserBadgeResponse] - def get_user_badge(opts = {}) - data, _status_code, _headers = get_user_badge_with_http_info(opts) + def get_user_badge(tenant_id, id, opts = {}) + data, _status_code, _headers = get_user_badge_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [Array<(APIGetUserBadgeResponse, Integer, Hash)>] APIGetUserBadgeResponse data, response status code and response headers - def get_user_badge_with_http_info(opts = {}) + def get_user_badge_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_user_badge ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_user_badge" @@ -5911,26 +5691,23 @@ def get_user_badge_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [APIGetUserBadgeProgressResponse] - def get_user_badge_progress_by_id(opts = {}) - data, _status_code, _headers = get_user_badge_progress_by_id_with_http_info(opts) + def get_user_badge_progress_by_id(tenant_id, id, opts = {}) + data, _status_code, _headers = get_user_badge_progress_by_id_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [Array<(APIGetUserBadgeProgressResponse, Integer, Hash)>] APIGetUserBadgeProgressResponse data, response status code and response headers - def get_user_badge_progress_by_id_with_http_info(opts = {}) + def get_user_badge_progress_by_id_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_user_badge_progress_by_id ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_user_badge_progress_by_id" @@ -5980,26 +5757,23 @@ def get_user_badge_progress_by_id_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :user_id (required) + # @param tenant_id [String] + # @param user_id [String] + # @param [Hash] opts the optional parameters # @return [APIGetUserBadgeProgressResponse] - def get_user_badge_progress_by_user_id(opts = {}) - data, _status_code, _headers = get_user_badge_progress_by_user_id_with_http_info(opts) + def get_user_badge_progress_by_user_id(tenant_id, user_id, opts = {}) + data, _status_code, _headers = get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :user_id (required) + # @param tenant_id [String] + # @param user_id [String] + # @param [Hash] opts the optional parameters # @return [Array<(APIGetUserBadgeProgressResponse, Integer, Hash)>] APIGetUserBadgeProgressResponse data, response status code and response headers - def get_user_badge_progress_by_user_id_with_http_info(opts = {}) + def get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_user_badge_progress_by_user_id ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - user_id = opts[:'user_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_user_badge_progress_by_user_id" @@ -6049,29 +5823,27 @@ def get_user_badge_progress_by_user_id_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [Float] :limit # @option opts [Float] :skip # @return [APIGetUserBadgeProgressListResponse] - def get_user_badge_progress_list(opts = {}) - data, _status_code, _headers = get_user_badge_progress_list_with_http_info(opts) + def get_user_badge_progress_list(tenant_id, opts = {}) + data, _status_code, _headers = get_user_badge_progress_list_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [Float] :limit # @option opts [Float] :skip # @return [Array<(APIGetUserBadgeProgressListResponse, Integer, Hash)>] APIGetUserBadgeProgressListResponse data, response status code and response headers - def get_user_badge_progress_list_with_http_info(opts = {}) + def get_user_badge_progress_list_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_user_badge_progress_list ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_user_badge_progress_list" @@ -6120,8 +5892,8 @@ def get_user_badge_progress_list_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :badge_id # @option opts [Float] :type @@ -6129,13 +5901,13 @@ def get_user_badge_progress_list_with_http_info(opts = {}) # @option opts [Float] :limit # @option opts [Float] :skip # @return [APIGetUserBadgesResponse] - def get_user_badges(opts = {}) - data, _status_code, _headers = get_user_badges_with_http_info(opts) + def get_user_badges(tenant_id, opts = {}) + data, _status_code, _headers = get_user_badges_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :badge_id # @option opts [Float] :type @@ -6143,12 +5915,10 @@ def get_user_badges(opts = {}) # @option opts [Float] :limit # @option opts [Float] :skip # @return [Array<(APIGetUserBadgesResponse, Integer, Hash)>] APIGetUserBadgesResponse data, response status code and response headers - def get_user_badges_with_http_info(opts = {}) + def get_user_badges_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_user_badges ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_user_badges" @@ -6200,26 +5970,23 @@ def get_user_badges_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) + # @param tenant_id [String] + # @param url_id [String] + # @param [Hash] opts the optional parameters # @return [GetVotesResponse] - def get_votes(opts = {}) - data, _status_code, _headers = get_votes_with_http_info(opts) + def get_votes(tenant_id, url_id, opts = {}) + data, _status_code, _headers = get_votes_with_http_info(tenant_id, url_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) + # @param tenant_id [String] + # @param url_id [String] + # @param [Hash] opts the optional parameters # @return [Array<(GetVotesResponse, Integer, Hash)>] GetVotesResponse data, response status code and response headers - def get_votes_with_http_info(opts = {}) + def get_votes_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_votes ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - url_id = opts[:'url_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_votes" @@ -6270,30 +6037,27 @@ def get_votes_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) + # @param tenant_id [String] + # @param url_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id # @return [GetVotesForUserResponse] - def get_votes_for_user(opts = {}) - data, _status_code, _headers = get_votes_for_user_with_http_info(opts) + def get_votes_for_user(tenant_id, url_id, opts = {}) + data, _status_code, _headers = get_votes_for_user_with_http_info(tenant_id, url_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) + # @param tenant_id [String] + # @param url_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id # @return [Array<(GetVotesForUserResponse, Integer, Hash)>] GetVotesForUserResponse data, response status code and response headers - def get_votes_for_user_with_http_info(opts = {}) + def get_votes_for_user_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_votes_for_user ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - url_id = opts[:'url_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.get_votes_for_user" @@ -6346,29 +6110,25 @@ def get_votes_for_user_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :domain_to_update (required) - # @option opts [PatchDomainConfigParams] :patch_domain_config_params (required) + # @param tenant_id [String] + # @param domain_to_update [String] + # @param patch_domain_config_params [PatchDomainConfigParams] + # @param [Hash] opts the optional parameters # @return [PatchDomainConfigResponse] - def patch_domain_config(opts = {}) - data, _status_code, _headers = patch_domain_config_with_http_info(opts) + def patch_domain_config(tenant_id, domain_to_update, patch_domain_config_params, opts = {}) + data, _status_code, _headers = patch_domain_config_with_http_info(tenant_id, domain_to_update, patch_domain_config_params, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :domain_to_update (required) - # @option opts [PatchDomainConfigParams] :patch_domain_config_params (required) + # @param tenant_id [String] + # @param domain_to_update [String] + # @param patch_domain_config_params [PatchDomainConfigParams] + # @param [Hash] opts the optional parameters # @return [Array<(PatchDomainConfigResponse, Integer, Hash)>] PatchDomainConfigResponse data, response status code and response headers - def patch_domain_config_with_http_info(opts = {}) + def patch_domain_config_with_http_info(tenant_id, domain_to_update, patch_domain_config_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.patch_domain_config ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - domain_to_update = opts[:'domain_to_update'] - patch_domain_config_params = opts[:'patch_domain_config_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.patch_domain_config" @@ -6427,27 +6187,25 @@ def patch_domain_config_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tag (required) + # @param tag [String] + # @param update_hash_tag_body [UpdateHashTagBody] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id - # @option opts [UpdateHashTagBody] :update_hash_tag_body # @return [UpdateHashTagResponse] - def patch_hash_tag(opts = {}) - data, _status_code, _headers = patch_hash_tag_with_http_info(opts) + def patch_hash_tag(tag, update_hash_tag_body, opts = {}) + data, _status_code, _headers = patch_hash_tag_with_http_info(tag, update_hash_tag_body, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tag (required) + # @param tag [String] + # @param update_hash_tag_body [UpdateHashTagBody] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id - # @option opts [UpdateHashTagBody] :update_hash_tag_body # @return [Array<(UpdateHashTagResponse, Integer, Hash)>] UpdateHashTagResponse data, response status code and response headers - def patch_hash_tag_with_http_info(opts = {}) + def patch_hash_tag_with_http_info(tag, update_hash_tag_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.patch_hash_tag ...' end - # unbox the parameters from the hash - tag = opts[:'tag'] # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.patch_hash_tag" @@ -6473,7 +6231,7 @@ def patch_hash_tag_with_http_info(opts = {}) form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_hash_tag_body']) + post_body = opts[:debug_body] || @api_client.object_to_http_body(update_hash_tag_body) # return_type return_type = opts[:debug_return_type] || 'UpdateHashTagResponse' @@ -6498,29 +6256,25 @@ def patch_hash_tag_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdateAPIPageData] :update_api_page_data (required) + # @param tenant_id [String] + # @param id [String] + # @param update_api_page_data [UpdateAPIPageData] + # @param [Hash] opts the optional parameters # @return [PatchPageAPIResponse] - def patch_page(opts = {}) - data, _status_code, _headers = patch_page_with_http_info(opts) + def patch_page(tenant_id, id, update_api_page_data, opts = {}) + data, _status_code, _headers = patch_page_with_http_info(tenant_id, id, update_api_page_data, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdateAPIPageData] :update_api_page_data (required) + # @param tenant_id [String] + # @param id [String] + # @param update_api_page_data [UpdateAPIPageData] + # @param [Hash] opts the optional parameters # @return [Array<(PatchPageAPIResponse, Integer, Hash)>] PatchPageAPIResponse data, response status code and response headers - def patch_page_with_http_info(opts = {}) + def patch_page_with_http_info(tenant_id, id, update_api_page_data, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.patch_page ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] - update_api_page_data = opts[:'update_api_page_data'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.patch_page" @@ -6579,31 +6333,27 @@ def patch_page_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdateAPISSOUserData] :update_apisso_user_data (required) + # @param tenant_id [String] + # @param id [String] + # @param update_apisso_user_data [UpdateAPISSOUserData] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :update_comments # @return [PatchSSOUserAPIResponse] - def patch_sso_user(opts = {}) - data, _status_code, _headers = patch_sso_user_with_http_info(opts) + def patch_sso_user(tenant_id, id, update_apisso_user_data, opts = {}) + data, _status_code, _headers = patch_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdateAPISSOUserData] :update_apisso_user_data (required) + # @param tenant_id [String] + # @param id [String] + # @param update_apisso_user_data [UpdateAPISSOUserData] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :update_comments # @return [Array<(PatchSSOUserAPIResponse, Integer, Hash)>] PatchSSOUserAPIResponse data, response status code and response headers - def patch_sso_user_with_http_info(opts = {}) + def patch_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.patch_sso_user ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] - update_apisso_user_data = opts[:'update_apisso_user_data'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.patch_sso_user" @@ -6663,29 +6413,25 @@ def patch_sso_user_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :domain_to_update (required) - # @option opts [UpdateDomainConfigParams] :update_domain_config_params (required) + # @param tenant_id [String] + # @param domain_to_update [String] + # @param update_domain_config_params [UpdateDomainConfigParams] + # @param [Hash] opts the optional parameters # @return [PutDomainConfigResponse] - def put_domain_config(opts = {}) - data, _status_code, _headers = put_domain_config_with_http_info(opts) + def put_domain_config(tenant_id, domain_to_update, update_domain_config_params, opts = {}) + data, _status_code, _headers = put_domain_config_with_http_info(tenant_id, domain_to_update, update_domain_config_params, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :domain_to_update (required) - # @option opts [UpdateDomainConfigParams] :update_domain_config_params (required) + # @param tenant_id [String] + # @param domain_to_update [String] + # @param update_domain_config_params [UpdateDomainConfigParams] + # @param [Hash] opts the optional parameters # @return [Array<(PutDomainConfigResponse, Integer, Hash)>] PutDomainConfigResponse data, response status code and response headers - def put_domain_config_with_http_info(opts = {}) + def put_domain_config_with_http_info(tenant_id, domain_to_update, update_domain_config_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.put_domain_config ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - domain_to_update = opts[:'domain_to_update'] - update_domain_config_params = opts[:'update_domain_config_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.put_domain_config" @@ -6744,31 +6490,27 @@ def put_domain_config_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdateAPISSOUserData] :update_apisso_user_data (required) + # @param tenant_id [String] + # @param id [String] + # @param update_apisso_user_data [UpdateAPISSOUserData] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :update_comments # @return [PutSSOUserAPIResponse] - def put_sso_user(opts = {}) - data, _status_code, _headers = put_sso_user_with_http_info(opts) + def put_sso_user(tenant_id, id, update_apisso_user_data, opts = {}) + data, _status_code, _headers = put_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdateAPISSOUserData] :update_apisso_user_data (required) + # @param tenant_id [String] + # @param id [String] + # @param update_apisso_user_data [UpdateAPISSOUserData] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :update_comments # @return [Array<(PutSSOUserAPIResponse, Integer, Hash)>] PutSSOUserAPIResponse data, response status code and response headers - def put_sso_user_with_http_info(opts = {}) + def put_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.put_sso_user ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] - update_apisso_user_data = opts[:'update_apisso_user_data'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.put_sso_user" @@ -6828,28 +6570,25 @@ def put_sso_user_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [RenderEmailTemplateBody] :render_email_template_body (required) + # @param tenant_id [String] + # @param render_email_template_body [RenderEmailTemplateBody] + # @param [Hash] opts the optional parameters # @option opts [String] :locale # @return [RenderEmailTemplateResponse] - def render_email_template(opts = {}) - data, _status_code, _headers = render_email_template_with_http_info(opts) + def render_email_template(tenant_id, render_email_template_body, opts = {}) + data, _status_code, _headers = render_email_template_with_http_info(tenant_id, render_email_template_body, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [RenderEmailTemplateBody] :render_email_template_body (required) + # @param tenant_id [String] + # @param render_email_template_body [RenderEmailTemplateBody] + # @param [Hash] opts the optional parameters # @option opts [String] :locale # @return [Array<(RenderEmailTemplateResponse, Integer, Hash)>] RenderEmailTemplateResponse data, response status code and response headers - def render_email_template_with_http_info(opts = {}) + def render_email_template_with_http_info(tenant_id, render_email_template_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.render_email_template ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - render_email_template_body = opts[:'render_email_template_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.render_email_template" @@ -6905,29 +6644,25 @@ def render_email_template_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [ReplaceTenantPackageBody] :replace_tenant_package_body (required) + # @param tenant_id [String] + # @param id [String] + # @param replace_tenant_package_body [ReplaceTenantPackageBody] + # @param [Hash] opts the optional parameters # @return [APIEmptyResponse] - def replace_tenant_package(opts = {}) - data, _status_code, _headers = replace_tenant_package_with_http_info(opts) + def replace_tenant_package(tenant_id, id, replace_tenant_package_body, opts = {}) + data, _status_code, _headers = replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_body, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [ReplaceTenantPackageBody] :replace_tenant_package_body (required) + # @param tenant_id [String] + # @param id [String] + # @param replace_tenant_package_body [ReplaceTenantPackageBody] + # @param [Hash] opts the optional parameters # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def replace_tenant_package_with_http_info(opts = {}) + def replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.replace_tenant_package ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] - replace_tenant_package_body = opts[:'replace_tenant_package_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.replace_tenant_package" @@ -6986,31 +6721,27 @@ def replace_tenant_package_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [ReplaceTenantUserBody] :replace_tenant_user_body (required) + # @param tenant_id [String] + # @param id [String] + # @param replace_tenant_user_body [ReplaceTenantUserBody] + # @param [Hash] opts the optional parameters # @option opts [String] :update_comments # @return [APIEmptyResponse] - def replace_tenant_user(opts = {}) - data, _status_code, _headers = replace_tenant_user_with_http_info(opts) + def replace_tenant_user(tenant_id, id, replace_tenant_user_body, opts = {}) + data, _status_code, _headers = replace_tenant_user_with_http_info(tenant_id, id, replace_tenant_user_body, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [ReplaceTenantUserBody] :replace_tenant_user_body (required) + # @param tenant_id [String] + # @param id [String] + # @param replace_tenant_user_body [ReplaceTenantUserBody] + # @param [Hash] opts the optional parameters # @option opts [String] :update_comments # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def replace_tenant_user_with_http_info(opts = {}) + def replace_tenant_user_with_http_info(tenant_id, id, replace_tenant_user_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.replace_tenant_user ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] - replace_tenant_user_body = opts[:'replace_tenant_user_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.replace_tenant_user" @@ -7070,34 +6801,31 @@ def replace_tenant_user_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateCommentParams] :create_comment_params (required) + # @param tenant_id [String] + # @param create_comment_params [CreateCommentParams] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :is_live # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :send_emails # @option opts [Boolean] :populate_notifications # @return [APISaveCommentResponse] - def save_comment(opts = {}) - data, _status_code, _headers = save_comment_with_http_info(opts) + def save_comment(tenant_id, create_comment_params, opts = {}) + data, _status_code, _headers = save_comment_with_http_info(tenant_id, create_comment_params, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateCommentParams] :create_comment_params (required) + # @param tenant_id [String] + # @param create_comment_params [CreateCommentParams] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :is_live # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :send_emails # @option opts [Boolean] :populate_notifications # @return [Array<(APISaveCommentResponse, Integer, Hash)>] APISaveCommentResponse data, response status code and response headers - def save_comment_with_http_info(opts = {}) + def save_comment_with_http_info(tenant_id, create_comment_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.save_comment ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - create_comment_params = opts[:'create_comment_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.save_comment" @@ -7156,34 +6884,31 @@ def save_comment_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [Array] :create_comment_params (required) + # @param tenant_id [String] + # @param create_comment_params [Array] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :is_live # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :send_emails # @option opts [Boolean] :populate_notifications # @return [Array] - def save_comments_bulk(opts = {}) - data, _status_code, _headers = save_comments_bulk_with_http_info(opts) + def save_comments_bulk(tenant_id, create_comment_params, opts = {}) + data, _status_code, _headers = save_comments_bulk_with_http_info(tenant_id, create_comment_params, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [Array] :create_comment_params (required) + # @param tenant_id [String] + # @param create_comment_params [Array] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :is_live # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :send_emails # @option opts [Boolean] :populate_notifications # @return [Array<(Array, Integer, Hash)>] Array data, response status code and response headers - def save_comments_bulk_with_http_info(opts = {}) + def save_comments_bulk_with_http_info(tenant_id, create_comment_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.save_comments_bulk ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - create_comment_params = opts[:'create_comment_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.save_comments_bulk" @@ -7242,29 +6967,25 @@ def save_comments_bulk_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [String] :from_name (required) + # @param tenant_id [String] + # @param id [String] + # @param from_name [String] + # @param [Hash] opts the optional parameters # @return [APIEmptyResponse] - def send_invite(opts = {}) - data, _status_code, _headers = send_invite_with_http_info(opts) + def send_invite(tenant_id, id, from_name, opts = {}) + data, _status_code, _headers = send_invite_with_http_info(tenant_id, id, from_name, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [String] :from_name (required) + # @param tenant_id [String] + # @param id [String] + # @param from_name [String] + # @param [Hash] opts the optional parameters # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def send_invite_with_http_info(opts = {}) + def send_invite_with_http_info(tenant_id, id, from_name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.send_invite ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] - from_name = opts[:'from_name'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.send_invite" @@ -7319,28 +7040,25 @@ def send_invite_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :redirect_url # @return [APIEmptyResponse] - def send_login_link(opts = {}) - data, _status_code, _headers = send_login_link_with_http_info(opts) + def send_login_link(tenant_id, id, opts = {}) + data, _status_code, _headers = send_login_link_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :redirect_url # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def send_login_link_with_http_info(opts = {}) + def send_login_link_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.send_login_link ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.send_login_link" @@ -7391,33 +7109,29 @@ def send_login_link_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UnBlockFromCommentParams] :un_block_from_comment_params (required) + # @param tenant_id [String] + # @param id [String] + # @param un_block_from_comment_params [UnBlockFromCommentParams] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id # @return [UnblockSuccess] - def un_block_user_from_comment(opts = {}) - data, _status_code, _headers = un_block_user_from_comment_with_http_info(opts) + def un_block_user_from_comment(tenant_id, id, un_block_from_comment_params, opts = {}) + data, _status_code, _headers = un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comment_params, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UnBlockFromCommentParams] :un_block_from_comment_params (required) + # @param tenant_id [String] + # @param id [String] + # @param un_block_from_comment_params [UnBlockFromCommentParams] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id # @return [Array<(UnblockSuccess, Integer, Hash)>] UnblockSuccess data, response status code and response headers - def un_block_user_from_comment_with_http_info(opts = {}) + def un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comment_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.un_block_user_from_comment ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] - un_block_from_comment_params = opts[:'un_block_from_comment_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.un_block_user_from_comment" @@ -7478,30 +7192,27 @@ def un_block_user_from_comment_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id # @return [FlagCommentResponse] - def un_flag_comment(opts = {}) - data, _status_code, _headers = un_flag_comment_with_http_info(opts) + def un_flag_comment(tenant_id, id, opts = {}) + data, _status_code, _headers = un_flag_comment_with_http_info(tenant_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :anon_user_id # @return [Array<(FlagCommentResponse, Integer, Hash)>] FlagCommentResponse data, response status code and response headers - def un_flag_comment_with_http_info(opts = {}) + def un_flag_comment_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.un_flag_comment ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.un_flag_comment" @@ -7553,35 +7264,31 @@ def un_flag_comment_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdatableCommentParams] :updatable_comment_params (required) + # @param tenant_id [String] + # @param id [String] + # @param updatable_comment_params [UpdatableCommentParams] + # @param [Hash] opts the optional parameters # @option opts [String] :context_user_id # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :is_live # @return [APIEmptyResponse] - def update_comment(opts = {}) - data, _status_code, _headers = update_comment_with_http_info(opts) + def update_comment(tenant_id, id, updatable_comment_params, opts = {}) + data, _status_code, _headers = update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdatableCommentParams] :updatable_comment_params (required) + # @param tenant_id [String] + # @param id [String] + # @param updatable_comment_params [UpdatableCommentParams] + # @param [Hash] opts the optional parameters # @option opts [String] :context_user_id # @option opts [Boolean] :do_spam_check # @option opts [Boolean] :is_live # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def update_comment_with_http_info(opts = {}) + def update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_comment ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] - updatable_comment_params = opts[:'updatable_comment_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_comment" @@ -7643,29 +7350,25 @@ def update_comment_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdateEmailTemplateBody] :update_email_template_body (required) + # @param tenant_id [String] + # @param id [String] + # @param update_email_template_body [UpdateEmailTemplateBody] + # @param [Hash] opts the optional parameters # @return [APIEmptyResponse] - def update_email_template(opts = {}) - data, _status_code, _headers = update_email_template_with_http_info(opts) + def update_email_template(tenant_id, id, update_email_template_body, opts = {}) + data, _status_code, _headers = update_email_template_with_http_info(tenant_id, id, update_email_template_body, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdateEmailTemplateBody] :update_email_template_body (required) + # @param tenant_id [String] + # @param id [String] + # @param update_email_template_body [UpdateEmailTemplateBody] + # @param [Hash] opts the optional parameters # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def update_email_template_with_http_info(opts = {}) + def update_email_template_with_http_info(tenant_id, id, update_email_template_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_email_template ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] - update_email_template_body = opts[:'update_email_template_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_email_template" @@ -7724,29 +7427,25 @@ def update_email_template_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [FeedPost] :feed_post (required) + # @param tenant_id [String] + # @param id [String] + # @param feed_post [FeedPost] + # @param [Hash] opts the optional parameters # @return [APIEmptyResponse] - def update_feed_post(opts = {}) - data, _status_code, _headers = update_feed_post_with_http_info(opts) + def update_feed_post(tenant_id, id, feed_post, opts = {}) + data, _status_code, _headers = update_feed_post_with_http_info(tenant_id, id, feed_post, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [FeedPost] :feed_post (required) + # @param tenant_id [String] + # @param id [String] + # @param feed_post [FeedPost] + # @param [Hash] opts the optional parameters # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def update_feed_post_with_http_info(opts = {}) + def update_feed_post_with_http_info(tenant_id, id, feed_post, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_feed_post ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] - feed_post = opts[:'feed_post'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_feed_post" @@ -7805,29 +7504,25 @@ def update_feed_post_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdateModeratorBody] :update_moderator_body (required) + # @param tenant_id [String] + # @param id [String] + # @param update_moderator_body [UpdateModeratorBody] + # @param [Hash] opts the optional parameters # @return [APIEmptyResponse] - def update_moderator(opts = {}) - data, _status_code, _headers = update_moderator_with_http_info(opts) + def update_moderator(tenant_id, id, update_moderator_body, opts = {}) + data, _status_code, _headers = update_moderator_with_http_info(tenant_id, id, update_moderator_body, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdateModeratorBody] :update_moderator_body (required) + # @param tenant_id [String] + # @param id [String] + # @param update_moderator_body [UpdateModeratorBody] + # @param [Hash] opts the optional parameters # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def update_moderator_with_http_info(opts = {}) + def update_moderator_with_http_info(tenant_id, id, update_moderator_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_moderator ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] - update_moderator_body = opts[:'update_moderator_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_moderator" @@ -7886,31 +7581,27 @@ def update_moderator_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdateNotificationBody] :update_notification_body (required) + # @param tenant_id [String] + # @param id [String] + # @param update_notification_body [UpdateNotificationBody] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @return [APIEmptyResponse] - def update_notification(opts = {}) - data, _status_code, _headers = update_notification_with_http_info(opts) + def update_notification(tenant_id, id, update_notification_body, opts = {}) + data, _status_code, _headers = update_notification_with_http_info(tenant_id, id, update_notification_body, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdateNotificationBody] :update_notification_body (required) + # @param tenant_id [String] + # @param id [String] + # @param update_notification_body [UpdateNotificationBody] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def update_notification_with_http_info(opts = {}) + def update_notification_with_http_info(tenant_id, id, update_notification_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_notification ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] - update_notification_body = opts[:'update_notification_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_notification" @@ -7970,29 +7661,25 @@ def update_notification_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdateQuestionConfigBody] :update_question_config_body (required) + # @param tenant_id [String] + # @param id [String] + # @param update_question_config_body [UpdateQuestionConfigBody] + # @param [Hash] opts the optional parameters # @return [APIEmptyResponse] - def update_question_config(opts = {}) - data, _status_code, _headers = update_question_config_with_http_info(opts) + def update_question_config(tenant_id, id, update_question_config_body, opts = {}) + data, _status_code, _headers = update_question_config_with_http_info(tenant_id, id, update_question_config_body, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdateQuestionConfigBody] :update_question_config_body (required) + # @param tenant_id [String] + # @param id [String] + # @param update_question_config_body [UpdateQuestionConfigBody] + # @param [Hash] opts the optional parameters # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def update_question_config_with_http_info(opts = {}) + def update_question_config_with_http_info(tenant_id, id, update_question_config_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_question_config ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] - update_question_config_body = opts[:'update_question_config_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_question_config" @@ -8051,29 +7738,25 @@ def update_question_config_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdateQuestionResultBody] :update_question_result_body (required) + # @param tenant_id [String] + # @param id [String] + # @param update_question_result_body [UpdateQuestionResultBody] + # @param [Hash] opts the optional parameters # @return [APIEmptyResponse] - def update_question_result(opts = {}) - data, _status_code, _headers = update_question_result_with_http_info(opts) + def update_question_result(tenant_id, id, update_question_result_body, opts = {}) + data, _status_code, _headers = update_question_result_with_http_info(tenant_id, id, update_question_result_body, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdateQuestionResultBody] :update_question_result_body (required) + # @param tenant_id [String] + # @param id [String] + # @param update_question_result_body [UpdateQuestionResultBody] + # @param [Hash] opts the optional parameters # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def update_question_result_with_http_info(opts = {}) + def update_question_result_with_http_info(tenant_id, id, update_question_result_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_question_result ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] - update_question_result_body = opts[:'update_question_result_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_question_result" @@ -8132,31 +7815,27 @@ def update_question_result_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdateAPIUserSubscriptionData] :update_api_user_subscription_data (required) + # @param tenant_id [String] + # @param id [String] + # @param update_api_user_subscription_data [UpdateAPIUserSubscriptionData] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @return [UpdateSubscriptionAPIResponse] - def update_subscription(opts = {}) - data, _status_code, _headers = update_subscription_with_http_info(opts) + def update_subscription(tenant_id, id, update_api_user_subscription_data, opts = {}) + data, _status_code, _headers = update_subscription_with_http_info(tenant_id, id, update_api_user_subscription_data, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdateAPIUserSubscriptionData] :update_api_user_subscription_data (required) + # @param tenant_id [String] + # @param id [String] + # @param update_api_user_subscription_data [UpdateAPIUserSubscriptionData] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @return [Array<(UpdateSubscriptionAPIResponse, Integer, Hash)>] UpdateSubscriptionAPIResponse data, response status code and response headers - def update_subscription_with_http_info(opts = {}) + def update_subscription_with_http_info(tenant_id, id, update_api_user_subscription_data, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_subscription ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] - update_api_user_subscription_data = opts[:'update_api_user_subscription_data'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_subscription" @@ -8216,29 +7895,25 @@ def update_subscription_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdateTenantBody] :update_tenant_body (required) + # @param tenant_id [String] + # @param id [String] + # @param update_tenant_body [UpdateTenantBody] + # @param [Hash] opts the optional parameters # @return [APIEmptyResponse] - def update_tenant(opts = {}) - data, _status_code, _headers = update_tenant_with_http_info(opts) + def update_tenant(tenant_id, id, update_tenant_body, opts = {}) + data, _status_code, _headers = update_tenant_with_http_info(tenant_id, id, update_tenant_body, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdateTenantBody] :update_tenant_body (required) + # @param tenant_id [String] + # @param id [String] + # @param update_tenant_body [UpdateTenantBody] + # @param [Hash] opts the optional parameters # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def update_tenant_with_http_info(opts = {}) + def update_tenant_with_http_info(tenant_id, id, update_tenant_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_tenant ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] - update_tenant_body = opts[:'update_tenant_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_tenant" @@ -8297,29 +7972,25 @@ def update_tenant_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdateTenantPackageBody] :update_tenant_package_body (required) + # @param tenant_id [String] + # @param id [String] + # @param update_tenant_package_body [UpdateTenantPackageBody] + # @param [Hash] opts the optional parameters # @return [APIEmptyResponse] - def update_tenant_package(opts = {}) - data, _status_code, _headers = update_tenant_package_with_http_info(opts) + def update_tenant_package(tenant_id, id, update_tenant_package_body, opts = {}) + data, _status_code, _headers = update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_body, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdateTenantPackageBody] :update_tenant_package_body (required) + # @param tenant_id [String] + # @param id [String] + # @param update_tenant_package_body [UpdateTenantPackageBody] + # @param [Hash] opts the optional parameters # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def update_tenant_package_with_http_info(opts = {}) + def update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_tenant_package ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] - update_tenant_package_body = opts[:'update_tenant_package_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_tenant_package" @@ -8378,31 +8049,27 @@ def update_tenant_package_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdateTenantUserBody] :update_tenant_user_body (required) + # @param tenant_id [String] + # @param id [String] + # @param update_tenant_user_body [UpdateTenantUserBody] + # @param [Hash] opts the optional parameters # @option opts [String] :update_comments # @return [APIEmptyResponse] - def update_tenant_user(opts = {}) - data, _status_code, _headers = update_tenant_user_with_http_info(opts) + def update_tenant_user(tenant_id, id, update_tenant_user_body, opts = {}) + data, _status_code, _headers = update_tenant_user_with_http_info(tenant_id, id, update_tenant_user_body, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdateTenantUserBody] :update_tenant_user_body (required) + # @param tenant_id [String] + # @param id [String] + # @param update_tenant_user_body [UpdateTenantUserBody] + # @param [Hash] opts the optional parameters # @option opts [String] :update_comments # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def update_tenant_user_with_http_info(opts = {}) + def update_tenant_user_with_http_info(tenant_id, id, update_tenant_user_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_tenant_user ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] - update_tenant_user_body = opts[:'update_tenant_user_body'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_tenant_user" @@ -8462,29 +8129,25 @@ def update_tenant_user_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdateUserBadgeParams] :update_user_badge_params (required) + # @param tenant_id [String] + # @param id [String] + # @param update_user_badge_params [UpdateUserBadgeParams] + # @param [Hash] opts the optional parameters # @return [APIEmptySuccessResponse] - def update_user_badge(opts = {}) - data, _status_code, _headers = update_user_badge_with_http_info(opts) + def update_user_badge(tenant_id, id, update_user_badge_params, opts = {}) + data, _status_code, _headers = update_user_badge_with_http_info(tenant_id, id, update_user_badge_params, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :id (required) - # @option opts [UpdateUserBadgeParams] :update_user_badge_params (required) + # @param tenant_id [String] + # @param id [String] + # @param update_user_badge_params [UpdateUserBadgeParams] + # @param [Hash] opts the optional parameters # @return [Array<(APIEmptySuccessResponse, Integer, Hash)>] APIEmptySuccessResponse data, response status code and response headers - def update_user_badge_with_http_info(opts = {}) + def update_user_badge_with_http_info(tenant_id, id, update_user_badge_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_user_badge ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - id = opts[:'id'] - update_user_badge_params = opts[:'update_user_badge_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_user_badge" diff --git a/client/lib/fastcomments-client/api/moderation_api.rb b/client/lib/fastcomments-client/api/moderation_api.rb index 200c0b5..dd0f07a 100644 --- a/client/lib/fastcomments-client/api/moderation_api.rb +++ b/client/lib/fastcomments-client/api/moderation_api.rb @@ -19,32 +19,29 @@ class ModerationApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) - # @option opts [String] :vote_id (required) + # @param comment_id [String] + # @param vote_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [VoteDeleteResponse] - def delete_moderation_vote(opts = {}) - data, _status_code, _headers = delete_moderation_vote_with_http_info(opts) + def delete_moderation_vote(comment_id, vote_id, opts = {}) + data, _status_code, _headers = delete_moderation_vote_with_http_info(comment_id, vote_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) - # @option opts [String] :vote_id (required) + # @param comment_id [String] + # @param vote_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(VoteDeleteResponse, Integer, Hash)>] VoteDeleteResponse data, response status code and response headers - def delete_moderation_vote_with_http_info(opts = {}) + def delete_moderation_vote_with_http_info(comment_id, vote_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.delete_moderation_vote ...' end - # unbox the parameters from the hash - comment_id = opts[:'comment_id'] - vote_id = opts[:'vote_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.delete_moderation_vote" @@ -96,7 +93,7 @@ def delete_moderation_vote_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [Float] :page # @option opts [Float] :count # @option opts [String] :text_search @@ -113,7 +110,7 @@ def get_api_comments(opts = {}) data end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [Float] :page # @option opts [Float] :count # @option opts [String] :text_search @@ -129,7 +126,6 @@ def get_api_comments_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_api_comments ...' end - # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/api/comments' @@ -180,7 +176,7 @@ def get_api_comments_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :batch_job_id # @option opts [String] :tenant_id # @option opts [String] :sso @@ -190,7 +186,7 @@ def get_api_export_status(opts = {}) data end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :batch_job_id # @option opts [String] :tenant_id # @option opts [String] :sso @@ -199,7 +195,6 @@ def get_api_export_status_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_api_export_status ...' end - # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/api/export/status' @@ -243,7 +238,7 @@ def get_api_export_status_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment # @option opts [String] :filters @@ -258,7 +253,7 @@ def get_api_ids(opts = {}) data end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment # @option opts [String] :filters @@ -272,7 +267,6 @@ def get_api_ids_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_api_ids ...' end - # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/api/ids' @@ -321,27 +315,25 @@ def get_api_ids_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [GetBannedUsersFromCommentResponse] - def get_ban_users_from_comment(opts = {}) - data, _status_code, _headers = get_ban_users_from_comment_with_http_info(opts) + def get_ban_users_from_comment(comment_id, opts = {}) + data, _status_code, _headers = get_ban_users_from_comment_with_http_info(comment_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(GetBannedUsersFromCommentResponse, Integer, Hash)>] GetBannedUsersFromCommentResponse data, response status code and response headers - def get_ban_users_from_comment_with_http_info(opts = {}) + def get_ban_users_from_comment_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_ban_users_from_comment ...' end - # unbox the parameters from the hash - comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_ban_users_from_comment" @@ -388,27 +380,25 @@ def get_ban_users_from_comment_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [GetCommentBanStatusResponse] - def get_comment_ban_status(opts = {}) - data, _status_code, _headers = get_comment_ban_status_with_http_info(opts) + def get_comment_ban_status(comment_id, opts = {}) + data, _status_code, _headers = get_comment_ban_status_with_http_info(comment_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(GetCommentBanStatusResponse, Integer, Hash)>] GetCommentBanStatusResponse data, response status code and response headers - def get_comment_ban_status_with_http_info(opts = {}) + def get_comment_ban_status_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_comment_ban_status ...' end - # unbox the parameters from the hash - comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_comment_ban_status" @@ -455,27 +445,25 @@ def get_comment_ban_status_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationAPIChildCommentsResponse] - def get_comment_children(opts = {}) - data, _status_code, _headers = get_comment_children_with_http_info(opts) + def get_comment_children(comment_id, opts = {}) + data, _status_code, _headers = get_comment_children_with_http_info(comment_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(ModerationAPIChildCommentsResponse, Integer, Hash)>] ModerationAPIChildCommentsResponse data, response status code and response headers - def get_comment_children_with_http_info(opts = {}) + def get_comment_children_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_comment_children ...' end - # unbox the parameters from the hash - comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_comment_children" @@ -522,7 +510,7 @@ def get_comment_children_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment # @option opts [String] :filter @@ -536,7 +524,7 @@ def get_count(opts = {}) data end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment # @option opts [String] :filter @@ -549,7 +537,6 @@ def get_count_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_count ...' end - # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/count' @@ -597,7 +584,7 @@ def get_count_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [GetBannedUsersCountResponse] @@ -606,7 +593,7 @@ def get_counts(opts = {}) data end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(GetBannedUsersCountResponse, Integer, Hash)>] GetBannedUsersCountResponse data, response status code and response headers @@ -614,7 +601,6 @@ def get_counts_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_counts ...' end - # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/banned-users/counts' @@ -657,27 +643,25 @@ def get_counts_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationAPIGetLogsResponse] - def get_logs(opts = {}) - data, _status_code, _headers = get_logs_with_http_info(opts) + def get_logs(comment_id, opts = {}) + data, _status_code, _headers = get_logs_with_http_info(comment_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(ModerationAPIGetLogsResponse, Integer, Hash)>] ModerationAPIGetLogsResponse data, response status code and response headers - def get_logs_with_http_info(opts = {}) + def get_logs_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_logs ...' end - # unbox the parameters from the hash - comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_logs" @@ -724,7 +708,7 @@ def get_logs_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [GetTenantManualBadgesResponse] @@ -733,7 +717,7 @@ def get_manual_badges(opts = {}) data end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(GetTenantManualBadgesResponse, Integer, Hash)>] GetTenantManualBadgesResponse data, response status code and response headers @@ -741,7 +725,6 @@ def get_manual_badges_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_manual_badges ...' end - # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/get-manual-badges' @@ -784,7 +767,7 @@ def get_manual_badges_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :badges_user_id # @option opts [String] :comment_id # @option opts [String] :tenant_id @@ -795,7 +778,7 @@ def get_manual_badges_for_user(opts = {}) data end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :badges_user_id # @option opts [String] :comment_id # @option opts [String] :tenant_id @@ -805,7 +788,6 @@ def get_manual_badges_for_user_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_manual_badges_for_user ...' end - # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/get-manual-badges-for-user' @@ -850,31 +832,29 @@ def get_manual_badges_for_user_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :include_email # @option opts [Boolean] :include_ip # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationAPICommentResponse] - def get_moderation_comment(opts = {}) - data, _status_code, _headers = get_moderation_comment_with_http_info(opts) + def get_moderation_comment(comment_id, opts = {}) + data, _status_code, _headers = get_moderation_comment_with_http_info(comment_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :include_email # @option opts [Boolean] :include_ip # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(ModerationAPICommentResponse, Integer, Hash)>] ModerationAPICommentResponse data, response status code and response headers - def get_moderation_comment_with_http_info(opts = {}) + def get_moderation_comment_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_moderation_comment ...' end - # unbox the parameters from the hash - comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_moderation_comment" @@ -923,27 +903,25 @@ def get_moderation_comment_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [GetCommentTextResponse] - def get_moderation_comment_text(opts = {}) - data, _status_code, _headers = get_moderation_comment_text_with_http_info(opts) + def get_moderation_comment_text(comment_id, opts = {}) + data, _status_code, _headers = get_moderation_comment_text_with_http_info(comment_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(GetCommentTextResponse, Integer, Hash)>] GetCommentTextResponse data, response status code and response headers - def get_moderation_comment_text_with_http_info(opts = {}) + def get_moderation_comment_text_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_moderation_comment_text ...' end - # unbox the parameters from the hash - comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_moderation_comment_text" @@ -990,33 +968,31 @@ def get_moderation_comment_text_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :include_by_user_id_and_email # @option opts [Boolean] :include_by_ip # @option opts [Boolean] :include_by_email_domain # @option opts [String] :tenant_id # @option opts [String] :sso # @return [PreBanSummary] - def get_pre_ban_summary(opts = {}) - data, _status_code, _headers = get_pre_ban_summary_with_http_info(opts) + def get_pre_ban_summary(comment_id, opts = {}) + data, _status_code, _headers = get_pre_ban_summary_with_http_info(comment_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :include_by_user_id_and_email # @option opts [Boolean] :include_by_ip # @option opts [Boolean] :include_by_email_domain # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(PreBanSummary, Integer, Hash)>] PreBanSummary data, response status code and response headers - def get_pre_ban_summary_with_http_info(opts = {}) + def get_pre_ban_summary_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_pre_ban_summary ...' end - # unbox the parameters from the hash - comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_pre_ban_summary" @@ -1066,7 +1042,7 @@ def get_pre_ban_summary_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :value # @option opts [String] :filters # @option opts [String] :search_filters @@ -1078,7 +1054,7 @@ def get_search_comments_summary(opts = {}) data end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :value # @option opts [String] :filters # @option opts [String] :search_filters @@ -1089,7 +1065,6 @@ def get_search_comments_summary_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_comments_summary ...' end - # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/search/comments/summary' @@ -1135,7 +1110,7 @@ def get_search_comments_summary_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :value # @option opts [String] :tenant_id # @option opts [String] :sso @@ -1145,7 +1120,7 @@ def get_search_pages(opts = {}) data end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :value # @option opts [String] :tenant_id # @option opts [String] :sso @@ -1154,7 +1129,6 @@ def get_search_pages_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_pages ...' end - # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/search/pages' @@ -1198,7 +1172,7 @@ def get_search_pages_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :value # @option opts [String] :tenant_id # @option opts [String] :sso @@ -1208,7 +1182,7 @@ def get_search_sites(opts = {}) data end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :value # @option opts [String] :tenant_id # @option opts [String] :sso @@ -1217,7 +1191,6 @@ def get_search_sites_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_sites ...' end - # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/search/sites' @@ -1261,7 +1234,7 @@ def get_search_sites_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :tenant_id # @option opts [String] :sso @@ -1271,7 +1244,7 @@ def get_search_suggest(opts = {}) data end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :tenant_id # @option opts [String] :sso @@ -1280,7 +1253,6 @@ def get_search_suggest_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_suggest ...' end - # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/search/suggest' @@ -1324,7 +1296,7 @@ def get_search_suggest_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :value # @option opts [String] :tenant_id # @option opts [String] :sso @@ -1334,7 +1306,7 @@ def get_search_users(opts = {}) data end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :value # @option opts [String] :tenant_id # @option opts [String] :sso @@ -1343,7 +1315,6 @@ def get_search_users_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_users ...' end - # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/search/users' @@ -1387,7 +1358,7 @@ def get_search_users_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :tenant_id # @option opts [String] :sso @@ -1397,7 +1368,7 @@ def get_trust_factor(opts = {}) data end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :tenant_id # @option opts [String] :sso @@ -1406,7 +1377,6 @@ def get_trust_factor_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_trust_factor ...' end - # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/get-trust-factor' @@ -1450,7 +1420,7 @@ def get_trust_factor_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [APIModerateGetUserBanPreferencesResponse] @@ -1459,7 +1429,7 @@ def get_user_ban_preference(opts = {}) data end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(APIModerateGetUserBanPreferencesResponse, Integer, Hash)>] APIModerateGetUserBanPreferencesResponse data, response status code and response headers @@ -1467,7 +1437,6 @@ def get_user_ban_preference_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_user_ban_preference ...' end - # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/user-ban-preference' @@ -1510,7 +1479,7 @@ def get_user_ban_preference_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :comment_id # @option opts [String] :tenant_id # @option opts [String] :sso @@ -1520,7 +1489,7 @@ def get_user_internal_profile(opts = {}) data end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :comment_id # @option opts [String] :tenant_id # @option opts [String] :sso @@ -1529,7 +1498,6 @@ def get_user_internal_profile_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_user_internal_profile ...' end - # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/get-user-internal-profile' @@ -1573,32 +1541,29 @@ def get_user_internal_profile_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) - # @option opts [AdjustCommentVotesParams] :adjust_comment_votes_params (required) + # @param comment_id [String] + # @param adjust_comment_votes_params [AdjustCommentVotesParams] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [AdjustVotesResponse] - def post_adjust_comment_votes(opts = {}) - data, _status_code, _headers = post_adjust_comment_votes_with_http_info(opts) + def post_adjust_comment_votes(comment_id, adjust_comment_votes_params, opts = {}) + data, _status_code, _headers = post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) - # @option opts [AdjustCommentVotesParams] :adjust_comment_votes_params (required) + # @param comment_id [String] + # @param adjust_comment_votes_params [AdjustCommentVotesParams] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(AdjustVotesResponse, Integer, Hash)>] AdjustVotesResponse data, response status code and response headers - def post_adjust_comment_votes_with_http_info(opts = {}) + def post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_adjust_comment_votes ...' end - # unbox the parameters from the hash - comment_id = opts[:'comment_id'] - adjust_comment_votes_params = opts[:'adjust_comment_votes_params'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_adjust_comment_votes" @@ -1655,7 +1620,7 @@ def post_adjust_comment_votes_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment # @option opts [String] :filters @@ -1669,7 +1634,7 @@ def post_api_export(opts = {}) data end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment # @option opts [String] :filters @@ -1682,7 +1647,6 @@ def post_api_export_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_api_export ...' end - # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/api/export' @@ -1730,8 +1694,8 @@ def post_api_export_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :ban_email # @option opts [Boolean] :ban_email_domain # @option opts [Boolean] :ban_ip @@ -1743,13 +1707,13 @@ def post_api_export_with_http_info(opts = {}) # @option opts [String] :tenant_id # @option opts [String] :sso # @return [BanUserFromCommentResult] - def post_ban_user_from_comment(opts = {}) - data, _status_code, _headers = post_ban_user_from_comment_with_http_info(opts) + def post_ban_user_from_comment(comment_id, opts = {}) + data, _status_code, _headers = post_ban_user_from_comment_with_http_info(comment_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :ban_email # @option opts [Boolean] :ban_email_domain # @option opts [Boolean] :ban_ip @@ -1761,12 +1725,10 @@ def post_ban_user_from_comment(opts = {}) # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(BanUserFromCommentResult, Integer, Hash)>] BanUserFromCommentResult data, response status code and response headers - def post_ban_user_from_comment_with_http_info(opts = {}) + def post_ban_user_from_comment_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_ban_user_from_comment ...' end - # unbox the parameters from the hash - comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_ban_user_from_comment" @@ -1821,27 +1783,25 @@ def post_ban_user_from_comment_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [BanUserUndoParams] :ban_user_undo_params (required) + # @param ban_user_undo_params [BanUserUndoParams] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [APIEmptyResponse] - def post_ban_user_undo(opts = {}) - data, _status_code, _headers = post_ban_user_undo_with_http_info(opts) + def post_ban_user_undo(ban_user_undo_params, opts = {}) + data, _status_code, _headers = post_ban_user_undo_with_http_info(ban_user_undo_params, opts) data end - # @param [Hash] opts the parameters - # @option opts [BanUserUndoParams] :ban_user_undo_params (required) + # @param ban_user_undo_params [BanUserUndoParams] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def post_ban_user_undo_with_http_info(opts = {}) + def post_ban_user_undo_with_http_info(ban_user_undo_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_ban_user_undo ...' end - # unbox the parameters from the hash - ban_user_undo_params = opts[:'ban_user_undo_params'] # verify the required parameter 'ban_user_undo_params' is set if @api_client.config.client_side_validation && ban_user_undo_params.nil? fail ArgumentError, "Missing the required parameter 'ban_user_undo_params' when calling ModerationApi.post_ban_user_undo" @@ -1893,33 +1853,31 @@ def post_ban_user_undo_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [BulkPreBanParams] :bulk_pre_ban_params (required) + # @param bulk_pre_ban_params [BulkPreBanParams] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :include_by_user_id_and_email # @option opts [Boolean] :include_by_ip # @option opts [Boolean] :include_by_email_domain # @option opts [String] :tenant_id # @option opts [String] :sso # @return [BulkPreBanSummary] - def post_bulk_pre_ban_summary(opts = {}) - data, _status_code, _headers = post_bulk_pre_ban_summary_with_http_info(opts) + def post_bulk_pre_ban_summary(bulk_pre_ban_params, opts = {}) + data, _status_code, _headers = post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts) data end - # @param [Hash] opts the parameters - # @option opts [BulkPreBanParams] :bulk_pre_ban_params (required) + # @param bulk_pre_ban_params [BulkPreBanParams] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :include_by_user_id_and_email # @option opts [Boolean] :include_by_ip # @option opts [Boolean] :include_by_email_domain # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(BulkPreBanSummary, Integer, Hash)>] BulkPreBanSummary data, response status code and response headers - def post_bulk_pre_ban_summary_with_http_info(opts = {}) + def post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_bulk_pre_ban_summary ...' end - # unbox the parameters from the hash - bulk_pre_ban_params = opts[:'bulk_pre_ban_params'] # verify the required parameter 'bulk_pre_ban_params' is set if @api_client.config.client_side_validation && bulk_pre_ban_params.nil? fail ArgumentError, "Missing the required parameter 'bulk_pre_ban_params' when calling ModerationApi.post_bulk_pre_ban_summary" @@ -1974,27 +1932,25 @@ def post_bulk_pre_ban_summary_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [CommentsByIdsParams] :comments_by_ids_params (required) + # @param comments_by_ids_params [CommentsByIdsParams] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationAPIChildCommentsResponse] - def post_comments_by_ids(opts = {}) - data, _status_code, _headers = post_comments_by_ids_with_http_info(opts) + def post_comments_by_ids(comments_by_ids_params, opts = {}) + data, _status_code, _headers = post_comments_by_ids_with_http_info(comments_by_ids_params, opts) data end - # @param [Hash] opts the parameters - # @option opts [CommentsByIdsParams] :comments_by_ids_params (required) + # @param comments_by_ids_params [CommentsByIdsParams] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(ModerationAPIChildCommentsResponse, Integer, Hash)>] ModerationAPIChildCommentsResponse data, response status code and response headers - def post_comments_by_ids_with_http_info(opts = {}) + def post_comments_by_ids_with_http_info(comments_by_ids_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_comments_by_ids ...' end - # unbox the parameters from the hash - comments_by_ids_params = opts[:'comments_by_ids_params'] # verify the required parameter 'comments_by_ids_params' is set if @api_client.config.client_side_validation && comments_by_ids_params.nil? fail ArgumentError, "Missing the required parameter 'comments_by_ids_params' when calling ModerationApi.post_comments_by_ids" @@ -2046,29 +2002,27 @@ def post_comments_by_ids_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] - def post_flag_comment(opts = {}) - data, _status_code, _headers = post_flag_comment_with_http_info(opts) + def post_flag_comment(comment_id, opts = {}) + data, _status_code, _headers = post_flag_comment_with_http_info(comment_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def post_flag_comment_with_http_info(opts = {}) + def post_flag_comment_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_flag_comment ...' end - # unbox the parameters from the hash - comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_flag_comment" @@ -2116,29 +2070,27 @@ def post_flag_comment_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [PostRemoveCommentResponse] - def post_remove_comment(opts = {}) - data, _status_code, _headers = post_remove_comment_with_http_info(opts) + def post_remove_comment(comment_id, opts = {}) + data, _status_code, _headers = post_remove_comment_with_http_info(comment_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(PostRemoveCommentResponse, Integer, Hash)>] PostRemoveCommentResponse data, response status code and response headers - def post_remove_comment_with_http_info(opts = {}) + def post_remove_comment_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_remove_comment ...' end - # unbox the parameters from the hash - comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_remove_comment" @@ -2186,29 +2138,27 @@ def post_remove_comment_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] - def post_restore_deleted_comment(opts = {}) - data, _status_code, _headers = post_restore_deleted_comment_with_http_info(opts) + def post_restore_deleted_comment(comment_id, opts = {}) + data, _status_code, _headers = post_restore_deleted_comment_with_http_info(comment_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def post_restore_deleted_comment_with_http_info(opts = {}) + def post_restore_deleted_comment_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_restore_deleted_comment ...' end - # unbox the parameters from the hash - comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_restore_deleted_comment" @@ -2256,31 +2206,29 @@ def post_restore_deleted_comment_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :approved # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [SetCommentApprovedResponse] - def post_set_comment_approval_status(opts = {}) - data, _status_code, _headers = post_set_comment_approval_status_with_http_info(opts) + def post_set_comment_approval_status(comment_id, opts = {}) + data, _status_code, _headers = post_set_comment_approval_status_with_http_info(comment_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :approved # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(SetCommentApprovedResponse, Integer, Hash)>] SetCommentApprovedResponse data, response status code and response headers - def post_set_comment_approval_status_with_http_info(opts = {}) + def post_set_comment_approval_status_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_approval_status ...' end - # unbox the parameters from the hash - comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_set_comment_approval_status" @@ -2329,31 +2277,29 @@ def post_set_comment_approval_status_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :reviewed # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] - def post_set_comment_review_status(opts = {}) - data, _status_code, _headers = post_set_comment_review_status_with_http_info(opts) + def post_set_comment_review_status(comment_id, opts = {}) + data, _status_code, _headers = post_set_comment_review_status_with_http_info(comment_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :reviewed # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def post_set_comment_review_status_with_http_info(opts = {}) + def post_set_comment_review_status_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_review_status ...' end - # unbox the parameters from the hash - comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_set_comment_review_status" @@ -2402,33 +2348,31 @@ def post_set_comment_review_status_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :spam # @option opts [Boolean] :perm_not_spam # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] - def post_set_comment_spam_status(opts = {}) - data, _status_code, _headers = post_set_comment_spam_status_with_http_info(opts) + def post_set_comment_spam_status(comment_id, opts = {}) + data, _status_code, _headers = post_set_comment_spam_status_with_http_info(comment_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :spam # @option opts [Boolean] :perm_not_spam # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def post_set_comment_spam_status_with_http_info(opts = {}) + def post_set_comment_spam_status_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_spam_status ...' end - # unbox the parameters from the hash - comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_set_comment_spam_status" @@ -2478,32 +2422,29 @@ def post_set_comment_spam_status_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) - # @option opts [SetCommentTextParams] :set_comment_text_params (required) + # @param comment_id [String] + # @param set_comment_text_params [SetCommentTextParams] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [SetCommentTextResponse] - def post_set_comment_text(opts = {}) - data, _status_code, _headers = post_set_comment_text_with_http_info(opts) + def post_set_comment_text(comment_id, set_comment_text_params, opts = {}) + data, _status_code, _headers = post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) - # @option opts [SetCommentTextParams] :set_comment_text_params (required) + # @param comment_id [String] + # @param set_comment_text_params [SetCommentTextParams] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(SetCommentTextResponse, Integer, Hash)>] SetCommentTextResponse data, response status code and response headers - def post_set_comment_text_with_http_info(opts = {}) + def post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_text ...' end - # unbox the parameters from the hash - comment_id = opts[:'comment_id'] - set_comment_text_params = opts[:'set_comment_text_params'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_set_comment_text" @@ -2560,29 +2501,27 @@ def post_set_comment_text_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] - def post_un_flag_comment(opts = {}) - data, _status_code, _headers = post_un_flag_comment_with_http_info(opts) + def post_un_flag_comment(comment_id, opts = {}) + data, _status_code, _headers = post_un_flag_comment_with_http_info(comment_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def post_un_flag_comment_with_http_info(opts = {}) + def post_un_flag_comment_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_un_flag_comment ...' end - # unbox the parameters from the hash - comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_un_flag_comment" @@ -2630,31 +2569,29 @@ def post_un_flag_comment_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :direction # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [VoteResponse] - def post_vote(opts = {}) - data, _status_code, _headers = post_vote_with_http_info(opts) + def post_vote(comment_id, opts = {}) + data, _status_code, _headers = post_vote_with_http_info(comment_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :comment_id (required) + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :direction # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(VoteResponse, Integer, Hash)>] VoteResponse data, response status code and response headers - def post_vote_with_http_info(opts = {}) + def post_vote_with_http_info(comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_vote ...' end - # unbox the parameters from the hash - comment_id = opts[:'comment_id'] # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_vote" @@ -2703,33 +2640,31 @@ def post_vote_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :badge_id (required) + # @param badge_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :comment_id # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [AwardUserBadgeResponse] - def put_award_badge(opts = {}) - data, _status_code, _headers = put_award_badge_with_http_info(opts) + def put_award_badge(badge_id, opts = {}) + data, _status_code, _headers = put_award_badge_with_http_info(badge_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :badge_id (required) + # @param badge_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :comment_id # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(AwardUserBadgeResponse, Integer, Hash)>] AwardUserBadgeResponse data, response status code and response headers - def put_award_badge_with_http_info(opts = {}) + def put_award_badge_with_http_info(badge_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.put_award_badge ...' end - # unbox the parameters from the hash - badge_id = opts[:'badge_id'] # verify the required parameter 'badge_id' is set if @api_client.config.client_side_validation && badge_id.nil? fail ArgumentError, "Missing the required parameter 'badge_id' when calling ModerationApi.put_award_badge" @@ -2780,27 +2715,25 @@ def put_award_badge_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :url_id (required) + # @param url_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [APIEmptyResponse] - def put_close_thread(opts = {}) - data, _status_code, _headers = put_close_thread_with_http_info(opts) + def put_close_thread(url_id, opts = {}) + data, _status_code, _headers = put_close_thread_with_http_info(url_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :url_id (required) + # @param url_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def put_close_thread_with_http_info(opts = {}) + def put_close_thread_with_http_info(url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.put_close_thread ...' end - # unbox the parameters from the hash - url_id = opts[:'url_id'] # verify the required parameter 'url_id' is set if @api_client.config.client_side_validation && url_id.nil? fail ArgumentError, "Missing the required parameter 'url_id' when calling ModerationApi.put_close_thread" @@ -2848,33 +2781,31 @@ def put_close_thread_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :badge_id (required) + # @param badge_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :comment_id # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [RemoveUserBadgeResponse] - def put_remove_badge(opts = {}) - data, _status_code, _headers = put_remove_badge_with_http_info(opts) + def put_remove_badge(badge_id, opts = {}) + data, _status_code, _headers = put_remove_badge_with_http_info(badge_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :badge_id (required) + # @param badge_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :comment_id # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(RemoveUserBadgeResponse, Integer, Hash)>] RemoveUserBadgeResponse data, response status code and response headers - def put_remove_badge_with_http_info(opts = {}) + def put_remove_badge_with_http_info(badge_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.put_remove_badge ...' end - # unbox the parameters from the hash - badge_id = opts[:'badge_id'] # verify the required parameter 'badge_id' is set if @api_client.config.client_side_validation && badge_id.nil? fail ArgumentError, "Missing the required parameter 'badge_id' when calling ModerationApi.put_remove_badge" @@ -2925,27 +2856,25 @@ def put_remove_badge_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :url_id (required) + # @param url_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [APIEmptyResponse] - def put_reopen_thread(opts = {}) - data, _status_code, _headers = put_reopen_thread_with_http_info(opts) + def put_reopen_thread(url_id, opts = {}) + data, _status_code, _headers = put_reopen_thread_with_http_info(url_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :url_id (required) + # @param url_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def put_reopen_thread_with_http_info(opts = {}) + def put_reopen_thread_with_http_info(url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.put_reopen_thread ...' end - # unbox the parameters from the hash - url_id = opts[:'url_id'] # verify the required parameter 'url_id' is set if @api_client.config.client_side_validation && url_id.nil? fail ArgumentError, "Missing the required parameter 'url_id' when calling ModerationApi.put_reopen_thread" @@ -2993,7 +2922,7 @@ def put_reopen_thread_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :trust_factor # @option opts [String] :tenant_id @@ -3004,7 +2933,7 @@ def set_trust_factor(opts = {}) data end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :trust_factor # @option opts [String] :tenant_id @@ -3014,7 +2943,6 @@ def set_trust_factor_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.set_trust_factor ...' end - # unbox the parameters from the hash # resource path local_var_path = '/auth/my-account/moderate-comments/set-trust-factor' diff --git a/client/lib/fastcomments-client/api/public_api.rb b/client/lib/fastcomments-client/api/public_api.rb index 1e4bf83..4e5e672 100644 --- a/client/lib/fastcomments-client/api/public_api.rb +++ b/client/lib/fastcomments-client/api/public_api.rb @@ -19,31 +19,27 @@ class PublicApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) - # @option opts [PublicBlockFromCommentParams] :public_block_from_comment_params (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param public_block_from_comment_params [PublicBlockFromCommentParams] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [BlockSuccess] - def block_from_comment_public(opts = {}) - data, _status_code, _headers = block_from_comment_public_with_http_info(opts) + def block_from_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts = {}) + data, _status_code, _headers = block_from_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) - # @option opts [PublicBlockFromCommentParams] :public_block_from_comment_params (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param public_block_from_comment_params [PublicBlockFromCommentParams] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [Array<(BlockSuccess, Integer, Hash)>] BlockSuccess data, response status code and response headers - def block_from_comment_public_with_http_info(opts = {}) + def block_from_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.block_from_comment_public ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - comment_id = opts[:'comment_id'] - public_block_from_comment_params = opts[:'public_block_from_comment_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.block_from_comment_public" @@ -103,28 +99,25 @@ def block_from_comment_public_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_ids A comma separated list of comment ids. (required) + # @param tenant_id [String] + # @param comment_ids [String] A comma separated list of comment ids. + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [CheckBlockedCommentsResponse] - def checked_comments_for_blocked(opts = {}) - data, _status_code, _headers = checked_comments_for_blocked_with_http_info(opts) + def checked_comments_for_blocked(tenant_id, comment_ids, opts = {}) + data, _status_code, _headers = checked_comments_for_blocked_with_http_info(tenant_id, comment_ids, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_ids A comma separated list of comment ids. (required) + # @param tenant_id [String] + # @param comment_ids [String] A comma separated list of comment ids. + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [Array<(CheckBlockedCommentsResponse, Integer, Hash)>] CheckBlockedCommentsResponse data, response status code and response headers - def checked_comments_for_blocked_with_http_info(opts = {}) + def checked_comments_for_blocked_with_http_info(tenant_id, comment_ids, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.checked_comments_for_blocked ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - comment_ids = opts[:'comment_ids'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.checked_comments_for_blocked" @@ -176,36 +169,31 @@ def checked_comments_for_blocked_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) - # @option opts [String] :broadcast_id (required) - # @option opts [CommentData] :comment_data (required) + # @param tenant_id [String] + # @param url_id [String] + # @param broadcast_id [String] + # @param comment_data [CommentData] + # @param [Hash] opts the optional parameters # @option opts [String] :session_id # @option opts [String] :sso # @return [SaveCommentsResponseWithPresence] - def create_comment_public(opts = {}) - data, _status_code, _headers = create_comment_public_with_http_info(opts) + def create_comment_public(tenant_id, url_id, broadcast_id, comment_data, opts = {}) + data, _status_code, _headers = create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, comment_data, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) - # @option opts [String] :broadcast_id (required) - # @option opts [CommentData] :comment_data (required) + # @param tenant_id [String] + # @param url_id [String] + # @param broadcast_id [String] + # @param comment_data [CommentData] + # @param [Hash] opts the optional parameters # @option opts [String] :session_id # @option opts [String] :sso # @return [Array<(SaveCommentsResponseWithPresence, Integer, Hash)>] SaveCommentsResponseWithPresence data, response status code and response headers - def create_comment_public_with_http_info(opts = {}) + def create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, comment_data, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.create_comment_public ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - url_id = opts[:'url_id'] - broadcast_id = opts[:'broadcast_id'] - comment_data = opts[:'comment_data'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.create_comment_public" @@ -271,30 +259,27 @@ def create_comment_public_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateFeedPostParams] :create_feed_post_params (required) + # @param tenant_id [String] + # @param create_feed_post_params [CreateFeedPostParams] + # @param [Hash] opts the optional parameters # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [CreateFeedPostResponse] - def create_feed_post_public(opts = {}) - data, _status_code, _headers = create_feed_post_public_with_http_info(opts) + def create_feed_post_public(tenant_id, create_feed_post_params, opts = {}) + data, _status_code, _headers = create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [CreateFeedPostParams] :create_feed_post_params (required) + # @param tenant_id [String] + # @param create_feed_post_params [CreateFeedPostParams] + # @param [Hash] opts the optional parameters # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(CreateFeedPostResponse, Integer, Hash)>] CreateFeedPostResponse data, response status code and response headers - def create_feed_post_public_with_http_info(opts = {}) + def create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.create_feed_post_public ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - create_feed_post_params = opts[:'create_feed_post_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.create_feed_post_public" @@ -350,28 +335,25 @@ def create_feed_post_public_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) + # @param tenant_id [String] + # @param url_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :title # @return [CreateV1PageReact] - def create_v1_page_react(opts = {}) - data, _status_code, _headers = create_v1_page_react_with_http_info(opts) + def create_v1_page_react(tenant_id, url_id, opts = {}) + data, _status_code, _headers = create_v1_page_react_with_http_info(tenant_id, url_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) + # @param tenant_id [String] + # @param url_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :title # @return [Array<(CreateV1PageReact, Integer, Hash)>] CreateV1PageReact data, response status code and response headers - def create_v1_page_react_with_http_info(opts = {}) + def create_v1_page_react_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.create_v1_page_react ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - url_id = opts[:'url_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.create_v1_page_react" @@ -422,31 +404,27 @@ def create_v1_page_react_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param url_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :title # @return [CreateV1PageReact] - def create_v2_page_react(opts = {}) - data, _status_code, _headers = create_v2_page_react_with_http_info(opts) + def create_v2_page_react(tenant_id, url_id, id, opts = {}) + data, _status_code, _headers = create_v2_page_react_with_http_info(tenant_id, url_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param url_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :title # @return [Array<(CreateV1PageReact, Integer, Hash)>] CreateV1PageReact data, response status code and response headers - def create_v2_page_react_with_http_info(opts = {}) + def create_v2_page_react_with_http_info(tenant_id, url_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.create_v2_page_react ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - url_id = opts[:'url_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.create_v2_page_react" @@ -502,33 +480,29 @@ def create_v2_page_react_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) - # @option opts [String] :broadcast_id (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param broadcast_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso # @return [PublicAPIDeleteCommentResponse] - def delete_comment_public(opts = {}) - data, _status_code, _headers = delete_comment_public_with_http_info(opts) + def delete_comment_public(tenant_id, comment_id, broadcast_id, opts = {}) + data, _status_code, _headers = delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) - # @option opts [String] :broadcast_id (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param broadcast_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso # @return [Array<(PublicAPIDeleteCommentResponse, Integer, Hash)>] PublicAPIDeleteCommentResponse data, response status code and response headers - def delete_comment_public_with_http_info(opts = {}) + def delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.delete_comment_public ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - comment_id = opts[:'comment_id'] - broadcast_id = opts[:'broadcast_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.delete_comment_public" @@ -584,39 +558,33 @@ def delete_comment_public_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) - # @option opts [String] :vote_id (required) - # @option opts [String] :url_id (required) - # @option opts [String] :broadcast_id (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param vote_id [String] + # @param url_id [String] + # @param broadcast_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso # @return [VoteDeleteResponse] - def delete_comment_vote(opts = {}) - data, _status_code, _headers = delete_comment_vote_with_http_info(opts) + def delete_comment_vote(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts = {}) + data, _status_code, _headers = delete_comment_vote_with_http_info(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) - # @option opts [String] :vote_id (required) - # @option opts [String] :url_id (required) - # @option opts [String] :broadcast_id (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param vote_id [String] + # @param url_id [String] + # @param broadcast_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso # @return [Array<(VoteDeleteResponse, Integer, Hash)>] VoteDeleteResponse data, response status code and response headers - def delete_comment_vote_with_http_info(opts = {}) + def delete_comment_vote_with_http_info(tenant_id, comment_id, vote_id, url_id, broadcast_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.delete_comment_vote ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - comment_id = opts[:'comment_id'] - vote_id = opts[:'vote_id'] - url_id = opts[:'url_id'] - broadcast_id = opts[:'broadcast_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.delete_comment_vote" @@ -681,30 +649,27 @@ def delete_comment_vote_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :post_id (required) + # @param tenant_id [String] + # @param post_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [DeleteFeedPostPublicResponse] - def delete_feed_post_public(opts = {}) - data, _status_code, _headers = delete_feed_post_public_with_http_info(opts) + def delete_feed_post_public(tenant_id, post_id, opts = {}) + data, _status_code, _headers = delete_feed_post_public_with_http_info(tenant_id, post_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :post_id (required) + # @param tenant_id [String] + # @param post_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(DeleteFeedPostPublicResponse, Integer, Hash)>] DeleteFeedPostPublicResponse data, response status code and response headers - def delete_feed_post_public_with_http_info(opts = {}) + def delete_feed_post_public_with_http_info(tenant_id, post_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.delete_feed_post_public ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - post_id = opts[:'post_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.delete_feed_post_public" @@ -755,26 +720,23 @@ def delete_feed_post_public_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) + # @param tenant_id [String] + # @param url_id [String] + # @param [Hash] opts the optional parameters # @return [CreateV1PageReact] - def delete_v1_page_react(opts = {}) - data, _status_code, _headers = delete_v1_page_react_with_http_info(opts) + def delete_v1_page_react(tenant_id, url_id, opts = {}) + data, _status_code, _headers = delete_v1_page_react_with_http_info(tenant_id, url_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) + # @param tenant_id [String] + # @param url_id [String] + # @param [Hash] opts the optional parameters # @return [Array<(CreateV1PageReact, Integer, Hash)>] CreateV1PageReact data, response status code and response headers - def delete_v1_page_react_with_http_info(opts = {}) + def delete_v1_page_react_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.delete_v1_page_react ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - url_id = opts[:'url_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.delete_v1_page_react" @@ -824,29 +786,25 @@ def delete_v1_page_react_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param url_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [CreateV1PageReact] - def delete_v2_page_react(opts = {}) - data, _status_code, _headers = delete_v2_page_react_with_http_info(opts) + def delete_v2_page_react(tenant_id, url_id, id, opts = {}) + data, _status_code, _headers = delete_v2_page_react_with_http_info(tenant_id, url_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param url_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [Array<(CreateV1PageReact, Integer, Hash)>] CreateV1PageReact data, response status code and response headers - def delete_v2_page_react_with_http_info(opts = {}) + def delete_v2_page_react_with_http_info(tenant_id, url_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.delete_v2_page_react ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - url_id = opts[:'url_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.delete_v2_page_react" @@ -901,31 +859,27 @@ def delete_v2_page_react_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) - # @option opts [Boolean] :is_flagged (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param is_flagged [Boolean] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [APIEmptyResponse] - def flag_comment_public(opts = {}) - data, _status_code, _headers = flag_comment_public_with_http_info(opts) + def flag_comment_public(tenant_id, comment_id, is_flagged, opts = {}) + data, _status_code, _headers = flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) - # @option opts [Boolean] :is_flagged (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param is_flagged [Boolean] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def flag_comment_public_with_http_info(opts = {}) + def flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.flag_comment_public ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - comment_id = opts[:'comment_id'] - is_flagged = opts[:'is_flagged'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.flag_comment_public" @@ -981,30 +935,27 @@ def flag_comment_public_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso # @return [PublicAPIGetCommentTextResponse] - def get_comment_text(opts = {}) - data, _status_code, _headers = get_comment_text_with_http_info(opts) + def get_comment_text(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = get_comment_text_with_http_info(tenant_id, comment_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso # @return [Array<(PublicAPIGetCommentTextResponse, Integer, Hash)>] PublicAPIGetCommentTextResponse data, response status code and response headers - def get_comment_text_with_http_info(opts = {}) + def get_comment_text_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_comment_text ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - comment_id = opts[:'comment_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_comment_text" @@ -1055,31 +1006,27 @@ def get_comment_text_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) - # @option opts [Integer] :dir (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param dir [Integer] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [GetCommentVoteUserNamesSuccessResponse] - def get_comment_vote_user_names(opts = {}) - data, _status_code, _headers = get_comment_vote_user_names_with_http_info(opts) + def get_comment_vote_user_names(tenant_id, comment_id, dir, opts = {}) + data, _status_code, _headers = get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) - # @option opts [Integer] :dir (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param dir [Integer] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [Array<(GetCommentVoteUserNamesSuccessResponse, Integer, Hash)>] GetCommentVoteUserNamesSuccessResponse data, response status code and response headers - def get_comment_vote_user_names_with_http_info(opts = {}) + def get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_comment_vote_user_names ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - comment_id = opts[:'comment_id'] - dir = opts[:'dir'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_comment_vote_user_names" @@ -1134,7 +1081,7 @@ def get_comment_vote_user_names_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [SortDirections] :direction # @option opts [String] :replies_to_user_id @@ -1148,7 +1095,7 @@ def get_comments_for_user(opts = {}) data end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [SortDirections] :direction # @option opts [String] :replies_to_user_id @@ -1161,7 +1108,6 @@ def get_comments_for_user_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_comments_for_user ...' end - # unbox the parameters from the hash # resource path local_var_path = '/comments-for-user' @@ -1210,9 +1156,9 @@ def get_comments_for_user_with_http_info(opts = {}) end # req tenantId urlId - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) + # @param tenant_id [String] + # @param url_id [String] + # @param [Hash] opts the optional parameters # @option opts [Integer] :page # @option opts [SortDirections] :direction # @option opts [String] :sso @@ -1240,15 +1186,15 @@ def get_comments_for_user_with_http_info(opts = {}) # @option opts [String] :after_comment_id # @option opts [String] :before_comment_id # @return [GetCommentsResponseWithPresencePublicComment] - def get_comments_public(opts = {}) - data, _status_code, _headers = get_comments_public_with_http_info(opts) + def get_comments_public(tenant_id, url_id, opts = {}) + data, _status_code, _headers = get_comments_public_with_http_info(tenant_id, url_id, opts) data end # req tenantId urlId - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) + # @param tenant_id [String] + # @param url_id [String] + # @param [Hash] opts the optional parameters # @option opts [Integer] :page # @option opts [SortDirections] :direction # @option opts [String] :sso @@ -1276,13 +1222,10 @@ def get_comments_public(opts = {}) # @option opts [String] :after_comment_id # @option opts [String] :before_comment_id # @return [Array<(GetCommentsResponseWithPresencePublicComment, Integer, Hash)>] GetCommentsResponseWithPresencePublicComment data, response status code and response headers - def get_comments_public_with_http_info(opts = {}) + def get_comments_public_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_comments_public ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - url_id = opts[:'url_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_comments_public" @@ -1359,35 +1302,30 @@ def get_comments_public_with_http_info(opts = {}) end # req tenantId urlId userIdWS - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) - # @option opts [String] :user_id_ws (required) - # @option opts [Integer] :start_time (required) + # @param tenant_id [String] + # @param url_id [String] + # @param user_id_ws [String] + # @param start_time [Integer] + # @param [Hash] opts the optional parameters # @option opts [Integer] :end_time # @return [GetEventLogResponse] - def get_event_log(opts = {}) - data, _status_code, _headers = get_event_log_with_http_info(opts) + def get_event_log(tenant_id, url_id, user_id_ws, start_time, opts = {}) + data, _status_code, _headers = get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) data end # req tenantId urlId userIdWS - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) - # @option opts [String] :user_id_ws (required) - # @option opts [Integer] :start_time (required) + # @param tenant_id [String] + # @param url_id [String] + # @param user_id_ws [String] + # @param start_time [Integer] + # @param [Hash] opts the optional parameters # @option opts [Integer] :end_time # @return [Array<(GetEventLogResponse, Integer, Hash)>] GetEventLogResponse data, response status code and response headers - def get_event_log_with_http_info(opts = {}) + def get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_event_log ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - url_id = opts[:'url_id'] - user_id_ws = opts[:'user_id_ws'] - start_time = opts[:'start_time'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_event_log" @@ -1449,8 +1387,8 @@ def get_event_log_with_http_info(opts = {}) end # req tenantId afterId - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :after_id # @option opts [Integer] :limit # @option opts [Array] :tags @@ -1458,14 +1396,14 @@ def get_event_log_with_http_info(opts = {}) # @option opts [Boolean] :is_crawler # @option opts [Boolean] :include_user_info # @return [PublicFeedPostsResponse] - def get_feed_posts_public(opts = {}) - data, _status_code, _headers = get_feed_posts_public_with_http_info(opts) + def get_feed_posts_public(tenant_id, opts = {}) + data, _status_code, _headers = get_feed_posts_public_with_http_info(tenant_id, opts) data end # req tenantId afterId - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :after_id # @option opts [Integer] :limit # @option opts [Array] :tags @@ -1473,12 +1411,10 @@ def get_feed_posts_public(opts = {}) # @option opts [Boolean] :is_crawler # @option opts [Boolean] :include_user_info # @return [Array<(PublicFeedPostsResponse, Integer, Hash)>] PublicFeedPostsResponse data, response status code and response headers - def get_feed_posts_public_with_http_info(opts = {}) + def get_feed_posts_public_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_feed_posts_public ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_feed_posts_public" @@ -1529,28 +1465,25 @@ def get_feed_posts_public_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [Array] :post_ids (required) + # @param tenant_id [String] + # @param post_ids [Array] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [FeedPostsStatsResponse] - def get_feed_posts_stats(opts = {}) - data, _status_code, _headers = get_feed_posts_stats_with_http_info(opts) + def get_feed_posts_stats(tenant_id, post_ids, opts = {}) + data, _status_code, _headers = get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [Array] :post_ids (required) + # @param tenant_id [String] + # @param post_ids [Array] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [Array<(FeedPostsStatsResponse, Integer, Hash)>] FeedPostsStatsResponse data, response status code and response headers - def get_feed_posts_stats_with_http_info(opts = {}) + def get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_feed_posts_stats ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - post_ids = opts[:'post_ids'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_feed_posts_stats" @@ -1601,26 +1534,23 @@ def get_feed_posts_stats_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :large_internal_url_sanitized (required) + # @param tenant_id [String] + # @param large_internal_url_sanitized [String] + # @param [Hash] opts the optional parameters # @return [GifGetLargeResponse] - def get_gif_large(opts = {}) - data, _status_code, _headers = get_gif_large_with_http_info(opts) + def get_gif_large(tenant_id, large_internal_url_sanitized, opts = {}) + data, _status_code, _headers = get_gif_large_with_http_info(tenant_id, large_internal_url_sanitized, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :large_internal_url_sanitized (required) + # @param tenant_id [String] + # @param large_internal_url_sanitized [String] + # @param [Hash] opts the optional parameters # @return [Array<(GifGetLargeResponse, Integer, Hash)>] GifGetLargeResponse data, response status code and response headers - def get_gif_large_with_http_info(opts = {}) + def get_gif_large_with_http_info(tenant_id, large_internal_url_sanitized, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_gif_large ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - large_internal_url_sanitized = opts[:'large_internal_url_sanitized'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_gif_large" @@ -1670,32 +1600,29 @@ def get_gif_large_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :search (required) + # @param tenant_id [String] + # @param search [String] + # @param [Hash] opts the optional parameters # @option opts [String] :locale # @option opts [String] :rating # @option opts [Float] :page # @return [GetGifsSearchResponse] - def get_gifs_search(opts = {}) - data, _status_code, _headers = get_gifs_search_with_http_info(opts) + def get_gifs_search(tenant_id, search, opts = {}) + data, _status_code, _headers = get_gifs_search_with_http_info(tenant_id, search, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :search (required) + # @param tenant_id [String] + # @param search [String] + # @param [Hash] opts the optional parameters # @option opts [String] :locale # @option opts [String] :rating # @option opts [Float] :page # @return [Array<(GetGifsSearchResponse, Integer, Hash)>] GetGifsSearchResponse data, response status code and response headers - def get_gifs_search_with_http_info(opts = {}) + def get_gifs_search_with_http_info(tenant_id, search, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_gifs_search ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - search = opts[:'search'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_gifs_search" @@ -1748,29 +1675,27 @@ def get_gifs_search_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :locale # @option opts [String] :rating # @option opts [Float] :page # @return [GetGifsTrendingResponse] - def get_gifs_trending(opts = {}) - data, _status_code, _headers = get_gifs_trending_with_http_info(opts) + def get_gifs_trending(tenant_id, opts = {}) + data, _status_code, _headers = get_gifs_trending_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :locale # @option opts [String] :rating # @option opts [Float] :page # @return [Array<(GetGifsTrendingResponse, Integer, Hash)>] GetGifsTrendingResponse data, response status code and response headers - def get_gifs_trending_with_http_info(opts = {}) + def get_gifs_trending_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_gifs_trending ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_gifs_trending" @@ -1819,35 +1744,30 @@ def get_gifs_trending_with_http_info(opts = {}) end # req tenantId urlId userIdWS - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) - # @option opts [String] :user_id_ws (required) - # @option opts [Integer] :start_time (required) + # @param tenant_id [String] + # @param url_id [String] + # @param user_id_ws [String] + # @param start_time [Integer] + # @param [Hash] opts the optional parameters # @option opts [Integer] :end_time # @return [GetEventLogResponse] - def get_global_event_log(opts = {}) - data, _status_code, _headers = get_global_event_log_with_http_info(opts) + def get_global_event_log(tenant_id, url_id, user_id_ws, start_time, opts = {}) + data, _status_code, _headers = get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts) data end # req tenantId urlId userIdWS - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) - # @option opts [String] :user_id_ws (required) - # @option opts [Integer] :start_time (required) + # @param tenant_id [String] + # @param url_id [String] + # @param user_id_ws [String] + # @param start_time [Integer] + # @param [Hash] opts the optional parameters # @option opts [Integer] :end_time # @return [Array<(GetEventLogResponse, Integer, Hash)>] GetEventLogResponse data, response status code and response headers - def get_global_event_log_with_http_info(opts = {}) + def get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_global_event_log ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - url_id = opts[:'url_id'] - user_id_ws = opts[:'user_id_ws'] - start_time = opts[:'start_time'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_global_event_log" @@ -1909,31 +1829,28 @@ def get_global_event_log_with_http_info(opts = {}) end # Past commenters on the page who are NOT currently online. Sorted by displayName. Use this after exhausting /users/online to render a \"Members\" section. Cursor pagination on commenterName: server walks the partial {tenantId, urlId, commenterName} index from afterName forward via $gt, no $skip cost. - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id Page URL identifier (cleaned server-side). (required) + # @param tenant_id [String] + # @param url_id [String] Page URL identifier (cleaned server-side). + # @param [Hash] opts the optional parameters # @option opts [String] :after_name Cursor: pass nextAfterName from the previous response. # @option opts [String] :after_user_id Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. # @return [PageUsersOfflineResponse] - def get_offline_users(opts = {}) - data, _status_code, _headers = get_offline_users_with_http_info(opts) + def get_offline_users(tenant_id, url_id, opts = {}) + data, _status_code, _headers = get_offline_users_with_http_info(tenant_id, url_id, opts) data end # Past commenters on the page who are NOT currently online. Sorted by displayName. Use this after exhausting /users/online to render a \"Members\" section. Cursor pagination on commenterName: server walks the partial {tenantId, urlId, commenterName} index from afterName forward via $gt, no $skip cost. - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id Page URL identifier (cleaned server-side). (required) + # @param tenant_id [String] + # @param url_id [String] Page URL identifier (cleaned server-side). + # @param [Hash] opts the optional parameters # @option opts [String] :after_name Cursor: pass nextAfterName from the previous response. # @option opts [String] :after_user_id Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. # @return [Array<(PageUsersOfflineResponse, Integer, Hash)>] PageUsersOfflineResponse data, response status code and response headers - def get_offline_users_with_http_info(opts = {}) + def get_offline_users_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_offline_users ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - url_id = opts[:'url_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_offline_users" @@ -1986,31 +1903,28 @@ def get_offline_users_with_http_info(opts = {}) end # Currently-online viewers of a page: people whose websocket session is subscribed to the page right now. Returns anonCount + totalCount (room-wide subscribers, including anon viewers we don't enumerate). - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id Page URL identifier (cleaned server-side). (required) + # @param tenant_id [String] + # @param url_id [String] Page URL identifier (cleaned server-side). + # @param [Hash] opts the optional parameters # @option opts [String] :after_name Cursor: pass nextAfterName from the previous response. # @option opts [String] :after_user_id Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. # @return [PageUsersOnlineResponse] - def get_online_users(opts = {}) - data, _status_code, _headers = get_online_users_with_http_info(opts) + def get_online_users(tenant_id, url_id, opts = {}) + data, _status_code, _headers = get_online_users_with_http_info(tenant_id, url_id, opts) data end # Currently-online viewers of a page: people whose websocket session is subscribed to the page right now. Returns anonCount + totalCount (room-wide subscribers, including anon viewers we don't enumerate). - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id Page URL identifier (cleaned server-side). (required) + # @param tenant_id [String] + # @param url_id [String] Page URL identifier (cleaned server-side). + # @param [Hash] opts the optional parameters # @option opts [String] :after_name Cursor: pass nextAfterName from the previous response. # @option opts [String] :after_user_id Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. # @return [Array<(PageUsersOnlineResponse, Integer, Hash)>] PageUsersOnlineResponse data, response status code and response headers - def get_online_users_with_http_info(opts = {}) + def get_online_users_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_online_users ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - url_id = opts[:'url_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_online_users" @@ -2063,34 +1977,32 @@ def get_online_users_with_http_info(opts = {}) end # List pages for a tenant. Used by the FChat desktop client to populate its room list. Requires `enableFChat` to be true on the resolved custom config for each page. Pages that require SSO are filtered against the requesting user's group access. - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :cursor Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. # @option opts [Integer] :limit 1..200, default 50 # @option opts [String] :q Optional case-insensitive title prefix filter. # @option opts [PagesSortBy] :sort_by Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). # @option opts [Boolean] :has_comments If true, only return pages with at least one comment. # @return [GetPublicPagesResponse] - def get_pages_public(opts = {}) - data, _status_code, _headers = get_pages_public_with_http_info(opts) + def get_pages_public(tenant_id, opts = {}) + data, _status_code, _headers = get_pages_public_with_http_info(tenant_id, opts) data end # List pages for a tenant. Used by the FChat desktop client to populate its room list. Requires `enableFChat` to be true on the resolved custom config for each page. Pages that require SSO are filtered against the requesting user's group access. - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :cursor Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. # @option opts [Integer] :limit 1..200, default 50 # @option opts [String] :q Optional case-insensitive title prefix filter. # @option opts [PagesSortBy] :sort_by Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). # @option opts [Boolean] :has_comments If true, only return pages with at least one comment. # @return [Array<(GetPublicPagesResponse, Integer, Hash)>] GetPublicPagesResponse data, response status code and response headers - def get_pages_public_with_http_info(opts = {}) + def get_pages_public_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_pages_public ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_pages_public" @@ -2140,30 +2052,27 @@ def get_pages_public_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :namespace (required) - # @option opts [String] :component (required) + # @param namespace [String] + # @param component [String] + # @param [Hash] opts the optional parameters # @option opts [String] :locale # @option opts [Boolean] :use_full_translation_ids # @return [GetTranslationsResponse] - def get_translations(opts = {}) - data, _status_code, _headers = get_translations_with_http_info(opts) + def get_translations(namespace, component, opts = {}) + data, _status_code, _headers = get_translations_with_http_info(namespace, component, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :namespace (required) - # @option opts [String] :component (required) + # @param namespace [String] + # @param component [String] + # @param [Hash] opts the optional parameters # @option opts [String] :locale # @option opts [Boolean] :use_full_translation_ids # @return [Array<(GetTranslationsResponse, Integer, Hash)>] GetTranslationsResponse data, response status code and response headers - def get_translations_with_http_info(opts = {}) + def get_translations_with_http_info(namespace, component, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_translations ...' end - # unbox the parameters from the hash - namespace = opts[:'namespace'] - component = opts[:'component'] # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling PublicApi.get_translations" @@ -2214,25 +2123,23 @@ def get_translations_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [GetUserNotificationCountResponse] - def get_user_notification_count(opts = {}) - data, _status_code, _headers = get_user_notification_count_with_http_info(opts) + def get_user_notification_count(tenant_id, opts = {}) + data, _status_code, _headers = get_user_notification_count_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [Array<(GetUserNotificationCountResponse, Integer, Hash)>] GetUserNotificationCountResponse data, response status code and response headers - def get_user_notification_count_with_http_info(opts = {}) + def get_user_notification_count_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_user_notification_count ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_user_notification_count" @@ -2279,8 +2186,8 @@ def get_user_notification_count_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :url_id Used to determine whether the current page is subscribed. # @option opts [Integer] :page_size # @option opts [String] :after_id @@ -2293,13 +2200,13 @@ def get_user_notification_count_with_http_info(opts = {}) # @option opts [Boolean] :include_tenant_notifications # @option opts [String] :sso # @return [GetMyNotificationsResponse] - def get_user_notifications(opts = {}) - data, _status_code, _headers = get_user_notifications_with_http_info(opts) + def get_user_notifications(tenant_id, opts = {}) + data, _status_code, _headers = get_user_notifications_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :url_id Used to determine whether the current page is subscribed. # @option opts [Integer] :page_size # @option opts [String] :after_id @@ -2312,12 +2219,10 @@ def get_user_notifications(opts = {}) # @option opts [Boolean] :include_tenant_notifications # @option opts [String] :sso # @return [Array<(GetMyNotificationsResponse, Integer, Hash)>] GetMyNotificationsResponse data, response status code and response headers - def get_user_notifications_with_http_info(opts = {}) + def get_user_notifications_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_user_notifications ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_user_notifications" @@ -2374,29 +2279,25 @@ def get_user_notifications_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id_ws (required) - # @option opts [String] :user_ids (required) + # @param tenant_id [String] + # @param url_id_ws [String] + # @param user_ids [String] + # @param [Hash] opts the optional parameters # @return [GetUserPresenceStatusesResponse] - def get_user_presence_statuses(opts = {}) - data, _status_code, _headers = get_user_presence_statuses_with_http_info(opts) + def get_user_presence_statuses(tenant_id, url_id_ws, user_ids, opts = {}) + data, _status_code, _headers = get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id_ws (required) - # @option opts [String] :user_ids (required) + # @param tenant_id [String] + # @param url_id_ws [String] + # @param user_ids [String] + # @param [Hash] opts the optional parameters # @return [Array<(GetUserPresenceStatusesResponse, Integer, Hash)>] GetUserPresenceStatusesResponse data, response status code and response headers - def get_user_presence_statuses_with_http_info(opts = {}) + def get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_user_presence_statuses ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - url_id_ws = opts[:'url_id_ws'] - user_ids = opts[:'user_ids'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_user_presence_statuses" @@ -2452,27 +2353,25 @@ def get_user_presence_statuses_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [Array] :post_ids # @option opts [String] :sso # @return [UserReactsResponse] - def get_user_reacts_public(opts = {}) - data, _status_code, _headers = get_user_reacts_public_with_http_info(opts) + def get_user_reacts_public(tenant_id, opts = {}) + data, _status_code, _headers = get_user_reacts_public_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [Array] :post_ids # @option opts [String] :sso # @return [Array<(UserReactsResponse, Integer, Hash)>] UserReactsResponse data, response status code and response headers - def get_user_reacts_public_with_http_info(opts = {}) + def get_user_reacts_public_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_user_reacts_public ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_user_reacts_public" @@ -2520,27 +2419,24 @@ def get_user_reacts_public_with_http_info(opts = {}) end # Bulk user info for a tenant. Given userIds, return display info from User / SSOUser. Used by the comment widget to enrich users that just appeared via a presence event. No page context: privacy is enforced uniformly (private profiles are masked). - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :ids Comma-delimited userIds. (required) + # @param tenant_id [String] + # @param ids [String] Comma-delimited userIds. + # @param [Hash] opts the optional parameters # @return [PageUsersInfoResponse] - def get_users_info(opts = {}) - data, _status_code, _headers = get_users_info_with_http_info(opts) + def get_users_info(tenant_id, ids, opts = {}) + data, _status_code, _headers = get_users_info_with_http_info(tenant_id, ids, opts) data end # Bulk user info for a tenant. Given userIds, return display info from User / SSOUser. Used by the comment widget to enrich users that just appeared via a presence event. No page context: privacy is enforced uniformly (private profiles are masked). - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :ids Comma-delimited userIds. (required) + # @param tenant_id [String] + # @param ids [String] Comma-delimited userIds. + # @param [Hash] opts the optional parameters # @return [Array<(PageUsersInfoResponse, Integer, Hash)>] PageUsersInfoResponse data, response status code and response headers - def get_users_info_with_http_info(opts = {}) + def get_users_info_with_http_info(tenant_id, ids, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_users_info ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - ids = opts[:'ids'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_users_info" @@ -2590,26 +2486,23 @@ def get_users_info_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) + # @param tenant_id [String] + # @param url_id [String] + # @param [Hash] opts the optional parameters # @return [GetV1PageLikes] - def get_v1_page_likes(opts = {}) - data, _status_code, _headers = get_v1_page_likes_with_http_info(opts) + def get_v1_page_likes(tenant_id, url_id, opts = {}) + data, _status_code, _headers = get_v1_page_likes_with_http_info(tenant_id, url_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) + # @param tenant_id [String] + # @param url_id [String] + # @param [Hash] opts the optional parameters # @return [Array<(GetV1PageLikes, Integer, Hash)>] GetV1PageLikes data, response status code and response headers - def get_v1_page_likes_with_http_info(opts = {}) + def get_v1_page_likes_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_v1_page_likes ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - url_id = opts[:'url_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_v1_page_likes" @@ -2659,29 +2552,25 @@ def get_v1_page_likes_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param url_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [GetV2PageReactUsersResponse] - def get_v2_page_react_users(opts = {}) - data, _status_code, _headers = get_v2_page_react_users_with_http_info(opts) + def get_v2_page_react_users(tenant_id, url_id, id, opts = {}) + data, _status_code, _headers = get_v2_page_react_users_with_http_info(tenant_id, url_id, id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) - # @option opts [String] :id (required) + # @param tenant_id [String] + # @param url_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters # @return [Array<(GetV2PageReactUsersResponse, Integer, Hash)>] GetV2PageReactUsersResponse data, response status code and response headers - def get_v2_page_react_users_with_http_info(opts = {}) + def get_v2_page_react_users_with_http_info(tenant_id, url_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_v2_page_react_users ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - url_id = opts[:'url_id'] - id = opts[:'id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_v2_page_react_users" @@ -2736,26 +2625,23 @@ def get_v2_page_react_users_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) + # @param tenant_id [String] + # @param url_id [String] + # @param [Hash] opts the optional parameters # @return [GetV2PageReacts] - def get_v2_page_reacts(opts = {}) - data, _status_code, _headers = get_v2_page_reacts_with_http_info(opts) + def get_v2_page_reacts(tenant_id, url_id, opts = {}) + data, _status_code, _headers = get_v2_page_reacts_with_http_info(tenant_id, url_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) + # @param tenant_id [String] + # @param url_id [String] + # @param [Hash] opts the optional parameters # @return [Array<(GetV2PageReacts, Integer, Hash)>] GetV2PageReacts data, response status code and response headers - def get_v2_page_reacts_with_http_info(opts = {}) + def get_v2_page_reacts_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.get_v2_page_reacts ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - url_id = opts[:'url_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_v2_page_reacts" @@ -2805,31 +2691,27 @@ def get_v2_page_reacts_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) - # @option opts [String] :broadcast_id (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param broadcast_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [APIEmptyResponse] - def lock_comment(opts = {}) - data, _status_code, _headers = lock_comment_with_http_info(opts) + def lock_comment(tenant_id, comment_id, broadcast_id, opts = {}) + data, _status_code, _headers = lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) - # @option opts [String] :broadcast_id (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param broadcast_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def lock_comment_with_http_info(opts = {}) + def lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.lock_comment ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - comment_id = opts[:'comment_id'] - broadcast_id = opts[:'broadcast_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.lock_comment" @@ -2884,20 +2766,19 @@ def lock_comment_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @return [APIEmptyResponse] def logout_public(opts = {}) data, _status_code, _headers = logout_public_with_http_info(opts) data end - # @param [Hash] opts the parameters + # @param [Hash] opts the optional parameters # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers def logout_public_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.logout_public ...' end - # unbox the parameters from the hash # resource path local_var_path = '/auth/logout' @@ -2938,31 +2819,27 @@ def logout_public_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) - # @option opts [String] :broadcast_id (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param broadcast_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [ChangeCommentPinStatusResponse] - def pin_comment(opts = {}) - data, _status_code, _headers = pin_comment_with_http_info(opts) + def pin_comment(tenant_id, comment_id, broadcast_id, opts = {}) + data, _status_code, _headers = pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) - # @option opts [String] :broadcast_id (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param broadcast_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [Array<(ChangeCommentPinStatusResponse, Integer, Hash)>] ChangeCommentPinStatusResponse data, response status code and response headers - def pin_comment_with_http_info(opts = {}) + def pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.pin_comment ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - comment_id = opts[:'comment_id'] - broadcast_id = opts[:'broadcast_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.pin_comment" @@ -3017,35 +2894,31 @@ def pin_comment_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :post_id (required) - # @option opts [ReactBodyParams] :react_body_params (required) + # @param tenant_id [String] + # @param post_id [String] + # @param react_body_params [ReactBodyParams] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :is_undo # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [ReactFeedPostResponse] - def react_feed_post_public(opts = {}) - data, _status_code, _headers = react_feed_post_public_with_http_info(opts) + def react_feed_post_public(tenant_id, post_id, react_body_params, opts = {}) + data, _status_code, _headers = react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :post_id (required) - # @option opts [ReactBodyParams] :react_body_params (required) + # @param tenant_id [String] + # @param post_id [String] + # @param react_body_params [ReactBodyParams] + # @param [Hash] opts the optional parameters # @option opts [Boolean] :is_undo # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(ReactFeedPostResponse, Integer, Hash)>] ReactFeedPostResponse data, response status code and response headers - def react_feed_post_public_with_http_info(opts = {}) + def react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.react_feed_post_public ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - post_id = opts[:'post_id'] - react_body_params = opts[:'react_body_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.react_feed_post_public" @@ -3106,25 +2979,23 @@ def react_feed_post_public_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [ResetUserNotificationsResponse] - def reset_user_notification_count(opts = {}) - data, _status_code, _headers = reset_user_notification_count_with_http_info(opts) + def reset_user_notification_count(tenant_id, opts = {}) + data, _status_code, _headers = reset_user_notification_count_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [Array<(ResetUserNotificationsResponse, Integer, Hash)>] ResetUserNotificationsResponse data, response status code and response headers - def reset_user_notification_count_with_http_info(opts = {}) + def reset_user_notification_count_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.reset_user_notification_count ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.reset_user_notification_count" @@ -3171,8 +3042,8 @@ def reset_user_notification_count_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :after_id # @option opts [Integer] :after_created_at # @option opts [Boolean] :unread_only @@ -3180,13 +3051,13 @@ def reset_user_notification_count_with_http_info(opts = {}) # @option opts [Boolean] :no_dm # @option opts [String] :sso # @return [ResetUserNotificationsResponse] - def reset_user_notifications(opts = {}) - data, _status_code, _headers = reset_user_notifications_with_http_info(opts) + def reset_user_notifications(tenant_id, opts = {}) + data, _status_code, _headers = reset_user_notifications_with_http_info(tenant_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) + # @param tenant_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :after_id # @option opts [Integer] :after_created_at # @option opts [Boolean] :unread_only @@ -3194,12 +3065,10 @@ def reset_user_notifications(opts = {}) # @option opts [Boolean] :no_dm # @option opts [String] :sso # @return [Array<(ResetUserNotificationsResponse, Integer, Hash)>] ResetUserNotificationsResponse data, response status code and response headers - def reset_user_notifications_with_http_info(opts = {}) + def reset_user_notifications_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.reset_user_notifications ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.reset_user_notifications" @@ -3251,34 +3120,31 @@ def reset_user_notifications_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) + # @param tenant_id [String] + # @param url_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :username_starts_with # @option opts [Array] :mention_group_ids # @option opts [String] :sso # @option opts [String] :search_section # @return [SearchUsersResult] - def search_users(opts = {}) - data, _status_code, _headers = search_users_with_http_info(opts) + def search_users(tenant_id, url_id, opts = {}) + data, _status_code, _headers = search_users_with_http_info(tenant_id, url_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) + # @param tenant_id [String] + # @param url_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :username_starts_with # @option opts [Array] :mention_group_ids # @option opts [String] :sso # @option opts [String] :search_section # @return [Array<(SearchUsersResult, Integer, Hash)>] SearchUsersResult data, response status code and response headers - def search_users_with_http_info(opts = {}) + def search_users_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.search_users ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - url_id = opts[:'url_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.search_users" @@ -3336,36 +3202,31 @@ def search_users_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) - # @option opts [String] :broadcast_id (required) - # @option opts [CommentTextUpdateRequest] :comment_text_update_request (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param broadcast_id [String] + # @param comment_text_update_request [CommentTextUpdateRequest] + # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso # @return [PublicAPISetCommentTextResponse] - def set_comment_text(opts = {}) - data, _status_code, _headers = set_comment_text_with_http_info(opts) + def set_comment_text(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts = {}) + data, _status_code, _headers = set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) - # @option opts [String] :broadcast_id (required) - # @option opts [CommentTextUpdateRequest] :comment_text_update_request (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param broadcast_id [String] + # @param comment_text_update_request [CommentTextUpdateRequest] + # @param [Hash] opts the optional parameters # @option opts [String] :edit_key # @option opts [String] :sso # @return [Array<(PublicAPISetCommentTextResponse, Integer, Hash)>] PublicAPISetCommentTextResponse data, response status code and response headers - def set_comment_text_with_http_info(opts = {}) + def set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment_text_update_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.set_comment_text ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - comment_id = opts[:'comment_id'] - broadcast_id = opts[:'broadcast_id'] - comment_text_update_request = opts[:'comment_text_update_request'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.set_comment_text" @@ -3430,31 +3291,27 @@ def set_comment_text_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) - # @option opts [PublicBlockFromCommentParams] :public_block_from_comment_params (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param public_block_from_comment_params [PublicBlockFromCommentParams] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [UnblockSuccess] - def un_block_comment_public(opts = {}) - data, _status_code, _headers = un_block_comment_public_with_http_info(opts) + def un_block_comment_public(tenant_id, comment_id, public_block_from_comment_params, opts = {}) + data, _status_code, _headers = un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) - # @option opts [PublicBlockFromCommentParams] :public_block_from_comment_params (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param public_block_from_comment_params [PublicBlockFromCommentParams] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [Array<(UnblockSuccess, Integer, Hash)>] UnblockSuccess data, response status code and response headers - def un_block_comment_public_with_http_info(opts = {}) + def un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_from_comment_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.un_block_comment_public ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - comment_id = opts[:'comment_id'] - public_block_from_comment_params = opts[:'public_block_from_comment_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.un_block_comment_public" @@ -3514,31 +3371,27 @@ def un_block_comment_public_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) - # @option opts [String] :broadcast_id (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param broadcast_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [APIEmptyResponse] - def un_lock_comment(opts = {}) - data, _status_code, _headers = un_lock_comment_with_http_info(opts) + def un_lock_comment(tenant_id, comment_id, broadcast_id, opts = {}) + data, _status_code, _headers = un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) - # @option opts [String] :broadcast_id (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param broadcast_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def un_lock_comment_with_http_info(opts = {}) + def un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.un_lock_comment ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - comment_id = opts[:'comment_id'] - broadcast_id = opts[:'broadcast_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.un_lock_comment" @@ -3593,31 +3446,27 @@ def un_lock_comment_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) - # @option opts [String] :broadcast_id (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param broadcast_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [ChangeCommentPinStatusResponse] - def un_pin_comment(opts = {}) - data, _status_code, _headers = un_pin_comment_with_http_info(opts) + def un_pin_comment(tenant_id, comment_id, broadcast_id, opts = {}) + data, _status_code, _headers = un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) - # @option opts [String] :broadcast_id (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param broadcast_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [Array<(ChangeCommentPinStatusResponse, Integer, Hash)>] ChangeCommentPinStatusResponse data, response status code and response headers - def un_pin_comment_with_http_info(opts = {}) + def un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.un_pin_comment ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - comment_id = opts[:'comment_id'] - broadcast_id = opts[:'broadcast_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.un_pin_comment" @@ -3672,33 +3521,29 @@ def un_pin_comment_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :post_id (required) - # @option opts [UpdateFeedPostParams] :update_feed_post_params (required) + # @param tenant_id [String] + # @param post_id [String] + # @param update_feed_post_params [UpdateFeedPostParams] + # @param [Hash] opts the optional parameters # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [CreateFeedPostResponse] - def update_feed_post_public(opts = {}) - data, _status_code, _headers = update_feed_post_public_with_http_info(opts) + def update_feed_post_public(tenant_id, post_id, update_feed_post_params, opts = {}) + data, _status_code, _headers = update_feed_post_public_with_http_info(tenant_id, post_id, update_feed_post_params, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :post_id (required) - # @option opts [UpdateFeedPostParams] :update_feed_post_params (required) + # @param tenant_id [String] + # @param post_id [String] + # @param update_feed_post_params [UpdateFeedPostParams] + # @param [Hash] opts the optional parameters # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(CreateFeedPostResponse, Integer, Hash)>] CreateFeedPostResponse data, response status code and response headers - def update_feed_post_public_with_http_info(opts = {}) + def update_feed_post_public_with_http_info(tenant_id, post_id, update_feed_post_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.update_feed_post_public ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - post_id = opts[:'post_id'] - update_feed_post_params = opts[:'update_feed_post_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.update_feed_post_public" @@ -3759,35 +3604,30 @@ def update_feed_post_public_with_http_info(opts = {}) end # Enable or disable notifications for a specific comment. - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :notification_id (required) - # @option opts [String] :opted_in_or_out (required) - # @option opts [String] :comment_id (required) + # @param tenant_id [String] + # @param notification_id [String] + # @param opted_in_or_out [String] + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [UpdateUserNotificationCommentSubscriptionStatusResponse] - def update_user_notification_comment_subscription_status(opts = {}) - data, _status_code, _headers = update_user_notification_comment_subscription_status_with_http_info(opts) + def update_user_notification_comment_subscription_status(tenant_id, notification_id, opted_in_or_out, comment_id, opts = {}) + data, _status_code, _headers = update_user_notification_comment_subscription_status_with_http_info(tenant_id, notification_id, opted_in_or_out, comment_id, opts) data end # Enable or disable notifications for a specific comment. - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :notification_id (required) - # @option opts [String] :opted_in_or_out (required) - # @option opts [String] :comment_id (required) + # @param tenant_id [String] + # @param notification_id [String] + # @param opted_in_or_out [String] + # @param comment_id [String] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [Array<(UpdateUserNotificationCommentSubscriptionStatusResponse, Integer, Hash)>] UpdateUserNotificationCommentSubscriptionStatusResponse data, response status code and response headers - def update_user_notification_comment_subscription_status_with_http_info(opts = {}) + def update_user_notification_comment_subscription_status_with_http_info(tenant_id, notification_id, opted_in_or_out, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.update_user_notification_comment_subscription_status ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - notification_id = opts[:'notification_id'] - opted_in_or_out = opts[:'opted_in_or_out'] - comment_id = opts[:'comment_id'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.update_user_notification_comment_subscription_status" @@ -3853,38 +3693,32 @@ def update_user_notification_comment_subscription_status_with_http_info(opts = { end # Enable or disable notifications for a page. When users are subscribed to a page, notifications are created for new root comments, and also - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) - # @option opts [String] :url (required) - # @option opts [String] :page_title (required) - # @option opts [String] :subscribed_or_unsubscribed (required) + # @param tenant_id [String] + # @param url_id [String] + # @param url [String] + # @param page_title [String] + # @param subscribed_or_unsubscribed [String] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [UpdateUserNotificationPageSubscriptionStatusResponse] - def update_user_notification_page_subscription_status(opts = {}) - data, _status_code, _headers = update_user_notification_page_subscription_status_with_http_info(opts) + def update_user_notification_page_subscription_status(tenant_id, url_id, url, page_title, subscribed_or_unsubscribed, opts = {}) + data, _status_code, _headers = update_user_notification_page_subscription_status_with_http_info(tenant_id, url_id, url, page_title, subscribed_or_unsubscribed, opts) data end # Enable or disable notifications for a page. When users are subscribed to a page, notifications are created for new root comments, and also - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :url_id (required) - # @option opts [String] :url (required) - # @option opts [String] :page_title (required) - # @option opts [String] :subscribed_or_unsubscribed (required) + # @param tenant_id [String] + # @param url_id [String] + # @param url [String] + # @param page_title [String] + # @param subscribed_or_unsubscribed [String] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [Array<(UpdateUserNotificationPageSubscriptionStatusResponse, Integer, Hash)>] UpdateUserNotificationPageSubscriptionStatusResponse data, response status code and response headers - def update_user_notification_page_subscription_status_with_http_info(opts = {}) + def update_user_notification_page_subscription_status_with_http_info(tenant_id, url_id, url, page_title, subscribed_or_unsubscribed, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.update_user_notification_page_subscription_status ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - url_id = opts[:'url_id'] - url = opts[:'url'] - page_title = opts[:'page_title'] - subscribed_or_unsubscribed = opts[:'subscribed_or_unsubscribed'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.update_user_notification_page_subscription_status" @@ -3955,31 +3789,27 @@ def update_user_notification_page_subscription_status_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :notification_id (required) - # @option opts [String] :new_status (required) + # @param tenant_id [String] + # @param notification_id [String] + # @param new_status [String] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [UpdateUserNotificationStatusResponse] - def update_user_notification_status(opts = {}) - data, _status_code, _headers = update_user_notification_status_with_http_info(opts) + def update_user_notification_status(tenant_id, notification_id, new_status, opts = {}) + data, _status_code, _headers = update_user_notification_status_with_http_info(tenant_id, notification_id, new_status, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :notification_id (required) - # @option opts [String] :new_status (required) + # @param tenant_id [String] + # @param notification_id [String] + # @param new_status [String] + # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [Array<(UpdateUserNotificationStatusResponse, Integer, Hash)>] UpdateUserNotificationStatusResponse data, response status code and response headers - def update_user_notification_status_with_http_info(opts = {}) + def update_user_notification_status_with_http_info(tenant_id, notification_id, new_status, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.update_user_notification_status ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - notification_id = opts[:'notification_id'] - new_status = opts[:'new_status'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.update_user_notification_status" @@ -4040,31 +3870,28 @@ def update_user_notification_status_with_http_info(opts = {}) end # Upload and resize an image - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [File] :file (required) + # @param tenant_id [String] + # @param file [File] + # @param [Hash] opts the optional parameters # @option opts [SizePreset] :size_preset Size preset: \"Default\" (1000x1000px) or \"CrossPlatform\" (creates sizes for popular devices) # @option opts [String] :url_id Page id that upload is happening from, to configure # @return [UploadImageResponse] - def upload_image(opts = {}) - data, _status_code, _headers = upload_image_with_http_info(opts) + def upload_image(tenant_id, file, opts = {}) + data, _status_code, _headers = upload_image_with_http_info(tenant_id, file, opts) data end # Upload and resize an image - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [File] :file (required) + # @param tenant_id [String] + # @param file [File] + # @param [Hash] opts the optional parameters # @option opts [SizePreset] :size_preset Size preset: \"Default\" (1000x1000px) or \"CrossPlatform\" (creates sizes for popular devices) # @option opts [String] :url_id Page id that upload is happening from, to configure # @return [Array<(UploadImageResponse, Integer, Hash)>] UploadImageResponse data, response status code and response headers - def upload_image_with_http_info(opts = {}) + def upload_image_with_http_info(tenant_id, file, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.upload_image ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - file = opts[:'file'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.upload_image" @@ -4121,39 +3948,33 @@ def upload_image_with_http_info(opts = {}) return data, status_code, headers end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) - # @option opts [String] :url_id (required) - # @option opts [String] :broadcast_id (required) - # @option opts [VoteBodyParams] :vote_body_params (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param url_id [String] + # @param broadcast_id [String] + # @param vote_body_params [VoteBodyParams] + # @param [Hash] opts the optional parameters # @option opts [String] :session_id # @option opts [String] :sso # @return [VoteResponse] - def vote_comment(opts = {}) - data, _status_code, _headers = vote_comment_with_http_info(opts) + def vote_comment(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts = {}) + data, _status_code, _headers = vote_comment_with_http_info(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts) data end - # @param [Hash] opts the parameters - # @option opts [String] :tenant_id (required) - # @option opts [String] :comment_id (required) - # @option opts [String] :url_id (required) - # @option opts [String] :broadcast_id (required) - # @option opts [VoteBodyParams] :vote_body_params (required) + # @param tenant_id [String] + # @param comment_id [String] + # @param url_id [String] + # @param broadcast_id [String] + # @param vote_body_params [VoteBodyParams] + # @param [Hash] opts the optional parameters # @option opts [String] :session_id # @option opts [String] :sso # @return [Array<(VoteResponse, Integer, Hash)>] VoteResponse data, response status code and response headers - def vote_comment_with_http_info(opts = {}) + def vote_comment_with_http_info(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PublicApi.vote_comment ...' end - # unbox the parameters from the hash - tenant_id = opts[:'tenant_id'] - comment_id = opts[:'comment_id'] - url_id = opts[:'url_id'] - broadcast_id = opts[:'broadcast_id'] - vote_body_params = opts[:'vote_body_params'] # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.vote_comment" diff --git a/spec/sso_integration_spec.rb b/spec/sso_integration_spec.rb index 34f276c..f0ddee5 100644 --- a/spec/sso_integration_spec.rb +++ b/spec/sso_integration_spec.rb @@ -61,8 +61,8 @@ def get_tenant_id sso_token = sso.create_token response = public_api.get_comments_public( - tenant_id: TENANT_ID, - url_id: 'sdk-test-page-secure', + TENANT_ID, + 'sdk-test-page-secure', sso: sso_token ) @@ -83,10 +83,10 @@ def get_tenant_id } response = public_api.create_comment_public( - tenant_id: TENANT_ID, - url_id: 'sdk-test-page-secure-comment', - broadcast_id: "test-#{timestamp}", - comment_data: comment_data, + TENANT_ID, + 'sdk-test-page-secure-comment', + "test-#{timestamp}", + comment_data, sso: sso_token ) @@ -111,13 +111,13 @@ def get_tenant_id }) default_api.add_sso_user( - tenant_id: TENANT_ID, - create_apisso_user_data: user_data + TENANT_ID, + user_data ) # Then get comments with that user's context response = default_api.get_comments( - tenant_id: TENANT_ID, + TENANT_ID, url_id: 'sdk-test-page-secure-admin', context_user_id: mock_secure_user.user_id ) @@ -132,8 +132,8 @@ def get_tenant_id sso_token = sso.create_token response = public_api.get_comments_public( - tenant_id: TENANT_ID, - url_id: 'sdk-test-page-simple', + TENANT_ID, + 'sdk-test-page-simple', sso: sso_token ) @@ -154,10 +154,10 @@ def get_tenant_id } response = public_api.create_comment_public( - tenant_id: TENANT_ID, - url_id: 'sdk-test-page-simple-comment', - broadcast_id: "test-#{timestamp}", - comment_data: comment_data, + TENANT_ID, + 'sdk-test-page-simple-comment', + "test-#{timestamp}", + comment_data, sso: sso_token ) @@ -172,8 +172,8 @@ def get_tenant_id expect { public_api.get_comments_public( - tenant_id: 'invalid-tenant-123', - url_id: 'sdk-test-page-secure', + 'invalid-tenant-123', + 'sdk-test-page-secure', sso: sso_token ) }.to raise_error(FastCommentsClient::ApiError) do |error| From abd0c1b216212e91655fcc841e49d2b7e89fba3a Mon Sep 17 00:00:00 2001 From: winrid Date: Tue, 23 Jun 2026 13:12:02 -0700 Subject: [PATCH 6/9] Regenerate docs: 0-optional ops no longer show an undefined opts Doc-only change. Operations with no optional parameters (e.g. add_domain_config) no longer list 'opts' in their signature/example; ops with optionals still take opts = {}. Generated code is unchanged. --- client/docs/DefaultApi.md | 464 +++++++++++++++++++------------------- client/docs/PublicApi.md | 64 +++--- 2 files changed, 264 insertions(+), 264 deletions(-) diff --git a/client/docs/DefaultApi.md b/client/docs/DefaultApi.md index bf80ed2..1de28b3 100644 --- a/client/docs/DefaultApi.md +++ b/client/docs/DefaultApi.md @@ -122,7 +122,7 @@ All URIs are relative to *https://fastcomments.com* ## add_domain_config -> add_domain_config(tenant_id, add_domain_config_params, opts) +> add_domain_config(tenant_id, add_domain_config_params) @@ -145,7 +145,7 @@ add_domain_config_params = FastCommentsClient::AddDomainConfigParams.new({domain begin - result = api_instance.add_domain_config(tenant_id, add_domain_config_params, opts) + result = api_instance.add_domain_config(tenant_id, add_domain_config_params) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->add_domain_config: #{e}" @@ -156,12 +156,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> add_domain_config_with_http_info(tenant_id, add_domain_config_params, opts) +> , Integer, Hash)> add_domain_config_with_http_info(tenant_id, add_domain_config_params) ```ruby begin - data, status_code, headers = api_instance.add_domain_config_with_http_info(tenant_id, add_domain_config_params, opts) + data, status_code, headers = api_instance.add_domain_config_with_http_info(tenant_id, add_domain_config_params) p status_code # => 2xx p headers # => { ... } p data # => @@ -339,7 +339,7 @@ end ## add_page -> add_page(tenant_id, create_api_page_data, opts) +> add_page(tenant_id, create_api_page_data) @@ -362,7 +362,7 @@ create_api_page_data = FastCommentsClient::CreateAPIPageData.new({title: 'title_ begin - result = api_instance.add_page(tenant_id, create_api_page_data, opts) + result = api_instance.add_page(tenant_id, create_api_page_data) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->add_page: #{e}" @@ -373,12 +373,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> add_page_with_http_info(tenant_id, create_api_page_data, opts) +> , Integer, Hash)> add_page_with_http_info(tenant_id, create_api_page_data) ```ruby begin - data, status_code, headers = api_instance.add_page_with_http_info(tenant_id, create_api_page_data, opts) + data, status_code, headers = api_instance.add_page_with_http_info(tenant_id, create_api_page_data) p status_code # => 2xx p headers # => { ... } p data # => @@ -410,7 +410,7 @@ end ## add_sso_user -> add_sso_user(tenant_id, create_apisso_user_data, opts) +> add_sso_user(tenant_id, create_apisso_user_data) @@ -433,7 +433,7 @@ create_apisso_user_data = FastCommentsClient::CreateAPISSOUserData.new({email: ' begin - result = api_instance.add_sso_user(tenant_id, create_apisso_user_data, opts) + result = api_instance.add_sso_user(tenant_id, create_apisso_user_data) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->add_sso_user: #{e}" @@ -444,12 +444,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> add_sso_user_with_http_info(tenant_id, create_apisso_user_data, opts) +> , Integer, Hash)> add_sso_user_with_http_info(tenant_id, create_apisso_user_data) ```ruby begin - data, status_code, headers = api_instance.add_sso_user_with_http_info(tenant_id, create_apisso_user_data, opts) + data, status_code, headers = api_instance.add_sso_user_with_http_info(tenant_id, create_apisso_user_data) p status_code # => 2xx p headers # => { ... } p data # => @@ -797,7 +797,7 @@ end ## change_ticket_state -> change_ticket_state(tenant_id, user_id, id, change_ticket_state_body, opts) +> change_ticket_state(tenant_id, user_id, id, change_ticket_state_body) @@ -822,7 +822,7 @@ change_ticket_state_body = FastCommentsClient::ChangeTicketStateBody.new({state: begin - result = api_instance.change_ticket_state(tenant_id, user_id, id, change_ticket_state_body, opts) + result = api_instance.change_ticket_state(tenant_id, user_id, id, change_ticket_state_body) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->change_ticket_state: #{e}" @@ -833,12 +833,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_state_body, opts) +> , Integer, Hash)> change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_state_body) ```ruby begin - data, status_code, headers = api_instance.change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_state_body, opts) + data, status_code, headers = api_instance.change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_state_body) p status_code # => 2xx p headers # => { ... } p data # => @@ -959,7 +959,7 @@ end ## create_email_template -> create_email_template(tenant_id, create_email_template_body, opts) +> create_email_template(tenant_id, create_email_template_body) @@ -982,7 +982,7 @@ create_email_template_body = FastCommentsClient::CreateEmailTemplateBody.new({em begin - result = api_instance.create_email_template(tenant_id, create_email_template_body, opts) + result = api_instance.create_email_template(tenant_id, create_email_template_body) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_email_template: #{e}" @@ -993,12 +993,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_email_template_with_http_info(tenant_id, create_email_template_body, opts) +> , Integer, Hash)> create_email_template_with_http_info(tenant_id, create_email_template_body) ```ruby begin - data, status_code, headers = api_instance.create_email_template_with_http_info(tenant_id, create_email_template_body, opts) + data, status_code, headers = api_instance.create_email_template_with_http_info(tenant_id, create_email_template_body) p status_code # => 2xx p headers # => { ... } p data # => @@ -1111,7 +1111,7 @@ end ## create_moderator -> create_moderator(tenant_id, create_moderator_body, opts) +> create_moderator(tenant_id, create_moderator_body) @@ -1134,7 +1134,7 @@ create_moderator_body = FastCommentsClient::CreateModeratorBody.new({name: 'name begin - result = api_instance.create_moderator(tenant_id, create_moderator_body, opts) + result = api_instance.create_moderator(tenant_id, create_moderator_body) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_moderator: #{e}" @@ -1145,12 +1145,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_moderator_with_http_info(tenant_id, create_moderator_body, opts) +> , Integer, Hash)> create_moderator_with_http_info(tenant_id, create_moderator_body) ```ruby begin - data, status_code, headers = api_instance.create_moderator_with_http_info(tenant_id, create_moderator_body, opts) + data, status_code, headers = api_instance.create_moderator_with_http_info(tenant_id, create_moderator_body) p status_code # => 2xx p headers # => { ... } p data # => @@ -1182,7 +1182,7 @@ end ## create_question_config -> create_question_config(tenant_id, create_question_config_body, opts) +> create_question_config(tenant_id, create_question_config_body) @@ -1205,7 +1205,7 @@ create_question_config_body = FastCommentsClient::CreateQuestionConfigBody.new({ begin - result = api_instance.create_question_config(tenant_id, create_question_config_body, opts) + result = api_instance.create_question_config(tenant_id, create_question_config_body) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_question_config: #{e}" @@ -1216,12 +1216,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_question_config_with_http_info(tenant_id, create_question_config_body, opts) +> , Integer, Hash)> create_question_config_with_http_info(tenant_id, create_question_config_body) ```ruby begin - data, status_code, headers = api_instance.create_question_config_with_http_info(tenant_id, create_question_config_body, opts) + data, status_code, headers = api_instance.create_question_config_with_http_info(tenant_id, create_question_config_body) p status_code # => 2xx p headers # => { ... } p data # => @@ -1253,7 +1253,7 @@ end ## create_question_result -> create_question_result(tenant_id, create_question_result_body, opts) +> create_question_result(tenant_id, create_question_result_body) @@ -1276,7 +1276,7 @@ create_question_result_body = FastCommentsClient::CreateQuestionResultBody.new({ begin - result = api_instance.create_question_result(tenant_id, create_question_result_body, opts) + result = api_instance.create_question_result(tenant_id, create_question_result_body) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_question_result: #{e}" @@ -1287,12 +1287,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_question_result_with_http_info(tenant_id, create_question_result_body, opts) +> , Integer, Hash)> create_question_result_with_http_info(tenant_id, create_question_result_body) ```ruby begin - data, status_code, headers = api_instance.create_question_result_with_http_info(tenant_id, create_question_result_body, opts) + data, status_code, headers = api_instance.create_question_result_with_http_info(tenant_id, create_question_result_body) p status_code # => 2xx p headers # => { ... } p data # => @@ -1324,7 +1324,7 @@ end ## create_subscription -> create_subscription(tenant_id, create_api_user_subscription_data, opts) +> create_subscription(tenant_id, create_api_user_subscription_data) @@ -1347,7 +1347,7 @@ create_api_user_subscription_data = FastCommentsClient::CreateAPIUserSubscriptio begin - result = api_instance.create_subscription(tenant_id, create_api_user_subscription_data, opts) + result = api_instance.create_subscription(tenant_id, create_api_user_subscription_data) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_subscription: #{e}" @@ -1358,12 +1358,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_subscription_with_http_info(tenant_id, create_api_user_subscription_data, opts) +> , Integer, Hash)> create_subscription_with_http_info(tenant_id, create_api_user_subscription_data) ```ruby begin - data, status_code, headers = api_instance.create_subscription_with_http_info(tenant_id, create_api_user_subscription_data, opts) + data, status_code, headers = api_instance.create_subscription_with_http_info(tenant_id, create_api_user_subscription_data) p status_code # => 2xx p headers # => { ... } p data # => @@ -1395,7 +1395,7 @@ end ## create_tenant -> create_tenant(tenant_id, create_tenant_body, opts) +> create_tenant(tenant_id, create_tenant_body) @@ -1418,7 +1418,7 @@ create_tenant_body = FastCommentsClient::CreateTenantBody.new({name: 'name_examp begin - result = api_instance.create_tenant(tenant_id, create_tenant_body, opts) + result = api_instance.create_tenant(tenant_id, create_tenant_body) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_tenant: #{e}" @@ -1429,12 +1429,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_tenant_with_http_info(tenant_id, create_tenant_body, opts) +> , Integer, Hash)> create_tenant_with_http_info(tenant_id, create_tenant_body) ```ruby begin - data, status_code, headers = api_instance.create_tenant_with_http_info(tenant_id, create_tenant_body, opts) + data, status_code, headers = api_instance.create_tenant_with_http_info(tenant_id, create_tenant_body) p status_code # => 2xx p headers # => { ... } p data # => @@ -1466,7 +1466,7 @@ end ## create_tenant_package -> create_tenant_package(tenant_id, create_tenant_package_body, opts) +> create_tenant_package(tenant_id, create_tenant_package_body) @@ -1489,7 +1489,7 @@ create_tenant_package_body = FastCommentsClient::CreateTenantPackageBody.new({na begin - result = api_instance.create_tenant_package(tenant_id, create_tenant_package_body, opts) + result = api_instance.create_tenant_package(tenant_id, create_tenant_package_body) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_tenant_package: #{e}" @@ -1500,12 +1500,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_tenant_package_with_http_info(tenant_id, create_tenant_package_body, opts) +> , Integer, Hash)> create_tenant_package_with_http_info(tenant_id, create_tenant_package_body) ```ruby begin - data, status_code, headers = api_instance.create_tenant_package_with_http_info(tenant_id, create_tenant_package_body, opts) + data, status_code, headers = api_instance.create_tenant_package_with_http_info(tenant_id, create_tenant_package_body) p status_code # => 2xx p headers # => { ... } p data # => @@ -1537,7 +1537,7 @@ end ## create_tenant_user -> create_tenant_user(tenant_id, create_tenant_user_body, opts) +> create_tenant_user(tenant_id, create_tenant_user_body) @@ -1560,7 +1560,7 @@ create_tenant_user_body = FastCommentsClient::CreateTenantUserBody.new({username begin - result = api_instance.create_tenant_user(tenant_id, create_tenant_user_body, opts) + result = api_instance.create_tenant_user(tenant_id, create_tenant_user_body) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_tenant_user: #{e}" @@ -1571,12 +1571,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_tenant_user_with_http_info(tenant_id, create_tenant_user_body, opts) +> , Integer, Hash)> create_tenant_user_with_http_info(tenant_id, create_tenant_user_body) ```ruby begin - data, status_code, headers = api_instance.create_tenant_user_with_http_info(tenant_id, create_tenant_user_body, opts) + data, status_code, headers = api_instance.create_tenant_user_with_http_info(tenant_id, create_tenant_user_body) p status_code # => 2xx p headers # => { ... } p data # => @@ -1608,7 +1608,7 @@ end ## create_ticket -> create_ticket(tenant_id, user_id, create_ticket_body, opts) +> create_ticket(tenant_id, user_id, create_ticket_body) @@ -1632,7 +1632,7 @@ create_ticket_body = FastCommentsClient::CreateTicketBody.new({subject: 'subject begin - result = api_instance.create_ticket(tenant_id, user_id, create_ticket_body, opts) + result = api_instance.create_ticket(tenant_id, user_id, create_ticket_body) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_ticket: #{e}" @@ -1643,12 +1643,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_ticket_with_http_info(tenant_id, user_id, create_ticket_body, opts) +> , Integer, Hash)> create_ticket_with_http_info(tenant_id, user_id, create_ticket_body) ```ruby begin - data, status_code, headers = api_instance.create_ticket_with_http_info(tenant_id, user_id, create_ticket_body, opts) + data, status_code, headers = api_instance.create_ticket_with_http_info(tenant_id, user_id, create_ticket_body) p status_code # => 2xx p headers # => { ... } p data # => @@ -1681,7 +1681,7 @@ end ## create_user_badge -> create_user_badge(tenant_id, create_user_badge_params, opts) +> create_user_badge(tenant_id, create_user_badge_params) @@ -1704,7 +1704,7 @@ create_user_badge_params = FastCommentsClient::CreateUserBadgeParams.new({user_i begin - result = api_instance.create_user_badge(tenant_id, create_user_badge_params, opts) + result = api_instance.create_user_badge(tenant_id, create_user_badge_params) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->create_user_badge: #{e}" @@ -1715,12 +1715,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_user_badge_with_http_info(tenant_id, create_user_badge_params, opts) +> , Integer, Hash)> create_user_badge_with_http_info(tenant_id, create_user_badge_params) ```ruby begin - data, status_code, headers = api_instance.create_user_badge_with_http_info(tenant_id, create_user_badge_params, opts) + data, status_code, headers = api_instance.create_user_badge_with_http_info(tenant_id, create_user_badge_params) p status_code # => 2xx p headers # => { ... } p data # => @@ -1908,7 +1908,7 @@ end ## delete_domain_config -> delete_domain_config(tenant_id, domain, opts) +> delete_domain_config(tenant_id, domain) @@ -1931,7 +1931,7 @@ domain = 'domain_example' # String | begin - result = api_instance.delete_domain_config(tenant_id, domain, opts) + result = api_instance.delete_domain_config(tenant_id, domain) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_domain_config: #{e}" @@ -1942,12 +1942,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_domain_config_with_http_info(tenant_id, domain, opts) +> , Integer, Hash)> delete_domain_config_with_http_info(tenant_id, domain) ```ruby begin - data, status_code, headers = api_instance.delete_domain_config_with_http_info(tenant_id, domain, opts) + data, status_code, headers = api_instance.delete_domain_config_with_http_info(tenant_id, domain) p status_code # => 2xx p headers # => { ... } p data # => @@ -1979,7 +1979,7 @@ end ## delete_email_template -> delete_email_template(tenant_id, id, opts) +> delete_email_template(tenant_id, id) @@ -2002,7 +2002,7 @@ id = 'id_example' # String | begin - result = api_instance.delete_email_template(tenant_id, id, opts) + result = api_instance.delete_email_template(tenant_id, id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_email_template: #{e}" @@ -2013,12 +2013,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_email_template_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> delete_email_template_with_http_info(tenant_id, id) ```ruby begin - data, status_code, headers = api_instance.delete_email_template_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.delete_email_template_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } p data # => @@ -2050,7 +2050,7 @@ end ## delete_email_template_render_error -> delete_email_template_render_error(tenant_id, id, error_id, opts) +> delete_email_template_render_error(tenant_id, id, error_id) @@ -2074,7 +2074,7 @@ error_id = 'error_id_example' # String | begin - result = api_instance.delete_email_template_render_error(tenant_id, id, error_id, opts) + result = api_instance.delete_email_template_render_error(tenant_id, id, error_id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_email_template_render_error: #{e}" @@ -2085,12 +2085,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_email_template_render_error_with_http_info(tenant_id, id, error_id, opts) +> , Integer, Hash)> delete_email_template_render_error_with_http_info(tenant_id, id, error_id) ```ruby begin - data, status_code, headers = api_instance.delete_email_template_render_error_with_http_info(tenant_id, id, error_id, opts) + data, status_code, headers = api_instance.delete_email_template_render_error_with_http_info(tenant_id, id, error_id) p status_code # => 2xx p headers # => { ... } p data # => @@ -2273,7 +2273,7 @@ end ## delete_notification_count -> delete_notification_count(tenant_id, id, opts) +> delete_notification_count(tenant_id, id) @@ -2296,7 +2296,7 @@ id = 'id_example' # String | begin - result = api_instance.delete_notification_count(tenant_id, id, opts) + result = api_instance.delete_notification_count(tenant_id, id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_notification_count: #{e}" @@ -2307,12 +2307,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_notification_count_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> delete_notification_count_with_http_info(tenant_id, id) ```ruby begin - data, status_code, headers = api_instance.delete_notification_count_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.delete_notification_count_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } p data # => @@ -2344,7 +2344,7 @@ end ## delete_page -> delete_page(tenant_id, id, opts) +> delete_page(tenant_id, id) @@ -2367,7 +2367,7 @@ id = 'id_example' # String | begin - result = api_instance.delete_page(tenant_id, id, opts) + result = api_instance.delete_page(tenant_id, id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_page: #{e}" @@ -2378,12 +2378,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_page_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> delete_page_with_http_info(tenant_id, id) ```ruby begin - data, status_code, headers = api_instance.delete_page_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.delete_page_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } p data # => @@ -2415,7 +2415,7 @@ end ## delete_pending_webhook_event -> delete_pending_webhook_event(tenant_id, id, opts) +> delete_pending_webhook_event(tenant_id, id) @@ -2438,7 +2438,7 @@ id = 'id_example' # String | begin - result = api_instance.delete_pending_webhook_event(tenant_id, id, opts) + result = api_instance.delete_pending_webhook_event(tenant_id, id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_pending_webhook_event: #{e}" @@ -2449,12 +2449,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_pending_webhook_event_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> delete_pending_webhook_event_with_http_info(tenant_id, id) ```ruby begin - data, status_code, headers = api_instance.delete_pending_webhook_event_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.delete_pending_webhook_event_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } p data # => @@ -2486,7 +2486,7 @@ end ## delete_question_config -> delete_question_config(tenant_id, id, opts) +> delete_question_config(tenant_id, id) @@ -2509,7 +2509,7 @@ id = 'id_example' # String | begin - result = api_instance.delete_question_config(tenant_id, id, opts) + result = api_instance.delete_question_config(tenant_id, id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_question_config: #{e}" @@ -2520,12 +2520,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_question_config_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> delete_question_config_with_http_info(tenant_id, id) ```ruby begin - data, status_code, headers = api_instance.delete_question_config_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.delete_question_config_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } p data # => @@ -2557,7 +2557,7 @@ end ## delete_question_result -> delete_question_result(tenant_id, id, opts) +> delete_question_result(tenant_id, id) @@ -2580,7 +2580,7 @@ id = 'id_example' # String | begin - result = api_instance.delete_question_result(tenant_id, id, opts) + result = api_instance.delete_question_result(tenant_id, id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_question_result: #{e}" @@ -2591,12 +2591,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_question_result_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> delete_question_result_with_http_info(tenant_id, id) ```ruby begin - data, status_code, headers = api_instance.delete_question_result_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.delete_question_result_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } p data # => @@ -2855,7 +2855,7 @@ end ## delete_tenant_package -> delete_tenant_package(tenant_id, id, opts) +> delete_tenant_package(tenant_id, id) @@ -2878,7 +2878,7 @@ id = 'id_example' # String | begin - result = api_instance.delete_tenant_package(tenant_id, id, opts) + result = api_instance.delete_tenant_package(tenant_id, id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_tenant_package: #{e}" @@ -2889,12 +2889,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_tenant_package_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> delete_tenant_package_with_http_info(tenant_id, id) ```ruby begin - data, status_code, headers = api_instance.delete_tenant_package_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.delete_tenant_package_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } p data # => @@ -3003,7 +3003,7 @@ end ## delete_user_badge -> delete_user_badge(tenant_id, id, opts) +> delete_user_badge(tenant_id, id) @@ -3026,7 +3026,7 @@ id = 'id_example' # String | begin - result = api_instance.delete_user_badge(tenant_id, id, opts) + result = api_instance.delete_user_badge(tenant_id, id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_user_badge: #{e}" @@ -3037,12 +3037,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_user_badge_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> delete_user_badge_with_http_info(tenant_id, id) ```ruby begin - data, status_code, headers = api_instance.delete_user_badge_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.delete_user_badge_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } p data # => @@ -3307,7 +3307,7 @@ end ## get_cached_notification_count -> get_cached_notification_count(tenant_id, id, opts) +> get_cached_notification_count(tenant_id, id) @@ -3330,7 +3330,7 @@ id = 'id_example' # String | begin - result = api_instance.get_cached_notification_count(tenant_id, id, opts) + result = api_instance.get_cached_notification_count(tenant_id, id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_cached_notification_count: #{e}" @@ -3341,12 +3341,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_cached_notification_count_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> get_cached_notification_count_with_http_info(tenant_id, id) ```ruby begin - data, status_code, headers = api_instance.get_cached_notification_count_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.get_cached_notification_count_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } p data # => @@ -3378,7 +3378,7 @@ end ## get_comment -> get_comment(tenant_id, id, opts) +> get_comment(tenant_id, id) @@ -3401,7 +3401,7 @@ id = 'id_example' # String | begin - result = api_instance.get_comment(tenant_id, id, opts) + result = api_instance.get_comment(tenant_id, id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_comment: #{e}" @@ -3412,12 +3412,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comment_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> get_comment_with_http_info(tenant_id, id) ```ruby begin - data, status_code, headers = api_instance.get_comment_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.get_comment_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } p data # => @@ -3552,7 +3552,7 @@ end ## get_domain_config -> get_domain_config(tenant_id, domain, opts) +> get_domain_config(tenant_id, domain) @@ -3575,7 +3575,7 @@ domain = 'domain_example' # String | begin - result = api_instance.get_domain_config(tenant_id, domain, opts) + result = api_instance.get_domain_config(tenant_id, domain) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_domain_config: #{e}" @@ -3586,12 +3586,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_domain_config_with_http_info(tenant_id, domain, opts) +> , Integer, Hash)> get_domain_config_with_http_info(tenant_id, domain) ```ruby begin - data, status_code, headers = api_instance.get_domain_config_with_http_info(tenant_id, domain, opts) + data, status_code, headers = api_instance.get_domain_config_with_http_info(tenant_id, domain) p status_code # => 2xx p headers # => { ... } p data # => @@ -3623,7 +3623,7 @@ end ## get_domain_configs -> get_domain_configs(tenant_id, opts) +> get_domain_configs(tenant_id) @@ -3645,7 +3645,7 @@ tenant_id = 'tenant_id_example' # String | begin - result = api_instance.get_domain_configs(tenant_id, opts) + result = api_instance.get_domain_configs(tenant_id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_domain_configs: #{e}" @@ -3656,12 +3656,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_domain_configs_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_domain_configs_with_http_info(tenant_id) ```ruby begin - data, status_code, headers = api_instance.get_domain_configs_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_domain_configs_with_http_info(tenant_id) p status_code # => 2xx p headers # => { ... } p data # => @@ -3692,7 +3692,7 @@ end ## get_email_template -> get_email_template(tenant_id, id, opts) +> get_email_template(tenant_id, id) @@ -3715,7 +3715,7 @@ id = 'id_example' # String | begin - result = api_instance.get_email_template(tenant_id, id, opts) + result = api_instance.get_email_template(tenant_id, id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_email_template: #{e}" @@ -3726,12 +3726,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_email_template_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> get_email_template_with_http_info(tenant_id, id) ```ruby begin - data, status_code, headers = api_instance.get_email_template_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.get_email_template_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } p data # => @@ -3763,7 +3763,7 @@ end ## get_email_template_definitions -> get_email_template_definitions(tenant_id, opts) +> get_email_template_definitions(tenant_id) @@ -3785,7 +3785,7 @@ tenant_id = 'tenant_id_example' # String | begin - result = api_instance.get_email_template_definitions(tenant_id, opts) + result = api_instance.get_email_template_definitions(tenant_id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_email_template_definitions: #{e}" @@ -3796,12 +3796,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_email_template_definitions_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_email_template_definitions_with_http_info(tenant_id) ```ruby begin - data, status_code, headers = api_instance.get_email_template_definitions_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_email_template_definitions_with_http_info(tenant_id) p status_code # => 2xx p headers # => { ... } p data # => @@ -4132,7 +4132,7 @@ end ## get_moderator -> get_moderator(tenant_id, id, opts) +> get_moderator(tenant_id, id) @@ -4155,7 +4155,7 @@ id = 'id_example' # String | begin - result = api_instance.get_moderator(tenant_id, id, opts) + result = api_instance.get_moderator(tenant_id, id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_moderator: #{e}" @@ -4166,12 +4166,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_moderator_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> get_moderator_with_http_info(tenant_id, id) ```ruby begin - data, status_code, headers = api_instance.get_moderator_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.get_moderator_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } p data # => @@ -4440,7 +4440,7 @@ end ## get_page_by_urlid -> get_page_by_urlid(tenant_id, url_id, opts) +> get_page_by_urlid(tenant_id, url_id) @@ -4463,7 +4463,7 @@ url_id = 'url_id_example' # String | begin - result = api_instance.get_page_by_urlid(tenant_id, url_id, opts) + result = api_instance.get_page_by_urlid(tenant_id, url_id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_page_by_urlid: #{e}" @@ -4474,12 +4474,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_page_by_urlid_with_http_info(tenant_id, url_id, opts) +> , Integer, Hash)> get_page_by_urlid_with_http_info(tenant_id, url_id) ```ruby begin - data, status_code, headers = api_instance.get_page_by_urlid_with_http_info(tenant_id, url_id, opts) + data, status_code, headers = api_instance.get_page_by_urlid_with_http_info(tenant_id, url_id) p status_code # => 2xx p headers # => { ... } p data # => @@ -4511,7 +4511,7 @@ end ## get_pages -> get_pages(tenant_id, opts) +> get_pages(tenant_id) @@ -4533,7 +4533,7 @@ tenant_id = 'tenant_id_example' # String | begin - result = api_instance.get_pages(tenant_id, opts) + result = api_instance.get_pages(tenant_id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_pages: #{e}" @@ -4544,12 +4544,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_pages_with_http_info(tenant_id, opts) +> , Integer, Hash)> get_pages_with_http_info(tenant_id) ```ruby begin - data, status_code, headers = api_instance.get_pages_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.get_pages_with_http_info(tenant_id) p status_code # => 2xx p headers # => { ... } p data # => @@ -4748,7 +4748,7 @@ end ## get_question_config -> get_question_config(tenant_id, id, opts) +> get_question_config(tenant_id, id) @@ -4771,7 +4771,7 @@ id = 'id_example' # String | begin - result = api_instance.get_question_config(tenant_id, id, opts) + result = api_instance.get_question_config(tenant_id, id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_question_config: #{e}" @@ -4782,12 +4782,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_question_config_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> get_question_config_with_http_info(tenant_id, id) ```ruby begin - data, status_code, headers = api_instance.get_question_config_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.get_question_config_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } p data # => @@ -4892,7 +4892,7 @@ end ## get_question_result -> get_question_result(tenant_id, id, opts) +> get_question_result(tenant_id, id) @@ -4915,7 +4915,7 @@ id = 'id_example' # String | begin - result = api_instance.get_question_result(tenant_id, id, opts) + result = api_instance.get_question_result(tenant_id, id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_question_result: #{e}" @@ -4926,12 +4926,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_question_result_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> get_question_result_with_http_info(tenant_id, id) ```ruby begin - data, status_code, headers = api_instance.get_question_result_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.get_question_result_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } p data # => @@ -5046,7 +5046,7 @@ end ## get_sso_user_by_email -> get_sso_user_by_email(tenant_id, email, opts) +> get_sso_user_by_email(tenant_id, email) @@ -5069,7 +5069,7 @@ email = 'email_example' # String | begin - result = api_instance.get_sso_user_by_email(tenant_id, email, opts) + result = api_instance.get_sso_user_by_email(tenant_id, email) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_sso_user_by_email: #{e}" @@ -5080,12 +5080,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_sso_user_by_email_with_http_info(tenant_id, email, opts) +> , Integer, Hash)> get_sso_user_by_email_with_http_info(tenant_id, email) ```ruby begin - data, status_code, headers = api_instance.get_sso_user_by_email_with_http_info(tenant_id, email, opts) + data, status_code, headers = api_instance.get_sso_user_by_email_with_http_info(tenant_id, email) p status_code # => 2xx p headers # => { ... } p data # => @@ -5117,7 +5117,7 @@ end ## get_sso_user_by_id -> get_sso_user_by_id(tenant_id, id, opts) +> get_sso_user_by_id(tenant_id, id) @@ -5140,7 +5140,7 @@ id = 'id_example' # String | begin - result = api_instance.get_sso_user_by_id(tenant_id, id, opts) + result = api_instance.get_sso_user_by_id(tenant_id, id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_sso_user_by_id: #{e}" @@ -5151,12 +5151,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_sso_user_by_id_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> get_sso_user_by_id_with_http_info(tenant_id, id) ```ruby begin - data, status_code, headers = api_instance.get_sso_user_by_id_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.get_sso_user_by_id_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } p data # => @@ -5334,7 +5334,7 @@ end ## get_tenant -> get_tenant(tenant_id, id, opts) +> get_tenant(tenant_id, id) @@ -5357,7 +5357,7 @@ id = 'id_example' # String | begin - result = api_instance.get_tenant(tenant_id, id, opts) + result = api_instance.get_tenant(tenant_id, id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenant: #{e}" @@ -5368,12 +5368,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenant_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> get_tenant_with_http_info(tenant_id, id) ```ruby begin - data, status_code, headers = api_instance.get_tenant_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.get_tenant_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } p data # => @@ -5484,7 +5484,7 @@ end ## get_tenant_package -> get_tenant_package(tenant_id, id, opts) +> get_tenant_package(tenant_id, id) @@ -5507,7 +5507,7 @@ id = 'id_example' # String | begin - result = api_instance.get_tenant_package(tenant_id, id, opts) + result = api_instance.get_tenant_package(tenant_id, id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenant_package: #{e}" @@ -5518,12 +5518,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenant_package_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> get_tenant_package_with_http_info(tenant_id, id) ```ruby begin - data, status_code, headers = api_instance.get_tenant_package_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.get_tenant_package_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } p data # => @@ -5628,7 +5628,7 @@ end ## get_tenant_user -> get_tenant_user(tenant_id, id, opts) +> get_tenant_user(tenant_id, id) @@ -5651,7 +5651,7 @@ id = 'id_example' # String | begin - result = api_instance.get_tenant_user(tenant_id, id, opts) + result = api_instance.get_tenant_user(tenant_id, id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_tenant_user: #{e}" @@ -5662,12 +5662,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_tenant_user_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> get_tenant_user_with_http_info(tenant_id, id) ```ruby begin - data, status_code, headers = api_instance.get_tenant_user_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.get_tenant_user_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } p data # => @@ -6001,7 +6001,7 @@ end ## get_user -> get_user(tenant_id, id, opts) +> get_user(tenant_id, id) @@ -6024,7 +6024,7 @@ id = 'id_example' # String | begin - result = api_instance.get_user(tenant_id, id, opts) + result = api_instance.get_user(tenant_id, id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user: #{e}" @@ -6035,12 +6035,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> get_user_with_http_info(tenant_id, id) ```ruby begin - data, status_code, headers = api_instance.get_user_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.get_user_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } p data # => @@ -6072,7 +6072,7 @@ end ## get_user_badge -> get_user_badge(tenant_id, id, opts) +> get_user_badge(tenant_id, id) @@ -6095,7 +6095,7 @@ id = 'id_example' # String | begin - result = api_instance.get_user_badge(tenant_id, id, opts) + result = api_instance.get_user_badge(tenant_id, id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user_badge: #{e}" @@ -6106,12 +6106,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_badge_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> get_user_badge_with_http_info(tenant_id, id) ```ruby begin - data, status_code, headers = api_instance.get_user_badge_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.get_user_badge_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } p data # => @@ -6143,7 +6143,7 @@ end ## get_user_badge_progress_by_id -> get_user_badge_progress_by_id(tenant_id, id, opts) +> get_user_badge_progress_by_id(tenant_id, id) @@ -6166,7 +6166,7 @@ id = 'id_example' # String | begin - result = api_instance.get_user_badge_progress_by_id(tenant_id, id, opts) + result = api_instance.get_user_badge_progress_by_id(tenant_id, id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user_badge_progress_by_id: #{e}" @@ -6177,12 +6177,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_badge_progress_by_id_with_http_info(tenant_id, id, opts) +> , Integer, Hash)> get_user_badge_progress_by_id_with_http_info(tenant_id, id) ```ruby begin - data, status_code, headers = api_instance.get_user_badge_progress_by_id_with_http_info(tenant_id, id, opts) + data, status_code, headers = api_instance.get_user_badge_progress_by_id_with_http_info(tenant_id, id) p status_code # => 2xx p headers # => { ... } p data # => @@ -6214,7 +6214,7 @@ end ## get_user_badge_progress_by_user_id -> get_user_badge_progress_by_user_id(tenant_id, user_id, opts) +> get_user_badge_progress_by_user_id(tenant_id, user_id) @@ -6237,7 +6237,7 @@ user_id = 'user_id_example' # String | begin - result = api_instance.get_user_badge_progress_by_user_id(tenant_id, user_id, opts) + result = api_instance.get_user_badge_progress_by_user_id(tenant_id, user_id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_user_badge_progress_by_user_id: #{e}" @@ -6248,12 +6248,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id, opts) +> , Integer, Hash)> get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id) ```ruby begin - data, status_code, headers = api_instance.get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id, opts) + data, status_code, headers = api_instance.get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id) p status_code # => 2xx p headers # => { ... } p data # => @@ -6445,7 +6445,7 @@ end ## get_votes -> get_votes(tenant_id, url_id, opts) +> get_votes(tenant_id, url_id) @@ -6468,7 +6468,7 @@ url_id = 'url_id_example' # String | begin - result = api_instance.get_votes(tenant_id, url_id, opts) + result = api_instance.get_votes(tenant_id, url_id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->get_votes: #{e}" @@ -6479,12 +6479,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_votes_with_http_info(tenant_id, url_id, opts) +> , Integer, Hash)> get_votes_with_http_info(tenant_id, url_id) ```ruby begin - data, status_code, headers = api_instance.get_votes_with_http_info(tenant_id, url_id, opts) + data, status_code, headers = api_instance.get_votes_with_http_info(tenant_id, url_id) p status_code # => 2xx p headers # => { ... } p data # => @@ -6593,7 +6593,7 @@ end ## patch_domain_config -> patch_domain_config(tenant_id, domain_to_update, patch_domain_config_params, opts) +> patch_domain_config(tenant_id, domain_to_update, patch_domain_config_params) @@ -6617,7 +6617,7 @@ patch_domain_config_params = FastCommentsClient::PatchDomainConfigParams.new # P begin - result = api_instance.patch_domain_config(tenant_id, domain_to_update, patch_domain_config_params, opts) + result = api_instance.patch_domain_config(tenant_id, domain_to_update, patch_domain_config_params) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->patch_domain_config: #{e}" @@ -6628,12 +6628,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> patch_domain_config_with_http_info(tenant_id, domain_to_update, patch_domain_config_params, opts) +> , Integer, Hash)> patch_domain_config_with_http_info(tenant_id, domain_to_update, patch_domain_config_params) ```ruby begin - data, status_code, headers = api_instance.patch_domain_config_with_http_info(tenant_id, domain_to_update, patch_domain_config_params, opts) + data, status_code, headers = api_instance.patch_domain_config_with_http_info(tenant_id, domain_to_update, patch_domain_config_params) p status_code # => 2xx p headers # => { ... } p data # => @@ -6741,7 +6741,7 @@ end ## patch_page -> patch_page(tenant_id, id, update_api_page_data, opts) +> patch_page(tenant_id, id, update_api_page_data) @@ -6765,7 +6765,7 @@ update_api_page_data = FastCommentsClient::UpdateAPIPageData.new # UpdateAPIPage begin - result = api_instance.patch_page(tenant_id, id, update_api_page_data, opts) + result = api_instance.patch_page(tenant_id, id, update_api_page_data) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->patch_page: #{e}" @@ -6776,12 +6776,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> patch_page_with_http_info(tenant_id, id, update_api_page_data, opts) +> , Integer, Hash)> patch_page_with_http_info(tenant_id, id, update_api_page_data) ```ruby begin - data, status_code, headers = api_instance.patch_page_with_http_info(tenant_id, id, update_api_page_data, opts) + data, status_code, headers = api_instance.patch_page_with_http_info(tenant_id, id, update_api_page_data) p status_code # => 2xx p headers # => { ... } p data # => @@ -6891,7 +6891,7 @@ end ## put_domain_config -> put_domain_config(tenant_id, domain_to_update, update_domain_config_params, opts) +> put_domain_config(tenant_id, domain_to_update, update_domain_config_params) @@ -6915,7 +6915,7 @@ update_domain_config_params = FastCommentsClient::UpdateDomainConfigParams.new({ begin - result = api_instance.put_domain_config(tenant_id, domain_to_update, update_domain_config_params, opts) + result = api_instance.put_domain_config(tenant_id, domain_to_update, update_domain_config_params) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->put_domain_config: #{e}" @@ -6926,12 +6926,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_domain_config_with_http_info(tenant_id, domain_to_update, update_domain_config_params, opts) +> , Integer, Hash)> put_domain_config_with_http_info(tenant_id, domain_to_update, update_domain_config_params) ```ruby begin - data, status_code, headers = api_instance.put_domain_config_with_http_info(tenant_id, domain_to_update, update_domain_config_params, opts) + data, status_code, headers = api_instance.put_domain_config_with_http_info(tenant_id, domain_to_update, update_domain_config_params) p status_code # => 2xx p headers # => { ... } p data # => @@ -7116,7 +7116,7 @@ end ## replace_tenant_package -> replace_tenant_package(tenant_id, id, replace_tenant_package_body, opts) +> replace_tenant_package(tenant_id, id, replace_tenant_package_body) @@ -7140,7 +7140,7 @@ replace_tenant_package_body = FastCommentsClient::ReplaceTenantPackageBody.new({ begin - result = api_instance.replace_tenant_package(tenant_id, id, replace_tenant_package_body, opts) + result = api_instance.replace_tenant_package(tenant_id, id, replace_tenant_package_body) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->replace_tenant_package: #{e}" @@ -7151,12 +7151,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_body, opts) +> , Integer, Hash)> replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_body) ```ruby begin - data, status_code, headers = api_instance.replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_body, opts) + data, status_code, headers = api_instance.replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_body) p status_code # => 2xx p headers # => { ... } p data # => @@ -7428,7 +7428,7 @@ end ## send_invite -> send_invite(tenant_id, id, from_name, opts) +> send_invite(tenant_id, id, from_name) @@ -7452,7 +7452,7 @@ from_name = 'from_name_example' # String | begin - result = api_instance.send_invite(tenant_id, id, from_name, opts) + result = api_instance.send_invite(tenant_id, id, from_name) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->send_invite: #{e}" @@ -7463,12 +7463,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> send_invite_with_http_info(tenant_id, id, from_name, opts) +> , Integer, Hash)> send_invite_with_http_info(tenant_id, id, from_name) ```ruby begin - data, status_code, headers = api_instance.send_invite_with_http_info(tenant_id, id, from_name, opts) + data, status_code, headers = api_instance.send_invite_with_http_info(tenant_id, id, from_name) p status_code # => 2xx p headers # => { ... } p data # => @@ -7813,7 +7813,7 @@ end ## update_email_template -> update_email_template(tenant_id, id, update_email_template_body, opts) +> update_email_template(tenant_id, id, update_email_template_body) @@ -7837,7 +7837,7 @@ update_email_template_body = FastCommentsClient::UpdateEmailTemplateBody.new # U begin - result = api_instance.update_email_template(tenant_id, id, update_email_template_body, opts) + result = api_instance.update_email_template(tenant_id, id, update_email_template_body) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_email_template: #{e}" @@ -7848,12 +7848,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_email_template_with_http_info(tenant_id, id, update_email_template_body, opts) +> , Integer, Hash)> update_email_template_with_http_info(tenant_id, id, update_email_template_body) ```ruby begin - data, status_code, headers = api_instance.update_email_template_with_http_info(tenant_id, id, update_email_template_body, opts) + data, status_code, headers = api_instance.update_email_template_with_http_info(tenant_id, id, update_email_template_body) p status_code # => 2xx p headers # => { ... } p data # => @@ -7886,7 +7886,7 @@ end ## update_feed_post -> update_feed_post(tenant_id, id, feed_post, opts) +> update_feed_post(tenant_id, id, feed_post) @@ -7910,7 +7910,7 @@ feed_post = FastCommentsClient::FeedPost.new({_id: '_id_example', tenant_id: 'te begin - result = api_instance.update_feed_post(tenant_id, id, feed_post, opts) + result = api_instance.update_feed_post(tenant_id, id, feed_post) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_feed_post: #{e}" @@ -7921,12 +7921,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_feed_post_with_http_info(tenant_id, id, feed_post, opts) +> , Integer, Hash)> update_feed_post_with_http_info(tenant_id, id, feed_post) ```ruby begin - data, status_code, headers = api_instance.update_feed_post_with_http_info(tenant_id, id, feed_post, opts) + data, status_code, headers = api_instance.update_feed_post_with_http_info(tenant_id, id, feed_post) p status_code # => 2xx p headers # => { ... } p data # => @@ -7959,7 +7959,7 @@ end ## update_moderator -> update_moderator(tenant_id, id, update_moderator_body, opts) +> update_moderator(tenant_id, id, update_moderator_body) @@ -7983,7 +7983,7 @@ update_moderator_body = FastCommentsClient::UpdateModeratorBody.new # UpdateMode begin - result = api_instance.update_moderator(tenant_id, id, update_moderator_body, opts) + result = api_instance.update_moderator(tenant_id, id, update_moderator_body) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_moderator: #{e}" @@ -7994,12 +7994,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_moderator_with_http_info(tenant_id, id, update_moderator_body, opts) +> , Integer, Hash)> update_moderator_with_http_info(tenant_id, id, update_moderator_body) ```ruby begin - data, status_code, headers = api_instance.update_moderator_with_http_info(tenant_id, id, update_moderator_body, opts) + data, status_code, headers = api_instance.update_moderator_with_http_info(tenant_id, id, update_moderator_body) p status_code # => 2xx p headers # => { ... } p data # => @@ -8109,7 +8109,7 @@ end ## update_question_config -> update_question_config(tenant_id, id, update_question_config_body, opts) +> update_question_config(tenant_id, id, update_question_config_body) @@ -8133,7 +8133,7 @@ update_question_config_body = FastCommentsClient::UpdateQuestionConfigBody.new # begin - result = api_instance.update_question_config(tenant_id, id, update_question_config_body, opts) + result = api_instance.update_question_config(tenant_id, id, update_question_config_body) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_question_config: #{e}" @@ -8144,12 +8144,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_question_config_with_http_info(tenant_id, id, update_question_config_body, opts) +> , Integer, Hash)> update_question_config_with_http_info(tenant_id, id, update_question_config_body) ```ruby begin - data, status_code, headers = api_instance.update_question_config_with_http_info(tenant_id, id, update_question_config_body, opts) + data, status_code, headers = api_instance.update_question_config_with_http_info(tenant_id, id, update_question_config_body) p status_code # => 2xx p headers # => { ... } p data # => @@ -8182,7 +8182,7 @@ end ## update_question_result -> update_question_result(tenant_id, id, update_question_result_body, opts) +> update_question_result(tenant_id, id, update_question_result_body) @@ -8206,7 +8206,7 @@ update_question_result_body = FastCommentsClient::UpdateQuestionResultBody.new # begin - result = api_instance.update_question_result(tenant_id, id, update_question_result_body, opts) + result = api_instance.update_question_result(tenant_id, id, update_question_result_body) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_question_result: #{e}" @@ -8217,12 +8217,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_question_result_with_http_info(tenant_id, id, update_question_result_body, opts) +> , Integer, Hash)> update_question_result_with_http_info(tenant_id, id, update_question_result_body) ```ruby begin - data, status_code, headers = api_instance.update_question_result_with_http_info(tenant_id, id, update_question_result_body, opts) + data, status_code, headers = api_instance.update_question_result_with_http_info(tenant_id, id, update_question_result_body) p status_code # => 2xx p headers # => { ... } p data # => @@ -8332,7 +8332,7 @@ end ## update_tenant -> update_tenant(tenant_id, id, update_tenant_body, opts) +> update_tenant(tenant_id, id, update_tenant_body) @@ -8356,7 +8356,7 @@ update_tenant_body = FastCommentsClient::UpdateTenantBody.new # UpdateTenantBody begin - result = api_instance.update_tenant(tenant_id, id, update_tenant_body, opts) + result = api_instance.update_tenant(tenant_id, id, update_tenant_body) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_tenant: #{e}" @@ -8367,12 +8367,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_tenant_with_http_info(tenant_id, id, update_tenant_body, opts) +> , Integer, Hash)> update_tenant_with_http_info(tenant_id, id, update_tenant_body) ```ruby begin - data, status_code, headers = api_instance.update_tenant_with_http_info(tenant_id, id, update_tenant_body, opts) + data, status_code, headers = api_instance.update_tenant_with_http_info(tenant_id, id, update_tenant_body) p status_code # => 2xx p headers # => { ... } p data # => @@ -8405,7 +8405,7 @@ end ## update_tenant_package -> update_tenant_package(tenant_id, id, update_tenant_package_body, opts) +> update_tenant_package(tenant_id, id, update_tenant_package_body) @@ -8429,7 +8429,7 @@ update_tenant_package_body = FastCommentsClient::UpdateTenantPackageBody.new # U begin - result = api_instance.update_tenant_package(tenant_id, id, update_tenant_package_body, opts) + result = api_instance.update_tenant_package(tenant_id, id, update_tenant_package_body) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_tenant_package: #{e}" @@ -8440,12 +8440,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_body, opts) +> , Integer, Hash)> update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_body) ```ruby begin - data, status_code, headers = api_instance.update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_body, opts) + data, status_code, headers = api_instance.update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_body) p status_code # => 2xx p headers # => { ... } p data # => @@ -8555,7 +8555,7 @@ end ## update_user_badge -> update_user_badge(tenant_id, id, update_user_badge_params, opts) +> update_user_badge(tenant_id, id, update_user_badge_params) @@ -8579,7 +8579,7 @@ update_user_badge_params = FastCommentsClient::UpdateUserBadgeParams.new # Updat begin - result = api_instance.update_user_badge(tenant_id, id, update_user_badge_params, opts) + result = api_instance.update_user_badge(tenant_id, id, update_user_badge_params) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->update_user_badge: #{e}" @@ -8590,12 +8590,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> update_user_badge_with_http_info(tenant_id, id, update_user_badge_params, opts) +> , Integer, Hash)> update_user_badge_with_http_info(tenant_id, id, update_user_badge_params) ```ruby begin - data, status_code, headers = api_instance.update_user_badge_with_http_info(tenant_id, id, update_user_badge_params, opts) + data, status_code, headers = api_instance.update_user_badge_with_http_info(tenant_id, id, update_user_badge_params) p status_code # => 2xx p headers # => { ... } p data # => diff --git a/client/docs/PublicApi.md b/client/docs/PublicApi.md index bda5688..0a55969 100644 --- a/client/docs/PublicApi.md +++ b/client/docs/PublicApi.md @@ -698,7 +698,7 @@ No authorization required ## delete_v1_page_react -> delete_v1_page_react(tenant_id, url_id, opts) +> delete_v1_page_react(tenant_id, url_id) @@ -714,7 +714,7 @@ url_id = 'url_id_example' # String | begin - result = api_instance.delete_v1_page_react(tenant_id, url_id, opts) + result = api_instance.delete_v1_page_react(tenant_id, url_id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->delete_v1_page_react: #{e}" @@ -725,12 +725,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_v1_page_react_with_http_info(tenant_id, url_id, opts) +> , Integer, Hash)> delete_v1_page_react_with_http_info(tenant_id, url_id) ```ruby begin - data, status_code, headers = api_instance.delete_v1_page_react_with_http_info(tenant_id, url_id, opts) + data, status_code, headers = api_instance.delete_v1_page_react_with_http_info(tenant_id, url_id) p status_code # => 2xx p headers # => { ... } p data # => @@ -762,7 +762,7 @@ No authorization required ## delete_v2_page_react -> delete_v2_page_react(tenant_id, url_id, id, opts) +> delete_v2_page_react(tenant_id, url_id, id) @@ -779,7 +779,7 @@ id = 'id_example' # String | begin - result = api_instance.delete_v2_page_react(tenant_id, url_id, id, opts) + result = api_instance.delete_v2_page_react(tenant_id, url_id, id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->delete_v2_page_react: #{e}" @@ -790,12 +790,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_v2_page_react_with_http_info(tenant_id, url_id, id, opts) +> , Integer, Hash)> delete_v2_page_react_with_http_info(tenant_id, url_id, id) ```ruby begin - data, status_code, headers = api_instance.delete_v2_page_react_with_http_info(tenant_id, url_id, id, opts) + data, status_code, headers = api_instance.delete_v2_page_react_with_http_info(tenant_id, url_id, id) p status_code # => 2xx p headers # => { ... } p data # => @@ -1454,7 +1454,7 @@ No authorization required ## get_gif_large -> get_gif_large(tenant_id, large_internal_url_sanitized, opts) +> get_gif_large(tenant_id, large_internal_url_sanitized) @@ -1470,7 +1470,7 @@ large_internal_url_sanitized = 'large_internal_url_sanitized_example' # String | begin - result = api_instance.get_gif_large(tenant_id, large_internal_url_sanitized, opts) + result = api_instance.get_gif_large(tenant_id, large_internal_url_sanitized) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_gif_large: #{e}" @@ -1481,12 +1481,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_gif_large_with_http_info(tenant_id, large_internal_url_sanitized, opts) +> , Integer, Hash)> get_gif_large_with_http_info(tenant_id, large_internal_url_sanitized) ```ruby begin - data, status_code, headers = api_instance.get_gif_large_with_http_info(tenant_id, large_internal_url_sanitized, opts) + data, status_code, headers = api_instance.get_gif_large_with_http_info(tenant_id, large_internal_url_sanitized) p status_code # => 2xx p headers # => { ... } p data # => @@ -2176,7 +2176,7 @@ No authorization required ## get_user_presence_statuses -> get_user_presence_statuses(tenant_id, url_id_ws, user_ids, opts) +> get_user_presence_statuses(tenant_id, url_id_ws, user_ids) @@ -2193,7 +2193,7 @@ user_ids = 'user_ids_example' # String | begin - result = api_instance.get_user_presence_statuses(tenant_id, url_id_ws, user_ids, opts) + result = api_instance.get_user_presence_statuses(tenant_id, url_id_ws, user_ids) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_user_presence_statuses: #{e}" @@ -2204,12 +2204,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids, opts) +> , Integer, Hash)> get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids) ```ruby begin - data, status_code, headers = api_instance.get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids, opts) + data, status_code, headers = api_instance.get_user_presence_statuses_with_http_info(tenant_id, url_id_ws, user_ids) p status_code # => 2xx p headers # => { ... } p data # => @@ -2310,7 +2310,7 @@ No authorization required ## get_users_info -> get_users_info(tenant_id, ids, opts) +> get_users_info(tenant_id, ids) @@ -2328,7 +2328,7 @@ ids = 'ids_example' # String | Comma-delimited userIds. begin - result = api_instance.get_users_info(tenant_id, ids, opts) + result = api_instance.get_users_info(tenant_id, ids) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_users_info: #{e}" @@ -2339,12 +2339,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_users_info_with_http_info(tenant_id, ids, opts) +> , Integer, Hash)> get_users_info_with_http_info(tenant_id, ids) ```ruby begin - data, status_code, headers = api_instance.get_users_info_with_http_info(tenant_id, ids, opts) + data, status_code, headers = api_instance.get_users_info_with_http_info(tenant_id, ids) p status_code # => 2xx p headers # => { ... } p data # => @@ -2376,7 +2376,7 @@ No authorization required ## get_v1_page_likes -> get_v1_page_likes(tenant_id, url_id, opts) +> get_v1_page_likes(tenant_id, url_id) @@ -2392,7 +2392,7 @@ url_id = 'url_id_example' # String | begin - result = api_instance.get_v1_page_likes(tenant_id, url_id, opts) + result = api_instance.get_v1_page_likes(tenant_id, url_id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_v1_page_likes: #{e}" @@ -2403,12 +2403,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_v1_page_likes_with_http_info(tenant_id, url_id, opts) +> , Integer, Hash)> get_v1_page_likes_with_http_info(tenant_id, url_id) ```ruby begin - data, status_code, headers = api_instance.get_v1_page_likes_with_http_info(tenant_id, url_id, opts) + data, status_code, headers = api_instance.get_v1_page_likes_with_http_info(tenant_id, url_id) p status_code # => 2xx p headers # => { ... } p data # => @@ -2440,7 +2440,7 @@ No authorization required ## get_v2_page_react_users -> get_v2_page_react_users(tenant_id, url_id, id, opts) +> get_v2_page_react_users(tenant_id, url_id, id) @@ -2457,7 +2457,7 @@ id = 'id_example' # String | begin - result = api_instance.get_v2_page_react_users(tenant_id, url_id, id, opts) + result = api_instance.get_v2_page_react_users(tenant_id, url_id, id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_v2_page_react_users: #{e}" @@ -2468,12 +2468,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_v2_page_react_users_with_http_info(tenant_id, url_id, id, opts) +> , Integer, Hash)> get_v2_page_react_users_with_http_info(tenant_id, url_id, id) ```ruby begin - data, status_code, headers = api_instance.get_v2_page_react_users_with_http_info(tenant_id, url_id, id, opts) + data, status_code, headers = api_instance.get_v2_page_react_users_with_http_info(tenant_id, url_id, id) p status_code # => 2xx p headers # => { ... } p data # => @@ -2506,7 +2506,7 @@ No authorization required ## get_v2_page_reacts -> get_v2_page_reacts(tenant_id, url_id, opts) +> get_v2_page_reacts(tenant_id, url_id) @@ -2522,7 +2522,7 @@ url_id = 'url_id_example' # String | begin - result = api_instance.get_v2_page_reacts(tenant_id, url_id, opts) + result = api_instance.get_v2_page_reacts(tenant_id, url_id) p result rescue FastCommentsClient::ApiError => e puts "Error when calling PublicApi->get_v2_page_reacts: #{e}" @@ -2533,12 +2533,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_v2_page_reacts_with_http_info(tenant_id, url_id, opts) +> , Integer, Hash)> get_v2_page_reacts_with_http_info(tenant_id, url_id) ```ruby begin - data, status_code, headers = api_instance.get_v2_page_reacts_with_http_info(tenant_id, url_id, opts) + data, status_code, headers = api_instance.get_v2_page_reacts_with_http_info(tenant_id, url_id) p status_code # => 2xx p headers # => { ... } p data # => From 1c6bfd58ca94ecbd8979b747b72781498bb52392 Mon Sep 17 00:00:00 2001 From: winrid Date: Mon, 29 Jun 2026 17:07:23 -0700 Subject: [PATCH 7/9] Regenerate from updated spec: mod_api/ moderation paths + PostRemoveCommentApiResponse rename Moderation endpoints gained a mod_api/ path segment; PostRemoveCommentResponse renamed to PostRemoveCommentApiResponse. --- client/.openapi-generator/FILES | 6 +- client/README.md | 88 +- client/docs/DefaultApi.md | 56 +- client/docs/ModerationApi.md | 606 +++++++------- ...nse.md => PostRemoveCommentApiResponse.md} | 4 +- client/lib/fastcomments-client.rb | 2 +- .../fastcomments-client/api/default_api.rb | 64 +- .../fastcomments-client/api/moderation_api.rb | 780 +++++++++++------- ...rb => post_remove_comment_api_response.rb} | 2 +- client/spec/api/default_api_spec.rb | 8 +- client/spec/api/moderation_api_spec.rb | 88 +- ... post_remove_comment_api_response_spec.rb} | 4 +- openapi.json | 614 +++++++------- 13 files changed, 1251 insertions(+), 1071 deletions(-) rename client/docs/{PostRemoveCommentResponse.md => PostRemoveCommentApiResponse.md} (68%) rename client/lib/fastcomments-client/models/{post_remove_comment_response.rb => post_remove_comment_api_response.rb} (98%) rename client/spec/models/{post_remove_comment_response_spec.rb => post_remove_comment_api_response_spec.rb} (77%) diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES index 978973d..8eac7f4 100644 --- a/client/.openapi-generator/FILES +++ b/client/.openapi-generator/FILES @@ -268,7 +268,7 @@ docs/PatchDomainConfigResponse.md docs/PatchPageAPIResponse.md docs/PatchSSOUserAPIResponse.md docs/PendingCommentToSyncOutbound.md -docs/PostRemoveCommentResponse.md +docs/PostRemoveCommentApiResponse.md docs/PreBanSummary.md docs/PubSubComment.md docs/PubSubCommentBase.md @@ -639,7 +639,7 @@ lib/fastcomments-client/models/patch_domain_config_response.rb lib/fastcomments-client/models/patch_page_api_response.rb lib/fastcomments-client/models/patch_sso_user_api_response.rb lib/fastcomments-client/models/pending_comment_to_sync_outbound.rb -lib/fastcomments-client/models/post_remove_comment_response.rb +lib/fastcomments-client/models/post_remove_comment_api_response.rb lib/fastcomments-client/models/pre_ban_summary.rb lib/fastcomments-client/models/pub_sub_comment.rb lib/fastcomments-client/models/pub_sub_comment_base.rb @@ -1003,7 +1003,7 @@ spec/models/patch_domain_config_response_spec.rb spec/models/patch_page_api_response_spec.rb spec/models/patch_sso_user_api_response_spec.rb spec/models/pending_comment_to_sync_outbound_spec.rb -spec/models/post_remove_comment_response_spec.rb +spec/models/post_remove_comment_api_response_spec.rb spec/models/pre_ban_summary_spec.rb spec/models/pub_sub_comment_base_spec.rb spec/models/pub_sub_comment_spec.rb diff --git a/client/README.md b/client/README.md index a9eeddb..a6449c8 100644 --- a/client/README.md +++ b/client/README.md @@ -198,49 +198,49 @@ Class | Method | HTTP request | Description *FastCommentsClient::DefaultApi* | [**update_tenant_package**](docs/DefaultApi.md#update_tenant_package) | **PATCH** /api/v1/tenant-packages/{id} | *FastCommentsClient::DefaultApi* | [**update_tenant_user**](docs/DefaultApi.md#update_tenant_user) | **PATCH** /api/v1/tenant-users/{id} | *FastCommentsClient::DefaultApi* | [**update_user_badge**](docs/DefaultApi.md#update_user_badge) | **PUT** /api/v1/user-badges/{id} | -*FastCommentsClient::ModerationApi* | [**delete_moderation_vote**](docs/ModerationApi.md#delete_moderation_vote) | **DELETE** /auth/my-account/moderate-comments/vote/{commentId}/{voteId} | -*FastCommentsClient::ModerationApi* | [**get_api_comments**](docs/ModerationApi.md#get_api_comments) | **GET** /auth/my-account/moderate-comments/api/comments | -*FastCommentsClient::ModerationApi* | [**get_api_export_status**](docs/ModerationApi.md#get_api_export_status) | **GET** /auth/my-account/moderate-comments/api/export/status | -*FastCommentsClient::ModerationApi* | [**get_api_ids**](docs/ModerationApi.md#get_api_ids) | **GET** /auth/my-account/moderate-comments/api/ids | -*FastCommentsClient::ModerationApi* | [**get_ban_users_from_comment**](docs/ModerationApi.md#get_ban_users_from_comment) | **GET** /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} | -*FastCommentsClient::ModerationApi* | [**get_comment_ban_status**](docs/ModerationApi.md#get_comment_ban_status) | **GET** /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} | -*FastCommentsClient::ModerationApi* | [**get_comment_children**](docs/ModerationApi.md#get_comment_children) | **GET** /auth/my-account/moderate-comments/comment-children/{commentId} | -*FastCommentsClient::ModerationApi* | [**get_count**](docs/ModerationApi.md#get_count) | **GET** /auth/my-account/moderate-comments/count | -*FastCommentsClient::ModerationApi* | [**get_counts**](docs/ModerationApi.md#get_counts) | **GET** /auth/my-account/moderate-comments/banned-users/counts | -*FastCommentsClient::ModerationApi* | [**get_logs**](docs/ModerationApi.md#get_logs) | **GET** /auth/my-account/moderate-comments/logs/{commentId} | -*FastCommentsClient::ModerationApi* | [**get_manual_badges**](docs/ModerationApi.md#get_manual_badges) | **GET** /auth/my-account/moderate-comments/get-manual-badges | -*FastCommentsClient::ModerationApi* | [**get_manual_badges_for_user**](docs/ModerationApi.md#get_manual_badges_for_user) | **GET** /auth/my-account/moderate-comments/get-manual-badges-for-user | -*FastCommentsClient::ModerationApi* | [**get_moderation_comment**](docs/ModerationApi.md#get_moderation_comment) | **GET** /auth/my-account/moderate-comments/comment/{commentId} | -*FastCommentsClient::ModerationApi* | [**get_moderation_comment_text**](docs/ModerationApi.md#get_moderation_comment_text) | **GET** /auth/my-account/moderate-comments/get-comment-text/{commentId} | -*FastCommentsClient::ModerationApi* | [**get_pre_ban_summary**](docs/ModerationApi.md#get_pre_ban_summary) | **GET** /auth/my-account/moderate-comments/pre-ban-summary/{commentId} | -*FastCommentsClient::ModerationApi* | [**get_search_comments_summary**](docs/ModerationApi.md#get_search_comments_summary) | **GET** /auth/my-account/moderate-comments/search/comments/summary | -*FastCommentsClient::ModerationApi* | [**get_search_pages**](docs/ModerationApi.md#get_search_pages) | **GET** /auth/my-account/moderate-comments/search/pages | -*FastCommentsClient::ModerationApi* | [**get_search_sites**](docs/ModerationApi.md#get_search_sites) | **GET** /auth/my-account/moderate-comments/search/sites | -*FastCommentsClient::ModerationApi* | [**get_search_suggest**](docs/ModerationApi.md#get_search_suggest) | **GET** /auth/my-account/moderate-comments/search/suggest | -*FastCommentsClient::ModerationApi* | [**get_search_users**](docs/ModerationApi.md#get_search_users) | **GET** /auth/my-account/moderate-comments/search/users | -*FastCommentsClient::ModerationApi* | [**get_trust_factor**](docs/ModerationApi.md#get_trust_factor) | **GET** /auth/my-account/moderate-comments/get-trust-factor | -*FastCommentsClient::ModerationApi* | [**get_user_ban_preference**](docs/ModerationApi.md#get_user_ban_preference) | **GET** /auth/my-account/moderate-comments/user-ban-preference | -*FastCommentsClient::ModerationApi* | [**get_user_internal_profile**](docs/ModerationApi.md#get_user_internal_profile) | **GET** /auth/my-account/moderate-comments/get-user-internal-profile | -*FastCommentsClient::ModerationApi* | [**post_adjust_comment_votes**](docs/ModerationApi.md#post_adjust_comment_votes) | **POST** /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} | -*FastCommentsClient::ModerationApi* | [**post_api_export**](docs/ModerationApi.md#post_api_export) | **POST** /auth/my-account/moderate-comments/api/export | -*FastCommentsClient::ModerationApi* | [**post_ban_user_from_comment**](docs/ModerationApi.md#post_ban_user_from_comment) | **POST** /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} | -*FastCommentsClient::ModerationApi* | [**post_ban_user_undo**](docs/ModerationApi.md#post_ban_user_undo) | **POST** /auth/my-account/moderate-comments/ban-user/undo | -*FastCommentsClient::ModerationApi* | [**post_bulk_pre_ban_summary**](docs/ModerationApi.md#post_bulk_pre_ban_summary) | **POST** /auth/my-account/moderate-comments/bulk-pre-ban-summary | -*FastCommentsClient::ModerationApi* | [**post_comments_by_ids**](docs/ModerationApi.md#post_comments_by_ids) | **POST** /auth/my-account/moderate-comments/comments-by-ids | -*FastCommentsClient::ModerationApi* | [**post_flag_comment**](docs/ModerationApi.md#post_flag_comment) | **POST** /auth/my-account/moderate-comments/flag-comment/{commentId} | -*FastCommentsClient::ModerationApi* | [**post_remove_comment**](docs/ModerationApi.md#post_remove_comment) | **POST** /auth/my-account/moderate-comments/remove-comment/{commentId} | -*FastCommentsClient::ModerationApi* | [**post_restore_deleted_comment**](docs/ModerationApi.md#post_restore_deleted_comment) | **POST** /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} | -*FastCommentsClient::ModerationApi* | [**post_set_comment_approval_status**](docs/ModerationApi.md#post_set_comment_approval_status) | **POST** /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} | -*FastCommentsClient::ModerationApi* | [**post_set_comment_review_status**](docs/ModerationApi.md#post_set_comment_review_status) | **POST** /auth/my-account/moderate-comments/set-comment-review-status/{commentId} | -*FastCommentsClient::ModerationApi* | [**post_set_comment_spam_status**](docs/ModerationApi.md#post_set_comment_spam_status) | **POST** /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} | -*FastCommentsClient::ModerationApi* | [**post_set_comment_text**](docs/ModerationApi.md#post_set_comment_text) | **POST** /auth/my-account/moderate-comments/set-comment-text/{commentId} | -*FastCommentsClient::ModerationApi* | [**post_un_flag_comment**](docs/ModerationApi.md#post_un_flag_comment) | **POST** /auth/my-account/moderate-comments/un-flag-comment/{commentId} | -*FastCommentsClient::ModerationApi* | [**post_vote**](docs/ModerationApi.md#post_vote) | **POST** /auth/my-account/moderate-comments/vote/{commentId} | -*FastCommentsClient::ModerationApi* | [**put_award_badge**](docs/ModerationApi.md#put_award_badge) | **PUT** /auth/my-account/moderate-comments/award-badge | -*FastCommentsClient::ModerationApi* | [**put_close_thread**](docs/ModerationApi.md#put_close_thread) | **PUT** /auth/my-account/moderate-comments/close-thread | -*FastCommentsClient::ModerationApi* | [**put_remove_badge**](docs/ModerationApi.md#put_remove_badge) | **PUT** /auth/my-account/moderate-comments/remove-badge | -*FastCommentsClient::ModerationApi* | [**put_reopen_thread**](docs/ModerationApi.md#put_reopen_thread) | **PUT** /auth/my-account/moderate-comments/reopen-thread | -*FastCommentsClient::ModerationApi* | [**set_trust_factor**](docs/ModerationApi.md#set_trust_factor) | **PUT** /auth/my-account/moderate-comments/set-trust-factor | +*FastCommentsClient::ModerationApi* | [**delete_moderation_vote**](docs/ModerationApi.md#delete_moderation_vote) | **DELETE** /auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId} | +*FastCommentsClient::ModerationApi* | [**get_api_comments**](docs/ModerationApi.md#get_api_comments) | **GET** /auth/my-account/moderate-comments/mod_api/api/comments | +*FastCommentsClient::ModerationApi* | [**get_api_export_status**](docs/ModerationApi.md#get_api_export_status) | **GET** /auth/my-account/moderate-comments/mod_api/api/export/status | +*FastCommentsClient::ModerationApi* | [**get_api_ids**](docs/ModerationApi.md#get_api_ids) | **GET** /auth/my-account/moderate-comments/mod_api/api/ids | +*FastCommentsClient::ModerationApi* | [**get_ban_users_from_comment**](docs/ModerationApi.md#get_ban_users_from_comment) | **GET** /auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId} | +*FastCommentsClient::ModerationApi* | [**get_comment_ban_status**](docs/ModerationApi.md#get_comment_ban_status) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId} | +*FastCommentsClient::ModerationApi* | [**get_comment_children**](docs/ModerationApi.md#get_comment_children) | **GET** /auth/my-account/moderate-comments/mod_api/comment-children/{commentId} | +*FastCommentsClient::ModerationApi* | [**get_count**](docs/ModerationApi.md#get_count) | **GET** /auth/my-account/moderate-comments/mod_api/count | +*FastCommentsClient::ModerationApi* | [**get_counts**](docs/ModerationApi.md#get_counts) | **GET** /auth/my-account/moderate-comments/banned-users/mod_api/counts | +*FastCommentsClient::ModerationApi* | [**get_logs**](docs/ModerationApi.md#get_logs) | **GET** /auth/my-account/moderate-comments/mod_api/logs/{commentId} | +*FastCommentsClient::ModerationApi* | [**get_manual_badges**](docs/ModerationApi.md#get_manual_badges) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges | +*FastCommentsClient::ModerationApi* | [**get_manual_badges_for_user**](docs/ModerationApi.md#get_manual_badges_for_user) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user | +*FastCommentsClient::ModerationApi* | [**get_moderation_comment**](docs/ModerationApi.md#get_moderation_comment) | **GET** /auth/my-account/moderate-comments/mod_api/comment/{commentId} | +*FastCommentsClient::ModerationApi* | [**get_moderation_comment_text**](docs/ModerationApi.md#get_moderation_comment_text) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId} | +*FastCommentsClient::ModerationApi* | [**get_pre_ban_summary**](docs/ModerationApi.md#get_pre_ban_summary) | **GET** /auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId} | +*FastCommentsClient::ModerationApi* | [**get_search_comments_summary**](docs/ModerationApi.md#get_search_comments_summary) | **GET** /auth/my-account/moderate-comments/mod_api/search/comments/summary | +*FastCommentsClient::ModerationApi* | [**get_search_pages**](docs/ModerationApi.md#get_search_pages) | **GET** /auth/my-account/moderate-comments/mod_api/search/pages | +*FastCommentsClient::ModerationApi* | [**get_search_sites**](docs/ModerationApi.md#get_search_sites) | **GET** /auth/my-account/moderate-comments/mod_api/search/sites | +*FastCommentsClient::ModerationApi* | [**get_search_suggest**](docs/ModerationApi.md#get_search_suggest) | **GET** /auth/my-account/moderate-comments/mod_api/search/suggest | +*FastCommentsClient::ModerationApi* | [**get_search_users**](docs/ModerationApi.md#get_search_users) | **GET** /auth/my-account/moderate-comments/mod_api/search/users | +*FastCommentsClient::ModerationApi* | [**get_trust_factor**](docs/ModerationApi.md#get_trust_factor) | **GET** /auth/my-account/moderate-comments/mod_api/get-trust-factor | +*FastCommentsClient::ModerationApi* | [**get_user_ban_preference**](docs/ModerationApi.md#get_user_ban_preference) | **GET** /auth/my-account/moderate-comments/mod_api/user-ban-preference | +*FastCommentsClient::ModerationApi* | [**get_user_internal_profile**](docs/ModerationApi.md#get_user_internal_profile) | **GET** /auth/my-account/moderate-comments/mod_api/get-user-internal-profile | +*FastCommentsClient::ModerationApi* | [**post_adjust_comment_votes**](docs/ModerationApi.md#post_adjust_comment_votes) | **POST** /auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId} | +*FastCommentsClient::ModerationApi* | [**post_api_export**](docs/ModerationApi.md#post_api_export) | **POST** /auth/my-account/moderate-comments/mod_api/api/export | +*FastCommentsClient::ModerationApi* | [**post_ban_user_from_comment**](docs/ModerationApi.md#post_ban_user_from_comment) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId} | +*FastCommentsClient::ModerationApi* | [**post_ban_user_undo**](docs/ModerationApi.md#post_ban_user_undo) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/undo | +*FastCommentsClient::ModerationApi* | [**post_bulk_pre_ban_summary**](docs/ModerationApi.md#post_bulk_pre_ban_summary) | **POST** /auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary | +*FastCommentsClient::ModerationApi* | [**post_comments_by_ids**](docs/ModerationApi.md#post_comments_by_ids) | **POST** /auth/my-account/moderate-comments/mod_api/comments-by-ids | +*FastCommentsClient::ModerationApi* | [**post_flag_comment**](docs/ModerationApi.md#post_flag_comment) | **POST** /auth/my-account/moderate-comments/mod_api/flag-comment/{commentId} | +*FastCommentsClient::ModerationApi* | [**post_remove_comment**](docs/ModerationApi.md#post_remove_comment) | **POST** /auth/my-account/moderate-comments/mod_api/remove-comment/{commentId} | +*FastCommentsClient::ModerationApi* | [**post_restore_deleted_comment**](docs/ModerationApi.md#post_restore_deleted_comment) | **POST** /auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId} | +*FastCommentsClient::ModerationApi* | [**post_set_comment_approval_status**](docs/ModerationApi.md#post_set_comment_approval_status) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId} | +*FastCommentsClient::ModerationApi* | [**post_set_comment_review_status**](docs/ModerationApi.md#post_set_comment_review_status) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId} | +*FastCommentsClient::ModerationApi* | [**post_set_comment_spam_status**](docs/ModerationApi.md#post_set_comment_spam_status) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId} | +*FastCommentsClient::ModerationApi* | [**post_set_comment_text**](docs/ModerationApi.md#post_set_comment_text) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId} | +*FastCommentsClient::ModerationApi* | [**post_un_flag_comment**](docs/ModerationApi.md#post_un_flag_comment) | **POST** /auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId} | +*FastCommentsClient::ModerationApi* | [**post_vote**](docs/ModerationApi.md#post_vote) | **POST** /auth/my-account/moderate-comments/mod_api/vote/{commentId} | +*FastCommentsClient::ModerationApi* | [**put_award_badge**](docs/ModerationApi.md#put_award_badge) | **PUT** /auth/my-account/moderate-comments/mod_api/award-badge | +*FastCommentsClient::ModerationApi* | [**put_close_thread**](docs/ModerationApi.md#put_close_thread) | **PUT** /auth/my-account/moderate-comments/mod_api/close-thread | +*FastCommentsClient::ModerationApi* | [**put_remove_badge**](docs/ModerationApi.md#put_remove_badge) | **PUT** /auth/my-account/moderate-comments/mod_api/remove-badge | +*FastCommentsClient::ModerationApi* | [**put_reopen_thread**](docs/ModerationApi.md#put_reopen_thread) | **PUT** /auth/my-account/moderate-comments/mod_api/reopen-thread | +*FastCommentsClient::ModerationApi* | [**set_trust_factor**](docs/ModerationApi.md#set_trust_factor) | **PUT** /auth/my-account/moderate-comments/mod_api/set-trust-factor | *FastCommentsClient::PublicApi* | [**block_from_comment_public**](docs/PublicApi.md#block_from_comment_public) | **POST** /block-from-comment/{commentId} | *FastCommentsClient::PublicApi* | [**checked_comments_for_blocked**](docs/PublicApi.md#checked_comments_for_blocked) | **GET** /check-blocked-comments | *FastCommentsClient::PublicApi* | [**create_comment_public**](docs/PublicApi.md#create_comment_public) | **POST** /comments/{tenantId} | @@ -556,7 +556,7 @@ Class | Method | HTTP request | Description - [FastCommentsClient::PatchPageAPIResponse](docs/PatchPageAPIResponse.md) - [FastCommentsClient::PatchSSOUserAPIResponse](docs/PatchSSOUserAPIResponse.md) - [FastCommentsClient::PendingCommentToSyncOutbound](docs/PendingCommentToSyncOutbound.md) - - [FastCommentsClient::PostRemoveCommentResponse](docs/PostRemoveCommentResponse.md) + - [FastCommentsClient::PostRemoveCommentApiResponse](docs/PostRemoveCommentApiResponse.md) - [FastCommentsClient::PreBanSummary](docs/PreBanSummary.md) - [FastCommentsClient::PubSubComment](docs/PubSubComment.md) - [FastCommentsClient::PubSubCommentBase](docs/PubSubCommentBase.md) diff --git a/client/docs/DefaultApi.md b/client/docs/DefaultApi.md index 1de28b3..cec3ba4 100644 --- a/client/docs/DefaultApi.md +++ b/client/docs/DefaultApi.md @@ -193,7 +193,7 @@ end ## add_hash_tag -> add_hash_tag(create_hash_tag_body, opts) +> add_hash_tag(tenant_id, create_hash_tag_body) @@ -211,14 +211,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | create_hash_tag_body = FastCommentsClient::CreateHashTagBody.new({tag: 'tag_example'}) # CreateHashTagBody | -opts = { - tenant_id: 'tenant_id_example' # String | -} begin - result = api_instance.add_hash_tag(create_hash_tag_body, opts) + result = api_instance.add_hash_tag(tenant_id, create_hash_tag_body) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->add_hash_tag: #{e}" @@ -229,12 +227,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> add_hash_tag_with_http_info(create_hash_tag_body, opts) +> , Integer, Hash)> add_hash_tag_with_http_info(tenant_id, create_hash_tag_body) ```ruby begin - data, status_code, headers = api_instance.add_hash_tag_with_http_info(create_hash_tag_body, opts) + data, status_code, headers = api_instance.add_hash_tag_with_http_info(tenant_id, create_hash_tag_body) p status_code # => 2xx p headers # => { ... } p data # => @@ -247,7 +245,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **tenant_id** | **String** | | [optional] | +| **tenant_id** | **String** | | | | **create_hash_tag_body** | [**CreateHashTagBody**](CreateHashTagBody.md) | | [optional] | ### Return type @@ -266,7 +264,7 @@ end ## add_hash_tags_bulk -> add_hash_tags_bulk(bulk_create_hash_tags_body, opts) +> add_hash_tags_bulk(tenant_id, bulk_create_hash_tags_body) @@ -284,14 +282,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | bulk_create_hash_tags_body = FastCommentsClient::BulkCreateHashTagsBody.new({tags: [FastCommentsClient::BulkCreateHashTagsBodyTagsInner.new({tag: 'tag_example'})]}) # BulkCreateHashTagsBody | -opts = { - tenant_id: 'tenant_id_example' # String | -} begin - result = api_instance.add_hash_tags_bulk(bulk_create_hash_tags_body, opts) + result = api_instance.add_hash_tags_bulk(tenant_id, bulk_create_hash_tags_body) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->add_hash_tags_bulk: #{e}" @@ -302,12 +298,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> add_hash_tags_bulk_with_http_info(bulk_create_hash_tags_body, opts) +> , Integer, Hash)> add_hash_tags_bulk_with_http_info(tenant_id, bulk_create_hash_tags_body) ```ruby begin - data, status_code, headers = api_instance.add_hash_tags_bulk_with_http_info(bulk_create_hash_tags_body, opts) + data, status_code, headers = api_instance.add_hash_tags_bulk_with_http_info(tenant_id, bulk_create_hash_tags_body) p status_code # => 2xx p headers # => { ... } p data # => @@ -320,7 +316,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **tenant_id** | **String** | | [optional] | +| **tenant_id** | **String** | | | | **bulk_create_hash_tags_body** | [**BulkCreateHashTagsBody**](BulkCreateHashTagsBody.md) | | [optional] | ### Return type @@ -2123,7 +2119,7 @@ end ## delete_hash_tag -> delete_hash_tag(tag, delete_hash_tag_request_body, opts) +> delete_hash_tag(tenant_id, tag, delete_hash_tag_request_body) @@ -2141,15 +2137,13 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | tag = 'tag_example' # String | delete_hash_tag_request_body = FastCommentsClient::DeleteHashTagRequestBody.new # DeleteHashTagRequestBody | -opts = { - tenant_id: 'tenant_id_example' # String | -} begin - result = api_instance.delete_hash_tag(tag, delete_hash_tag_request_body, opts) + result = api_instance.delete_hash_tag(tenant_id, tag, delete_hash_tag_request_body) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_hash_tag: #{e}" @@ -2160,12 +2154,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_hash_tag_with_http_info(tag, delete_hash_tag_request_body, opts) +> , Integer, Hash)> delete_hash_tag_with_http_info(tenant_id, tag, delete_hash_tag_request_body) ```ruby begin - data, status_code, headers = api_instance.delete_hash_tag_with_http_info(tag, delete_hash_tag_request_body, opts) + data, status_code, headers = api_instance.delete_hash_tag_with_http_info(tenant_id, tag, delete_hash_tag_request_body) p status_code # => 2xx p headers # => { ... } p data # => @@ -2178,8 +2172,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **tag** | **String** | | | -| **tenant_id** | **String** | | [optional] | | **delete_hash_tag_request_body** | [**DeleteHashTagRequestBody**](DeleteHashTagRequestBody.md) | | [optional] | ### Return type @@ -6666,7 +6660,7 @@ end ## patch_hash_tag -> patch_hash_tag(tag, update_hash_tag_body, opts) +> patch_hash_tag(tenant_id, tag, update_hash_tag_body) @@ -6684,15 +6678,13 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | tag = 'tag_example' # String | update_hash_tag_body = FastCommentsClient::UpdateHashTagBody.new # UpdateHashTagBody | -opts = { - tenant_id: 'tenant_id_example' # String | -} begin - result = api_instance.patch_hash_tag(tag, update_hash_tag_body, opts) + result = api_instance.patch_hash_tag(tenant_id, tag, update_hash_tag_body) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->patch_hash_tag: #{e}" @@ -6703,12 +6695,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> patch_hash_tag_with_http_info(tag, update_hash_tag_body, opts) +> , Integer, Hash)> patch_hash_tag_with_http_info(tenant_id, tag, update_hash_tag_body) ```ruby begin - data, status_code, headers = api_instance.patch_hash_tag_with_http_info(tag, update_hash_tag_body, opts) + data, status_code, headers = api_instance.patch_hash_tag_with_http_info(tenant_id, tag, update_hash_tag_body) p status_code # => 2xx p headers # => { ... } p data # => @@ -6721,8 +6713,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **tag** | **String** | | | -| **tenant_id** | **String** | | [optional] | | **update_hash_tag_body** | [**UpdateHashTagBody**](UpdateHashTagBody.md) | | [optional] | ### Return type diff --git a/client/docs/ModerationApi.md b/client/docs/ModerationApi.md index e835043..4a85891 100644 --- a/client/docs/ModerationApi.md +++ b/client/docs/ModerationApi.md @@ -4,54 +4,54 @@ All URIs are relative to *https://fastcomments.com* | Method | HTTP request | Description | | ------ | ------------ | ----------- | -| [**delete_moderation_vote**](ModerationApi.md#delete_moderation_vote) | **DELETE** /auth/my-account/moderate-comments/vote/{commentId}/{voteId} | | -| [**get_api_comments**](ModerationApi.md#get_api_comments) | **GET** /auth/my-account/moderate-comments/api/comments | | -| [**get_api_export_status**](ModerationApi.md#get_api_export_status) | **GET** /auth/my-account/moderate-comments/api/export/status | | -| [**get_api_ids**](ModerationApi.md#get_api_ids) | **GET** /auth/my-account/moderate-comments/api/ids | | -| [**get_ban_users_from_comment**](ModerationApi.md#get_ban_users_from_comment) | **GET** /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} | | -| [**get_comment_ban_status**](ModerationApi.md#get_comment_ban_status) | **GET** /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} | | -| [**get_comment_children**](ModerationApi.md#get_comment_children) | **GET** /auth/my-account/moderate-comments/comment-children/{commentId} | | -| [**get_count**](ModerationApi.md#get_count) | **GET** /auth/my-account/moderate-comments/count | | -| [**get_counts**](ModerationApi.md#get_counts) | **GET** /auth/my-account/moderate-comments/banned-users/counts | | -| [**get_logs**](ModerationApi.md#get_logs) | **GET** /auth/my-account/moderate-comments/logs/{commentId} | | -| [**get_manual_badges**](ModerationApi.md#get_manual_badges) | **GET** /auth/my-account/moderate-comments/get-manual-badges | | -| [**get_manual_badges_for_user**](ModerationApi.md#get_manual_badges_for_user) | **GET** /auth/my-account/moderate-comments/get-manual-badges-for-user | | -| [**get_moderation_comment**](ModerationApi.md#get_moderation_comment) | **GET** /auth/my-account/moderate-comments/comment/{commentId} | | -| [**get_moderation_comment_text**](ModerationApi.md#get_moderation_comment_text) | **GET** /auth/my-account/moderate-comments/get-comment-text/{commentId} | | -| [**get_pre_ban_summary**](ModerationApi.md#get_pre_ban_summary) | **GET** /auth/my-account/moderate-comments/pre-ban-summary/{commentId} | | -| [**get_search_comments_summary**](ModerationApi.md#get_search_comments_summary) | **GET** /auth/my-account/moderate-comments/search/comments/summary | | -| [**get_search_pages**](ModerationApi.md#get_search_pages) | **GET** /auth/my-account/moderate-comments/search/pages | | -| [**get_search_sites**](ModerationApi.md#get_search_sites) | **GET** /auth/my-account/moderate-comments/search/sites | | -| [**get_search_suggest**](ModerationApi.md#get_search_suggest) | **GET** /auth/my-account/moderate-comments/search/suggest | | -| [**get_search_users**](ModerationApi.md#get_search_users) | **GET** /auth/my-account/moderate-comments/search/users | | -| [**get_trust_factor**](ModerationApi.md#get_trust_factor) | **GET** /auth/my-account/moderate-comments/get-trust-factor | | -| [**get_user_ban_preference**](ModerationApi.md#get_user_ban_preference) | **GET** /auth/my-account/moderate-comments/user-ban-preference | | -| [**get_user_internal_profile**](ModerationApi.md#get_user_internal_profile) | **GET** /auth/my-account/moderate-comments/get-user-internal-profile | | -| [**post_adjust_comment_votes**](ModerationApi.md#post_adjust_comment_votes) | **POST** /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} | | -| [**post_api_export**](ModerationApi.md#post_api_export) | **POST** /auth/my-account/moderate-comments/api/export | | -| [**post_ban_user_from_comment**](ModerationApi.md#post_ban_user_from_comment) | **POST** /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} | | -| [**post_ban_user_undo**](ModerationApi.md#post_ban_user_undo) | **POST** /auth/my-account/moderate-comments/ban-user/undo | | -| [**post_bulk_pre_ban_summary**](ModerationApi.md#post_bulk_pre_ban_summary) | **POST** /auth/my-account/moderate-comments/bulk-pre-ban-summary | | -| [**post_comments_by_ids**](ModerationApi.md#post_comments_by_ids) | **POST** /auth/my-account/moderate-comments/comments-by-ids | | -| [**post_flag_comment**](ModerationApi.md#post_flag_comment) | **POST** /auth/my-account/moderate-comments/flag-comment/{commentId} | | -| [**post_remove_comment**](ModerationApi.md#post_remove_comment) | **POST** /auth/my-account/moderate-comments/remove-comment/{commentId} | | -| [**post_restore_deleted_comment**](ModerationApi.md#post_restore_deleted_comment) | **POST** /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} | | -| [**post_set_comment_approval_status**](ModerationApi.md#post_set_comment_approval_status) | **POST** /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} | | -| [**post_set_comment_review_status**](ModerationApi.md#post_set_comment_review_status) | **POST** /auth/my-account/moderate-comments/set-comment-review-status/{commentId} | | -| [**post_set_comment_spam_status**](ModerationApi.md#post_set_comment_spam_status) | **POST** /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} | | -| [**post_set_comment_text**](ModerationApi.md#post_set_comment_text) | **POST** /auth/my-account/moderate-comments/set-comment-text/{commentId} | | -| [**post_un_flag_comment**](ModerationApi.md#post_un_flag_comment) | **POST** /auth/my-account/moderate-comments/un-flag-comment/{commentId} | | -| [**post_vote**](ModerationApi.md#post_vote) | **POST** /auth/my-account/moderate-comments/vote/{commentId} | | -| [**put_award_badge**](ModerationApi.md#put_award_badge) | **PUT** /auth/my-account/moderate-comments/award-badge | | -| [**put_close_thread**](ModerationApi.md#put_close_thread) | **PUT** /auth/my-account/moderate-comments/close-thread | | -| [**put_remove_badge**](ModerationApi.md#put_remove_badge) | **PUT** /auth/my-account/moderate-comments/remove-badge | | -| [**put_reopen_thread**](ModerationApi.md#put_reopen_thread) | **PUT** /auth/my-account/moderate-comments/reopen-thread | | -| [**set_trust_factor**](ModerationApi.md#set_trust_factor) | **PUT** /auth/my-account/moderate-comments/set-trust-factor | | +| [**delete_moderation_vote**](ModerationApi.md#delete_moderation_vote) | **DELETE** /auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId} | | +| [**get_api_comments**](ModerationApi.md#get_api_comments) | **GET** /auth/my-account/moderate-comments/mod_api/api/comments | | +| [**get_api_export_status**](ModerationApi.md#get_api_export_status) | **GET** /auth/my-account/moderate-comments/mod_api/api/export/status | | +| [**get_api_ids**](ModerationApi.md#get_api_ids) | **GET** /auth/my-account/moderate-comments/mod_api/api/ids | | +| [**get_ban_users_from_comment**](ModerationApi.md#get_ban_users_from_comment) | **GET** /auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId} | | +| [**get_comment_ban_status**](ModerationApi.md#get_comment_ban_status) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId} | | +| [**get_comment_children**](ModerationApi.md#get_comment_children) | **GET** /auth/my-account/moderate-comments/mod_api/comment-children/{commentId} | | +| [**get_count**](ModerationApi.md#get_count) | **GET** /auth/my-account/moderate-comments/mod_api/count | | +| [**get_counts**](ModerationApi.md#get_counts) | **GET** /auth/my-account/moderate-comments/banned-users/mod_api/counts | | +| [**get_logs**](ModerationApi.md#get_logs) | **GET** /auth/my-account/moderate-comments/mod_api/logs/{commentId} | | +| [**get_manual_badges**](ModerationApi.md#get_manual_badges) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges | | +| [**get_manual_badges_for_user**](ModerationApi.md#get_manual_badges_for_user) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user | | +| [**get_moderation_comment**](ModerationApi.md#get_moderation_comment) | **GET** /auth/my-account/moderate-comments/mod_api/comment/{commentId} | | +| [**get_moderation_comment_text**](ModerationApi.md#get_moderation_comment_text) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId} | | +| [**get_pre_ban_summary**](ModerationApi.md#get_pre_ban_summary) | **GET** /auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId} | | +| [**get_search_comments_summary**](ModerationApi.md#get_search_comments_summary) | **GET** /auth/my-account/moderate-comments/mod_api/search/comments/summary | | +| [**get_search_pages**](ModerationApi.md#get_search_pages) | **GET** /auth/my-account/moderate-comments/mod_api/search/pages | | +| [**get_search_sites**](ModerationApi.md#get_search_sites) | **GET** /auth/my-account/moderate-comments/mod_api/search/sites | | +| [**get_search_suggest**](ModerationApi.md#get_search_suggest) | **GET** /auth/my-account/moderate-comments/mod_api/search/suggest | | +| [**get_search_users**](ModerationApi.md#get_search_users) | **GET** /auth/my-account/moderate-comments/mod_api/search/users | | +| [**get_trust_factor**](ModerationApi.md#get_trust_factor) | **GET** /auth/my-account/moderate-comments/mod_api/get-trust-factor | | +| [**get_user_ban_preference**](ModerationApi.md#get_user_ban_preference) | **GET** /auth/my-account/moderate-comments/mod_api/user-ban-preference | | +| [**get_user_internal_profile**](ModerationApi.md#get_user_internal_profile) | **GET** /auth/my-account/moderate-comments/mod_api/get-user-internal-profile | | +| [**post_adjust_comment_votes**](ModerationApi.md#post_adjust_comment_votes) | **POST** /auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId} | | +| [**post_api_export**](ModerationApi.md#post_api_export) | **POST** /auth/my-account/moderate-comments/mod_api/api/export | | +| [**post_ban_user_from_comment**](ModerationApi.md#post_ban_user_from_comment) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId} | | +| [**post_ban_user_undo**](ModerationApi.md#post_ban_user_undo) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/undo | | +| [**post_bulk_pre_ban_summary**](ModerationApi.md#post_bulk_pre_ban_summary) | **POST** /auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary | | +| [**post_comments_by_ids**](ModerationApi.md#post_comments_by_ids) | **POST** /auth/my-account/moderate-comments/mod_api/comments-by-ids | | +| [**post_flag_comment**](ModerationApi.md#post_flag_comment) | **POST** /auth/my-account/moderate-comments/mod_api/flag-comment/{commentId} | | +| [**post_remove_comment**](ModerationApi.md#post_remove_comment) | **POST** /auth/my-account/moderate-comments/mod_api/remove-comment/{commentId} | | +| [**post_restore_deleted_comment**](ModerationApi.md#post_restore_deleted_comment) | **POST** /auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId} | | +| [**post_set_comment_approval_status**](ModerationApi.md#post_set_comment_approval_status) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId} | | +| [**post_set_comment_review_status**](ModerationApi.md#post_set_comment_review_status) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId} | | +| [**post_set_comment_spam_status**](ModerationApi.md#post_set_comment_spam_status) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId} | | +| [**post_set_comment_text**](ModerationApi.md#post_set_comment_text) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId} | | +| [**post_un_flag_comment**](ModerationApi.md#post_un_flag_comment) | **POST** /auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId} | | +| [**post_vote**](ModerationApi.md#post_vote) | **POST** /auth/my-account/moderate-comments/mod_api/vote/{commentId} | | +| [**put_award_badge**](ModerationApi.md#put_award_badge) | **PUT** /auth/my-account/moderate-comments/mod_api/award-badge | | +| [**put_close_thread**](ModerationApi.md#put_close_thread) | **PUT** /auth/my-account/moderate-comments/mod_api/close-thread | | +| [**put_remove_badge**](ModerationApi.md#put_remove_badge) | **PUT** /auth/my-account/moderate-comments/mod_api/remove-badge | | +| [**put_reopen_thread**](ModerationApi.md#put_reopen_thread) | **PUT** /auth/my-account/moderate-comments/mod_api/reopen-thread | | +| [**set_trust_factor**](ModerationApi.md#set_trust_factor) | **PUT** /auth/my-account/moderate-comments/mod_api/set-trust-factor | | ## delete_moderation_vote -> delete_moderation_vote(comment_id, vote_id, opts) +> delete_moderation_vote(tenant_id, comment_id, vote_id, opts) @@ -62,17 +62,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | vote_id = 'vote_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | broadcast_id: 'broadcast_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.delete_moderation_vote(comment_id, vote_id, opts) + result = api_instance.delete_moderation_vote(tenant_id, comment_id, vote_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->delete_moderation_vote: #{e}" @@ -83,12 +83,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_moderation_vote_with_http_info(comment_id, vote_id, opts) +> , Integer, Hash)> delete_moderation_vote_with_http_info(tenant_id, comment_id, vote_id, opts) ```ruby begin - data, status_code, headers = api_instance.delete_moderation_vote_with_http_info(comment_id, vote_id, opts) + data, status_code, headers = api_instance.delete_moderation_vote_with_http_info(tenant_id, comment_id, vote_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -101,9 +101,9 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | | **vote_id** | **String** | | | -| **tenant_id** | **String** | | [optional] | | **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | @@ -123,7 +123,7 @@ No authorization required ## get_api_comments -> get_api_comments(opts) +> get_api_comments(tenant_id, opts) @@ -134,6 +134,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { page: 1.2, # Float | count: 1.2, # Float | @@ -143,13 +144,12 @@ opts = { search_filters: 'search_filters_example', # String | sorts: 'sorts_example', # String | demo: true, # Boolean | - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.get_api_comments(opts) + result = api_instance.get_api_comments(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_api_comments: #{e}" @@ -160,12 +160,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_api_comments_with_http_info(opts) +> , Integer, Hash)> get_api_comments_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_api_comments_with_http_info(opts) + data, status_code, headers = api_instance.get_api_comments_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -178,6 +178,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **page** | **Float** | | [optional] | | **count** | **Float** | | [optional] | | **text_search** | **String** | | [optional] | @@ -186,7 +187,6 @@ end | **search_filters** | **String** | | [optional] | | **sorts** | **String** | | [optional] | | **demo** | **Boolean** | | [optional] | -| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -205,7 +205,7 @@ No authorization required ## get_api_export_status -> get_api_export_status(opts) +> get_api_export_status(tenant_id, opts) @@ -216,15 +216,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { batch_job_id: 'batch_job_id_example', # String | - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.get_api_export_status(opts) + result = api_instance.get_api_export_status(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_api_export_status: #{e}" @@ -235,12 +235,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_api_export_status_with_http_info(opts) +> , Integer, Hash)> get_api_export_status_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_api_export_status_with_http_info(opts) + data, status_code, headers = api_instance.get_api_export_status_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -253,8 +253,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **batch_job_id** | **String** | | [optional] | -| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -273,7 +273,7 @@ No authorization required ## get_api_ids -> get_api_ids(opts) +> get_api_ids(tenant_id, opts) @@ -284,6 +284,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { text_search: 'text_search_example', # String | by_ip_from_comment: 'by_ip_from_comment_example', # String | @@ -291,13 +292,12 @@ opts = { search_filters: 'search_filters_example', # String | after_id: 'after_id_example', # String | demo: true, # Boolean | - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.get_api_ids(opts) + result = api_instance.get_api_ids(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_api_ids: #{e}" @@ -308,12 +308,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_api_ids_with_http_info(opts) +> , Integer, Hash)> get_api_ids_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_api_ids_with_http_info(opts) + data, status_code, headers = api_instance.get_api_ids_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -326,13 +326,13 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **text_search** | **String** | | [optional] | | **by_ip_from_comment** | **String** | | [optional] | | **filters** | **String** | | [optional] | | **search_filters** | **String** | | [optional] | | **after_id** | **String** | | [optional] | | **demo** | **Boolean** | | [optional] | -| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -351,7 +351,7 @@ No authorization required ## get_ban_users_from_comment -> get_ban_users_from_comment(comment_id, opts) +> get_ban_users_from_comment(tenant_id, comment_id, opts) @@ -362,15 +362,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.get_ban_users_from_comment(comment_id, opts) + result = api_instance.get_ban_users_from_comment(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_ban_users_from_comment: #{e}" @@ -381,12 +381,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_ban_users_from_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> get_ban_users_from_comment_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_ban_users_from_comment_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.get_ban_users_from_comment_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -399,8 +399,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | -| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -419,7 +419,7 @@ No authorization required ## get_comment_ban_status -> get_comment_ban_status(comment_id, opts) +> get_comment_ban_status(tenant_id, comment_id, opts) @@ -430,15 +430,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.get_comment_ban_status(comment_id, opts) + result = api_instance.get_comment_ban_status(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_comment_ban_status: #{e}" @@ -449,12 +449,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comment_ban_status_with_http_info(comment_id, opts) +> , Integer, Hash)> get_comment_ban_status_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_comment_ban_status_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.get_comment_ban_status_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -467,8 +467,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | -| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -487,7 +487,7 @@ No authorization required ## get_comment_children -> get_comment_children(comment_id, opts) +> get_comment_children(tenant_id, comment_id, opts) @@ -498,15 +498,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.get_comment_children(comment_id, opts) + result = api_instance.get_comment_children(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_comment_children: #{e}" @@ -517,12 +517,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comment_children_with_http_info(comment_id, opts) +> , Integer, Hash)> get_comment_children_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_comment_children_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.get_comment_children_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -535,8 +535,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | -| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -555,7 +555,7 @@ No authorization required ## get_count -> get_count(opts) +> get_count(tenant_id, opts) @@ -566,19 +566,19 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { text_search: 'text_search_example', # String | by_ip_from_comment: 'by_ip_from_comment_example', # String | filter: 'filter_example', # String | search_filters: 'search_filters_example', # String | demo: true, # Boolean | - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.get_count(opts) + result = api_instance.get_count(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_count: #{e}" @@ -589,12 +589,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_count_with_http_info(opts) +> , Integer, Hash)> get_count_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_count_with_http_info(opts) + data, status_code, headers = api_instance.get_count_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -607,12 +607,12 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **text_search** | **String** | | [optional] | | **by_ip_from_comment** | **String** | | [optional] | | **filter** | **String** | | [optional] | | **search_filters** | **String** | | [optional] | | **demo** | **Boolean** | | [optional] | -| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -631,7 +631,7 @@ No authorization required ## get_counts -> get_counts(opts) +> get_counts(tenant_id, opts) @@ -642,14 +642,14 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.get_counts(opts) + result = api_instance.get_counts(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_counts: #{e}" @@ -660,12 +660,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_counts_with_http_info(opts) +> , Integer, Hash)> get_counts_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_counts_with_http_info(opts) + data, status_code, headers = api_instance.get_counts_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -678,7 +678,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **tenant_id** | **String** | | [optional] | +| **tenant_id** | **String** | | | | **sso** | **String** | | [optional] | ### Return type @@ -697,7 +697,7 @@ No authorization required ## get_logs -> get_logs(comment_id, opts) +> get_logs(tenant_id, comment_id, opts) @@ -708,15 +708,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.get_logs(comment_id, opts) + result = api_instance.get_logs(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_logs: #{e}" @@ -727,12 +727,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_logs_with_http_info(comment_id, opts) +> , Integer, Hash)> get_logs_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_logs_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.get_logs_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -745,8 +745,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | -| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -765,7 +765,7 @@ No authorization required ## get_manual_badges -> get_manual_badges(opts) +> get_manual_badges(tenant_id, opts) @@ -776,14 +776,14 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.get_manual_badges(opts) + result = api_instance.get_manual_badges(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_manual_badges: #{e}" @@ -794,12 +794,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_manual_badges_with_http_info(opts) +> , Integer, Hash)> get_manual_badges_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_manual_badges_with_http_info(opts) + data, status_code, headers = api_instance.get_manual_badges_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -812,7 +812,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **tenant_id** | **String** | | [optional] | +| **tenant_id** | **String** | | | | **sso** | **String** | | [optional] | ### Return type @@ -831,7 +831,7 @@ No authorization required ## get_manual_badges_for_user -> get_manual_badges_for_user(opts) +> get_manual_badges_for_user(tenant_id, opts) @@ -842,16 +842,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { badges_user_id: 'badges_user_id_example', # String | comment_id: 'comment_id_example', # String | - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.get_manual_badges_for_user(opts) + result = api_instance.get_manual_badges_for_user(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_manual_badges_for_user: #{e}" @@ -862,12 +862,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_manual_badges_for_user_with_http_info(opts) +> , Integer, Hash)> get_manual_badges_for_user_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_manual_badges_for_user_with_http_info(opts) + data, status_code, headers = api_instance.get_manual_badges_for_user_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -880,9 +880,9 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **badges_user_id** | **String** | | [optional] | | **comment_id** | **String** | | [optional] | -| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -901,7 +901,7 @@ No authorization required ## get_moderation_comment -> get_moderation_comment(comment_id, opts) +> get_moderation_comment(tenant_id, comment_id, opts) @@ -912,17 +912,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { include_email: true, # Boolean | include_ip: true, # Boolean | - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.get_moderation_comment(comment_id, opts) + result = api_instance.get_moderation_comment(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_moderation_comment: #{e}" @@ -933,12 +933,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_moderation_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> get_moderation_comment_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_moderation_comment_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.get_moderation_comment_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -951,10 +951,10 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | | **include_email** | **Boolean** | | [optional] | | **include_ip** | **Boolean** | | [optional] | -| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -973,7 +973,7 @@ No authorization required ## get_moderation_comment_text -> get_moderation_comment_text(comment_id, opts) +> get_moderation_comment_text(tenant_id, comment_id, opts) @@ -984,15 +984,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.get_moderation_comment_text(comment_id, opts) + result = api_instance.get_moderation_comment_text(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_moderation_comment_text: #{e}" @@ -1003,12 +1003,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_moderation_comment_text_with_http_info(comment_id, opts) +> , Integer, Hash)> get_moderation_comment_text_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_moderation_comment_text_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.get_moderation_comment_text_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1021,8 +1021,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | -| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -1041,7 +1041,7 @@ No authorization required ## get_pre_ban_summary -> get_pre_ban_summary(comment_id, opts) +> get_pre_ban_summary(tenant_id, comment_id, opts) @@ -1052,18 +1052,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { include_by_user_id_and_email: true, # Boolean | include_by_ip: true, # Boolean | include_by_email_domain: true, # Boolean | - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.get_pre_ban_summary(comment_id, opts) + result = api_instance.get_pre_ban_summary(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_pre_ban_summary: #{e}" @@ -1074,12 +1074,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_pre_ban_summary_with_http_info(comment_id, opts) +> , Integer, Hash)> get_pre_ban_summary_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_pre_ban_summary_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.get_pre_ban_summary_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1092,11 +1092,11 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | | **include_by_user_id_and_email** | **Boolean** | | [optional] | | **include_by_ip** | **Boolean** | | [optional] | | **include_by_email_domain** | **Boolean** | | [optional] | -| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -1115,7 +1115,7 @@ No authorization required ## get_search_comments_summary -> get_search_comments_summary(opts) +> get_search_comments_summary(tenant_id, opts) @@ -1126,17 +1126,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { value: 'value_example', # String | filters: 'filters_example', # String | search_filters: 'search_filters_example', # String | - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.get_search_comments_summary(opts) + result = api_instance.get_search_comments_summary(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_search_comments_summary: #{e}" @@ -1147,12 +1147,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_search_comments_summary_with_http_info(opts) +> , Integer, Hash)> get_search_comments_summary_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_search_comments_summary_with_http_info(opts) + data, status_code, headers = api_instance.get_search_comments_summary_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1165,10 +1165,10 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **value** | **String** | | [optional] | | **filters** | **String** | | [optional] | | **search_filters** | **String** | | [optional] | -| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -1187,7 +1187,7 @@ No authorization required ## get_search_pages -> get_search_pages(opts) +> get_search_pages(tenant_id, opts) @@ -1198,15 +1198,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { value: 'value_example', # String | - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.get_search_pages(opts) + result = api_instance.get_search_pages(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_search_pages: #{e}" @@ -1217,12 +1217,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_search_pages_with_http_info(opts) +> , Integer, Hash)> get_search_pages_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_search_pages_with_http_info(opts) + data, status_code, headers = api_instance.get_search_pages_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1235,8 +1235,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **value** | **String** | | [optional] | -| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -1255,7 +1255,7 @@ No authorization required ## get_search_sites -> get_search_sites(opts) +> get_search_sites(tenant_id, opts) @@ -1266,15 +1266,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { value: 'value_example', # String | - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.get_search_sites(opts) + result = api_instance.get_search_sites(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_search_sites: #{e}" @@ -1285,12 +1285,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_search_sites_with_http_info(opts) +> , Integer, Hash)> get_search_sites_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_search_sites_with_http_info(opts) + data, status_code, headers = api_instance.get_search_sites_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1303,8 +1303,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **value** | **String** | | [optional] | -| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -1323,7 +1323,7 @@ No authorization required ## get_search_suggest -> get_search_suggest(opts) +> get_search_suggest(tenant_id, opts) @@ -1334,15 +1334,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { text_search: 'text_search_example', # String | - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.get_search_suggest(opts) + result = api_instance.get_search_suggest(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_search_suggest: #{e}" @@ -1353,12 +1353,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_search_suggest_with_http_info(opts) +> , Integer, Hash)> get_search_suggest_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_search_suggest_with_http_info(opts) + data, status_code, headers = api_instance.get_search_suggest_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1371,8 +1371,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **text_search** | **String** | | [optional] | -| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -1391,7 +1391,7 @@ No authorization required ## get_search_users -> get_search_users(opts) +> get_search_users(tenant_id, opts) @@ -1402,15 +1402,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { value: 'value_example', # String | - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.get_search_users(opts) + result = api_instance.get_search_users(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_search_users: #{e}" @@ -1421,12 +1421,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_search_users_with_http_info(opts) +> , Integer, Hash)> get_search_users_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_search_users_with_http_info(opts) + data, status_code, headers = api_instance.get_search_users_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1439,8 +1439,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **value** | **String** | | [optional] | -| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -1459,7 +1459,7 @@ No authorization required ## get_trust_factor -> get_trust_factor(opts) +> get_trust_factor(tenant_id, opts) @@ -1470,15 +1470,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { user_id: 'user_id_example', # String | - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.get_trust_factor(opts) + result = api_instance.get_trust_factor(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_trust_factor: #{e}" @@ -1489,12 +1489,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_trust_factor_with_http_info(opts) +> , Integer, Hash)> get_trust_factor_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_trust_factor_with_http_info(opts) + data, status_code, headers = api_instance.get_trust_factor_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1507,8 +1507,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **user_id** | **String** | | [optional] | -| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -1527,7 +1527,7 @@ No authorization required ## get_user_ban_preference -> get_user_ban_preference(opts) +> get_user_ban_preference(tenant_id, opts) @@ -1538,14 +1538,14 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.get_user_ban_preference(opts) + result = api_instance.get_user_ban_preference(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_user_ban_preference: #{e}" @@ -1556,12 +1556,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_ban_preference_with_http_info(opts) +> , Integer, Hash)> get_user_ban_preference_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_user_ban_preference_with_http_info(opts) + data, status_code, headers = api_instance.get_user_ban_preference_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1574,7 +1574,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **tenant_id** | **String** | | [optional] | +| **tenant_id** | **String** | | | | **sso** | **String** | | [optional] | ### Return type @@ -1593,7 +1593,7 @@ No authorization required ## get_user_internal_profile -> get_user_internal_profile(opts) +> get_user_internal_profile(tenant_id, opts) @@ -1604,15 +1604,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { comment_id: 'comment_id_example', # String | - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.get_user_internal_profile(opts) + result = api_instance.get_user_internal_profile(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_user_internal_profile: #{e}" @@ -1623,12 +1623,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_internal_profile_with_http_info(opts) +> , Integer, Hash)> get_user_internal_profile_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_user_internal_profile_with_http_info(opts) + data, status_code, headers = api_instance.get_user_internal_profile_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1641,8 +1641,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | [optional] | -| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -1661,7 +1661,7 @@ No authorization required ## post_adjust_comment_votes -> post_adjust_comment_votes(comment_id, adjust_comment_votes_params, opts) +> post_adjust_comment_votes(tenant_id, comment_id, adjust_comment_votes_params, opts) @@ -1672,17 +1672,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | adjust_comment_votes_params = FastCommentsClient::AdjustCommentVotesParams.new({adjust_vote_amount: 3.56}) # AdjustCommentVotesParams | opts = { - tenant_id: 'tenant_id_example', # String | broadcast_id: 'broadcast_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.post_adjust_comment_votes(comment_id, adjust_comment_votes_params, opts) + result = api_instance.post_adjust_comment_votes(tenant_id, comment_id, adjust_comment_votes_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_adjust_comment_votes: #{e}" @@ -1693,12 +1693,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts) +> , Integer, Hash)> post_adjust_comment_votes_with_http_info(tenant_id, comment_id, adjust_comment_votes_params, opts) ```ruby begin - data, status_code, headers = api_instance.post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts) + data, status_code, headers = api_instance.post_adjust_comment_votes_with_http_info(tenant_id, comment_id, adjust_comment_votes_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1711,9 +1711,9 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | | **adjust_comment_votes_params** | [**AdjustCommentVotesParams**](AdjustCommentVotesParams.md) | | | -| **tenant_id** | **String** | | [optional] | | **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | @@ -1733,7 +1733,7 @@ No authorization required ## post_api_export -> post_api_export(opts) +> post_api_export(tenant_id, opts) @@ -1744,19 +1744,19 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { text_search: 'text_search_example', # String | by_ip_from_comment: 'by_ip_from_comment_example', # String | filters: 'filters_example', # String | search_filters: 'search_filters_example', # String | sorts: 'sorts_example', # String | - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.post_api_export(opts) + result = api_instance.post_api_export(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_api_export: #{e}" @@ -1767,12 +1767,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_api_export_with_http_info(opts) +> , Integer, Hash)> post_api_export_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_api_export_with_http_info(opts) + data, status_code, headers = api_instance.post_api_export_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1785,12 +1785,12 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **text_search** | **String** | | [optional] | | **by_ip_from_comment** | **String** | | [optional] | | **filters** | **String** | | [optional] | | **search_filters** | **String** | | [optional] | | **sorts** | **String** | | [optional] | -| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -1809,7 +1809,7 @@ No authorization required ## post_ban_user_from_comment -> post_ban_user_from_comment(comment_id, opts) +> post_ban_user_from_comment(tenant_id, comment_id, opts) @@ -1820,6 +1820,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { ban_email: true, # Boolean | @@ -1830,13 +1831,12 @@ opts = { is_shadow_ban: true, # Boolean | update_id: 'update_id_example', # String | ban_reason: 'ban_reason_example', # String | - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.post_ban_user_from_comment(comment_id, opts) + result = api_instance.post_ban_user_from_comment(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_ban_user_from_comment: #{e}" @@ -1847,12 +1847,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_ban_user_from_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> post_ban_user_from_comment_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_ban_user_from_comment_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.post_ban_user_from_comment_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1865,6 +1865,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | | **ban_email** | **Boolean** | | [optional] | | **ban_email_domain** | **Boolean** | | [optional] | @@ -1874,7 +1875,6 @@ end | **is_shadow_ban** | **Boolean** | | [optional] | | **update_id** | **String** | | [optional] | | **ban_reason** | **String** | | [optional] | -| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -1893,7 +1893,7 @@ No authorization required ## post_ban_user_undo -> post_ban_user_undo(ban_user_undo_params, opts) +> post_ban_user_undo(tenant_id, ban_user_undo_params, opts) @@ -1904,15 +1904,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | ban_user_undo_params = FastCommentsClient::BanUserUndoParams.new({changelog: FastCommentsClient::APIBanUserChangeLog.new}) # BanUserUndoParams | opts = { - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.post_ban_user_undo(ban_user_undo_params, opts) + result = api_instance.post_ban_user_undo(tenant_id, ban_user_undo_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_ban_user_undo: #{e}" @@ -1923,12 +1923,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_ban_user_undo_with_http_info(ban_user_undo_params, opts) +> , Integer, Hash)> post_ban_user_undo_with_http_info(tenant_id, ban_user_undo_params, opts) ```ruby begin - data, status_code, headers = api_instance.post_ban_user_undo_with_http_info(ban_user_undo_params, opts) + data, status_code, headers = api_instance.post_ban_user_undo_with_http_info(tenant_id, ban_user_undo_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1941,8 +1941,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **ban_user_undo_params** | [**BanUserUndoParams**](BanUserUndoParams.md) | | | -| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -1961,7 +1961,7 @@ No authorization required ## post_bulk_pre_ban_summary -> post_bulk_pre_ban_summary(bulk_pre_ban_params, opts) +> post_bulk_pre_ban_summary(tenant_id, bulk_pre_ban_params, opts) @@ -1972,18 +1972,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | bulk_pre_ban_params = FastCommentsClient::BulkPreBanParams.new({comment_ids: ['comment_ids_example']}) # BulkPreBanParams | opts = { include_by_user_id_and_email: true, # Boolean | include_by_ip: true, # Boolean | include_by_email_domain: true, # Boolean | - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.post_bulk_pre_ban_summary(bulk_pre_ban_params, opts) + result = api_instance.post_bulk_pre_ban_summary(tenant_id, bulk_pre_ban_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_bulk_pre_ban_summary: #{e}" @@ -1994,12 +1994,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts) +> , Integer, Hash)> post_bulk_pre_ban_summary_with_http_info(tenant_id, bulk_pre_ban_params, opts) ```ruby begin - data, status_code, headers = api_instance.post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts) + data, status_code, headers = api_instance.post_bulk_pre_ban_summary_with_http_info(tenant_id, bulk_pre_ban_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2012,11 +2012,11 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **bulk_pre_ban_params** | [**BulkPreBanParams**](BulkPreBanParams.md) | | | | **include_by_user_id_and_email** | **Boolean** | | [optional] | | **include_by_ip** | **Boolean** | | [optional] | | **include_by_email_domain** | **Boolean** | | [optional] | -| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -2035,7 +2035,7 @@ No authorization required ## post_comments_by_ids -> post_comments_by_ids(comments_by_ids_params, opts) +> post_comments_by_ids(tenant_id, comments_by_ids_params, opts) @@ -2046,15 +2046,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comments_by_ids_params = FastCommentsClient::CommentsByIdsParams.new({ids: ['ids_example']}) # CommentsByIdsParams | opts = { - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.post_comments_by_ids(comments_by_ids_params, opts) + result = api_instance.post_comments_by_ids(tenant_id, comments_by_ids_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_comments_by_ids: #{e}" @@ -2065,12 +2065,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_comments_by_ids_with_http_info(comments_by_ids_params, opts) +> , Integer, Hash)> post_comments_by_ids_with_http_info(tenant_id, comments_by_ids_params, opts) ```ruby begin - data, status_code, headers = api_instance.post_comments_by_ids_with_http_info(comments_by_ids_params, opts) + data, status_code, headers = api_instance.post_comments_by_ids_with_http_info(tenant_id, comments_by_ids_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2083,8 +2083,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comments_by_ids_params** | [**CommentsByIdsParams**](CommentsByIdsParams.md) | | | -| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -2103,7 +2103,7 @@ No authorization required ## post_flag_comment -> post_flag_comment(comment_id, opts) +> post_flag_comment(tenant_id, comment_id, opts) @@ -2114,16 +2114,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | broadcast_id: 'broadcast_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.post_flag_comment(comment_id, opts) + result = api_instance.post_flag_comment(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_flag_comment: #{e}" @@ -2134,12 +2134,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_flag_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> post_flag_comment_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_flag_comment_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.post_flag_comment_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2152,8 +2152,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | -| **tenant_id** | **String** | | [optional] | | **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | @@ -2173,7 +2173,7 @@ No authorization required ## post_remove_comment -> post_remove_comment(comment_id, opts) +> post_remove_comment(tenant_id, comment_id, opts) @@ -2184,16 +2184,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | broadcast_id: 'broadcast_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.post_remove_comment(comment_id, opts) + result = api_instance.post_remove_comment(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_remove_comment: #{e}" @@ -2204,15 +2204,15 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_remove_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> post_remove_comment_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_remove_comment_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.post_remove_comment_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_remove_comment_with_http_info: #{e}" end @@ -2222,14 +2222,14 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | -| **tenant_id** | **String** | | [optional] | | **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**PostRemoveCommentResponse**](PostRemoveCommentResponse.md) +[**PostRemoveCommentApiResponse**](PostRemoveCommentApiResponse.md) ### Authorization @@ -2243,7 +2243,7 @@ No authorization required ## post_restore_deleted_comment -> post_restore_deleted_comment(comment_id, opts) +> post_restore_deleted_comment(tenant_id, comment_id, opts) @@ -2254,16 +2254,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | broadcast_id: 'broadcast_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.post_restore_deleted_comment(comment_id, opts) + result = api_instance.post_restore_deleted_comment(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_restore_deleted_comment: #{e}" @@ -2274,12 +2274,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_restore_deleted_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> post_restore_deleted_comment_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_restore_deleted_comment_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.post_restore_deleted_comment_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2292,8 +2292,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | -| **tenant_id** | **String** | | [optional] | | **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | @@ -2313,7 +2313,7 @@ No authorization required ## post_set_comment_approval_status -> post_set_comment_approval_status(comment_id, opts) +> post_set_comment_approval_status(tenant_id, comment_id, opts) @@ -2324,17 +2324,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { approved: true, # Boolean | - tenant_id: 'tenant_id_example', # String | broadcast_id: 'broadcast_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.post_set_comment_approval_status(comment_id, opts) + result = api_instance.post_set_comment_approval_status(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_set_comment_approval_status: #{e}" @@ -2345,12 +2345,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_set_comment_approval_status_with_http_info(comment_id, opts) +> , Integer, Hash)> post_set_comment_approval_status_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_set_comment_approval_status_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.post_set_comment_approval_status_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2363,9 +2363,9 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | | **approved** | **Boolean** | | [optional] | -| **tenant_id** | **String** | | [optional] | | **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | @@ -2385,7 +2385,7 @@ No authorization required ## post_set_comment_review_status -> post_set_comment_review_status(comment_id, opts) +> post_set_comment_review_status(tenant_id, comment_id, opts) @@ -2396,17 +2396,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { reviewed: true, # Boolean | - tenant_id: 'tenant_id_example', # String | broadcast_id: 'broadcast_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.post_set_comment_review_status(comment_id, opts) + result = api_instance.post_set_comment_review_status(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_set_comment_review_status: #{e}" @@ -2417,12 +2417,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_set_comment_review_status_with_http_info(comment_id, opts) +> , Integer, Hash)> post_set_comment_review_status_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_set_comment_review_status_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.post_set_comment_review_status_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2435,9 +2435,9 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | | **reviewed** | **Boolean** | | [optional] | -| **tenant_id** | **String** | | [optional] | | **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | @@ -2457,7 +2457,7 @@ No authorization required ## post_set_comment_spam_status -> post_set_comment_spam_status(comment_id, opts) +> post_set_comment_spam_status(tenant_id, comment_id, opts) @@ -2468,18 +2468,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { spam: true, # Boolean | perm_not_spam: true, # Boolean | - tenant_id: 'tenant_id_example', # String | broadcast_id: 'broadcast_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.post_set_comment_spam_status(comment_id, opts) + result = api_instance.post_set_comment_spam_status(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_set_comment_spam_status: #{e}" @@ -2490,12 +2490,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_set_comment_spam_status_with_http_info(comment_id, opts) +> , Integer, Hash)> post_set_comment_spam_status_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_set_comment_spam_status_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.post_set_comment_spam_status_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2508,10 +2508,10 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | | **spam** | **Boolean** | | [optional] | | **perm_not_spam** | **Boolean** | | [optional] | -| **tenant_id** | **String** | | [optional] | | **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | @@ -2531,7 +2531,7 @@ No authorization required ## post_set_comment_text -> post_set_comment_text(comment_id, set_comment_text_params, opts) +> post_set_comment_text(tenant_id, comment_id, set_comment_text_params, opts) @@ -2542,17 +2542,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | set_comment_text_params = FastCommentsClient::SetCommentTextParams.new({comment: 'comment_example'}) # SetCommentTextParams | opts = { - tenant_id: 'tenant_id_example', # String | broadcast_id: 'broadcast_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.post_set_comment_text(comment_id, set_comment_text_params, opts) + result = api_instance.post_set_comment_text(tenant_id, comment_id, set_comment_text_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_set_comment_text: #{e}" @@ -2563,12 +2563,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts) +> , Integer, Hash)> post_set_comment_text_with_http_info(tenant_id, comment_id, set_comment_text_params, opts) ```ruby begin - data, status_code, headers = api_instance.post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts) + data, status_code, headers = api_instance.post_set_comment_text_with_http_info(tenant_id, comment_id, set_comment_text_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2581,9 +2581,9 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | | **set_comment_text_params** | [**SetCommentTextParams**](SetCommentTextParams.md) | | | -| **tenant_id** | **String** | | [optional] | | **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | @@ -2603,7 +2603,7 @@ No authorization required ## post_un_flag_comment -> post_un_flag_comment(comment_id, opts) +> post_un_flag_comment(tenant_id, comment_id, opts) @@ -2614,16 +2614,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | broadcast_id: 'broadcast_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.post_un_flag_comment(comment_id, opts) + result = api_instance.post_un_flag_comment(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_un_flag_comment: #{e}" @@ -2634,12 +2634,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_un_flag_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> post_un_flag_comment_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_un_flag_comment_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.post_un_flag_comment_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2652,8 +2652,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | -| **tenant_id** | **String** | | [optional] | | **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | @@ -2673,7 +2673,7 @@ No authorization required ## post_vote -> post_vote(comment_id, opts) +> post_vote(tenant_id, comment_id, opts) @@ -2684,17 +2684,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { direction: 'direction_example', # String | - tenant_id: 'tenant_id_example', # String | broadcast_id: 'broadcast_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.post_vote(comment_id, opts) + result = api_instance.post_vote(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_vote: #{e}" @@ -2705,12 +2705,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_vote_with_http_info(comment_id, opts) +> , Integer, Hash)> post_vote_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_vote_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.post_vote_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2723,9 +2723,9 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | | **direction** | **String** | | [optional] | -| **tenant_id** | **String** | | [optional] | | **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | @@ -2745,7 +2745,7 @@ No authorization required ## put_award_badge -> put_award_badge(badge_id, opts) +> put_award_badge(tenant_id, badge_id, opts) @@ -2756,18 +2756,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | badge_id = 'badge_id_example' # String | opts = { user_id: 'user_id_example', # String | comment_id: 'comment_id_example', # String | - tenant_id: 'tenant_id_example', # String | broadcast_id: 'broadcast_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.put_award_badge(badge_id, opts) + result = api_instance.put_award_badge(tenant_id, badge_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->put_award_badge: #{e}" @@ -2778,12 +2778,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_award_badge_with_http_info(badge_id, opts) +> , Integer, Hash)> put_award_badge_with_http_info(tenant_id, badge_id, opts) ```ruby begin - data, status_code, headers = api_instance.put_award_badge_with_http_info(badge_id, opts) + data, status_code, headers = api_instance.put_award_badge_with_http_info(tenant_id, badge_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2796,10 +2796,10 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **badge_id** | **String** | | | | **user_id** | **String** | | [optional] | | **comment_id** | **String** | | [optional] | -| **tenant_id** | **String** | | [optional] | | **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | @@ -2819,7 +2819,7 @@ No authorization required ## put_close_thread -> put_close_thread(url_id, opts) +> put_close_thread(tenant_id, url_id, opts) @@ -2830,15 +2830,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | url_id = 'url_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.put_close_thread(url_id, opts) + result = api_instance.put_close_thread(tenant_id, url_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->put_close_thread: #{e}" @@ -2849,12 +2849,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_close_thread_with_http_info(url_id, opts) +> , Integer, Hash)> put_close_thread_with_http_info(tenant_id, url_id, opts) ```ruby begin - data, status_code, headers = api_instance.put_close_thread_with_http_info(url_id, opts) + data, status_code, headers = api_instance.put_close_thread_with_http_info(tenant_id, url_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2867,8 +2867,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **url_id** | **String** | | | -| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -2887,7 +2887,7 @@ No authorization required ## put_remove_badge -> put_remove_badge(badge_id, opts) +> put_remove_badge(tenant_id, badge_id, opts) @@ -2898,18 +2898,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | badge_id = 'badge_id_example' # String | opts = { user_id: 'user_id_example', # String | comment_id: 'comment_id_example', # String | - tenant_id: 'tenant_id_example', # String | broadcast_id: 'broadcast_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.put_remove_badge(badge_id, opts) + result = api_instance.put_remove_badge(tenant_id, badge_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->put_remove_badge: #{e}" @@ -2920,12 +2920,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_remove_badge_with_http_info(badge_id, opts) +> , Integer, Hash)> put_remove_badge_with_http_info(tenant_id, badge_id, opts) ```ruby begin - data, status_code, headers = api_instance.put_remove_badge_with_http_info(badge_id, opts) + data, status_code, headers = api_instance.put_remove_badge_with_http_info(tenant_id, badge_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2938,10 +2938,10 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **badge_id** | **String** | | | | **user_id** | **String** | | [optional] | | **comment_id** | **String** | | [optional] | -| **tenant_id** | **String** | | [optional] | | **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | @@ -2961,7 +2961,7 @@ No authorization required ## put_reopen_thread -> put_reopen_thread(url_id, opts) +> put_reopen_thread(tenant_id, url_id, opts) @@ -2972,15 +2972,15 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | url_id = 'url_id_example' # String | opts = { - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.put_reopen_thread(url_id, opts) + result = api_instance.put_reopen_thread(tenant_id, url_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->put_reopen_thread: #{e}" @@ -2991,12 +2991,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_reopen_thread_with_http_info(url_id, opts) +> , Integer, Hash)> put_reopen_thread_with_http_info(tenant_id, url_id, opts) ```ruby begin - data, status_code, headers = api_instance.put_reopen_thread_with_http_info(url_id, opts) + data, status_code, headers = api_instance.put_reopen_thread_with_http_info(tenant_id, url_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3009,8 +3009,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **url_id** | **String** | | | -| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -3029,7 +3029,7 @@ No authorization required ## set_trust_factor -> set_trust_factor(opts) +> set_trust_factor(tenant_id, opts) @@ -3040,16 +3040,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { user_id: 'user_id_example', # String | trust_factor: 'trust_factor_example', # String | - tenant_id: 'tenant_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.set_trust_factor(opts) + result = api_instance.set_trust_factor(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->set_trust_factor: #{e}" @@ -3060,12 +3060,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> set_trust_factor_with_http_info(opts) +> , Integer, Hash)> set_trust_factor_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.set_trust_factor_with_http_info(opts) + data, status_code, headers = api_instance.set_trust_factor_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -3078,9 +3078,9 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **user_id** | **String** | | [optional] | | **trust_factor** | **String** | | [optional] | -| **tenant_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type diff --git a/client/docs/PostRemoveCommentResponse.md b/client/docs/PostRemoveCommentApiResponse.md similarity index 68% rename from client/docs/PostRemoveCommentResponse.md rename to client/docs/PostRemoveCommentApiResponse.md index 2c1425c..0a782a1 100644 --- a/client/docs/PostRemoveCommentResponse.md +++ b/client/docs/PostRemoveCommentApiResponse.md @@ -1,4 +1,4 @@ -# FastCommentsClient::PostRemoveCommentResponse +# FastCommentsClient::PostRemoveCommentApiResponse ## Properties @@ -12,7 +12,7 @@ ```ruby require 'fastcomments-client' -instance = FastCommentsClient::PostRemoveCommentResponse.new( +instance = FastCommentsClient::PostRemoveCommentApiResponse.new( action: null, status: null ) diff --git a/client/lib/fastcomments-client.rb b/client/lib/fastcomments-client.rb index 1ba34dc..dfd410c 100644 --- a/client/lib/fastcomments-client.rb +++ b/client/lib/fastcomments-client.rb @@ -277,7 +277,7 @@ require 'fastcomments-client/models/patch_page_api_response' require 'fastcomments-client/models/patch_sso_user_api_response' require 'fastcomments-client/models/pending_comment_to_sync_outbound' -require 'fastcomments-client/models/post_remove_comment_response' +require 'fastcomments-client/models/post_remove_comment_api_response' require 'fastcomments-client/models/pre_ban_summary' require 'fastcomments-client/models/pub_sub_comment' require 'fastcomments-client/models/pub_sub_comment_base' diff --git a/client/lib/fastcomments-client/api/default_api.rb b/client/lib/fastcomments-client/api/default_api.rb index 1bf8960..723f05f 100644 --- a/client/lib/fastcomments-client/api/default_api.rb +++ b/client/lib/fastcomments-client/api/default_api.rb @@ -90,29 +90,33 @@ def add_domain_config_with_http_info(tenant_id, add_domain_config_params, opts = return data, status_code, headers end + # @param tenant_id [String] # @param create_hash_tag_body [CreateHashTagBody] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @return [CreateHashTagResponse] - def add_hash_tag(create_hash_tag_body, opts = {}) - data, _status_code, _headers = add_hash_tag_with_http_info(create_hash_tag_body, opts) + def add_hash_tag(tenant_id, create_hash_tag_body, opts = {}) + data, _status_code, _headers = add_hash_tag_with_http_info(tenant_id, create_hash_tag_body, opts) data end + # @param tenant_id [String] # @param create_hash_tag_body [CreateHashTagBody] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @return [Array<(CreateHashTagResponse, Integer, Hash)>] CreateHashTagResponse data, response status code and response headers - def add_hash_tag_with_http_info(create_hash_tag_body, opts = {}) + def add_hash_tag_with_http_info(tenant_id, create_hash_tag_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.add_hash_tag ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.add_hash_tag" + end # resource path local_var_path = '/api/v1/hash-tags' # query parameters query_params = opts[:query_params] || {} - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'tenantId'] = tenant_id # header parameters header_params = opts[:header_params] || {} @@ -153,29 +157,33 @@ def add_hash_tag_with_http_info(create_hash_tag_body, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param bulk_create_hash_tags_body [BulkCreateHashTagsBody] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @return [BulkCreateHashTagsResponse] - def add_hash_tags_bulk(bulk_create_hash_tags_body, opts = {}) - data, _status_code, _headers = add_hash_tags_bulk_with_http_info(bulk_create_hash_tags_body, opts) + def add_hash_tags_bulk(tenant_id, bulk_create_hash_tags_body, opts = {}) + data, _status_code, _headers = add_hash_tags_bulk_with_http_info(tenant_id, bulk_create_hash_tags_body, opts) data end + # @param tenant_id [String] # @param bulk_create_hash_tags_body [BulkCreateHashTagsBody] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @return [Array<(BulkCreateHashTagsResponse, Integer, Hash)>] BulkCreateHashTagsResponse data, response status code and response headers - def add_hash_tags_bulk_with_http_info(bulk_create_hash_tags_body, opts = {}) + def add_hash_tags_bulk_with_http_info(tenant_id, bulk_create_hash_tags_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.add_hash_tags_bulk ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.add_hash_tags_bulk" + end # resource path local_var_path = '/api/v1/hash-tags/bulk' # query parameters query_params = opts[:query_params] || {} - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'tenantId'] = tenant_id # header parameters header_params = opts[:header_params] || {} @@ -2001,25 +2009,29 @@ def delete_email_template_render_error_with_http_info(tenant_id, id, error_id, o return data, status_code, headers end + # @param tenant_id [String] # @param tag [String] # @param delete_hash_tag_request_body [DeleteHashTagRequestBody] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @return [APIEmptyResponse] - def delete_hash_tag(tag, delete_hash_tag_request_body, opts = {}) - data, _status_code, _headers = delete_hash_tag_with_http_info(tag, delete_hash_tag_request_body, opts) + def delete_hash_tag(tenant_id, tag, delete_hash_tag_request_body, opts = {}) + data, _status_code, _headers = delete_hash_tag_with_http_info(tenant_id, tag, delete_hash_tag_request_body, opts) data end + # @param tenant_id [String] # @param tag [String] # @param delete_hash_tag_request_body [DeleteHashTagRequestBody] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def delete_hash_tag_with_http_info(tag, delete_hash_tag_request_body, opts = {}) + def delete_hash_tag_with_http_info(tenant_id, tag, delete_hash_tag_request_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_hash_tag ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_hash_tag" + end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.delete_hash_tag" @@ -2029,7 +2041,7 @@ def delete_hash_tag_with_http_info(tag, delete_hash_tag_request_body, opts = {}) # query parameters query_params = opts[:query_params] || {} - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'tenantId'] = tenant_id # header parameters header_params = opts[:header_params] || {} @@ -6187,25 +6199,29 @@ def patch_domain_config_with_http_info(tenant_id, domain_to_update, patch_domain return data, status_code, headers end + # @param tenant_id [String] # @param tag [String] # @param update_hash_tag_body [UpdateHashTagBody] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @return [UpdateHashTagResponse] - def patch_hash_tag(tag, update_hash_tag_body, opts = {}) - data, _status_code, _headers = patch_hash_tag_with_http_info(tag, update_hash_tag_body, opts) + def patch_hash_tag(tenant_id, tag, update_hash_tag_body, opts = {}) + data, _status_code, _headers = patch_hash_tag_with_http_info(tenant_id, tag, update_hash_tag_body, opts) data end + # @param tenant_id [String] # @param tag [String] # @param update_hash_tag_body [UpdateHashTagBody] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @return [Array<(UpdateHashTagResponse, Integer, Hash)>] UpdateHashTagResponse data, response status code and response headers - def patch_hash_tag_with_http_info(tag, update_hash_tag_body, opts = {}) + def patch_hash_tag_with_http_info(tenant_id, tag, update_hash_tag_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.patch_hash_tag ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.patch_hash_tag" + end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.patch_hash_tag" @@ -6215,7 +6231,7 @@ def patch_hash_tag_with_http_info(tag, update_hash_tag_body, opts = {}) # query parameters query_params = opts[:query_params] || {} - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'tenantId'] = tenant_id # header parameters header_params = opts[:header_params] || {} diff --git a/client/lib/fastcomments-client/api/moderation_api.rb b/client/lib/fastcomments-client/api/moderation_api.rb index dd0f07a..ea2cdc6 100644 --- a/client/lib/fastcomments-client/api/moderation_api.rb +++ b/client/lib/fastcomments-client/api/moderation_api.rb @@ -19,29 +19,33 @@ class ModerationApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # @param tenant_id [String] # @param comment_id [String] # @param vote_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [VoteDeleteResponse] - def delete_moderation_vote(comment_id, vote_id, opts = {}) - data, _status_code, _headers = delete_moderation_vote_with_http_info(comment_id, vote_id, opts) + def delete_moderation_vote(tenant_id, comment_id, vote_id, opts = {}) + data, _status_code, _headers = delete_moderation_vote_with_http_info(tenant_id, comment_id, vote_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param vote_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(VoteDeleteResponse, Integer, Hash)>] VoteDeleteResponse data, response status code and response headers - def delete_moderation_vote_with_http_info(comment_id, vote_id, opts = {}) + def delete_moderation_vote_with_http_info(tenant_id, comment_id, vote_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.delete_moderation_vote ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.delete_moderation_vote" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.delete_moderation_vote" @@ -51,11 +55,11 @@ def delete_moderation_vote_with_http_info(comment_id, vote_id, opts = {}) fail ArgumentError, "Missing the required parameter 'vote_id' when calling ModerationApi.delete_moderation_vote" end # resource path - local_var_path = '/auth/my-account/moderate-comments/vote/{commentId}/{voteId}'.sub('{commentId}', CGI.escape(comment_id.to_s)).sub('{voteId}', CGI.escape(vote_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId}'.sub('{commentId}', CGI.escape(comment_id.to_s)).sub('{voteId}', CGI.escape(vote_id.to_s)) # query parameters query_params = opts[:query_params] || {} - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'tenantId'] = tenant_id query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? @@ -93,6 +97,7 @@ def delete_moderation_vote_with_http_info(comment_id, vote_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :page # @option opts [Float] :count @@ -102,14 +107,14 @@ def delete_moderation_vote_with_http_info(comment_id, vote_id, opts = {}) # @option opts [String] :search_filters # @option opts [String] :sorts # @option opts [Boolean] :demo - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationAPIGetCommentsResponse] - def get_api_comments(opts = {}) - data, _status_code, _headers = get_api_comments_with_http_info(opts) + def get_api_comments(tenant_id, opts = {}) + data, _status_code, _headers = get_api_comments_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :page # @option opts [Float] :count @@ -119,18 +124,22 @@ def get_api_comments(opts = {}) # @option opts [String] :search_filters # @option opts [String] :sorts # @option opts [Boolean] :demo - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(ModerationAPIGetCommentsResponse, Integer, Hash)>] ModerationAPIGetCommentsResponse data, response status code and response headers - def get_api_comments_with_http_info(opts = {}) + def get_api_comments_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_api_comments ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_api_comments" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/api/comments' + local_var_path = '/auth/my-account/moderate-comments/mod_api/api/comments' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil? query_params[:'text-search'] = opts[:'text_search'] if !opts[:'text_search'].nil? @@ -139,7 +148,6 @@ def get_api_comments_with_http_info(opts = {}) query_params[:'searchFilters'] = opts[:'search_filters'] if !opts[:'search_filters'].nil? query_params[:'sorts'] = opts[:'sorts'] if !opts[:'sorts'].nil? query_params[:'demo'] = opts[:'demo'] if !opts[:'demo'].nil? - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -176,32 +184,36 @@ def get_api_comments_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :batch_job_id - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationExportStatusResponse] - def get_api_export_status(opts = {}) - data, _status_code, _headers = get_api_export_status_with_http_info(opts) + def get_api_export_status(tenant_id, opts = {}) + data, _status_code, _headers = get_api_export_status_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :batch_job_id - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(ModerationExportStatusResponse, Integer, Hash)>] ModerationExportStatusResponse data, response status code and response headers - def get_api_export_status_with_http_info(opts = {}) + def get_api_export_status_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_api_export_status ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_api_export_status" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/api/export/status' + local_var_path = '/auth/my-account/moderate-comments/mod_api/api/export/status' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'batchJobId'] = opts[:'batch_job_id'] if !opts[:'batch_job_id'].nil? - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -238,6 +250,7 @@ def get_api_export_status_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment @@ -245,14 +258,14 @@ def get_api_export_status_with_http_info(opts = {}) # @option opts [String] :search_filters # @option opts [String] :after_id # @option opts [Boolean] :demo - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationAPIGetCommentIdsResponse] - def get_api_ids(opts = {}) - data, _status_code, _headers = get_api_ids_with_http_info(opts) + def get_api_ids(tenant_id, opts = {}) + data, _status_code, _headers = get_api_ids_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment @@ -260,25 +273,28 @@ def get_api_ids(opts = {}) # @option opts [String] :search_filters # @option opts [String] :after_id # @option opts [Boolean] :demo - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(ModerationAPIGetCommentIdsResponse, Integer, Hash)>] ModerationAPIGetCommentIdsResponse data, response status code and response headers - def get_api_ids_with_http_info(opts = {}) + def get_api_ids_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_api_ids ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_api_ids" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/api/ids' + local_var_path = '/auth/my-account/moderate-comments/mod_api/api/ids' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'text-search'] = opts[:'text_search'] if !opts[:'text_search'].nil? query_params[:'byIPFromComment'] = opts[:'by_ip_from_comment'] if !opts[:'by_ip_from_comment'].nil? query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil? query_params[:'searchFilters'] = opts[:'search_filters'] if !opts[:'search_filters'].nil? query_params[:'afterId'] = opts[:'after_id'] if !opts[:'after_id'].nil? query_params[:'demo'] = opts[:'demo'] if !opts[:'demo'].nil? - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -315,35 +331,39 @@ def get_api_ids_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [GetBannedUsersFromCommentResponse] - def get_ban_users_from_comment(comment_id, opts = {}) - data, _status_code, _headers = get_ban_users_from_comment_with_http_info(comment_id, opts) + def get_ban_users_from_comment(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = get_ban_users_from_comment_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(GetBannedUsersFromCommentResponse, Integer, Hash)>] GetBannedUsersFromCommentResponse data, response status code and response headers - def get_ban_users_from_comment_with_http_info(comment_id, opts = {}) + def get_ban_users_from_comment_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_ban_users_from_comment ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_ban_users_from_comment" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_ban_users_from_comment" end # resource path - local_var_path = '/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'tenantId'] = tenant_id query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -380,35 +400,39 @@ def get_ban_users_from_comment_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [GetCommentBanStatusResponse] - def get_comment_ban_status(comment_id, opts = {}) - data, _status_code, _headers = get_comment_ban_status_with_http_info(comment_id, opts) + def get_comment_ban_status(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = get_comment_ban_status_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(GetCommentBanStatusResponse, Integer, Hash)>] GetCommentBanStatusResponse data, response status code and response headers - def get_comment_ban_status_with_http_info(comment_id, opts = {}) + def get_comment_ban_status_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_comment_ban_status ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_comment_ban_status" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_comment_ban_status" end # resource path - local_var_path = '/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'tenantId'] = tenant_id query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -445,35 +469,39 @@ def get_comment_ban_status_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationAPIChildCommentsResponse] - def get_comment_children(comment_id, opts = {}) - data, _status_code, _headers = get_comment_children_with_http_info(comment_id, opts) + def get_comment_children(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = get_comment_children_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(ModerationAPIChildCommentsResponse, Integer, Hash)>] ModerationAPIChildCommentsResponse data, response status code and response headers - def get_comment_children_with_http_info(comment_id, opts = {}) + def get_comment_children_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_comment_children ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_comment_children" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_comment_children" end # resource path - local_var_path = '/auth/my-account/moderate-comments/comment-children/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/comment-children/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'tenantId'] = tenant_id query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -510,44 +538,48 @@ def get_comment_children_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment # @option opts [String] :filter # @option opts [String] :search_filters # @option opts [Boolean] :demo - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationAPICountCommentsResponse] - def get_count(opts = {}) - data, _status_code, _headers = get_count_with_http_info(opts) + def get_count(tenant_id, opts = {}) + data, _status_code, _headers = get_count_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment # @option opts [String] :filter # @option opts [String] :search_filters # @option opts [Boolean] :demo - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(ModerationAPICountCommentsResponse, Integer, Hash)>] ModerationAPICountCommentsResponse data, response status code and response headers - def get_count_with_http_info(opts = {}) + def get_count_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_count ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_count" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/count' + local_var_path = '/auth/my-account/moderate-comments/mod_api/count' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'text-search'] = opts[:'text_search'] if !opts[:'text_search'].nil? query_params[:'byIPFromComment'] = opts[:'by_ip_from_comment'] if !opts[:'by_ip_from_comment'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'searchFilters'] = opts[:'search_filters'] if !opts[:'search_filters'].nil? query_params[:'demo'] = opts[:'demo'] if !opts[:'demo'].nil? - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -584,29 +616,33 @@ def get_count_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [GetBannedUsersCountResponse] - def get_counts(opts = {}) - data, _status_code, _headers = get_counts_with_http_info(opts) + def get_counts(tenant_id, opts = {}) + data, _status_code, _headers = get_counts_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(GetBannedUsersCountResponse, Integer, Hash)>] GetBannedUsersCountResponse data, response status code and response headers - def get_counts_with_http_info(opts = {}) + def get_counts_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_counts ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_counts" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/banned-users/counts' + local_var_path = '/auth/my-account/moderate-comments/banned-users/mod_api/counts' # query parameters query_params = opts[:query_params] || {} - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'tenantId'] = tenant_id query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -643,35 +679,39 @@ def get_counts_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationAPIGetLogsResponse] - def get_logs(comment_id, opts = {}) - data, _status_code, _headers = get_logs_with_http_info(comment_id, opts) + def get_logs(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = get_logs_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(ModerationAPIGetLogsResponse, Integer, Hash)>] ModerationAPIGetLogsResponse data, response status code and response headers - def get_logs_with_http_info(comment_id, opts = {}) + def get_logs_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_logs ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_logs" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_logs" end # resource path - local_var_path = '/auth/my-account/moderate-comments/logs/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/logs/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'tenantId'] = tenant_id query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -708,29 +748,33 @@ def get_logs_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [GetTenantManualBadgesResponse] - def get_manual_badges(opts = {}) - data, _status_code, _headers = get_manual_badges_with_http_info(opts) + def get_manual_badges(tenant_id, opts = {}) + data, _status_code, _headers = get_manual_badges_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(GetTenantManualBadgesResponse, Integer, Hash)>] GetTenantManualBadgesResponse data, response status code and response headers - def get_manual_badges_with_http_info(opts = {}) + def get_manual_badges_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_manual_badges ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_manual_badges" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/get-manual-badges' + local_var_path = '/auth/my-account/moderate-comments/mod_api/get-manual-badges' # query parameters query_params = opts[:query_params] || {} - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'tenantId'] = tenant_id query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -767,35 +811,39 @@ def get_manual_badges_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :badges_user_id # @option opts [String] :comment_id - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [GetUserManualBadgesResponse] - def get_manual_badges_for_user(opts = {}) - data, _status_code, _headers = get_manual_badges_for_user_with_http_info(opts) + def get_manual_badges_for_user(tenant_id, opts = {}) + data, _status_code, _headers = get_manual_badges_for_user_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :badges_user_id # @option opts [String] :comment_id - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(GetUserManualBadgesResponse, Integer, Hash)>] GetUserManualBadgesResponse data, response status code and response headers - def get_manual_badges_for_user_with_http_info(opts = {}) + def get_manual_badges_for_user_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_manual_badges_for_user ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_manual_badges_for_user" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/get-manual-badges-for-user' + local_var_path = '/auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'badgesUserId'] = opts[:'badges_user_id'] if !opts[:'badges_user_id'].nil? query_params[:'commentId'] = opts[:'comment_id'] if !opts[:'comment_id'].nil? - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -832,41 +880,45 @@ def get_manual_badges_for_user_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :include_email # @option opts [Boolean] :include_ip - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationAPICommentResponse] - def get_moderation_comment(comment_id, opts = {}) - data, _status_code, _headers = get_moderation_comment_with_http_info(comment_id, opts) + def get_moderation_comment(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = get_moderation_comment_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :include_email # @option opts [Boolean] :include_ip - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(ModerationAPICommentResponse, Integer, Hash)>] ModerationAPICommentResponse data, response status code and response headers - def get_moderation_comment_with_http_info(comment_id, opts = {}) + def get_moderation_comment_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_moderation_comment ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_moderation_comment" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_moderation_comment" end # resource path - local_var_path = '/auth/my-account/moderate-comments/comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'includeEmail'] = opts[:'include_email'] if !opts[:'include_email'].nil? query_params[:'includeIP'] = opts[:'include_ip'] if !opts[:'include_ip'].nil? - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -903,35 +955,39 @@ def get_moderation_comment_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [GetCommentTextResponse] - def get_moderation_comment_text(comment_id, opts = {}) - data, _status_code, _headers = get_moderation_comment_text_with_http_info(comment_id, opts) + def get_moderation_comment_text(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = get_moderation_comment_text_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(GetCommentTextResponse, Integer, Hash)>] GetCommentTextResponse data, response status code and response headers - def get_moderation_comment_text_with_http_info(comment_id, opts = {}) + def get_moderation_comment_text_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_moderation_comment_text ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_moderation_comment_text" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_moderation_comment_text" end # resource path - local_var_path = '/auth/my-account/moderate-comments/get-comment-text/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'tenantId'] = tenant_id query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -968,44 +1024,48 @@ def get_moderation_comment_text_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :include_by_user_id_and_email # @option opts [Boolean] :include_by_ip # @option opts [Boolean] :include_by_email_domain - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [PreBanSummary] - def get_pre_ban_summary(comment_id, opts = {}) - data, _status_code, _headers = get_pre_ban_summary_with_http_info(comment_id, opts) + def get_pre_ban_summary(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = get_pre_ban_summary_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :include_by_user_id_and_email # @option opts [Boolean] :include_by_ip # @option opts [Boolean] :include_by_email_domain - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(PreBanSummary, Integer, Hash)>] PreBanSummary data, response status code and response headers - def get_pre_ban_summary_with_http_info(comment_id, opts = {}) + def get_pre_ban_summary_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_pre_ban_summary ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_pre_ban_summary" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_pre_ban_summary" end # resource path - local_var_path = '/auth/my-account/moderate-comments/pre-ban-summary/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'includeByUserIdAndEmail'] = opts[:'include_by_user_id_and_email'] if !opts[:'include_by_user_id_and_email'].nil? query_params[:'includeByIP'] = opts[:'include_by_ip'] if !opts[:'include_by_ip'].nil? query_params[:'includeByEmailDomain'] = opts[:'include_by_email_domain'] if !opts[:'include_by_email_domain'].nil? - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1042,38 +1102,42 @@ def get_pre_ban_summary_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :value # @option opts [String] :filters # @option opts [String] :search_filters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationCommentSearchResponse] - def get_search_comments_summary(opts = {}) - data, _status_code, _headers = get_search_comments_summary_with_http_info(opts) + def get_search_comments_summary(tenant_id, opts = {}) + data, _status_code, _headers = get_search_comments_summary_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :value # @option opts [String] :filters # @option opts [String] :search_filters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(ModerationCommentSearchResponse, Integer, Hash)>] ModerationCommentSearchResponse data, response status code and response headers - def get_search_comments_summary_with_http_info(opts = {}) + def get_search_comments_summary_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_comments_summary ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_search_comments_summary" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/search/comments/summary' + local_var_path = '/auth/my-account/moderate-comments/mod_api/search/comments/summary' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'value'] = opts[:'value'] if !opts[:'value'].nil? query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil? query_params[:'searchFilters'] = opts[:'search_filters'] if !opts[:'search_filters'].nil? - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1110,32 +1174,36 @@ def get_search_comments_summary_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :value - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationPageSearchResponse] - def get_search_pages(opts = {}) - data, _status_code, _headers = get_search_pages_with_http_info(opts) + def get_search_pages(tenant_id, opts = {}) + data, _status_code, _headers = get_search_pages_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :value - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(ModerationPageSearchResponse, Integer, Hash)>] ModerationPageSearchResponse data, response status code and response headers - def get_search_pages_with_http_info(opts = {}) + def get_search_pages_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_pages ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_search_pages" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/search/pages' + local_var_path = '/auth/my-account/moderate-comments/mod_api/search/pages' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'value'] = opts[:'value'] if !opts[:'value'].nil? - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1172,32 +1240,36 @@ def get_search_pages_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :value - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationSiteSearchResponse] - def get_search_sites(opts = {}) - data, _status_code, _headers = get_search_sites_with_http_info(opts) + def get_search_sites(tenant_id, opts = {}) + data, _status_code, _headers = get_search_sites_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :value - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(ModerationSiteSearchResponse, Integer, Hash)>] ModerationSiteSearchResponse data, response status code and response headers - def get_search_sites_with_http_info(opts = {}) + def get_search_sites_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_sites ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_search_sites" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/search/sites' + local_var_path = '/auth/my-account/moderate-comments/mod_api/search/sites' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'value'] = opts[:'value'] if !opts[:'value'].nil? - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1234,32 +1306,36 @@ def get_search_sites_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :text_search - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationSuggestResponse] - def get_search_suggest(opts = {}) - data, _status_code, _headers = get_search_suggest_with_http_info(opts) + def get_search_suggest(tenant_id, opts = {}) + data, _status_code, _headers = get_search_suggest_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :text_search - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(ModerationSuggestResponse, Integer, Hash)>] ModerationSuggestResponse data, response status code and response headers - def get_search_suggest_with_http_info(opts = {}) + def get_search_suggest_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_suggest ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_search_suggest" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/search/suggest' + local_var_path = '/auth/my-account/moderate-comments/mod_api/search/suggest' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'text-search'] = opts[:'text_search'] if !opts[:'text_search'].nil? - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1296,32 +1372,36 @@ def get_search_suggest_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :value - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationUserSearchResponse] - def get_search_users(opts = {}) - data, _status_code, _headers = get_search_users_with_http_info(opts) + def get_search_users(tenant_id, opts = {}) + data, _status_code, _headers = get_search_users_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :value - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(ModerationUserSearchResponse, Integer, Hash)>] ModerationUserSearchResponse data, response status code and response headers - def get_search_users_with_http_info(opts = {}) + def get_search_users_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_users ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_search_users" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/search/users' + local_var_path = '/auth/my-account/moderate-comments/mod_api/search/users' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'value'] = opts[:'value'] if !opts[:'value'].nil? - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1358,32 +1438,36 @@ def get_search_users_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :user_id - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [GetUserTrustFactorResponse] - def get_trust_factor(opts = {}) - data, _status_code, _headers = get_trust_factor_with_http_info(opts) + def get_trust_factor(tenant_id, opts = {}) + data, _status_code, _headers = get_trust_factor_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :user_id - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(GetUserTrustFactorResponse, Integer, Hash)>] GetUserTrustFactorResponse data, response status code and response headers - def get_trust_factor_with_http_info(opts = {}) + def get_trust_factor_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_trust_factor ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_trust_factor" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/get-trust-factor' + local_var_path = '/auth/my-account/moderate-comments/mod_api/get-trust-factor' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1420,29 +1504,33 @@ def get_trust_factor_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [APIModerateGetUserBanPreferencesResponse] - def get_user_ban_preference(opts = {}) - data, _status_code, _headers = get_user_ban_preference_with_http_info(opts) + def get_user_ban_preference(tenant_id, opts = {}) + data, _status_code, _headers = get_user_ban_preference_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(APIModerateGetUserBanPreferencesResponse, Integer, Hash)>] APIModerateGetUserBanPreferencesResponse data, response status code and response headers - def get_user_ban_preference_with_http_info(opts = {}) + def get_user_ban_preference_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_user_ban_preference ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_user_ban_preference" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/user-ban-preference' + local_var_path = '/auth/my-account/moderate-comments/mod_api/user-ban-preference' # query parameters query_params = opts[:query_params] || {} - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'tenantId'] = tenant_id query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1479,32 +1567,36 @@ def get_user_ban_preference_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :comment_id - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [GetUserInternalProfileResponse] - def get_user_internal_profile(opts = {}) - data, _status_code, _headers = get_user_internal_profile_with_http_info(opts) + def get_user_internal_profile(tenant_id, opts = {}) + data, _status_code, _headers = get_user_internal_profile_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :comment_id - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(GetUserInternalProfileResponse, Integer, Hash)>] GetUserInternalProfileResponse data, response status code and response headers - def get_user_internal_profile_with_http_info(opts = {}) + def get_user_internal_profile_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_user_internal_profile ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_user_internal_profile" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/get-user-internal-profile' + local_var_path = '/auth/my-account/moderate-comments/mod_api/get-user-internal-profile' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'commentId'] = opts[:'comment_id'] if !opts[:'comment_id'].nil? - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1541,29 +1633,33 @@ def get_user_internal_profile_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param adjust_comment_votes_params [AdjustCommentVotesParams] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [AdjustVotesResponse] - def post_adjust_comment_votes(comment_id, adjust_comment_votes_params, opts = {}) - data, _status_code, _headers = post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts) + def post_adjust_comment_votes(tenant_id, comment_id, adjust_comment_votes_params, opts = {}) + data, _status_code, _headers = post_adjust_comment_votes_with_http_info(tenant_id, comment_id, adjust_comment_votes_params, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param adjust_comment_votes_params [AdjustCommentVotesParams] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(AdjustVotesResponse, Integer, Hash)>] AdjustVotesResponse data, response status code and response headers - def post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts = {}) + def post_adjust_comment_votes_with_http_info(tenant_id, comment_id, adjust_comment_votes_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_adjust_comment_votes ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_adjust_comment_votes" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_adjust_comment_votes" @@ -1573,11 +1669,11 @@ def post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_pa fail ArgumentError, "Missing the required parameter 'adjust_comment_votes_params' when calling ModerationApi.post_adjust_comment_votes" end # resource path - local_var_path = '/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'tenantId'] = tenant_id query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? @@ -1620,44 +1716,48 @@ def post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_pa return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment # @option opts [String] :filters # @option opts [String] :search_filters # @option opts [String] :sorts - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationExportResponse] - def post_api_export(opts = {}) - data, _status_code, _headers = post_api_export_with_http_info(opts) + def post_api_export(tenant_id, opts = {}) + data, _status_code, _headers = post_api_export_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment # @option opts [String] :filters # @option opts [String] :search_filters # @option opts [String] :sorts - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(ModerationExportResponse, Integer, Hash)>] ModerationExportResponse data, response status code and response headers - def post_api_export_with_http_info(opts = {}) + def post_api_export_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_api_export ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_api_export" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/api/export' + local_var_path = '/auth/my-account/moderate-comments/mod_api/api/export' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'text-search'] = opts[:'text_search'] if !opts[:'text_search'].nil? query_params[:'byIPFromComment'] = opts[:'by_ip_from_comment'] if !opts[:'by_ip_from_comment'].nil? query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil? query_params[:'searchFilters'] = opts[:'search_filters'] if !opts[:'search_filters'].nil? query_params[:'sorts'] = opts[:'sorts'] if !opts[:'sorts'].nil? - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1694,6 +1794,7 @@ def post_api_export_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :ban_email @@ -1704,14 +1805,14 @@ def post_api_export_with_http_info(opts = {}) # @option opts [Boolean] :is_shadow_ban # @option opts [String] :update_id # @option opts [String] :ban_reason - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [BanUserFromCommentResult] - def post_ban_user_from_comment(comment_id, opts = {}) - data, _status_code, _headers = post_ban_user_from_comment_with_http_info(comment_id, opts) + def post_ban_user_from_comment(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = post_ban_user_from_comment_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :ban_email @@ -1722,22 +1823,26 @@ def post_ban_user_from_comment(comment_id, opts = {}) # @option opts [Boolean] :is_shadow_ban # @option opts [String] :update_id # @option opts [String] :ban_reason - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(BanUserFromCommentResult, Integer, Hash)>] BanUserFromCommentResult data, response status code and response headers - def post_ban_user_from_comment_with_http_info(comment_id, opts = {}) + def post_ban_user_from_comment_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_ban_user_from_comment ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_ban_user_from_comment" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_ban_user_from_comment" end # resource path - local_var_path = '/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'banEmail'] = opts[:'ban_email'] if !opts[:'ban_email'].nil? query_params[:'banEmailDomain'] = opts[:'ban_email_domain'] if !opts[:'ban_email_domain'].nil? query_params[:'banIP'] = opts[:'ban_ip'] if !opts[:'ban_ip'].nil? @@ -1746,7 +1851,6 @@ def post_ban_user_from_comment_with_http_info(comment_id, opts = {}) query_params[:'isShadowBan'] = opts[:'is_shadow_ban'] if !opts[:'is_shadow_ban'].nil? query_params[:'updateId'] = opts[:'update_id'] if !opts[:'update_id'].nil? query_params[:'banReason'] = opts[:'ban_reason'] if !opts[:'ban_reason'].nil? - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1783,35 +1887,39 @@ def post_ban_user_from_comment_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param ban_user_undo_params [BanUserUndoParams] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [APIEmptyResponse] - def post_ban_user_undo(ban_user_undo_params, opts = {}) - data, _status_code, _headers = post_ban_user_undo_with_http_info(ban_user_undo_params, opts) + def post_ban_user_undo(tenant_id, ban_user_undo_params, opts = {}) + data, _status_code, _headers = post_ban_user_undo_with_http_info(tenant_id, ban_user_undo_params, opts) data end + # @param tenant_id [String] # @param ban_user_undo_params [BanUserUndoParams] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def post_ban_user_undo_with_http_info(ban_user_undo_params, opts = {}) + def post_ban_user_undo_with_http_info(tenant_id, ban_user_undo_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_ban_user_undo ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_ban_user_undo" + end # verify the required parameter 'ban_user_undo_params' is set if @api_client.config.client_side_validation && ban_user_undo_params.nil? fail ArgumentError, "Missing the required parameter 'ban_user_undo_params' when calling ModerationApi.post_ban_user_undo" end # resource path - local_var_path = '/auth/my-account/moderate-comments/ban-user/undo' + local_var_path = '/auth/my-account/moderate-comments/mod_api/ban-user/undo' # query parameters query_params = opts[:query_params] || {} - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'tenantId'] = tenant_id query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1853,44 +1961,48 @@ def post_ban_user_undo_with_http_info(ban_user_undo_params, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param bulk_pre_ban_params [BulkPreBanParams] # @param [Hash] opts the optional parameters # @option opts [Boolean] :include_by_user_id_and_email # @option opts [Boolean] :include_by_ip # @option opts [Boolean] :include_by_email_domain - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [BulkPreBanSummary] - def post_bulk_pre_ban_summary(bulk_pre_ban_params, opts = {}) - data, _status_code, _headers = post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts) + def post_bulk_pre_ban_summary(tenant_id, bulk_pre_ban_params, opts = {}) + data, _status_code, _headers = post_bulk_pre_ban_summary_with_http_info(tenant_id, bulk_pre_ban_params, opts) data end + # @param tenant_id [String] # @param bulk_pre_ban_params [BulkPreBanParams] # @param [Hash] opts the optional parameters # @option opts [Boolean] :include_by_user_id_and_email # @option opts [Boolean] :include_by_ip # @option opts [Boolean] :include_by_email_domain - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(BulkPreBanSummary, Integer, Hash)>] BulkPreBanSummary data, response status code and response headers - def post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts = {}) + def post_bulk_pre_ban_summary_with_http_info(tenant_id, bulk_pre_ban_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_bulk_pre_ban_summary ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_bulk_pre_ban_summary" + end # verify the required parameter 'bulk_pre_ban_params' is set if @api_client.config.client_side_validation && bulk_pre_ban_params.nil? fail ArgumentError, "Missing the required parameter 'bulk_pre_ban_params' when calling ModerationApi.post_bulk_pre_ban_summary" end # resource path - local_var_path = '/auth/my-account/moderate-comments/bulk-pre-ban-summary' + local_var_path = '/auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'includeByUserIdAndEmail'] = opts[:'include_by_user_id_and_email'] if !opts[:'include_by_user_id_and_email'].nil? query_params[:'includeByIP'] = opts[:'include_by_ip'] if !opts[:'include_by_ip'].nil? query_params[:'includeByEmailDomain'] = opts[:'include_by_email_domain'] if !opts[:'include_by_email_domain'].nil? - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1932,35 +2044,39 @@ def post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comments_by_ids_params [CommentsByIdsParams] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationAPIChildCommentsResponse] - def post_comments_by_ids(comments_by_ids_params, opts = {}) - data, _status_code, _headers = post_comments_by_ids_with_http_info(comments_by_ids_params, opts) + def post_comments_by_ids(tenant_id, comments_by_ids_params, opts = {}) + data, _status_code, _headers = post_comments_by_ids_with_http_info(tenant_id, comments_by_ids_params, opts) data end + # @param tenant_id [String] # @param comments_by_ids_params [CommentsByIdsParams] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(ModerationAPIChildCommentsResponse, Integer, Hash)>] ModerationAPIChildCommentsResponse data, response status code and response headers - def post_comments_by_ids_with_http_info(comments_by_ids_params, opts = {}) + def post_comments_by_ids_with_http_info(tenant_id, comments_by_ids_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_comments_by_ids ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_comments_by_ids" + end # verify the required parameter 'comments_by_ids_params' is set if @api_client.config.client_side_validation && comments_by_ids_params.nil? fail ArgumentError, "Missing the required parameter 'comments_by_ids_params' when calling ModerationApi.post_comments_by_ids" end # resource path - local_var_path = '/auth/my-account/moderate-comments/comments-by-ids' + local_var_path = '/auth/my-account/moderate-comments/mod_api/comments-by-ids' # query parameters query_params = opts[:query_params] || {} - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'tenantId'] = tenant_id query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2002,37 +2118,41 @@ def post_comments_by_ids_with_http_info(comments_by_ids_params, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] - def post_flag_comment(comment_id, opts = {}) - data, _status_code, _headers = post_flag_comment_with_http_info(comment_id, opts) + def post_flag_comment(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = post_flag_comment_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def post_flag_comment_with_http_info(comment_id, opts = {}) + def post_flag_comment_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_flag_comment ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_flag_comment" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_flag_comment" end # resource path - local_var_path = '/auth/my-account/moderate-comments/flag-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/flag-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'tenantId'] = tenant_id query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? @@ -2070,37 +2190,41 @@ def post_flag_comment_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso - # @return [PostRemoveCommentResponse] - def post_remove_comment(comment_id, opts = {}) - data, _status_code, _headers = post_remove_comment_with_http_info(comment_id, opts) + # @return [PostRemoveCommentApiResponse] + def post_remove_comment(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = post_remove_comment_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso - # @return [Array<(PostRemoveCommentResponse, Integer, Hash)>] PostRemoveCommentResponse data, response status code and response headers - def post_remove_comment_with_http_info(comment_id, opts = {}) + # @return [Array<(PostRemoveCommentApiResponse, Integer, Hash)>] PostRemoveCommentApiResponse data, response status code and response headers + def post_remove_comment_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_remove_comment ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_remove_comment" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_remove_comment" end # resource path - local_var_path = '/auth/my-account/moderate-comments/remove-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/remove-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'tenantId'] = tenant_id query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? @@ -2116,7 +2240,7 @@ def post_remove_comment_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'PostRemoveCommentResponse' + return_type = opts[:debug_return_type] || 'PostRemoveCommentApiResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2138,37 +2262,41 @@ def post_remove_comment_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] - def post_restore_deleted_comment(comment_id, opts = {}) - data, _status_code, _headers = post_restore_deleted_comment_with_http_info(comment_id, opts) + def post_restore_deleted_comment(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = post_restore_deleted_comment_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def post_restore_deleted_comment_with_http_info(comment_id, opts = {}) + def post_restore_deleted_comment_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_restore_deleted_comment ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_restore_deleted_comment" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_restore_deleted_comment" end # resource path - local_var_path = '/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'tenantId'] = tenant_id query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? @@ -2206,40 +2334,44 @@ def post_restore_deleted_comment_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :approved - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [SetCommentApprovedResponse] - def post_set_comment_approval_status(comment_id, opts = {}) - data, _status_code, _headers = post_set_comment_approval_status_with_http_info(comment_id, opts) + def post_set_comment_approval_status(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = post_set_comment_approval_status_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :approved - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(SetCommentApprovedResponse, Integer, Hash)>] SetCommentApprovedResponse data, response status code and response headers - def post_set_comment_approval_status_with_http_info(comment_id, opts = {}) + def post_set_comment_approval_status_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_approval_status ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_set_comment_approval_status" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_set_comment_approval_status" end # resource path - local_var_path = '/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'approved'] = opts[:'approved'] if !opts[:'approved'].nil? - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? @@ -2277,40 +2409,44 @@ def post_set_comment_approval_status_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :reviewed - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] - def post_set_comment_review_status(comment_id, opts = {}) - data, _status_code, _headers = post_set_comment_review_status_with_http_info(comment_id, opts) + def post_set_comment_review_status(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = post_set_comment_review_status_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :reviewed - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def post_set_comment_review_status_with_http_info(comment_id, opts = {}) + def post_set_comment_review_status_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_review_status ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_set_comment_review_status" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_set_comment_review_status" end # resource path - local_var_path = '/auth/my-account/moderate-comments/set-comment-review-status/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'reviewed'] = opts[:'reviewed'] if !opts[:'reviewed'].nil? - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? @@ -2348,43 +2484,47 @@ def post_set_comment_review_status_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :spam # @option opts [Boolean] :perm_not_spam - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] - def post_set_comment_spam_status(comment_id, opts = {}) - data, _status_code, _headers = post_set_comment_spam_status_with_http_info(comment_id, opts) + def post_set_comment_spam_status(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = post_set_comment_spam_status_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :spam # @option opts [Boolean] :perm_not_spam - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def post_set_comment_spam_status_with_http_info(comment_id, opts = {}) + def post_set_comment_spam_status_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_spam_status ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_set_comment_spam_status" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_set_comment_spam_status" end # resource path - local_var_path = '/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'spam'] = opts[:'spam'] if !opts[:'spam'].nil? query_params[:'permNotSpam'] = opts[:'perm_not_spam'] if !opts[:'perm_not_spam'].nil? - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? @@ -2422,29 +2562,33 @@ def post_set_comment_spam_status_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param set_comment_text_params [SetCommentTextParams] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [SetCommentTextResponse] - def post_set_comment_text(comment_id, set_comment_text_params, opts = {}) - data, _status_code, _headers = post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts) + def post_set_comment_text(tenant_id, comment_id, set_comment_text_params, opts = {}) + data, _status_code, _headers = post_set_comment_text_with_http_info(tenant_id, comment_id, set_comment_text_params, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param set_comment_text_params [SetCommentTextParams] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(SetCommentTextResponse, Integer, Hash)>] SetCommentTextResponse data, response status code and response headers - def post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts = {}) + def post_set_comment_text_with_http_info(tenant_id, comment_id, set_comment_text_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_text ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_set_comment_text" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_set_comment_text" @@ -2454,11 +2598,11 @@ def post_set_comment_text_with_http_info(comment_id, set_comment_text_params, op fail ArgumentError, "Missing the required parameter 'set_comment_text_params' when calling ModerationApi.post_set_comment_text" end # resource path - local_var_path = '/auth/my-account/moderate-comments/set-comment-text/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'tenantId'] = tenant_id query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? @@ -2501,37 +2645,41 @@ def post_set_comment_text_with_http_info(comment_id, set_comment_text_params, op return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] - def post_un_flag_comment(comment_id, opts = {}) - data, _status_code, _headers = post_un_flag_comment_with_http_info(comment_id, opts) + def post_un_flag_comment(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = post_un_flag_comment_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def post_un_flag_comment_with_http_info(comment_id, opts = {}) + def post_un_flag_comment_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_un_flag_comment ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_un_flag_comment" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_un_flag_comment" end # resource path - local_var_path = '/auth/my-account/moderate-comments/un-flag-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'tenantId'] = tenant_id query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? @@ -2569,40 +2717,44 @@ def post_un_flag_comment_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :direction - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [VoteResponse] - def post_vote(comment_id, opts = {}) - data, _status_code, _headers = post_vote_with_http_info(comment_id, opts) + def post_vote(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = post_vote_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :direction - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(VoteResponse, Integer, Hash)>] VoteResponse data, response status code and response headers - def post_vote_with_http_info(comment_id, opts = {}) + def post_vote_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_vote ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_vote" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_vote" end # resource path - local_var_path = '/auth/my-account/moderate-comments/vote/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/vote/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil? - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? @@ -2640,44 +2792,48 @@ def post_vote_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param badge_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :comment_id - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [AwardUserBadgeResponse] - def put_award_badge(badge_id, opts = {}) - data, _status_code, _headers = put_award_badge_with_http_info(badge_id, opts) + def put_award_badge(tenant_id, badge_id, opts = {}) + data, _status_code, _headers = put_award_badge_with_http_info(tenant_id, badge_id, opts) data end + # @param tenant_id [String] # @param badge_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :comment_id - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(AwardUserBadgeResponse, Integer, Hash)>] AwardUserBadgeResponse data, response status code and response headers - def put_award_badge_with_http_info(badge_id, opts = {}) + def put_award_badge_with_http_info(tenant_id, badge_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.put_award_badge ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.put_award_badge" + end # verify the required parameter 'badge_id' is set if @api_client.config.client_side_validation && badge_id.nil? fail ArgumentError, "Missing the required parameter 'badge_id' when calling ModerationApi.put_award_badge" end # resource path - local_var_path = '/auth/my-account/moderate-comments/award-badge' + local_var_path = '/auth/my-account/moderate-comments/mod_api/award-badge' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'badgeId'] = badge_id query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? query_params[:'commentId'] = opts[:'comment_id'] if !opts[:'comment_id'].nil? - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? @@ -2715,36 +2871,40 @@ def put_award_badge_with_http_info(badge_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param url_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [APIEmptyResponse] - def put_close_thread(url_id, opts = {}) - data, _status_code, _headers = put_close_thread_with_http_info(url_id, opts) + def put_close_thread(tenant_id, url_id, opts = {}) + data, _status_code, _headers = put_close_thread_with_http_info(tenant_id, url_id, opts) data end + # @param tenant_id [String] # @param url_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def put_close_thread_with_http_info(url_id, opts = {}) + def put_close_thread_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.put_close_thread ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.put_close_thread" + end # verify the required parameter 'url_id' is set if @api_client.config.client_side_validation && url_id.nil? fail ArgumentError, "Missing the required parameter 'url_id' when calling ModerationApi.put_close_thread" end # resource path - local_var_path = '/auth/my-account/moderate-comments/close-thread' + local_var_path = '/auth/my-account/moderate-comments/mod_api/close-thread' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'urlId'] = url_id - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2781,44 +2941,48 @@ def put_close_thread_with_http_info(url_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param badge_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :comment_id - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [RemoveUserBadgeResponse] - def put_remove_badge(badge_id, opts = {}) - data, _status_code, _headers = put_remove_badge_with_http_info(badge_id, opts) + def put_remove_badge(tenant_id, badge_id, opts = {}) + data, _status_code, _headers = put_remove_badge_with_http_info(tenant_id, badge_id, opts) data end + # @param tenant_id [String] # @param badge_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :comment_id - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(RemoveUserBadgeResponse, Integer, Hash)>] RemoveUserBadgeResponse data, response status code and response headers - def put_remove_badge_with_http_info(badge_id, opts = {}) + def put_remove_badge_with_http_info(tenant_id, badge_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.put_remove_badge ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.put_remove_badge" + end # verify the required parameter 'badge_id' is set if @api_client.config.client_side_validation && badge_id.nil? fail ArgumentError, "Missing the required parameter 'badge_id' when calling ModerationApi.put_remove_badge" end # resource path - local_var_path = '/auth/my-account/moderate-comments/remove-badge' + local_var_path = '/auth/my-account/moderate-comments/mod_api/remove-badge' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'badgeId'] = badge_id query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? query_params[:'commentId'] = opts[:'comment_id'] if !opts[:'comment_id'].nil? - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? @@ -2856,36 +3020,40 @@ def put_remove_badge_with_http_info(badge_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param url_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [APIEmptyResponse] - def put_reopen_thread(url_id, opts = {}) - data, _status_code, _headers = put_reopen_thread_with_http_info(url_id, opts) + def put_reopen_thread(tenant_id, url_id, opts = {}) + data, _status_code, _headers = put_reopen_thread_with_http_info(tenant_id, url_id, opts) data end + # @param tenant_id [String] # @param url_id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def put_reopen_thread_with_http_info(url_id, opts = {}) + def put_reopen_thread_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.put_reopen_thread ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.put_reopen_thread" + end # verify the required parameter 'url_id' is set if @api_client.config.client_side_validation && url_id.nil? fail ArgumentError, "Missing the required parameter 'url_id' when calling ModerationApi.put_reopen_thread" end # resource path - local_var_path = '/auth/my-account/moderate-comments/reopen-thread' + local_var_path = '/auth/my-account/moderate-comments/mod_api/reopen-thread' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'urlId'] = url_id - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2922,35 +3090,39 @@ def put_reopen_thread_with_http_info(url_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :trust_factor - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [SetUserTrustFactorResponse] - def set_trust_factor(opts = {}) - data, _status_code, _headers = set_trust_factor_with_http_info(opts) + def set_trust_factor(tenant_id, opts = {}) + data, _status_code, _headers = set_trust_factor_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :trust_factor - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [Array<(SetUserTrustFactorResponse, Integer, Hash)>] SetUserTrustFactorResponse data, response status code and response headers - def set_trust_factor_with_http_info(opts = {}) + def set_trust_factor_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.set_trust_factor ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.set_trust_factor" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/set-trust-factor' + local_var_path = '/auth/my-account/moderate-comments/mod_api/set-trust-factor' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? query_params[:'trustFactor'] = opts[:'trust_factor'] if !opts[:'trust_factor'].nil? - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters diff --git a/client/lib/fastcomments-client/models/post_remove_comment_response.rb b/client/lib/fastcomments-client/models/post_remove_comment_api_response.rb similarity index 98% rename from client/lib/fastcomments-client/models/post_remove_comment_response.rb rename to client/lib/fastcomments-client/models/post_remove_comment_api_response.rb index 72818b0..7245a1d 100644 --- a/client/lib/fastcomments-client/models/post_remove_comment_response.rb +++ b/client/lib/fastcomments-client/models/post_remove_comment_api_response.rb @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - module PostRemoveCommentResponse + module PostRemoveCommentApiResponse class << self # List of class defined in anyOf (OpenAPI v3) def openapi_any_of diff --git a/client/spec/api/default_api_spec.rb b/client/spec/api/default_api_spec.rb index d5c2e3e..8d99717 100644 --- a/client/spec/api/default_api_spec.rb +++ b/client/spec/api/default_api_spec.rb @@ -44,8 +44,8 @@ end # unit tests for add_hash_tag + # @param tenant_id # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [CreateHashTagBody] :create_hash_tag_body # @return [CreateHashTagResponse] describe 'add_hash_tag test' do @@ -55,8 +55,8 @@ end # unit tests for add_hash_tags_bulk + # @param tenant_id # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [BulkCreateHashTagsBody] :bulk_create_hash_tags_body # @return [BulkCreateHashTagsResponse] describe 'add_hash_tags_bulk test' do @@ -362,9 +362,9 @@ end # unit tests for delete_hash_tag + # @param tenant_id # @param tag # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [DeleteHashTagRequestBody] :delete_hash_tag_request_body # @return [APIEmptyResponse] describe 'delete_hash_tag test' do @@ -1107,9 +1107,9 @@ end # unit tests for patch_hash_tag + # @param tenant_id # @param tag # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [UpdateHashTagBody] :update_hash_tag_body # @return [UpdateHashTagResponse] describe 'patch_hash_tag test' do diff --git a/client/spec/api/moderation_api_spec.rb b/client/spec/api/moderation_api_spec.rb index 79efbf4..74aa9c7 100644 --- a/client/spec/api/moderation_api_spec.rb +++ b/client/spec/api/moderation_api_spec.rb @@ -33,10 +33,10 @@ end # unit tests for delete_moderation_vote + # @param tenant_id # @param comment_id # @param vote_id # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [VoteDeleteResponse] @@ -47,6 +47,7 @@ end # unit tests for get_api_comments + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [Float] :page # @option opts [Float] :count @@ -56,7 +57,6 @@ # @option opts [String] :search_filters # @option opts [String] :sorts # @option opts [Boolean] :demo - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationAPIGetCommentsResponse] describe 'get_api_comments test' do @@ -66,9 +66,9 @@ end # unit tests for get_api_export_status + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :batch_job_id - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationExportStatusResponse] describe 'get_api_export_status test' do @@ -78,6 +78,7 @@ end # unit tests for get_api_ids + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment @@ -85,7 +86,6 @@ # @option opts [String] :search_filters # @option opts [String] :after_id # @option opts [Boolean] :demo - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationAPIGetCommentIdsResponse] describe 'get_api_ids test' do @@ -95,9 +95,9 @@ end # unit tests for get_ban_users_from_comment + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [GetBannedUsersFromCommentResponse] describe 'get_ban_users_from_comment test' do @@ -107,9 +107,9 @@ end # unit tests for get_comment_ban_status + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [GetCommentBanStatusResponse] describe 'get_comment_ban_status test' do @@ -119,9 +119,9 @@ end # unit tests for get_comment_children + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationAPIChildCommentsResponse] describe 'get_comment_children test' do @@ -131,13 +131,13 @@ end # unit tests for get_count + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment # @option opts [String] :filter # @option opts [String] :search_filters # @option opts [Boolean] :demo - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationAPICountCommentsResponse] describe 'get_count test' do @@ -147,8 +147,8 @@ end # unit tests for get_counts + # @param tenant_id # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [GetBannedUsersCountResponse] describe 'get_counts test' do @@ -158,9 +158,9 @@ end # unit tests for get_logs + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationAPIGetLogsResponse] describe 'get_logs test' do @@ -170,8 +170,8 @@ end # unit tests for get_manual_badges + # @param tenant_id # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [GetTenantManualBadgesResponse] describe 'get_manual_badges test' do @@ -181,10 +181,10 @@ end # unit tests for get_manual_badges_for_user + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :badges_user_id # @option opts [String] :comment_id - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [GetUserManualBadgesResponse] describe 'get_manual_badges_for_user test' do @@ -194,11 +194,11 @@ end # unit tests for get_moderation_comment + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters # @option opts [Boolean] :include_email # @option opts [Boolean] :include_ip - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationAPICommentResponse] describe 'get_moderation_comment test' do @@ -208,9 +208,9 @@ end # unit tests for get_moderation_comment_text + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [GetCommentTextResponse] describe 'get_moderation_comment_text test' do @@ -220,12 +220,12 @@ end # unit tests for get_pre_ban_summary + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters # @option opts [Boolean] :include_by_user_id_and_email # @option opts [Boolean] :include_by_ip # @option opts [Boolean] :include_by_email_domain - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [PreBanSummary] describe 'get_pre_ban_summary test' do @@ -235,11 +235,11 @@ end # unit tests for get_search_comments_summary + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :value # @option opts [String] :filters # @option opts [String] :search_filters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationCommentSearchResponse] describe 'get_search_comments_summary test' do @@ -249,9 +249,9 @@ end # unit tests for get_search_pages + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :value - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationPageSearchResponse] describe 'get_search_pages test' do @@ -261,9 +261,9 @@ end # unit tests for get_search_sites + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :value - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationSiteSearchResponse] describe 'get_search_sites test' do @@ -273,9 +273,9 @@ end # unit tests for get_search_suggest + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :text_search - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationSuggestResponse] describe 'get_search_suggest test' do @@ -285,9 +285,9 @@ end # unit tests for get_search_users + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :value - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationUserSearchResponse] describe 'get_search_users test' do @@ -297,9 +297,9 @@ end # unit tests for get_trust_factor + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :user_id - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [GetUserTrustFactorResponse] describe 'get_trust_factor test' do @@ -309,8 +309,8 @@ end # unit tests for get_user_ban_preference + # @param tenant_id # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [APIModerateGetUserBanPreferencesResponse] describe 'get_user_ban_preference test' do @@ -320,9 +320,9 @@ end # unit tests for get_user_internal_profile + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :comment_id - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [GetUserInternalProfileResponse] describe 'get_user_internal_profile test' do @@ -332,10 +332,10 @@ end # unit tests for post_adjust_comment_votes + # @param tenant_id # @param comment_id # @param adjust_comment_votes_params # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [AdjustVotesResponse] @@ -346,13 +346,13 @@ end # unit tests for post_api_export + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment # @option opts [String] :filters # @option opts [String] :search_filters # @option opts [String] :sorts - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationExportResponse] describe 'post_api_export test' do @@ -362,6 +362,7 @@ end # unit tests for post_ban_user_from_comment + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters # @option opts [Boolean] :ban_email @@ -372,7 +373,6 @@ # @option opts [Boolean] :is_shadow_ban # @option opts [String] :update_id # @option opts [String] :ban_reason - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [BanUserFromCommentResult] describe 'post_ban_user_from_comment test' do @@ -382,9 +382,9 @@ end # unit tests for post_ban_user_undo + # @param tenant_id # @param ban_user_undo_params # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [APIEmptyResponse] describe 'post_ban_user_undo test' do @@ -394,12 +394,12 @@ end # unit tests for post_bulk_pre_ban_summary + # @param tenant_id # @param bulk_pre_ban_params # @param [Hash] opts the optional parameters # @option opts [Boolean] :include_by_user_id_and_email # @option opts [Boolean] :include_by_ip # @option opts [Boolean] :include_by_email_domain - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [BulkPreBanSummary] describe 'post_bulk_pre_ban_summary test' do @@ -409,9 +409,9 @@ end # unit tests for post_comments_by_ids + # @param tenant_id # @param comments_by_ids_params # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [ModerationAPIChildCommentsResponse] describe 'post_comments_by_ids test' do @@ -421,9 +421,9 @@ end # unit tests for post_flag_comment + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] @@ -434,12 +434,12 @@ end # unit tests for post_remove_comment + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso - # @return [PostRemoveCommentResponse] + # @return [PostRemoveCommentApiResponse] describe 'post_remove_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -447,9 +447,9 @@ end # unit tests for post_restore_deleted_comment + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] @@ -460,10 +460,10 @@ end # unit tests for post_set_comment_approval_status + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters # @option opts [Boolean] :approved - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [SetCommentApprovedResponse] @@ -474,10 +474,10 @@ end # unit tests for post_set_comment_review_status + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters # @option opts [Boolean] :reviewed - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] @@ -488,11 +488,11 @@ end # unit tests for post_set_comment_spam_status + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters # @option opts [Boolean] :spam # @option opts [Boolean] :perm_not_spam - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] @@ -503,10 +503,10 @@ end # unit tests for post_set_comment_text + # @param tenant_id # @param comment_id # @param set_comment_text_params # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [SetCommentTextResponse] @@ -517,9 +517,9 @@ end # unit tests for post_un_flag_comment + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] @@ -530,10 +530,10 @@ end # unit tests for post_vote + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters # @option opts [String] :direction - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [VoteResponse] @@ -544,11 +544,11 @@ end # unit tests for put_award_badge + # @param tenant_id # @param badge_id # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :comment_id - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [AwardUserBadgeResponse] @@ -559,9 +559,9 @@ end # unit tests for put_close_thread + # @param tenant_id # @param url_id # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [APIEmptyResponse] describe 'put_close_thread test' do @@ -571,11 +571,11 @@ end # unit tests for put_remove_badge + # @param tenant_id # @param badge_id # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :comment_id - # @option opts [String] :tenant_id # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [RemoveUserBadgeResponse] @@ -586,9 +586,9 @@ end # unit tests for put_reopen_thread + # @param tenant_id # @param url_id # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [APIEmptyResponse] describe 'put_reopen_thread test' do @@ -598,10 +598,10 @@ end # unit tests for set_trust_factor + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :trust_factor - # @option opts [String] :tenant_id # @option opts [String] :sso # @return [SetUserTrustFactorResponse] describe 'set_trust_factor test' do diff --git a/client/spec/models/post_remove_comment_response_spec.rb b/client/spec/models/post_remove_comment_api_response_spec.rb similarity index 77% rename from client/spec/models/post_remove_comment_response_spec.rb rename to client/spec/models/post_remove_comment_api_response_spec.rb index 854a751..dc56645 100644 --- a/client/spec/models/post_remove_comment_response_spec.rb +++ b/client/spec/models/post_remove_comment_api_response_spec.rb @@ -14,8 +14,8 @@ require 'json' require 'date' -# Unit tests for FastCommentsClient::PostRemoveCommentResponse +# Unit tests for FastCommentsClient::PostRemoveCommentApiResponse # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe FastCommentsClient::PostRemoveCommentResponse do +describe FastCommentsClient::PostRemoveCommentApiResponse do end diff --git a/openapi.json b/openapi.json index 9ed89a9..302747d 100644 --- a/openapi.json +++ b/openapi.json @@ -13107,9 +13107,9 @@ ] } }, - "/auth/my-account/moderate-comments/count": { + "/auth/my-account/moderate-comments/mod_api/count": { "get": { - "operationId": "GetCount", + "operationId": "getCount", "responses": { "200": { "description": "Ok", @@ -13137,6 +13137,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "text-search", @@ -13177,14 +13185,6 @@ "type": "boolean" } }, - { - "in": "query", - "name": "tenantId", - "required": false, - "schema": { - "type": "string" - } - }, { "in": "query", "name": "sso", @@ -13196,9 +13196,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/ids": { + "/auth/my-account/moderate-comments/mod_api/api/ids": { "get": { - "operationId": "GetApiIds", + "operationId": "getApiIds", "responses": { "200": { "description": "Ok", @@ -13226,6 +13226,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "text-search", @@ -13274,14 +13282,6 @@ "type": "boolean" } }, - { - "in": "query", - "name": "tenantId", - "required": false, - "schema": { - "type": "string" - } - }, { "in": "query", "name": "sso", @@ -13293,9 +13293,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/comments": { + "/auth/my-account/moderate-comments/mod_api/api/comments": { "get": { - "operationId": "GetApiComments", + "operationId": "getApiComments", "responses": { "200": { "description": "Ok", @@ -13323,6 +13323,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "page", @@ -13389,14 +13397,6 @@ "type": "boolean" } }, - { - "in": "query", - "name": "tenantId", - "required": false, - "schema": { - "type": "string" - } - }, { "in": "query", "name": "sso", @@ -13408,9 +13408,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/export": { + "/auth/my-account/moderate-comments/mod_api/api/export": { "post": { - "operationId": "PostApiExport", + "operationId": "postApiExport", "responses": { "200": { "description": "Ok", @@ -13440,15 +13440,15 @@ "parameters": [ { "in": "query", - "name": "text-search", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "byIPFromComment", + "name": "text-search", "required": false, "schema": { "type": "string" @@ -13456,7 +13456,7 @@ }, { "in": "query", - "name": "filters", + "name": "byIPFromComment", "required": false, "schema": { "type": "string" @@ -13464,7 +13464,7 @@ }, { "in": "query", - "name": "searchFilters", + "name": "filters", "required": false, "schema": { "type": "string" @@ -13472,7 +13472,7 @@ }, { "in": "query", - "name": "sorts", + "name": "searchFilters", "required": false, "schema": { "type": "string" @@ -13480,7 +13480,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "sorts", "required": false, "schema": { "type": "string" @@ -13497,9 +13497,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/export/status": { + "/auth/my-account/moderate-comments/mod_api/api/export/status": { "get": { - "operationId": "GetApiExportStatus", + "operationId": "getApiExportStatus", "responses": { "200": { "description": "Ok", @@ -13529,15 +13529,15 @@ "parameters": [ { "in": "query", - "name": "batchJobId", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "batchJobId", "required": false, "schema": { "type": "string" @@ -13554,9 +13554,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/users": { + "/auth/my-account/moderate-comments/mod_api/search/users": { "get": { - "operationId": "GetSearchUsers", + "operationId": "getSearchUsers", "responses": { "200": { "description": "Ok", @@ -13586,15 +13586,15 @@ "parameters": [ { "in": "query", - "name": "value", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "value", "required": false, "schema": { "type": "string" @@ -13611,9 +13611,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/pages": { + "/auth/my-account/moderate-comments/mod_api/search/pages": { "get": { - "operationId": "GetSearchPages", + "operationId": "getSearchPages", "responses": { "200": { "description": "Ok", @@ -13643,15 +13643,15 @@ "parameters": [ { "in": "query", - "name": "value", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "value", "required": false, "schema": { "type": "string" @@ -13668,9 +13668,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/sites": { + "/auth/my-account/moderate-comments/mod_api/search/sites": { "get": { - "operationId": "GetSearchSites", + "operationId": "getSearchSites", "responses": { "200": { "description": "Ok", @@ -13700,15 +13700,15 @@ "parameters": [ { "in": "query", - "name": "value", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "value", "required": false, "schema": { "type": "string" @@ -13725,9 +13725,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/comments/summary": { + "/auth/my-account/moderate-comments/mod_api/search/comments/summary": { "get": { - "operationId": "GetSearchCommentsSummary", + "operationId": "getSearchCommentsSummary", "responses": { "200": { "description": "Ok", @@ -13757,15 +13757,15 @@ "parameters": [ { "in": "query", - "name": "value", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "filters", + "name": "value", "required": false, "schema": { "type": "string" @@ -13773,7 +13773,7 @@ }, { "in": "query", - "name": "searchFilters", + "name": "filters", "required": false, "schema": { "type": "string" @@ -13781,7 +13781,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "searchFilters", "required": false, "schema": { "type": "string" @@ -13798,9 +13798,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/suggest": { + "/auth/my-account/moderate-comments/mod_api/search/suggest": { "get": { - "operationId": "GetSearchSuggest", + "operationId": "getSearchSuggest", "responses": { "200": { "description": "Ok", @@ -13830,15 +13830,15 @@ "parameters": [ { "in": "query", - "name": "text-search", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "text-search", "required": false, "schema": { "type": "string" @@ -13855,9 +13855,9 @@ ] } }, - "/auth/my-account/moderate-comments/pre-ban-summary/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId}": { "get": { - "operationId": "GetPreBanSummary", + "operationId": "getPreBanSummary", "responses": { "200": { "description": "Ok", @@ -13885,6 +13885,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -13917,14 +13925,6 @@ "type": "boolean" } }, - { - "in": "query", - "name": "tenantId", - "required": false, - "schema": { - "type": "string" - } - }, { "in": "query", "name": "sso", @@ -13936,9 +13936,9 @@ ] } }, - "/auth/my-account/moderate-comments/bulk-pre-ban-summary": { + "/auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary": { "post": { - "operationId": "PostBulkPreBanSummary", + "operationId": "postBulkPreBanSummary", "responses": { "200": { "description": "Ok", @@ -13968,15 +13968,15 @@ "parameters": [ { "in": "query", - "name": "includeByUserIdAndEmail", - "required": false, + "name": "tenantId", + "required": true, "schema": { - "type": "boolean" + "type": "string" } }, { "in": "query", - "name": "includeByIP", + "name": "includeByUserIdAndEmail", "required": false, "schema": { "type": "boolean" @@ -13984,7 +13984,7 @@ }, { "in": "query", - "name": "includeByEmailDomain", + "name": "includeByIP", "required": false, "schema": { "type": "boolean" @@ -13992,10 +13992,10 @@ }, { "in": "query", - "name": "tenantId", + "name": "includeByEmailDomain", "required": false, "schema": { - "type": "string" + "type": "boolean" } }, { @@ -14019,9 +14019,9 @@ } } }, - "/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId}": { "post": { - "operationId": "PostBanUserFromComment", + "operationId": "postBanUserFromComment", "responses": { "200": { "description": "Ok", @@ -14049,6 +14049,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14121,14 +14129,6 @@ "type": "string" } }, - { - "in": "query", - "name": "tenantId", - "required": false, - "schema": { - "type": "string" - } - }, { "in": "query", "name": "sso", @@ -14140,9 +14140,9 @@ ] } }, - "/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId}": { "get": { - "operationId": "GetBanUsersFromComment", + "operationId": "getBanUsersFromComment", "responses": { "200": { "description": "Ok", @@ -14171,17 +14171,17 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } @@ -14197,9 +14197,9 @@ ] } }, - "/auth/my-account/moderate-comments/ban-user/undo": { + "/auth/my-account/moderate-comments/mod_api/ban-user/undo": { "post": { - "operationId": "PostBanUserUndo", + "operationId": "postBanUserUndo", "responses": { "200": { "description": "Ok", @@ -14230,7 +14230,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -14256,16 +14256,16 @@ } } }, - "/auth/my-account/moderate-comments/remove-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/remove-comment/{commentId}": { "post": { - "operationId": "PostRemoveComment", + "operationId": "postRemoveComment", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "title": "PostRemoveCommentResponse", + "title": "PostRemoveCommentApiResponse", "anyOf": [ { "$ref": "#/components/schemas/DeleteCommentResult" @@ -14295,17 +14295,17 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } @@ -14329,9 +14329,9 @@ ] } }, - "/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId}": { "post": { - "operationId": "PostRestoreDeletedComment", + "operationId": "postRestoreDeletedComment", "responses": { "200": { "description": "Ok", @@ -14360,17 +14360,17 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } @@ -14394,9 +14394,9 @@ ] } }, - "/auth/my-account/moderate-comments/flag-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/flag-comment/{commentId}": { "post": { - "operationId": "PostFlagComment", + "operationId": "postFlagComment", "responses": { "200": { "description": "Ok", @@ -14425,17 +14425,17 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } @@ -14459,9 +14459,9 @@ ] } }, - "/auth/my-account/moderate-comments/un-flag-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId}": { "post": { - "operationId": "PostUnFlagComment", + "operationId": "postUnFlagComment", "responses": { "200": { "description": "Ok", @@ -14490,17 +14490,17 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } @@ -14524,9 +14524,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-review-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId}": { "post": { - "operationId": "PostSetCommentReviewStatus", + "operationId": "postSetCommentReviewStatus", "responses": { "200": { "description": "Ok", @@ -14555,27 +14555,27 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "reviewed", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { - "type": "boolean" + "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "reviewed", "required": false, "schema": { - "type": "string" + "type": "boolean" } }, { @@ -14597,9 +14597,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId}": { "post": { - "operationId": "PostSetCommentSpamStatus", + "operationId": "postSetCommentSpamStatus", "responses": { "200": { "description": "Ok", @@ -14627,6 +14627,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14651,14 +14659,6 @@ "type": "boolean" } }, - { - "in": "query", - "name": "tenantId", - "required": false, - "schema": { - "type": "string" - } - }, { "in": "query", "name": "broadcastId", @@ -14678,9 +14678,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId}": { "post": { - "operationId": "PostSetCommentApprovalStatus", + "operationId": "postSetCommentApprovalStatus", "responses": { "200": { "description": "Ok", @@ -14709,27 +14709,27 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "approved", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { - "type": "boolean" + "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "approved", "required": false, "schema": { - "type": "string" + "type": "boolean" } }, { @@ -14751,9 +14751,9 @@ ] } }, - "/auth/my-account/moderate-comments/logs/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/logs/{commentId}": { "get": { - "operationId": "GetLogs", + "operationId": "getLogs", "responses": { "200": { "description": "Ok", @@ -14782,17 +14782,17 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } @@ -14808,9 +14808,9 @@ ] } }, - "/auth/my-account/moderate-comments/comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/comment/{commentId}": { "get": { - "operationId": "GetModerationComment", + "operationId": "getModerationComment", "responses": { "200": { "description": "Ok", @@ -14838,6 +14838,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14862,14 +14870,6 @@ "type": "boolean" } }, - { - "in": "query", - "name": "tenantId", - "required": false, - "schema": { - "type": "string" - } - }, { "in": "query", "name": "sso", @@ -14881,9 +14881,9 @@ ] } }, - "/auth/my-account/moderate-comments/comments-by-ids": { + "/auth/my-account/moderate-comments/mod_api/comments-by-ids": { "post": { - "operationId": "PostCommentsByIds", + "operationId": "postCommentsByIds", "responses": { "200": { "description": "Ok", @@ -14914,7 +14914,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -14940,9 +14940,9 @@ } } }, - "/auth/my-account/moderate-comments/comment-children/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/comment-children/{commentId}": { "get": { - "operationId": "GetCommentChildren", + "operationId": "getCommentChildren", "responses": { "200": { "description": "Ok", @@ -14971,17 +14971,17 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } @@ -14997,9 +14997,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-comment-text/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId}": { "get": { - "operationId": "GetModerationCommentText", + "operationId": "getModerationCommentText", "responses": { "200": { "description": "Ok", @@ -15028,17 +15028,17 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } @@ -15054,9 +15054,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-text/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId}": { "post": { - "operationId": "PostSetCommentText", + "operationId": "postSetCommentText", "responses": { "200": { "description": "Ok", @@ -15085,17 +15085,17 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } @@ -15129,9 +15129,9 @@ } } }, - "/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId}": { "post": { - "operationId": "PostAdjustCommentVotes", + "operationId": "postAdjustCommentVotes", "responses": { "200": { "description": "Ok", @@ -15160,17 +15160,17 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } @@ -15204,9 +15204,9 @@ } } }, - "/auth/my-account/moderate-comments/vote/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/vote/{commentId}": { "post": { - "operationId": "PostVote", + "operationId": "postVote", "responses": { "200": { "description": "Ok", @@ -15235,24 +15235,24 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "direction", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "direction", "required": false, "schema": { "type": "string" @@ -15277,9 +15277,9 @@ ] } }, - "/auth/my-account/moderate-comments/vote/{commentId}/{voteId}": { + "/auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId}": { "delete": { - "operationId": "DeleteModerationVote", + "operationId": "deleteModerationVote", "responses": { "200": { "description": "Ok", @@ -15308,8 +15308,8 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" @@ -15317,16 +15317,16 @@ }, { "in": "path", - "name": "voteId", + "name": "commentId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "voteId", + "required": true, "schema": { "type": "string" } @@ -15350,9 +15350,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId}": { "get": { - "operationId": "GetCommentBanStatus", + "operationId": "getCommentBanStatus", "responses": { "200": { "description": "Ok", @@ -15381,17 +15381,17 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } @@ -15407,9 +15407,9 @@ ] } }, - "/auth/my-account/moderate-comments/user-ban-preference": { + "/auth/my-account/moderate-comments/mod_api/user-ban-preference": { "get": { - "operationId": "GetUserBanPreference", + "operationId": "getUserBanPreference", "responses": { "200": { "description": "Ok", @@ -15440,7 +15440,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -15456,9 +15456,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-manual-badges": { + "/auth/my-account/moderate-comments/mod_api/get-manual-badges": { "get": { - "operationId": "GetManualBadges", + "operationId": "getManualBadges", "responses": { "200": { "description": "Ok", @@ -15489,7 +15489,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -15505,9 +15505,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-manual-badges-for-user": { + "/auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user": { "get": { - "operationId": "GetManualBadgesForUser", + "operationId": "getManualBadgesForUser", "responses": { "200": { "description": "Ok", @@ -15537,15 +15537,15 @@ "parameters": [ { "in": "query", - "name": "badgesUserId", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "commentId", + "name": "badgesUserId", "required": false, "schema": { "type": "string" @@ -15553,7 +15553,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "commentId", "required": false, "schema": { "type": "string" @@ -15570,9 +15570,9 @@ ] } }, - "/auth/my-account/moderate-comments/award-badge": { + "/auth/my-account/moderate-comments/mod_api/award-badge": { "put": { - "operationId": "PutAwardBadge", + "operationId": "putAwardBadge", "responses": { "200": { "description": "Ok", @@ -15602,7 +15602,7 @@ "parameters": [ { "in": "query", - "name": "badgeId", + "name": "tenantId", "required": true, "schema": { "type": "string" @@ -15610,15 +15610,15 @@ }, { "in": "query", - "name": "userId", - "required": false, + "name": "badgeId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "commentId", + "name": "userId", "required": false, "schema": { "type": "string" @@ -15626,7 +15626,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "commentId", "required": false, "schema": { "type": "string" @@ -15651,9 +15651,9 @@ ] } }, - "/auth/my-account/moderate-comments/remove-badge": { + "/auth/my-account/moderate-comments/mod_api/remove-badge": { "put": { - "operationId": "PutRemoveBadge", + "operationId": "putRemoveBadge", "responses": { "200": { "description": "Ok", @@ -15683,7 +15683,7 @@ "parameters": [ { "in": "query", - "name": "badgeId", + "name": "tenantId", "required": true, "schema": { "type": "string" @@ -15691,15 +15691,15 @@ }, { "in": "query", - "name": "userId", - "required": false, + "name": "badgeId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "commentId", + "name": "userId", "required": false, "schema": { "type": "string" @@ -15707,7 +15707,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "commentId", "required": false, "schema": { "type": "string" @@ -15732,9 +15732,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-trust-factor": { + "/auth/my-account/moderate-comments/mod_api/get-trust-factor": { "get": { - "operationId": "GetTrustFactor", + "operationId": "getTrustFactor", "responses": { "200": { "description": "Ok", @@ -15764,15 +15764,15 @@ "parameters": [ { "in": "query", - "name": "userId", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "userId", "required": false, "schema": { "type": "string" @@ -15789,9 +15789,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-trust-factor": { + "/auth/my-account/moderate-comments/mod_api/set-trust-factor": { "put": { - "operationId": "SetTrustFactor", + "operationId": "setTrustFactor", "responses": { "200": { "description": "Ok", @@ -15821,15 +15821,15 @@ "parameters": [ { "in": "query", - "name": "userId", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "trustFactor", + "name": "userId", "required": false, "schema": { "type": "string" @@ -15837,7 +15837,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "trustFactor", "required": false, "schema": { "type": "string" @@ -15854,9 +15854,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-user-internal-profile": { + "/auth/my-account/moderate-comments/mod_api/get-user-internal-profile": { "get": { - "operationId": "GetUserInternalProfile", + "operationId": "getUserInternalProfile", "responses": { "200": { "description": "Ok", @@ -15886,15 +15886,15 @@ "parameters": [ { "in": "query", - "name": "commentId", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "commentId", "required": false, "schema": { "type": "string" @@ -15911,9 +15911,9 @@ ] } }, - "/auth/my-account/moderate-comments/reopen-thread": { + "/auth/my-account/moderate-comments/mod_api/reopen-thread": { "put": { - "operationId": "PutReopenThread", + "operationId": "putReopenThread", "responses": { "200": { "description": "Ok", @@ -15943,7 +15943,7 @@ "parameters": [ { "in": "query", - "name": "urlId", + "name": "tenantId", "required": true, "schema": { "type": "string" @@ -15951,8 +15951,8 @@ }, { "in": "query", - "name": "tenantId", - "required": false, + "name": "urlId", + "required": true, "schema": { "type": "string" } @@ -15968,9 +15968,9 @@ ] } }, - "/auth/my-account/moderate-comments/close-thread": { + "/auth/my-account/moderate-comments/mod_api/close-thread": { "put": { - "operationId": "PutCloseThread", + "operationId": "putCloseThread", "responses": { "200": { "description": "Ok", @@ -16000,7 +16000,7 @@ "parameters": [ { "in": "query", - "name": "urlId", + "name": "tenantId", "required": true, "schema": { "type": "string" @@ -16008,8 +16008,8 @@ }, { "in": "query", - "name": "tenantId", - "required": false, + "name": "urlId", + "required": true, "schema": { "type": "string" } @@ -16025,9 +16025,9 @@ ] } }, - "/auth/my-account/moderate-comments/banned-users/counts": { + "/auth/my-account/moderate-comments/banned-users/mod_api/counts": { "get": { - "operationId": "GetCounts", + "operationId": "getCounts", "responses": { "200": { "description": "Ok", @@ -16058,7 +16058,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -23027,7 +23027,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -23079,7 +23079,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -23129,17 +23129,17 @@ ], "parameters": [ { - "in": "path", - "name": "tag", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "tag", + "required": true, "schema": { "type": "string" } @@ -23187,17 +23187,17 @@ ], "parameters": [ { - "in": "path", - "name": "tag", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "tag", + "required": true, "schema": { "type": "string" } From b11276828769ea0848061eec8cfadd5e68d794e7 Mon Sep 17 00:00:00 2001 From: winrid Date: Tue, 30 Jun 2026 10:39:44 -0700 Subject: [PATCH 8/9] README: shorten the ModerationApi description Replace the long capability enumeration with a concise summary. --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 52081be..07e9515 100644 --- a/README.md +++ b/README.md @@ -32,9 +32,7 @@ This library contains the generated API client and the SSO utilities to make wor For the API client, there are three classes, `DefaultApi`, `PublicApi`, and `ModerationApi`. The `DefaultApi` contains methods that require your API key, and `PublicApi` contains api calls that can be made directly from a browser/mobile device/etc without authentication. The `ModerationApi` contains the methods that power the moderator dashboard. -The `ModerationApi` covers comment moderation (list, count, search, logs, export), moderation actions (remove/restore, flag, set review/spam/approval status, votes, reopen/close thread), -bans (ban from a comment, undo, pre-ban summaries, ban status/preferences, banned-user counts), and badges & trust (award/remove badge, manual badges, get/set trust factor, user internal profile). -Each `ModerationApi` method accepts an `sso` parameter so the request can be made on behalf of an SSO-authenticated moderator. +The `ModerationApi` provides an extensive suite of live and fast moderation APIs. Every `ModerationApi` method accepts an `sso` parameter and can authenticate via SSO or a FastComments.com session cookie. ## Quick Start From 7f31a693012be7d1c36938d5b5ab616c237cae60 Mon Sep 17 00:00:00 2001 From: winrid Date: Tue, 30 Jun 2026 12:10:18 -0700 Subject: [PATCH 9/9] Release v3.0.0: regenerate at 3.0.0 with fastcomments-build-20260630 jar Bump version to 3.0.0 and regenerate from the new generator fork release. --- client/.travis.yml | 2 +- client/README.md | 8 ++++---- client/lib/fastcomments-client/version.rb | 2 +- config.json | 2 +- fastcomments.gemspec | 2 +- lib/fastcomments.rb | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/client/.travis.yml b/client/.travis.yml index 4034bbf..ba9155b 100644 --- a/client/.travis.yml +++ b/client/.travis.yml @@ -8,4 +8,4 @@ script: - bundle install --path vendor/bundle - bundle exec rspec - gem build fastcomments-client.gemspec - - gem install ./fastcomments-client-2.0.1.gem + - gem install ./fastcomments-client-3.0.0.gem diff --git a/client/README.md b/client/README.md index a6449c8..b715c99 100644 --- a/client/README.md +++ b/client/README.md @@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/opena This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 0.0.0 -- Package version: 2.0.1 +- Package version: 3.0.0 - Generator version: 7.23.0-SNAPSHOT - Build package: org.openapitools.codegen.languages.RubyClientCodegen @@ -24,16 +24,16 @@ gem build fastcomments-client.gemspec Then either install the gem locally: ```shell -gem install ./fastcomments-client-2.0.1.gem +gem install ./fastcomments-client-3.0.0.gem ``` -(for development, run `gem install --dev ./fastcomments-client-2.0.1.gem` to install the development dependencies) +(for development, run `gem install --dev ./fastcomments-client-3.0.0.gem` to install the development dependencies) or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/). Finally add this to the Gemfile: - gem 'fastcomments-client', '~> 2.0.1' + gem 'fastcomments-client', '~> 3.0.0' ### Install from Git diff --git a/client/lib/fastcomments-client/version.rb b/client/lib/fastcomments-client/version.rb index 734bd0c..155ca92 100644 --- a/client/lib/fastcomments-client/version.rb +++ b/client/lib/fastcomments-client/version.rb @@ -11,5 +11,5 @@ =end module FastCommentsClient - VERSION = '2.0.1' + VERSION = '3.0.0' end diff --git a/config.json b/config.json index a74ae95..fb58bcd 100644 --- a/config.json +++ b/config.json @@ -1,6 +1,6 @@ { "gemName": "fastcomments-client", "moduleName": "FastCommentsClient", - "gemVersion": "2.0.1", + "gemVersion": "3.0.0", "useSingleRequestParameter": true } diff --git a/fastcomments.gemspec b/fastcomments.gemspec index b1340e0..4ad9152 100644 --- a/fastcomments.gemspec +++ b/fastcomments.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |spec| spec.name = "fastcomments" - spec.version = "2.0.0" + spec.version = "3.0.0" spec.authors = ["FastComments"] spec.email = ["support@fastcomments.com"] diff --git a/lib/fastcomments.rb b/lib/fastcomments.rb index 8410b66..df900c4 100644 --- a/lib/fastcomments.rb +++ b/lib/fastcomments.rb @@ -6,5 +6,5 @@ require 'fastcomments-client' module FastComments - VERSION = '2.0.0' + VERSION = '3.0.0' end