diff --git a/Gemfile.lock b/Gemfile.lock index 5766ab4..3ca14fa 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - fastcomments (0.3.0) + fastcomments (1.0.0) typhoeus (~> 1.0, >= 1.0.1) GEM diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES index 7bdd9df..8691b1b 100644 --- a/client/.openapi-generator/FILES +++ b/client/.openapi-generator/FILES @@ -11,6 +11,7 @@ docs/APIAuditLog.md docs/APIComment.md docs/APICommentBase.md docs/APICreateUserBadgeResponse.md +docs/APIDomainConfiguration.md docs/APIEmptyResponse.md docs/APIEmptySuccessResponse.md docs/APIError.md @@ -23,10 +24,14 @@ docs/APIGetUserBadgesResponse.md docs/APIPage.md docs/APISSOUser.md docs/APIStatus.md +docs/APITenant.md +docs/APITenantDailyUsage.md docs/APIUserSubscription.md docs/AddDomainConfig200Response.md docs/AddDomainConfig200ResponseAnyOf.md docs/AddDomainConfigParams.md +docs/AddHashTag200Response.md +docs/AddHashTagsBulk200Response.md docs/AddPageAPIResponse.md docs/AddSSOUserAPIResponse.md docs/AggregateQuestionResults200Response.md @@ -40,6 +45,7 @@ docs/AggregationRequestSort.md docs/AggregationResponse.md docs/AggregationResponseStats.md docs/AggregationValue.md +docs/BillingInfo.md docs/BlockFromCommentParams.md docs/BlockFromCommentPublic200Response.md docs/BlockSuccess.md @@ -47,6 +53,9 @@ docs/BulkAggregateQuestionItem.md docs/BulkAggregateQuestionResults200Response.md docs/BulkAggregateQuestionResultsRequest.md docs/BulkAggregateQuestionResultsResponse.md +docs/BulkCreateHashTagsBody.md +docs/BulkCreateHashTagsBodyTagsInner.md +docs/BulkCreateHashTagsResponse.md docs/ChangeCommentPinStatusResponse.md docs/CheckBlockedCommentsResponse.md docs/CheckedCommentsForBlocked200Response.md @@ -70,15 +79,41 @@ docs/CreateAPISSOUserData.md docs/CreateAPIUserSubscriptionData.md docs/CreateCommentParams.md docs/CreateCommentPublic200Response.md +docs/CreateEmailTemplate200Response.md +docs/CreateEmailTemplateBody.md +docs/CreateEmailTemplateResponse.md docs/CreateFeedPost200Response.md docs/CreateFeedPostParams.md docs/CreateFeedPostPublic200Response.md docs/CreateFeedPostResponse.md docs/CreateFeedPostsResponse.md +docs/CreateHashTagBody.md +docs/CreateHashTagResponse.md +docs/CreateModerator200Response.md +docs/CreateModeratorBody.md +docs/CreateModeratorResponse.md +docs/CreateQuestionConfig200Response.md +docs/CreateQuestionConfigBody.md +docs/CreateQuestionConfigResponse.md +docs/CreateQuestionResult200Response.md +docs/CreateQuestionResultBody.md +docs/CreateQuestionResultResponse.md docs/CreateSubscriptionAPIResponse.md +docs/CreateTenant200Response.md +docs/CreateTenantBody.md +docs/CreateTenantPackage200Response.md +docs/CreateTenantPackageBody.md +docs/CreateTenantPackageResponse.md +docs/CreateTenantResponse.md +docs/CreateTenantUser200Response.md +docs/CreateTenantUserBody.md +docs/CreateTenantUserResponse.md docs/CreateUserBadge200Response.md docs/CreateUserBadgeParams.md +docs/CreateVote200Response.md +docs/CreateVoteResponse.md docs/CustomConfigParameters.md +docs/CustomEmailTemplate.md docs/DefaultApi.md docs/DeleteComment200Response.md docs/DeleteCommentAction.md @@ -88,10 +123,16 @@ docs/DeleteCommentVote200Response.md docs/DeleteDomainConfig200Response.md docs/DeleteFeedPostPublic200Response.md docs/DeleteFeedPostPublic200ResponseAnyOf.md +docs/DeleteHashTagRequest.md docs/DeletePageAPIResponse.md docs/DeleteSSOUserAPIResponse.md docs/DeleteSubscriptionAPIResponse.md +docs/DeleteVote200Response.md +docs/DeleteVoteResponse.md docs/DeletedCommentResultComment.md +docs/DigestEmailFrequency.md +docs/EmailTemplateDefinition.md +docs/EmailTemplateRenderErrorResponse.md docs/EventLogEntry.md docs/FComment.md docs/FCommentMeta.md @@ -108,6 +149,8 @@ docs/FlagCommentPublic200Response.md docs/FlagCommentResponse.md docs/GetAuditLogs200Response.md docs/GetAuditLogsResponse.md +docs/GetCachedNotificationCount200Response.md +docs/GetCachedNotificationCountResponse.md docs/GetComment200Response.md docs/GetCommentText200Response.md docs/GetCommentVoteUserNames200Response.md @@ -120,20 +163,65 @@ docs/GetDomainConfig200Response.md docs/GetDomainConfigs200Response.md docs/GetDomainConfigs200ResponseAnyOf.md docs/GetDomainConfigs200ResponseAnyOf1.md +docs/GetEmailTemplate200Response.md +docs/GetEmailTemplateDefinitions200Response.md +docs/GetEmailTemplateDefinitionsResponse.md +docs/GetEmailTemplateRenderErrors200Response.md +docs/GetEmailTemplateRenderErrorsResponse.md +docs/GetEmailTemplateResponse.md +docs/GetEmailTemplates200Response.md +docs/GetEmailTemplatesResponse.md docs/GetEventLog200Response.md docs/GetEventLogResponse.md docs/GetFeedPosts200Response.md docs/GetFeedPostsPublic200Response.md docs/GetFeedPostsResponse.md docs/GetFeedPostsStats200Response.md +docs/GetHashTags200Response.md +docs/GetHashTagsResponse.md +docs/GetModerator200Response.md +docs/GetModeratorResponse.md +docs/GetModerators200Response.md +docs/GetModeratorsResponse.md docs/GetMyNotificationsResponse.md +docs/GetNotificationCount200Response.md +docs/GetNotificationCountResponse.md +docs/GetNotifications200Response.md +docs/GetNotificationsResponse.md docs/GetPageByURLIdAPIResponse.md docs/GetPagesAPIResponse.md +docs/GetPendingWebhookEventCount200Response.md +docs/GetPendingWebhookEventCountResponse.md +docs/GetPendingWebhookEvents200Response.md +docs/GetPendingWebhookEventsResponse.md docs/GetPublicFeedPostsResponse.md +docs/GetQuestionConfig200Response.md +docs/GetQuestionConfigResponse.md +docs/GetQuestionConfigs200Response.md +docs/GetQuestionConfigsResponse.md +docs/GetQuestionResult200Response.md +docs/GetQuestionResultResponse.md +docs/GetQuestionResults200Response.md +docs/GetQuestionResultsResponse.md docs/GetSSOUserByEmailAPIResponse.md docs/GetSSOUserByIdAPIResponse.md docs/GetSSOUsers200Response.md docs/GetSubscriptionsAPIResponse.md +docs/GetTenant200Response.md +docs/GetTenantDailyUsages200Response.md +docs/GetTenantDailyUsagesResponse.md +docs/GetTenantPackage200Response.md +docs/GetTenantPackageResponse.md +docs/GetTenantPackages200Response.md +docs/GetTenantPackagesResponse.md +docs/GetTenantResponse.md +docs/GetTenantUser200Response.md +docs/GetTenantUserResponse.md +docs/GetTenantUsers200Response.md +docs/GetTenantUsersResponse.md +docs/GetTenants200Response.md +docs/GetTenantsResponse.md +docs/GetUser200Response.md docs/GetUserBadge200Response.md docs/GetUserBadgeProgressById200Response.md docs/GetUserBadgeProgressList200Response.md @@ -144,22 +232,31 @@ docs/GetUserNotifications200Response.md docs/GetUserPresenceStatuses200Response.md docs/GetUserPresenceStatusesResponse.md docs/GetUserReactsPublic200Response.md +docs/GetUserResponse.md +docs/GetVotes200Response.md +docs/GetVotesForUser200Response.md +docs/GetVotesForUserResponse.md +docs/GetVotesResponse.md docs/GifRating.md docs/HeaderState.md docs/IgnoredResponse.md docs/ImageContentProfanityLevel.md +docs/ImportedSiteType.md docs/LiveEvent.md docs/LiveEventExtraInfo.md docs/LiveEventType.md docs/LockComment200Response.md docs/MediaAsset.md docs/MetaItem.md +docs/Moderator.md docs/NotificationAndCount.md docs/NotificationObjectType.md docs/NotificationType.md docs/PatchDomainConfigParams.md +docs/PatchHashTag200Response.md docs/PatchPageAPIResponse.md docs/PatchSSOUserAPIResponse.md +docs/PendingCommentToSyncOutbound.md docs/PinComment200Response.md docs/PubSubComment.md docs/PubSubCommentBase.md @@ -172,9 +269,12 @@ docs/PublicBlockFromCommentParams.md docs/PublicComment.md docs/PublicCommentBase.md docs/PublicFeedPostsResponse.md +docs/PublicVote.md docs/PutSSOUserAPIResponse.md docs/QueryPredicate.md docs/QueryPredicateValue.md +docs/QuestionConfig.md +docs/QuestionConfigCustomOptionsInner.md docs/QuestionDatum.md docs/QuestionRenderingType.md docs/QuestionResult.md @@ -186,9 +286,14 @@ docs/ReactFeedPostPublic200Response.md docs/ReactFeedPostResponse.md docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md docs/RecordStringStringOrNumberValue.md +docs/RenderEmailTemplate200Response.md +docs/RenderEmailTemplateBody.md +docs/RenderEmailTemplateResponse.md docs/RenderableUserNotification.md docs/RepeatCommentCheckIgnoredReason.md docs/RepeatCommentHandlingAction.md +docs/ReplaceTenantPackageBody.md +docs/ReplaceTenantUserBody.md docs/ResetUserNotifications200Response.md docs/ResetUserNotificationsResponse.md docs/SORTDIR.md @@ -204,6 +309,8 @@ docs/SetCommentTextResult.md docs/SizePreset.md docs/SortDirections.md docs/SpamRule.md +docs/TenantHashTag.md +docs/TenantPackage.md docs/UnBlockCommentPublic200Response.md docs/UnBlockFromCommentParams.md docs/UnblockSuccess.md @@ -211,14 +318,26 @@ docs/UpdatableCommentParams.md docs/UpdateAPIPageData.md docs/UpdateAPISSOUserData.md docs/UpdateDomainConfigParams.md +docs/UpdateEmailTemplateBody.md docs/UpdateFeedPostParams.md +docs/UpdateHashTagBody.md +docs/UpdateHashTagResponse.md +docs/UpdateModeratorBody.md +docs/UpdateNotificationBody.md +docs/UpdateQuestionConfigBody.md +docs/UpdateQuestionResultBody.md +docs/UpdateTenantBody.md +docs/UpdateTenantPackageBody.md +docs/UpdateTenantUserBody.md docs/UpdateUserBadge200Response.md docs/UpdateUserBadgeParams.md docs/UpdateUserNotificationStatus200Response.md docs/UploadImageResponse.md +docs/User.md docs/UserBadge.md docs/UserBadgeProgress.md docs/UserNotification.md +docs/UserNotificationCount.md docs/UserNotificationWriteResponse.md docs/UserPresenceData.md docs/UserReactsResponse.md @@ -242,6 +361,8 @@ lib/fastcomments-client/configuration.rb lib/fastcomments-client/models/add_domain_config200_response.rb lib/fastcomments-client/models/add_domain_config200_response_any_of.rb lib/fastcomments-client/models/add_domain_config_params.rb +lib/fastcomments-client/models/add_hash_tag200_response.rb +lib/fastcomments-client/models/add_hash_tags_bulk200_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/aggregate_question_results200_response.rb @@ -259,6 +380,7 @@ lib/fastcomments-client/models/api_audit_log.rb lib/fastcomments-client/models/api_comment.rb lib/fastcomments-client/models/api_comment_base.rb lib/fastcomments-client/models/api_create_user_badge_response.rb +lib/fastcomments-client/models/api_domain_configuration.rb lib/fastcomments-client/models/api_empty_response.rb lib/fastcomments-client/models/api_empty_success_response.rb lib/fastcomments-client/models/api_error.rb @@ -270,8 +392,11 @@ lib/fastcomments-client/models/api_get_user_badge_response.rb lib/fastcomments-client/models/api_get_user_badges_response.rb lib/fastcomments-client/models/api_page.rb lib/fastcomments-client/models/api_status.rb +lib/fastcomments-client/models/api_tenant.rb +lib/fastcomments-client/models/api_tenant_daily_usage.rb lib/fastcomments-client/models/api_user_subscription.rb lib/fastcomments-client/models/apisso_user.rb +lib/fastcomments-client/models/billing_info.rb lib/fastcomments-client/models/block_from_comment_params.rb lib/fastcomments-client/models/block_from_comment_public200_response.rb lib/fastcomments-client/models/block_success.rb @@ -279,6 +404,9 @@ lib/fastcomments-client/models/bulk_aggregate_question_item.rb lib/fastcomments-client/models/bulk_aggregate_question_results200_response.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_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 lib/fastcomments-client/models/change_comment_pin_status_response.rb lib/fastcomments-client/models/check_blocked_comments_response.rb lib/fastcomments-client/models/checked_comments_for_blocked200_response.rb @@ -302,15 +430,41 @@ 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_public200_response.rb +lib/fastcomments-client/models/create_email_template200_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_feed_post200_response.rb lib/fastcomments-client/models/create_feed_post_params.rb lib/fastcomments-client/models/create_feed_post_public200_response.rb lib/fastcomments-client/models/create_feed_post_response.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_moderator200_response.rb +lib/fastcomments-client/models/create_moderator_body.rb +lib/fastcomments-client/models/create_moderator_response.rb +lib/fastcomments-client/models/create_question_config200_response.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_result200_response.rb +lib/fastcomments-client/models/create_question_result_body.rb +lib/fastcomments-client/models/create_question_result_response.rb lib/fastcomments-client/models/create_subscription_api_response.rb +lib/fastcomments-client/models/create_tenant200_response.rb +lib/fastcomments-client/models/create_tenant_body.rb +lib/fastcomments-client/models/create_tenant_package200_response.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_response.rb +lib/fastcomments-client/models/create_tenant_user200_response.rb +lib/fastcomments-client/models/create_tenant_user_body.rb +lib/fastcomments-client/models/create_tenant_user_response.rb lib/fastcomments-client/models/create_user_badge200_response.rb lib/fastcomments-client/models/create_user_badge_params.rb +lib/fastcomments-client/models/create_vote200_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_comment200_response.rb lib/fastcomments-client/models/delete_comment_action.rb lib/fastcomments-client/models/delete_comment_public200_response.rb @@ -319,10 +473,16 @@ lib/fastcomments-client/models/delete_comment_vote200_response.rb lib/fastcomments-client/models/delete_domain_config200_response.rb lib/fastcomments-client/models/delete_feed_post_public200_response.rb lib/fastcomments-client/models/delete_feed_post_public200_response_any_of.rb +lib/fastcomments-client/models/delete_hash_tag_request.rb lib/fastcomments-client/models/delete_page_api_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_vote200_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 +lib/fastcomments-client/models/email_template_render_error_response.rb lib/fastcomments-client/models/event_log_entry.rb lib/fastcomments-client/models/f_comment.rb lib/fastcomments-client/models/f_comment_meta.rb @@ -339,6 +499,8 @@ lib/fastcomments-client/models/flag_comment_public200_response.rb lib/fastcomments-client/models/flag_comment_response.rb lib/fastcomments-client/models/get_audit_logs200_response.rb lib/fastcomments-client/models/get_audit_logs_response.rb +lib/fastcomments-client/models/get_cached_notification_count200_response.rb +lib/fastcomments-client/models/get_cached_notification_count_response.rb lib/fastcomments-client/models/get_comment200_response.rb lib/fastcomments-client/models/get_comment_text200_response.rb lib/fastcomments-client/models/get_comment_vote_user_names200_response.rb @@ -351,20 +513,65 @@ lib/fastcomments-client/models/get_domain_config200_response.rb lib/fastcomments-client/models/get_domain_configs200_response.rb lib/fastcomments-client/models/get_domain_configs200_response_any_of.rb lib/fastcomments-client/models/get_domain_configs200_response_any_of1.rb +lib/fastcomments-client/models/get_email_template200_response.rb +lib/fastcomments-client/models/get_email_template_definitions200_response.rb +lib/fastcomments-client/models/get_email_template_definitions_response.rb +lib/fastcomments-client/models/get_email_template_render_errors200_response.rb +lib/fastcomments-client/models/get_email_template_render_errors_response.rb +lib/fastcomments-client/models/get_email_template_response.rb +lib/fastcomments-client/models/get_email_templates200_response.rb +lib/fastcomments-client/models/get_email_templates_response.rb lib/fastcomments-client/models/get_event_log200_response.rb lib/fastcomments-client/models/get_event_log_response.rb lib/fastcomments-client/models/get_feed_posts200_response.rb lib/fastcomments-client/models/get_feed_posts_public200_response.rb lib/fastcomments-client/models/get_feed_posts_response.rb lib/fastcomments-client/models/get_feed_posts_stats200_response.rb +lib/fastcomments-client/models/get_hash_tags200_response.rb +lib/fastcomments-client/models/get_hash_tags_response.rb +lib/fastcomments-client/models/get_moderator200_response.rb +lib/fastcomments-client/models/get_moderator_response.rb +lib/fastcomments-client/models/get_moderators200_response.rb +lib/fastcomments-client/models/get_moderators_response.rb lib/fastcomments-client/models/get_my_notifications_response.rb +lib/fastcomments-client/models/get_notification_count200_response.rb +lib/fastcomments-client/models/get_notification_count_response.rb +lib/fastcomments-client/models/get_notifications200_response.rb +lib/fastcomments-client/models/get_notifications_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_pending_webhook_event_count200_response.rb +lib/fastcomments-client/models/get_pending_webhook_event_count_response.rb +lib/fastcomments-client/models/get_pending_webhook_events200_response.rb +lib/fastcomments-client/models/get_pending_webhook_events_response.rb lib/fastcomments-client/models/get_public_feed_posts_response.rb +lib/fastcomments-client/models/get_question_config200_response.rb +lib/fastcomments-client/models/get_question_config_response.rb +lib/fastcomments-client/models/get_question_configs200_response.rb +lib/fastcomments-client/models/get_question_configs_response.rb +lib/fastcomments-client/models/get_question_result200_response.rb +lib/fastcomments-client/models/get_question_result_response.rb +lib/fastcomments-client/models/get_question_results200_response.rb +lib/fastcomments-client/models/get_question_results_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_users200_response.rb lib/fastcomments-client/models/get_subscriptions_api_response.rb +lib/fastcomments-client/models/get_tenant200_response.rb +lib/fastcomments-client/models/get_tenant_daily_usages200_response.rb +lib/fastcomments-client/models/get_tenant_daily_usages_response.rb +lib/fastcomments-client/models/get_tenant_package200_response.rb +lib/fastcomments-client/models/get_tenant_package_response.rb +lib/fastcomments-client/models/get_tenant_packages200_response.rb +lib/fastcomments-client/models/get_tenant_packages_response.rb +lib/fastcomments-client/models/get_tenant_response.rb +lib/fastcomments-client/models/get_tenant_user200_response.rb +lib/fastcomments-client/models/get_tenant_user_response.rb +lib/fastcomments-client/models/get_tenant_users200_response.rb +lib/fastcomments-client/models/get_tenant_users_response.rb +lib/fastcomments-client/models/get_tenants200_response.rb +lib/fastcomments-client/models/get_tenants_response.rb +lib/fastcomments-client/models/get_user200_response.rb lib/fastcomments-client/models/get_user_badge200_response.rb lib/fastcomments-client/models/get_user_badge_progress_by_id200_response.rb lib/fastcomments-client/models/get_user_badge_progress_list200_response.rb @@ -375,22 +582,31 @@ lib/fastcomments-client/models/get_user_notifications200_response.rb lib/fastcomments-client/models/get_user_presence_statuses200_response.rb lib/fastcomments-client/models/get_user_presence_statuses_response.rb lib/fastcomments-client/models/get_user_reacts_public200_response.rb +lib/fastcomments-client/models/get_user_response.rb +lib/fastcomments-client/models/get_votes200_response.rb +lib/fastcomments-client/models/get_votes_for_user200_response.rb +lib/fastcomments-client/models/get_votes_for_user_response.rb +lib/fastcomments-client/models/get_votes_response.rb lib/fastcomments-client/models/gif_rating.rb lib/fastcomments-client/models/header_state.rb lib/fastcomments-client/models/ignored_response.rb lib/fastcomments-client/models/image_content_profanity_level.rb +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_comment200_response.rb lib/fastcomments-client/models/media_asset.rb lib/fastcomments-client/models/meta_item.rb +lib/fastcomments-client/models/moderator.rb lib/fastcomments-client/models/notification_and_count.rb lib/fastcomments-client/models/notification_object_type.rb lib/fastcomments-client/models/notification_type.rb lib/fastcomments-client/models/patch_domain_config_params.rb +lib/fastcomments-client/models/patch_hash_tag200_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_comment200_response.rb lib/fastcomments-client/models/pub_sub_comment.rb lib/fastcomments-client/models/pub_sub_comment_base.rb @@ -402,9 +618,12 @@ lib/fastcomments-client/models/public_block_from_comment_params.rb lib/fastcomments-client/models/public_comment.rb lib/fastcomments-client/models/public_comment_base.rb lib/fastcomments-client/models/public_feed_posts_response.rb +lib/fastcomments-client/models/public_vote.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 +lib/fastcomments-client/models/question_config.rb +lib/fastcomments-client/models/question_config_custom_options_inner.rb lib/fastcomments-client/models/question_datum.rb lib/fastcomments-client/models/question_rendering_type.rb lib/fastcomments-client/models/question_result.rb @@ -416,9 +635,14 @@ lib/fastcomments-client/models/react_feed_post_public200_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/record_string_string_or_number_value.rb +lib/fastcomments-client/models/render_email_template200_response.rb +lib/fastcomments-client/models/render_email_template_body.rb +lib/fastcomments-client/models/render_email_template_response.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_user_body.rb lib/fastcomments-client/models/reset_user_notifications200_response.rb lib/fastcomments-client/models/reset_user_notifications_response.rb lib/fastcomments-client/models/save_comment200_response.rb @@ -434,6 +658,8 @@ lib/fastcomments-client/models/sort_directions.rb lib/fastcomments-client/models/sortdir.rb lib/fastcomments-client/models/spam_rule.rb lib/fastcomments-client/models/sso_security_level.rb +lib/fastcomments-client/models/tenant_hash_tag.rb +lib/fastcomments-client/models/tenant_package.rb lib/fastcomments-client/models/un_block_comment_public200_response.rb lib/fastcomments-client/models/un_block_from_comment_params.rb lib/fastcomments-client/models/unblock_success.rb @@ -441,14 +667,26 @@ lib/fastcomments-client/models/updatable_comment_params.rb lib/fastcomments-client/models/update_api_page_data.rb lib/fastcomments-client/models/update_apisso_user_data.rb lib/fastcomments-client/models/update_domain_config_params.rb +lib/fastcomments-client/models/update_email_template_body.rb lib/fastcomments-client/models/update_feed_post_params.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_notification_body.rb +lib/fastcomments-client/models/update_question_config_body.rb +lib/fastcomments-client/models/update_question_result_body.rb +lib/fastcomments-client/models/update_tenant_body.rb +lib/fastcomments-client/models/update_tenant_package_body.rb +lib/fastcomments-client/models/update_tenant_user_body.rb lib/fastcomments-client/models/update_user_badge200_response.rb lib/fastcomments-client/models/update_user_badge_params.rb lib/fastcomments-client/models/update_user_notification_status200_response.rb lib/fastcomments-client/models/upload_image_response.rb +lib/fastcomments-client/models/user.rb lib/fastcomments-client/models/user_badge.rb lib/fastcomments-client/models/user_badge_progress.rb lib/fastcomments-client/models/user_notification.rb +lib/fastcomments-client/models/user_notification_count.rb lib/fastcomments-client/models/user_notification_write_response.rb lib/fastcomments-client/models/user_presence_data.rb lib/fastcomments-client/models/user_reacts_response.rb @@ -466,6 +704,8 @@ spec/api/public_api_spec.rb spec/models/add_domain_config200_response_any_of_spec.rb spec/models/add_domain_config200_response_spec.rb spec/models/add_domain_config_params_spec.rb +spec/models/add_hash_tag200_response_spec.rb +spec/models/add_hash_tags_bulk200_response_spec.rb spec/models/add_page_api_response_spec.rb spec/models/add_sso_user_api_response_spec.rb spec/models/aggregate_question_results200_response_spec.rb @@ -483,6 +723,7 @@ spec/models/api_audit_log_spec.rb spec/models/api_comment_base_spec.rb spec/models/api_comment_spec.rb spec/models/api_create_user_badge_response_spec.rb +spec/models/api_domain_configuration_spec.rb spec/models/api_empty_response_spec.rb spec/models/api_empty_success_response_spec.rb spec/models/api_error_spec.rb @@ -494,8 +735,11 @@ spec/models/api_get_user_badge_response_spec.rb spec/models/api_get_user_badges_response_spec.rb spec/models/api_page_spec.rb spec/models/api_status_spec.rb +spec/models/api_tenant_daily_usage_spec.rb +spec/models/api_tenant_spec.rb spec/models/api_user_subscription_spec.rb spec/models/apisso_user_spec.rb +spec/models/billing_info_spec.rb spec/models/block_from_comment_params_spec.rb spec/models/block_from_comment_public200_response_spec.rb spec/models/block_success_spec.rb @@ -503,6 +747,9 @@ spec/models/bulk_aggregate_question_item_spec.rb spec/models/bulk_aggregate_question_results200_response_spec.rb spec/models/bulk_aggregate_question_results_request_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 +spec/models/bulk_create_hash_tags_response_spec.rb spec/models/change_comment_pin_status_response_spec.rb spec/models/check_blocked_comments_response_spec.rb spec/models/checked_comments_for_blocked200_response_spec.rb @@ -526,15 +773,41 @@ 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_public200_response_spec.rb +spec/models/create_email_template200_response_spec.rb +spec/models/create_email_template_body_spec.rb +spec/models/create_email_template_response_spec.rb spec/models/create_feed_post200_response_spec.rb spec/models/create_feed_post_params_spec.rb spec/models/create_feed_post_public200_response_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_moderator200_response_spec.rb +spec/models/create_moderator_body_spec.rb +spec/models/create_moderator_response_spec.rb +spec/models/create_question_config200_response_spec.rb +spec/models/create_question_config_body_spec.rb +spec/models/create_question_config_response_spec.rb +spec/models/create_question_result200_response_spec.rb +spec/models/create_question_result_body_spec.rb +spec/models/create_question_result_response_spec.rb spec/models/create_subscription_api_response_spec.rb +spec/models/create_tenant200_response_spec.rb +spec/models/create_tenant_body_spec.rb +spec/models/create_tenant_package200_response_spec.rb +spec/models/create_tenant_package_body_spec.rb +spec/models/create_tenant_package_response_spec.rb +spec/models/create_tenant_response_spec.rb +spec/models/create_tenant_user200_response_spec.rb +spec/models/create_tenant_user_body_spec.rb +spec/models/create_tenant_user_response_spec.rb spec/models/create_user_badge200_response_spec.rb spec/models/create_user_badge_params_spec.rb +spec/models/create_vote200_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_comment200_response_spec.rb spec/models/delete_comment_action_spec.rb spec/models/delete_comment_public200_response_spec.rb @@ -543,10 +816,16 @@ spec/models/delete_comment_vote200_response_spec.rb spec/models/delete_domain_config200_response_spec.rb spec/models/delete_feed_post_public200_response_any_of_spec.rb spec/models/delete_feed_post_public200_response_spec.rb +spec/models/delete_hash_tag_request_spec.rb spec/models/delete_page_api_response_spec.rb spec/models/delete_sso_user_api_response_spec.rb spec/models/delete_subscription_api_response_spec.rb +spec/models/delete_vote200_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 +spec/models/email_template_render_error_response_spec.rb spec/models/event_log_entry_spec.rb spec/models/f_comment_meta_spec.rb spec/models/f_comment_spec.rb @@ -563,6 +842,8 @@ spec/models/flag_comment_public200_response_spec.rb spec/models/flag_comment_response_spec.rb spec/models/get_audit_logs200_response_spec.rb spec/models/get_audit_logs_response_spec.rb +spec/models/get_cached_notification_count200_response_spec.rb +spec/models/get_cached_notification_count_response_spec.rb spec/models/get_comment200_response_spec.rb spec/models/get_comment_text200_response_spec.rb spec/models/get_comment_vote_user_names200_response_spec.rb @@ -575,20 +856,65 @@ spec/models/get_domain_config200_response_spec.rb spec/models/get_domain_configs200_response_any_of1_spec.rb spec/models/get_domain_configs200_response_any_of_spec.rb spec/models/get_domain_configs200_response_spec.rb +spec/models/get_email_template200_response_spec.rb +spec/models/get_email_template_definitions200_response_spec.rb +spec/models/get_email_template_definitions_response_spec.rb +spec/models/get_email_template_render_errors200_response_spec.rb +spec/models/get_email_template_render_errors_response_spec.rb +spec/models/get_email_template_response_spec.rb +spec/models/get_email_templates200_response_spec.rb +spec/models/get_email_templates_response_spec.rb spec/models/get_event_log200_response_spec.rb spec/models/get_event_log_response_spec.rb spec/models/get_feed_posts200_response_spec.rb spec/models/get_feed_posts_public200_response_spec.rb spec/models/get_feed_posts_response_spec.rb spec/models/get_feed_posts_stats200_response_spec.rb +spec/models/get_hash_tags200_response_spec.rb +spec/models/get_hash_tags_response_spec.rb +spec/models/get_moderator200_response_spec.rb +spec/models/get_moderator_response_spec.rb +spec/models/get_moderators200_response_spec.rb +spec/models/get_moderators_response_spec.rb spec/models/get_my_notifications_response_spec.rb +spec/models/get_notification_count200_response_spec.rb +spec/models/get_notification_count_response_spec.rb +spec/models/get_notifications200_response_spec.rb +spec/models/get_notifications_response_spec.rb spec/models/get_page_by_urlid_api_response_spec.rb spec/models/get_pages_api_response_spec.rb +spec/models/get_pending_webhook_event_count200_response_spec.rb +spec/models/get_pending_webhook_event_count_response_spec.rb +spec/models/get_pending_webhook_events200_response_spec.rb +spec/models/get_pending_webhook_events_response_spec.rb spec/models/get_public_feed_posts_response_spec.rb +spec/models/get_question_config200_response_spec.rb +spec/models/get_question_config_response_spec.rb +spec/models/get_question_configs200_response_spec.rb +spec/models/get_question_configs_response_spec.rb +spec/models/get_question_result200_response_spec.rb +spec/models/get_question_result_response_spec.rb +spec/models/get_question_results200_response_spec.rb +spec/models/get_question_results_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_users200_response_spec.rb spec/models/get_subscriptions_api_response_spec.rb +spec/models/get_tenant200_response_spec.rb +spec/models/get_tenant_daily_usages200_response_spec.rb +spec/models/get_tenant_daily_usages_response_spec.rb +spec/models/get_tenant_package200_response_spec.rb +spec/models/get_tenant_package_response_spec.rb +spec/models/get_tenant_packages200_response_spec.rb +spec/models/get_tenant_packages_response_spec.rb +spec/models/get_tenant_response_spec.rb +spec/models/get_tenant_user200_response_spec.rb +spec/models/get_tenant_user_response_spec.rb +spec/models/get_tenant_users200_response_spec.rb +spec/models/get_tenant_users_response_spec.rb +spec/models/get_tenants200_response_spec.rb +spec/models/get_tenants_response_spec.rb +spec/models/get_user200_response_spec.rb spec/models/get_user_badge200_response_spec.rb spec/models/get_user_badge_progress_by_id200_response_spec.rb spec/models/get_user_badge_progress_list200_response_spec.rb @@ -599,22 +925,31 @@ spec/models/get_user_notifications200_response_spec.rb spec/models/get_user_presence_statuses200_response_spec.rb spec/models/get_user_presence_statuses_response_spec.rb spec/models/get_user_reacts_public200_response_spec.rb +spec/models/get_user_response_spec.rb +spec/models/get_votes200_response_spec.rb +spec/models/get_votes_for_user200_response_spec.rb +spec/models/get_votes_for_user_response_spec.rb +spec/models/get_votes_response_spec.rb spec/models/gif_rating_spec.rb spec/models/header_state_spec.rb spec/models/ignored_response_spec.rb spec/models/image_content_profanity_level_spec.rb +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_comment200_response_spec.rb spec/models/media_asset_spec.rb spec/models/meta_item_spec.rb +spec/models/moderator_spec.rb spec/models/notification_and_count_spec.rb spec/models/notification_object_type_spec.rb spec/models/notification_type_spec.rb spec/models/patch_domain_config_params_spec.rb +spec/models/patch_hash_tag200_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_comment200_response_spec.rb spec/models/pub_sub_comment_base_spec.rb spec/models/pub_sub_comment_spec.rb @@ -626,9 +961,12 @@ spec/models/public_block_from_comment_params_spec.rb spec/models/public_comment_base_spec.rb spec/models/public_comment_spec.rb spec/models/public_feed_posts_response_spec.rb +spec/models/public_vote_spec.rb spec/models/put_sso_user_api_response_spec.rb spec/models/query_predicate_spec.rb spec/models/query_predicate_value_spec.rb +spec/models/question_config_custom_options_inner_spec.rb +spec/models/question_config_spec.rb spec/models/question_datum_spec.rb spec/models/question_rendering_type_spec.rb spec/models/question_result_aggregation_overall_spec.rb @@ -640,9 +978,14 @@ spec/models/react_feed_post_public200_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/record_string_string_or_number_value_spec.rb +spec/models/render_email_template200_response_spec.rb +spec/models/render_email_template_body_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_user_body_spec.rb spec/models/reset_user_notifications200_response_spec.rb spec/models/reset_user_notifications_response_spec.rb spec/models/save_comment200_response_spec.rb @@ -658,6 +1001,8 @@ spec/models/sort_directions_spec.rb spec/models/sortdir_spec.rb spec/models/spam_rule_spec.rb spec/models/sso_security_level_spec.rb +spec/models/tenant_hash_tag_spec.rb +spec/models/tenant_package_spec.rb spec/models/un_block_comment_public200_response_spec.rb spec/models/un_block_from_comment_params_spec.rb spec/models/unblock_success_spec.rb @@ -665,19 +1010,31 @@ spec/models/updatable_comment_params_spec.rb spec/models/update_api_page_data_spec.rb spec/models/update_apisso_user_data_spec.rb spec/models/update_domain_config_params_spec.rb +spec/models/update_email_template_body_spec.rb spec/models/update_feed_post_params_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_notification_body_spec.rb +spec/models/update_question_config_body_spec.rb +spec/models/update_question_result_body_spec.rb +spec/models/update_tenant_body_spec.rb +spec/models/update_tenant_package_body_spec.rb +spec/models/update_tenant_user_body_spec.rb spec/models/update_user_badge200_response_spec.rb spec/models/update_user_badge_params_spec.rb spec/models/update_user_notification_status200_response_spec.rb spec/models/upload_image_response_spec.rb spec/models/user_badge_progress_spec.rb spec/models/user_badge_spec.rb +spec/models/user_notification_count_spec.rb spec/models/user_notification_spec.rb spec/models/user_notification_write_response_spec.rb spec/models/user_presence_data_spec.rb spec/models/user_reacts_response_spec.rb spec/models/user_search_result_spec.rb spec/models/user_session_info_spec.rb +spec/models/user_spec.rb spec/models/vote_body_params_spec.rb spec/models/vote_comment200_response_spec.rb spec/models/vote_delete_response_spec.rb diff --git a/client/.travis.yml b/client/.travis.yml index 5a146f5..cb71e9c 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-0.2.0.gem + - gem install ./fastcomments-client-1.0.0.gem diff --git a/client/README.md b/client/README.md index c2e44b6..9b908e1 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: 0.2.0 +- Package version: 1.0.0 - Generator version: 7.18.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-0.2.0.gem +gem install ./fastcomments-client-1.0.0.gem ``` -(for development, run `gem install --dev ./fastcomments-client-0.2.0.gem` to install the development dependencies) +(for development, run `gem install --dev ./fastcomments-client-1.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', '~> 0.2.0' + gem 'fastcomments-client', '~> 1.0.0' ### Install from Git @@ -85,6 +85,8 @@ All URIs are relative to *https://fastcomments.com* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *FastCommentsClient::DefaultApi* | [**add_domain_config**](docs/DefaultApi.md#add_domain_config) | **POST** /api/v1/domain-configs | +*FastCommentsClient::DefaultApi* | [**add_hash_tag**](docs/DefaultApi.md#add_hash_tag) | **POST** /api/v1/hash-tags | +*FastCommentsClient::DefaultApi* | [**add_hash_tags_bulk**](docs/DefaultApi.md#add_hash_tags_bulk) | **POST** /api/v1/hash-tags/bulk | *FastCommentsClient::DefaultApi* | [**add_page**](docs/DefaultApi.md#add_page) | **POST** /api/v1/pages | *FastCommentsClient::DefaultApi* | [**add_sso_user**](docs/DefaultApi.md#add_sso_user) | **POST** /api/v1/sso-users | *FastCommentsClient::DefaultApi* | [**aggregate**](docs/DefaultApi.md#aggregate) | **POST** /api/v1/aggregate | @@ -92,44 +94,104 @@ Class | Method | HTTP request | Description *FastCommentsClient::DefaultApi* | [**block_user_from_comment**](docs/DefaultApi.md#block_user_from_comment) | **POST** /api/v1/comments/{id}/block | *FastCommentsClient::DefaultApi* | [**bulk_aggregate_question_results**](docs/DefaultApi.md#bulk_aggregate_question_results) | **POST** /api/v1/question-results-aggregation/bulk | *FastCommentsClient::DefaultApi* | [**combine_comments_with_question_results**](docs/DefaultApi.md#combine_comments_with_question_results) | **GET** /api/v1/question-results-aggregation/combine/comments | +*FastCommentsClient::DefaultApi* | [**create_email_template**](docs/DefaultApi.md#create_email_template) | **POST** /api/v1/email-templates | *FastCommentsClient::DefaultApi* | [**create_feed_post**](docs/DefaultApi.md#create_feed_post) | **POST** /api/v1/feed-posts | +*FastCommentsClient::DefaultApi* | [**create_moderator**](docs/DefaultApi.md#create_moderator) | **POST** /api/v1/moderators | +*FastCommentsClient::DefaultApi* | [**create_question_config**](docs/DefaultApi.md#create_question_config) | **POST** /api/v1/question-configs | +*FastCommentsClient::DefaultApi* | [**create_question_result**](docs/DefaultApi.md#create_question_result) | **POST** /api/v1/question-results | *FastCommentsClient::DefaultApi* | [**create_subscription**](docs/DefaultApi.md#create_subscription) | **POST** /api/v1/subscriptions | +*FastCommentsClient::DefaultApi* | [**create_tenant**](docs/DefaultApi.md#create_tenant) | **POST** /api/v1/tenants | +*FastCommentsClient::DefaultApi* | [**create_tenant_package**](docs/DefaultApi.md#create_tenant_package) | **POST** /api/v1/tenant-packages | +*FastCommentsClient::DefaultApi* | [**create_tenant_user**](docs/DefaultApi.md#create_tenant_user) | **POST** /api/v1/tenant-users | *FastCommentsClient::DefaultApi* | [**create_user_badge**](docs/DefaultApi.md#create_user_badge) | **POST** /api/v1/user-badges | +*FastCommentsClient::DefaultApi* | [**create_vote**](docs/DefaultApi.md#create_vote) | **POST** /api/v1/votes | *FastCommentsClient::DefaultApi* | [**delete_comment**](docs/DefaultApi.md#delete_comment) | **DELETE** /api/v1/comments/{id} | *FastCommentsClient::DefaultApi* | [**delete_domain_config**](docs/DefaultApi.md#delete_domain_config) | **DELETE** /api/v1/domain-configs/{domain} | +*FastCommentsClient::DefaultApi* | [**delete_email_template**](docs/DefaultApi.md#delete_email_template) | **DELETE** /api/v1/email-templates/{id} | +*FastCommentsClient::DefaultApi* | [**delete_email_template_render_error**](docs/DefaultApi.md#delete_email_template_render_error) | **DELETE** /api/v1/email-templates/{id}/render-errors/{errorId} | +*FastCommentsClient::DefaultApi* | [**delete_hash_tag**](docs/DefaultApi.md#delete_hash_tag) | **DELETE** /api/v1/hash-tags/{tag} | +*FastCommentsClient::DefaultApi* | [**delete_moderator**](docs/DefaultApi.md#delete_moderator) | **DELETE** /api/v1/moderators/{id} | +*FastCommentsClient::DefaultApi* | [**delete_notification_count**](docs/DefaultApi.md#delete_notification_count) | **DELETE** /api/v1/notification-count/{id} | *FastCommentsClient::DefaultApi* | [**delete_page**](docs/DefaultApi.md#delete_page) | **DELETE** /api/v1/pages/{id} | +*FastCommentsClient::DefaultApi* | [**delete_pending_webhook_event**](docs/DefaultApi.md#delete_pending_webhook_event) | **DELETE** /api/v1/pending-webhook-events/{id} | +*FastCommentsClient::DefaultApi* | [**delete_question_config**](docs/DefaultApi.md#delete_question_config) | **DELETE** /api/v1/question-configs/{id} | +*FastCommentsClient::DefaultApi* | [**delete_question_result**](docs/DefaultApi.md#delete_question_result) | **DELETE** /api/v1/question-results/{id} | *FastCommentsClient::DefaultApi* | [**delete_sso_user**](docs/DefaultApi.md#delete_sso_user) | **DELETE** /api/v1/sso-users/{id} | *FastCommentsClient::DefaultApi* | [**delete_subscription**](docs/DefaultApi.md#delete_subscription) | **DELETE** /api/v1/subscriptions/{id} | +*FastCommentsClient::DefaultApi* | [**delete_tenant**](docs/DefaultApi.md#delete_tenant) | **DELETE** /api/v1/tenants/{id} | +*FastCommentsClient::DefaultApi* | [**delete_tenant_package**](docs/DefaultApi.md#delete_tenant_package) | **DELETE** /api/v1/tenant-packages/{id} | +*FastCommentsClient::DefaultApi* | [**delete_tenant_user**](docs/DefaultApi.md#delete_tenant_user) | **DELETE** /api/v1/tenant-users/{id} | *FastCommentsClient::DefaultApi* | [**delete_user_badge**](docs/DefaultApi.md#delete_user_badge) | **DELETE** /api/v1/user-badges/{id} | +*FastCommentsClient::DefaultApi* | [**delete_vote**](docs/DefaultApi.md#delete_vote) | **DELETE** /api/v1/votes/{id} | *FastCommentsClient::DefaultApi* | [**flag_comment**](docs/DefaultApi.md#flag_comment) | **POST** /api/v1/comments/{id}/flag | *FastCommentsClient::DefaultApi* | [**get_audit_logs**](docs/DefaultApi.md#get_audit_logs) | **GET** /api/v1/audit-logs | +*FastCommentsClient::DefaultApi* | [**get_cached_notification_count**](docs/DefaultApi.md#get_cached_notification_count) | **GET** /api/v1/notification-count/{id} | *FastCommentsClient::DefaultApi* | [**get_comment**](docs/DefaultApi.md#get_comment) | **GET** /api/v1/comments/{id} | *FastCommentsClient::DefaultApi* | [**get_comments**](docs/DefaultApi.md#get_comments) | **GET** /api/v1/comments | *FastCommentsClient::DefaultApi* | [**get_domain_config**](docs/DefaultApi.md#get_domain_config) | **GET** /api/v1/domain-configs/{domain} | *FastCommentsClient::DefaultApi* | [**get_domain_configs**](docs/DefaultApi.md#get_domain_configs) | **GET** /api/v1/domain-configs | +*FastCommentsClient::DefaultApi* | [**get_email_template**](docs/DefaultApi.md#get_email_template) | **GET** /api/v1/email-templates/{id} | +*FastCommentsClient::DefaultApi* | [**get_email_template_definitions**](docs/DefaultApi.md#get_email_template_definitions) | **GET** /api/v1/email-templates/definitions | +*FastCommentsClient::DefaultApi* | [**get_email_template_render_errors**](docs/DefaultApi.md#get_email_template_render_errors) | **GET** /api/v1/email-templates/{id}/render-errors | +*FastCommentsClient::DefaultApi* | [**get_email_templates**](docs/DefaultApi.md#get_email_templates) | **GET** /api/v1/email-templates | *FastCommentsClient::DefaultApi* | [**get_feed_posts**](docs/DefaultApi.md#get_feed_posts) | **GET** /api/v1/feed-posts | +*FastCommentsClient::DefaultApi* | [**get_hash_tags**](docs/DefaultApi.md#get_hash_tags) | **GET** /api/v1/hash-tags | +*FastCommentsClient::DefaultApi* | [**get_moderator**](docs/DefaultApi.md#get_moderator) | **GET** /api/v1/moderators/{id} | +*FastCommentsClient::DefaultApi* | [**get_moderators**](docs/DefaultApi.md#get_moderators) | **GET** /api/v1/moderators | +*FastCommentsClient::DefaultApi* | [**get_notification_count**](docs/DefaultApi.md#get_notification_count) | **GET** /api/v1/notifications/count | +*FastCommentsClient::DefaultApi* | [**get_notifications**](docs/DefaultApi.md#get_notifications) | **GET** /api/v1/notifications | *FastCommentsClient::DefaultApi* | [**get_page_by_urlid**](docs/DefaultApi.md#get_page_by_urlid) | **GET** /api/v1/pages/by-url-id | *FastCommentsClient::DefaultApi* | [**get_pages**](docs/DefaultApi.md#get_pages) | **GET** /api/v1/pages | +*FastCommentsClient::DefaultApi* | [**get_pending_webhook_event_count**](docs/DefaultApi.md#get_pending_webhook_event_count) | **GET** /api/v1/pending-webhook-events/count | +*FastCommentsClient::DefaultApi* | [**get_pending_webhook_events**](docs/DefaultApi.md#get_pending_webhook_events) | **GET** /api/v1/pending-webhook-events | +*FastCommentsClient::DefaultApi* | [**get_question_config**](docs/DefaultApi.md#get_question_config) | **GET** /api/v1/question-configs/{id} | +*FastCommentsClient::DefaultApi* | [**get_question_configs**](docs/DefaultApi.md#get_question_configs) | **GET** /api/v1/question-configs | +*FastCommentsClient::DefaultApi* | [**get_question_result**](docs/DefaultApi.md#get_question_result) | **GET** /api/v1/question-results/{id} | +*FastCommentsClient::DefaultApi* | [**get_question_results**](docs/DefaultApi.md#get_question_results) | **GET** /api/v1/question-results | *FastCommentsClient::DefaultApi* | [**get_sso_user_by_email**](docs/DefaultApi.md#get_sso_user_by_email) | **GET** /api/v1/sso-users/by-email/{email} | *FastCommentsClient::DefaultApi* | [**get_sso_user_by_id**](docs/DefaultApi.md#get_sso_user_by_id) | **GET** /api/v1/sso-users/by-id/{id} | *FastCommentsClient::DefaultApi* | [**get_sso_users**](docs/DefaultApi.md#get_sso_users) | **GET** /api/v1/sso-users | *FastCommentsClient::DefaultApi* | [**get_subscriptions**](docs/DefaultApi.md#get_subscriptions) | **GET** /api/v1/subscriptions | +*FastCommentsClient::DefaultApi* | [**get_tenant**](docs/DefaultApi.md#get_tenant) | **GET** /api/v1/tenants/{id} | +*FastCommentsClient::DefaultApi* | [**get_tenant_daily_usages**](docs/DefaultApi.md#get_tenant_daily_usages) | **GET** /api/v1/tenant-daily-usage | +*FastCommentsClient::DefaultApi* | [**get_tenant_package**](docs/DefaultApi.md#get_tenant_package) | **GET** /api/v1/tenant-packages/{id} | +*FastCommentsClient::DefaultApi* | [**get_tenant_packages**](docs/DefaultApi.md#get_tenant_packages) | **GET** /api/v1/tenant-packages | +*FastCommentsClient::DefaultApi* | [**get_tenant_user**](docs/DefaultApi.md#get_tenant_user) | **GET** /api/v1/tenant-users/{id} | +*FastCommentsClient::DefaultApi* | [**get_tenant_users**](docs/DefaultApi.md#get_tenant_users) | **GET** /api/v1/tenant-users | +*FastCommentsClient::DefaultApi* | [**get_tenants**](docs/DefaultApi.md#get_tenants) | **GET** /api/v1/tenants | +*FastCommentsClient::DefaultApi* | [**get_user**](docs/DefaultApi.md#get_user) | **GET** /api/v1/users/{id} | *FastCommentsClient::DefaultApi* | [**get_user_badge**](docs/DefaultApi.md#get_user_badge) | **GET** /api/v1/user-badges/{id} | *FastCommentsClient::DefaultApi* | [**get_user_badge_progress_by_id**](docs/DefaultApi.md#get_user_badge_progress_by_id) | **GET** /api/v1/user-badge-progress/{id} | *FastCommentsClient::DefaultApi* | [**get_user_badge_progress_by_user_id**](docs/DefaultApi.md#get_user_badge_progress_by_user_id) | **GET** /api/v1/user-badge-progress/user/{userId} | *FastCommentsClient::DefaultApi* | [**get_user_badge_progress_list**](docs/DefaultApi.md#get_user_badge_progress_list) | **GET** /api/v1/user-badge-progress | *FastCommentsClient::DefaultApi* | [**get_user_badges**](docs/DefaultApi.md#get_user_badges) | **GET** /api/v1/user-badges | +*FastCommentsClient::DefaultApi* | [**get_votes**](docs/DefaultApi.md#get_votes) | **GET** /api/v1/votes | +*FastCommentsClient::DefaultApi* | [**get_votes_for_user**](docs/DefaultApi.md#get_votes_for_user) | **GET** /api/v1/votes/for-user | *FastCommentsClient::DefaultApi* | [**patch_domain_config**](docs/DefaultApi.md#patch_domain_config) | **PATCH** /api/v1/domain-configs/{domainToUpdate} | +*FastCommentsClient::DefaultApi* | [**patch_hash_tag**](docs/DefaultApi.md#patch_hash_tag) | **PATCH** /api/v1/hash-tags/{tag} | *FastCommentsClient::DefaultApi* | [**patch_page**](docs/DefaultApi.md#patch_page) | **PATCH** /api/v1/pages/{id} | *FastCommentsClient::DefaultApi* | [**patch_sso_user**](docs/DefaultApi.md#patch_sso_user) | **PATCH** /api/v1/sso-users/{id} | *FastCommentsClient::DefaultApi* | [**put_domain_config**](docs/DefaultApi.md#put_domain_config) | **PUT** /api/v1/domain-configs/{domainToUpdate} | *FastCommentsClient::DefaultApi* | [**put_sso_user**](docs/DefaultApi.md#put_sso_user) | **PUT** /api/v1/sso-users/{id} | +*FastCommentsClient::DefaultApi* | [**render_email_template**](docs/DefaultApi.md#render_email_template) | **POST** /api/v1/email-templates/render | +*FastCommentsClient::DefaultApi* | [**replace_tenant_package**](docs/DefaultApi.md#replace_tenant_package) | **PUT** /api/v1/tenant-packages/{id} | +*FastCommentsClient::DefaultApi* | [**replace_tenant_user**](docs/DefaultApi.md#replace_tenant_user) | **PUT** /api/v1/tenant-users/{id} | *FastCommentsClient::DefaultApi* | [**save_comment**](docs/DefaultApi.md#save_comment) | **POST** /api/v1/comments | *FastCommentsClient::DefaultApi* | [**save_comments_bulk**](docs/DefaultApi.md#save_comments_bulk) | **POST** /api/v1/comments/bulk | +*FastCommentsClient::DefaultApi* | [**send_invite**](docs/DefaultApi.md#send_invite) | **POST** /api/v1/moderators/{id}/send-invite | +*FastCommentsClient::DefaultApi* | [**send_login_link**](docs/DefaultApi.md#send_login_link) | **POST** /api/v1/tenant-users/{id}/send-login-link | *FastCommentsClient::DefaultApi* | [**un_block_user_from_comment**](docs/DefaultApi.md#un_block_user_from_comment) | **POST** /api/v1/comments/{id}/un-block | *FastCommentsClient::DefaultApi* | [**un_flag_comment**](docs/DefaultApi.md#un_flag_comment) | **POST** /api/v1/comments/{id}/un-flag | *FastCommentsClient::DefaultApi* | [**update_comment**](docs/DefaultApi.md#update_comment) | **PATCH** /api/v1/comments/{id} | +*FastCommentsClient::DefaultApi* | [**update_email_template**](docs/DefaultApi.md#update_email_template) | **PATCH** /api/v1/email-templates/{id} | *FastCommentsClient::DefaultApi* | [**update_feed_post**](docs/DefaultApi.md#update_feed_post) | **PATCH** /api/v1/feed-posts/{id} | +*FastCommentsClient::DefaultApi* | [**update_moderator**](docs/DefaultApi.md#update_moderator) | **PATCH** /api/v1/moderators/{id} | +*FastCommentsClient::DefaultApi* | [**update_notification**](docs/DefaultApi.md#update_notification) | **PATCH** /api/v1/notifications/{id} | +*FastCommentsClient::DefaultApi* | [**update_question_config**](docs/DefaultApi.md#update_question_config) | **PATCH** /api/v1/question-configs/{id} | +*FastCommentsClient::DefaultApi* | [**update_question_result**](docs/DefaultApi.md#update_question_result) | **PATCH** /api/v1/question-results/{id} | +*FastCommentsClient::DefaultApi* | [**update_tenant**](docs/DefaultApi.md#update_tenant) | **PATCH** /api/v1/tenants/{id} | +*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::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 | @@ -174,6 +236,7 @@ Class | Method | HTTP request | Description - [FastCommentsClient::APIComment](docs/APIComment.md) - [FastCommentsClient::APICommentBase](docs/APICommentBase.md) - [FastCommentsClient::APICreateUserBadgeResponse](docs/APICreateUserBadgeResponse.md) + - [FastCommentsClient::APIDomainConfiguration](docs/APIDomainConfiguration.md) - [FastCommentsClient::APIEmptyResponse](docs/APIEmptyResponse.md) - [FastCommentsClient::APIEmptySuccessResponse](docs/APIEmptySuccessResponse.md) - [FastCommentsClient::APIError](docs/APIError.md) @@ -186,10 +249,14 @@ Class | Method | HTTP request | Description - [FastCommentsClient::APIPage](docs/APIPage.md) - [FastCommentsClient::APISSOUser](docs/APISSOUser.md) - [FastCommentsClient::APIStatus](docs/APIStatus.md) + - [FastCommentsClient::APITenant](docs/APITenant.md) + - [FastCommentsClient::APITenantDailyUsage](docs/APITenantDailyUsage.md) - [FastCommentsClient::APIUserSubscription](docs/APIUserSubscription.md) - [FastCommentsClient::AddDomainConfig200Response](docs/AddDomainConfig200Response.md) - [FastCommentsClient::AddDomainConfig200ResponseAnyOf](docs/AddDomainConfig200ResponseAnyOf.md) - [FastCommentsClient::AddDomainConfigParams](docs/AddDomainConfigParams.md) + - [FastCommentsClient::AddHashTag200Response](docs/AddHashTag200Response.md) + - [FastCommentsClient::AddHashTagsBulk200Response](docs/AddHashTagsBulk200Response.md) - [FastCommentsClient::AddPageAPIResponse](docs/AddPageAPIResponse.md) - [FastCommentsClient::AddSSOUserAPIResponse](docs/AddSSOUserAPIResponse.md) - [FastCommentsClient::AggregateQuestionResults200Response](docs/AggregateQuestionResults200Response.md) @@ -203,6 +270,7 @@ Class | Method | HTTP request | Description - [FastCommentsClient::AggregationResponse](docs/AggregationResponse.md) - [FastCommentsClient::AggregationResponseStats](docs/AggregationResponseStats.md) - [FastCommentsClient::AggregationValue](docs/AggregationValue.md) + - [FastCommentsClient::BillingInfo](docs/BillingInfo.md) - [FastCommentsClient::BlockFromCommentParams](docs/BlockFromCommentParams.md) - [FastCommentsClient::BlockFromCommentPublic200Response](docs/BlockFromCommentPublic200Response.md) - [FastCommentsClient::BlockSuccess](docs/BlockSuccess.md) @@ -210,6 +278,9 @@ Class | Method | HTTP request | Description - [FastCommentsClient::BulkAggregateQuestionResults200Response](docs/BulkAggregateQuestionResults200Response.md) - [FastCommentsClient::BulkAggregateQuestionResultsRequest](docs/BulkAggregateQuestionResultsRequest.md) - [FastCommentsClient::BulkAggregateQuestionResultsResponse](docs/BulkAggregateQuestionResultsResponse.md) + - [FastCommentsClient::BulkCreateHashTagsBody](docs/BulkCreateHashTagsBody.md) + - [FastCommentsClient::BulkCreateHashTagsBodyTagsInner](docs/BulkCreateHashTagsBodyTagsInner.md) + - [FastCommentsClient::BulkCreateHashTagsResponse](docs/BulkCreateHashTagsResponse.md) - [FastCommentsClient::ChangeCommentPinStatusResponse](docs/ChangeCommentPinStatusResponse.md) - [FastCommentsClient::CheckBlockedCommentsResponse](docs/CheckBlockedCommentsResponse.md) - [FastCommentsClient::CheckedCommentsForBlocked200Response](docs/CheckedCommentsForBlocked200Response.md) @@ -233,15 +304,41 @@ Class | Method | HTTP request | Description - [FastCommentsClient::CreateAPIUserSubscriptionData](docs/CreateAPIUserSubscriptionData.md) - [FastCommentsClient::CreateCommentParams](docs/CreateCommentParams.md) - [FastCommentsClient::CreateCommentPublic200Response](docs/CreateCommentPublic200Response.md) + - [FastCommentsClient::CreateEmailTemplate200Response](docs/CreateEmailTemplate200Response.md) + - [FastCommentsClient::CreateEmailTemplateBody](docs/CreateEmailTemplateBody.md) + - [FastCommentsClient::CreateEmailTemplateResponse](docs/CreateEmailTemplateResponse.md) - [FastCommentsClient::CreateFeedPost200Response](docs/CreateFeedPost200Response.md) - [FastCommentsClient::CreateFeedPostParams](docs/CreateFeedPostParams.md) - [FastCommentsClient::CreateFeedPostPublic200Response](docs/CreateFeedPostPublic200Response.md) - [FastCommentsClient::CreateFeedPostResponse](docs/CreateFeedPostResponse.md) - [FastCommentsClient::CreateFeedPostsResponse](docs/CreateFeedPostsResponse.md) + - [FastCommentsClient::CreateHashTagBody](docs/CreateHashTagBody.md) + - [FastCommentsClient::CreateHashTagResponse](docs/CreateHashTagResponse.md) + - [FastCommentsClient::CreateModerator200Response](docs/CreateModerator200Response.md) + - [FastCommentsClient::CreateModeratorBody](docs/CreateModeratorBody.md) + - [FastCommentsClient::CreateModeratorResponse](docs/CreateModeratorResponse.md) + - [FastCommentsClient::CreateQuestionConfig200Response](docs/CreateQuestionConfig200Response.md) + - [FastCommentsClient::CreateQuestionConfigBody](docs/CreateQuestionConfigBody.md) + - [FastCommentsClient::CreateQuestionConfigResponse](docs/CreateQuestionConfigResponse.md) + - [FastCommentsClient::CreateQuestionResult200Response](docs/CreateQuestionResult200Response.md) + - [FastCommentsClient::CreateQuestionResultBody](docs/CreateQuestionResultBody.md) + - [FastCommentsClient::CreateQuestionResultResponse](docs/CreateQuestionResultResponse.md) - [FastCommentsClient::CreateSubscriptionAPIResponse](docs/CreateSubscriptionAPIResponse.md) + - [FastCommentsClient::CreateTenant200Response](docs/CreateTenant200Response.md) + - [FastCommentsClient::CreateTenantBody](docs/CreateTenantBody.md) + - [FastCommentsClient::CreateTenantPackage200Response](docs/CreateTenantPackage200Response.md) + - [FastCommentsClient::CreateTenantPackageBody](docs/CreateTenantPackageBody.md) + - [FastCommentsClient::CreateTenantPackageResponse](docs/CreateTenantPackageResponse.md) + - [FastCommentsClient::CreateTenantResponse](docs/CreateTenantResponse.md) + - [FastCommentsClient::CreateTenantUser200Response](docs/CreateTenantUser200Response.md) + - [FastCommentsClient::CreateTenantUserBody](docs/CreateTenantUserBody.md) + - [FastCommentsClient::CreateTenantUserResponse](docs/CreateTenantUserResponse.md) - [FastCommentsClient::CreateUserBadge200Response](docs/CreateUserBadge200Response.md) - [FastCommentsClient::CreateUserBadgeParams](docs/CreateUserBadgeParams.md) + - [FastCommentsClient::CreateVote200Response](docs/CreateVote200Response.md) + - [FastCommentsClient::CreateVoteResponse](docs/CreateVoteResponse.md) - [FastCommentsClient::CustomConfigParameters](docs/CustomConfigParameters.md) + - [FastCommentsClient::CustomEmailTemplate](docs/CustomEmailTemplate.md) - [FastCommentsClient::DeleteComment200Response](docs/DeleteComment200Response.md) - [FastCommentsClient::DeleteCommentAction](docs/DeleteCommentAction.md) - [FastCommentsClient::DeleteCommentPublic200Response](docs/DeleteCommentPublic200Response.md) @@ -250,10 +347,16 @@ Class | Method | HTTP request | Description - [FastCommentsClient::DeleteDomainConfig200Response](docs/DeleteDomainConfig200Response.md) - [FastCommentsClient::DeleteFeedPostPublic200Response](docs/DeleteFeedPostPublic200Response.md) - [FastCommentsClient::DeleteFeedPostPublic200ResponseAnyOf](docs/DeleteFeedPostPublic200ResponseAnyOf.md) + - [FastCommentsClient::DeleteHashTagRequest](docs/DeleteHashTagRequest.md) - [FastCommentsClient::DeletePageAPIResponse](docs/DeletePageAPIResponse.md) - [FastCommentsClient::DeleteSSOUserAPIResponse](docs/DeleteSSOUserAPIResponse.md) - [FastCommentsClient::DeleteSubscriptionAPIResponse](docs/DeleteSubscriptionAPIResponse.md) + - [FastCommentsClient::DeleteVote200Response](docs/DeleteVote200Response.md) + - [FastCommentsClient::DeleteVoteResponse](docs/DeleteVoteResponse.md) - [FastCommentsClient::DeletedCommentResultComment](docs/DeletedCommentResultComment.md) + - [FastCommentsClient::DigestEmailFrequency](docs/DigestEmailFrequency.md) + - [FastCommentsClient::EmailTemplateDefinition](docs/EmailTemplateDefinition.md) + - [FastCommentsClient::EmailTemplateRenderErrorResponse](docs/EmailTemplateRenderErrorResponse.md) - [FastCommentsClient::EventLogEntry](docs/EventLogEntry.md) - [FastCommentsClient::FComment](docs/FComment.md) - [FastCommentsClient::FCommentMeta](docs/FCommentMeta.md) @@ -270,6 +373,8 @@ Class | Method | HTTP request | Description - [FastCommentsClient::FlagCommentResponse](docs/FlagCommentResponse.md) - [FastCommentsClient::GetAuditLogs200Response](docs/GetAuditLogs200Response.md) - [FastCommentsClient::GetAuditLogsResponse](docs/GetAuditLogsResponse.md) + - [FastCommentsClient::GetCachedNotificationCount200Response](docs/GetCachedNotificationCount200Response.md) + - [FastCommentsClient::GetCachedNotificationCountResponse](docs/GetCachedNotificationCountResponse.md) - [FastCommentsClient::GetComment200Response](docs/GetComment200Response.md) - [FastCommentsClient::GetCommentText200Response](docs/GetCommentText200Response.md) - [FastCommentsClient::GetCommentVoteUserNames200Response](docs/GetCommentVoteUserNames200Response.md) @@ -282,20 +387,65 @@ Class | Method | HTTP request | Description - [FastCommentsClient::GetDomainConfigs200Response](docs/GetDomainConfigs200Response.md) - [FastCommentsClient::GetDomainConfigs200ResponseAnyOf](docs/GetDomainConfigs200ResponseAnyOf.md) - [FastCommentsClient::GetDomainConfigs200ResponseAnyOf1](docs/GetDomainConfigs200ResponseAnyOf1.md) + - [FastCommentsClient::GetEmailTemplate200Response](docs/GetEmailTemplate200Response.md) + - [FastCommentsClient::GetEmailTemplateDefinitions200Response](docs/GetEmailTemplateDefinitions200Response.md) + - [FastCommentsClient::GetEmailTemplateDefinitionsResponse](docs/GetEmailTemplateDefinitionsResponse.md) + - [FastCommentsClient::GetEmailTemplateRenderErrors200Response](docs/GetEmailTemplateRenderErrors200Response.md) + - [FastCommentsClient::GetEmailTemplateRenderErrorsResponse](docs/GetEmailTemplateRenderErrorsResponse.md) + - [FastCommentsClient::GetEmailTemplateResponse](docs/GetEmailTemplateResponse.md) + - [FastCommentsClient::GetEmailTemplates200Response](docs/GetEmailTemplates200Response.md) + - [FastCommentsClient::GetEmailTemplatesResponse](docs/GetEmailTemplatesResponse.md) - [FastCommentsClient::GetEventLog200Response](docs/GetEventLog200Response.md) - [FastCommentsClient::GetEventLogResponse](docs/GetEventLogResponse.md) - [FastCommentsClient::GetFeedPosts200Response](docs/GetFeedPosts200Response.md) - [FastCommentsClient::GetFeedPostsPublic200Response](docs/GetFeedPostsPublic200Response.md) - [FastCommentsClient::GetFeedPostsResponse](docs/GetFeedPostsResponse.md) - [FastCommentsClient::GetFeedPostsStats200Response](docs/GetFeedPostsStats200Response.md) + - [FastCommentsClient::GetHashTags200Response](docs/GetHashTags200Response.md) + - [FastCommentsClient::GetHashTagsResponse](docs/GetHashTagsResponse.md) + - [FastCommentsClient::GetModerator200Response](docs/GetModerator200Response.md) + - [FastCommentsClient::GetModeratorResponse](docs/GetModeratorResponse.md) + - [FastCommentsClient::GetModerators200Response](docs/GetModerators200Response.md) + - [FastCommentsClient::GetModeratorsResponse](docs/GetModeratorsResponse.md) - [FastCommentsClient::GetMyNotificationsResponse](docs/GetMyNotificationsResponse.md) + - [FastCommentsClient::GetNotificationCount200Response](docs/GetNotificationCount200Response.md) + - [FastCommentsClient::GetNotificationCountResponse](docs/GetNotificationCountResponse.md) + - [FastCommentsClient::GetNotifications200Response](docs/GetNotifications200Response.md) + - [FastCommentsClient::GetNotificationsResponse](docs/GetNotificationsResponse.md) - [FastCommentsClient::GetPageByURLIdAPIResponse](docs/GetPageByURLIdAPIResponse.md) - [FastCommentsClient::GetPagesAPIResponse](docs/GetPagesAPIResponse.md) + - [FastCommentsClient::GetPendingWebhookEventCount200Response](docs/GetPendingWebhookEventCount200Response.md) + - [FastCommentsClient::GetPendingWebhookEventCountResponse](docs/GetPendingWebhookEventCountResponse.md) + - [FastCommentsClient::GetPendingWebhookEvents200Response](docs/GetPendingWebhookEvents200Response.md) + - [FastCommentsClient::GetPendingWebhookEventsResponse](docs/GetPendingWebhookEventsResponse.md) - [FastCommentsClient::GetPublicFeedPostsResponse](docs/GetPublicFeedPostsResponse.md) + - [FastCommentsClient::GetQuestionConfig200Response](docs/GetQuestionConfig200Response.md) + - [FastCommentsClient::GetQuestionConfigResponse](docs/GetQuestionConfigResponse.md) + - [FastCommentsClient::GetQuestionConfigs200Response](docs/GetQuestionConfigs200Response.md) + - [FastCommentsClient::GetQuestionConfigsResponse](docs/GetQuestionConfigsResponse.md) + - [FastCommentsClient::GetQuestionResult200Response](docs/GetQuestionResult200Response.md) + - [FastCommentsClient::GetQuestionResultResponse](docs/GetQuestionResultResponse.md) + - [FastCommentsClient::GetQuestionResults200Response](docs/GetQuestionResults200Response.md) + - [FastCommentsClient::GetQuestionResultsResponse](docs/GetQuestionResultsResponse.md) - [FastCommentsClient::GetSSOUserByEmailAPIResponse](docs/GetSSOUserByEmailAPIResponse.md) - [FastCommentsClient::GetSSOUserByIdAPIResponse](docs/GetSSOUserByIdAPIResponse.md) - [FastCommentsClient::GetSSOUsers200Response](docs/GetSSOUsers200Response.md) - [FastCommentsClient::GetSubscriptionsAPIResponse](docs/GetSubscriptionsAPIResponse.md) + - [FastCommentsClient::GetTenant200Response](docs/GetTenant200Response.md) + - [FastCommentsClient::GetTenantDailyUsages200Response](docs/GetTenantDailyUsages200Response.md) + - [FastCommentsClient::GetTenantDailyUsagesResponse](docs/GetTenantDailyUsagesResponse.md) + - [FastCommentsClient::GetTenantPackage200Response](docs/GetTenantPackage200Response.md) + - [FastCommentsClient::GetTenantPackageResponse](docs/GetTenantPackageResponse.md) + - [FastCommentsClient::GetTenantPackages200Response](docs/GetTenantPackages200Response.md) + - [FastCommentsClient::GetTenantPackagesResponse](docs/GetTenantPackagesResponse.md) + - [FastCommentsClient::GetTenantResponse](docs/GetTenantResponse.md) + - [FastCommentsClient::GetTenantUser200Response](docs/GetTenantUser200Response.md) + - [FastCommentsClient::GetTenantUserResponse](docs/GetTenantUserResponse.md) + - [FastCommentsClient::GetTenantUsers200Response](docs/GetTenantUsers200Response.md) + - [FastCommentsClient::GetTenantUsersResponse](docs/GetTenantUsersResponse.md) + - [FastCommentsClient::GetTenants200Response](docs/GetTenants200Response.md) + - [FastCommentsClient::GetTenantsResponse](docs/GetTenantsResponse.md) + - [FastCommentsClient::GetUser200Response](docs/GetUser200Response.md) - [FastCommentsClient::GetUserBadge200Response](docs/GetUserBadge200Response.md) - [FastCommentsClient::GetUserBadgeProgressById200Response](docs/GetUserBadgeProgressById200Response.md) - [FastCommentsClient::GetUserBadgeProgressList200Response](docs/GetUserBadgeProgressList200Response.md) @@ -306,22 +456,31 @@ Class | Method | HTTP request | Description - [FastCommentsClient::GetUserPresenceStatuses200Response](docs/GetUserPresenceStatuses200Response.md) - [FastCommentsClient::GetUserPresenceStatusesResponse](docs/GetUserPresenceStatusesResponse.md) - [FastCommentsClient::GetUserReactsPublic200Response](docs/GetUserReactsPublic200Response.md) + - [FastCommentsClient::GetUserResponse](docs/GetUserResponse.md) + - [FastCommentsClient::GetVotes200Response](docs/GetVotes200Response.md) + - [FastCommentsClient::GetVotesForUser200Response](docs/GetVotesForUser200Response.md) + - [FastCommentsClient::GetVotesForUserResponse](docs/GetVotesForUserResponse.md) + - [FastCommentsClient::GetVotesResponse](docs/GetVotesResponse.md) - [FastCommentsClient::GifRating](docs/GifRating.md) - [FastCommentsClient::HeaderState](docs/HeaderState.md) - [FastCommentsClient::IgnoredResponse](docs/IgnoredResponse.md) - [FastCommentsClient::ImageContentProfanityLevel](docs/ImageContentProfanityLevel.md) + - [FastCommentsClient::ImportedSiteType](docs/ImportedSiteType.md) - [FastCommentsClient::LiveEvent](docs/LiveEvent.md) - [FastCommentsClient::LiveEventExtraInfo](docs/LiveEventExtraInfo.md) - [FastCommentsClient::LiveEventType](docs/LiveEventType.md) - [FastCommentsClient::LockComment200Response](docs/LockComment200Response.md) - [FastCommentsClient::MediaAsset](docs/MediaAsset.md) - [FastCommentsClient::MetaItem](docs/MetaItem.md) + - [FastCommentsClient::Moderator](docs/Moderator.md) - [FastCommentsClient::NotificationAndCount](docs/NotificationAndCount.md) - [FastCommentsClient::NotificationObjectType](docs/NotificationObjectType.md) - [FastCommentsClient::NotificationType](docs/NotificationType.md) - [FastCommentsClient::PatchDomainConfigParams](docs/PatchDomainConfigParams.md) + - [FastCommentsClient::PatchHashTag200Response](docs/PatchHashTag200Response.md) - [FastCommentsClient::PatchPageAPIResponse](docs/PatchPageAPIResponse.md) - [FastCommentsClient::PatchSSOUserAPIResponse](docs/PatchSSOUserAPIResponse.md) + - [FastCommentsClient::PendingCommentToSyncOutbound](docs/PendingCommentToSyncOutbound.md) - [FastCommentsClient::PinComment200Response](docs/PinComment200Response.md) - [FastCommentsClient::PubSubComment](docs/PubSubComment.md) - [FastCommentsClient::PubSubCommentBase](docs/PubSubCommentBase.md) @@ -333,9 +492,12 @@ Class | Method | HTTP request | Description - [FastCommentsClient::PublicComment](docs/PublicComment.md) - [FastCommentsClient::PublicCommentBase](docs/PublicCommentBase.md) - [FastCommentsClient::PublicFeedPostsResponse](docs/PublicFeedPostsResponse.md) + - [FastCommentsClient::PublicVote](docs/PublicVote.md) - [FastCommentsClient::PutSSOUserAPIResponse](docs/PutSSOUserAPIResponse.md) - [FastCommentsClient::QueryPredicate](docs/QueryPredicate.md) - [FastCommentsClient::QueryPredicateValue](docs/QueryPredicateValue.md) + - [FastCommentsClient::QuestionConfig](docs/QuestionConfig.md) + - [FastCommentsClient::QuestionConfigCustomOptionsInner](docs/QuestionConfigCustomOptionsInner.md) - [FastCommentsClient::QuestionDatum](docs/QuestionDatum.md) - [FastCommentsClient::QuestionRenderingType](docs/QuestionRenderingType.md) - [FastCommentsClient::QuestionResult](docs/QuestionResult.md) @@ -347,9 +509,14 @@ Class | Method | HTTP request | Description - [FastCommentsClient::ReactFeedPostResponse](docs/ReactFeedPostResponse.md) - [FastCommentsClient::RecordStringBeforeStringOrNullAfterStringOrNullValue](docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md) - [FastCommentsClient::RecordStringStringOrNumberValue](docs/RecordStringStringOrNumberValue.md) + - [FastCommentsClient::RenderEmailTemplate200Response](docs/RenderEmailTemplate200Response.md) + - [FastCommentsClient::RenderEmailTemplateBody](docs/RenderEmailTemplateBody.md) + - [FastCommentsClient::RenderEmailTemplateResponse](docs/RenderEmailTemplateResponse.md) - [FastCommentsClient::RenderableUserNotification](docs/RenderableUserNotification.md) - [FastCommentsClient::RepeatCommentCheckIgnoredReason](docs/RepeatCommentCheckIgnoredReason.md) - [FastCommentsClient::RepeatCommentHandlingAction](docs/RepeatCommentHandlingAction.md) + - [FastCommentsClient::ReplaceTenantPackageBody](docs/ReplaceTenantPackageBody.md) + - [FastCommentsClient::ReplaceTenantUserBody](docs/ReplaceTenantUserBody.md) - [FastCommentsClient::ResetUserNotifications200Response](docs/ResetUserNotifications200Response.md) - [FastCommentsClient::ResetUserNotificationsResponse](docs/ResetUserNotificationsResponse.md) - [FastCommentsClient::SORTDIR](docs/SORTDIR.md) @@ -365,6 +532,8 @@ Class | Method | HTTP request | Description - [FastCommentsClient::SizePreset](docs/SizePreset.md) - [FastCommentsClient::SortDirections](docs/SortDirections.md) - [FastCommentsClient::SpamRule](docs/SpamRule.md) + - [FastCommentsClient::TenantHashTag](docs/TenantHashTag.md) + - [FastCommentsClient::TenantPackage](docs/TenantPackage.md) - [FastCommentsClient::UnBlockCommentPublic200Response](docs/UnBlockCommentPublic200Response.md) - [FastCommentsClient::UnBlockFromCommentParams](docs/UnBlockFromCommentParams.md) - [FastCommentsClient::UnblockSuccess](docs/UnblockSuccess.md) @@ -372,14 +541,26 @@ Class | Method | HTTP request | Description - [FastCommentsClient::UpdateAPIPageData](docs/UpdateAPIPageData.md) - [FastCommentsClient::UpdateAPISSOUserData](docs/UpdateAPISSOUserData.md) - [FastCommentsClient::UpdateDomainConfigParams](docs/UpdateDomainConfigParams.md) + - [FastCommentsClient::UpdateEmailTemplateBody](docs/UpdateEmailTemplateBody.md) - [FastCommentsClient::UpdateFeedPostParams](docs/UpdateFeedPostParams.md) + - [FastCommentsClient::UpdateHashTagBody](docs/UpdateHashTagBody.md) + - [FastCommentsClient::UpdateHashTagResponse](docs/UpdateHashTagResponse.md) + - [FastCommentsClient::UpdateModeratorBody](docs/UpdateModeratorBody.md) + - [FastCommentsClient::UpdateNotificationBody](docs/UpdateNotificationBody.md) + - [FastCommentsClient::UpdateQuestionConfigBody](docs/UpdateQuestionConfigBody.md) + - [FastCommentsClient::UpdateQuestionResultBody](docs/UpdateQuestionResultBody.md) + - [FastCommentsClient::UpdateTenantBody](docs/UpdateTenantBody.md) + - [FastCommentsClient::UpdateTenantPackageBody](docs/UpdateTenantPackageBody.md) + - [FastCommentsClient::UpdateTenantUserBody](docs/UpdateTenantUserBody.md) - [FastCommentsClient::UpdateUserBadge200Response](docs/UpdateUserBadge200Response.md) - [FastCommentsClient::UpdateUserBadgeParams](docs/UpdateUserBadgeParams.md) - [FastCommentsClient::UpdateUserNotificationStatus200Response](docs/UpdateUserNotificationStatus200Response.md) - [FastCommentsClient::UploadImageResponse](docs/UploadImageResponse.md) + - [FastCommentsClient::User](docs/User.md) - [FastCommentsClient::UserBadge](docs/UserBadge.md) - [FastCommentsClient::UserBadgeProgress](docs/UserBadgeProgress.md) - [FastCommentsClient::UserNotification](docs/UserNotification.md) + - [FastCommentsClient::UserNotificationCount](docs/UserNotificationCount.md) - [FastCommentsClient::UserNotificationWriteResponse](docs/UserNotificationWriteResponse.md) - [FastCommentsClient::UserPresenceData](docs/UserPresenceData.md) - [FastCommentsClient::UserReactsResponse](docs/UserReactsResponse.md) diff --git a/client/docs/APIDomainConfiguration.md b/client/docs/APIDomainConfiguration.md new file mode 100644 index 0000000..7838ea3 --- /dev/null +++ b/client/docs/APIDomainConfiguration.md @@ -0,0 +1,46 @@ +# FastCommentsClient::APIDomainConfiguration + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **id** | **String** | | | +| **domain** | **String** | | | +| **email_from_name** | **String** | | [optional] | +| **email_from_email** | **String** | | [optional] | +| **email_headers** | **Hash<String, String>** | Construct a type with a set of properties K of type T | [optional] | +| **wp_sync_token** | **String** | | [optional] | +| **wp_synced** | **Boolean** | | [optional] | +| **wp_url** | **String** | | [optional] | +| **created_at** | **Time** | | | +| **auto_added_date** | **Time** | | [optional] | +| **site_type** | [**ImportedSiteType**](ImportedSiteType.md) | | [optional] | +| **logo_src** | **String** | | [optional] | +| **logo_src100px** | **String** | | [optional] | +| **footer_unsubscribe_url** | **String** | | [optional] | +| **disable_unsubscribe_links** | **Boolean** | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::APIDomainConfiguration.new( + id: null, + domain: null, + email_from_name: null, + email_from_email: null, + email_headers: null, + wp_sync_token: null, + wp_synced: null, + wp_url: null, + created_at: null, + auto_added_date: null, + site_type: null, + logo_src: null, + logo_src100px: null, + footer_unsubscribe_url: null, + disable_unsubscribe_links: null +) +``` + diff --git a/client/docs/APITenant.md b/client/docs/APITenant.md new file mode 100644 index 0000000..5623fe0 --- /dev/null +++ b/client/docs/APITenant.md @@ -0,0 +1,72 @@ +# FastCommentsClient::APITenant + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **id** | **String** | | | +| **name** | **String** | | | +| **email** | **String** | | [optional] | +| **sign_up_date** | **Float** | | | +| **package_id** | **String** | | | +| **payment_frequency** | **Float** | | | +| **billing_info_valid** | **Boolean** | | | +| **billing_handled_externally** | **Boolean** | | [optional] | +| **created_by** | **String** | | | +| **is_setup** | **Boolean** | | | +| **domain_configuration** | [**Array<APIDomainConfiguration>**](APIDomainConfiguration.md) | | | +| **billing_info** | [**BillingInfo**](BillingInfo.md) | | [optional] | +| **stripe_customer_id** | **String** | | [optional] | +| **stripe_subscription_id** | **String** | | [optional] | +| **stripe_plan_id** | **String** | | [optional] | +| **enable_profanity_filter** | **Boolean** | | | +| **enable_spam_filter** | **Boolean** | | | +| **last_billing_issue_reminder_date** | **Time** | | [optional] | +| **remove_unverified_comments** | **Boolean** | | [optional] | +| **unverified_comments_tt_lms** | **Float** | | [optional] | +| **comments_require_approval** | **Boolean** | | [optional] | +| **auto_approve_comment_on_verification** | **Boolean** | | [optional] | +| **send_profane_to_spam** | **Boolean** | | [optional] | +| **has_flex_pricing** | **Boolean** | | [optional] | +| **has_auditing** | **Boolean** | | [optional] | +| **flex_last_billed_amount** | **Float** | | [optional] | +| **de_anon_ip_addr** | **Float** | | [optional] | +| **meta** | **Hash<String, String>** | Construct a type with a set of properties K of type T | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::APITenant.new( + id: null, + name: null, + email: null, + sign_up_date: null, + package_id: null, + payment_frequency: null, + billing_info_valid: null, + billing_handled_externally: null, + created_by: null, + is_setup: null, + domain_configuration: null, + billing_info: null, + stripe_customer_id: null, + stripe_subscription_id: null, + stripe_plan_id: null, + enable_profanity_filter: null, + enable_spam_filter: null, + last_billing_issue_reminder_date: null, + remove_unverified_comments: null, + unverified_comments_tt_lms: null, + comments_require_approval: null, + auto_approve_comment_on_verification: null, + send_profane_to_spam: null, + has_flex_pricing: null, + has_auditing: null, + flex_last_billed_amount: null, + de_anon_ip_addr: null, + meta: null +) +``` + diff --git a/client/docs/APITenantDailyUsage.md b/client/docs/APITenantDailyUsage.md new file mode 100644 index 0000000..4984208 --- /dev/null +++ b/client/docs/APITenantDailyUsage.md @@ -0,0 +1,54 @@ +# FastCommentsClient::APITenantDailyUsage + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **id** | **String** | | | +| **tenant_id** | **String** | | | +| **year_number** | **Float** | | | +| **month_number** | **Float** | | | +| **day_number** | **Float** | | | +| **comment_fetch_count** | **Float** | | | +| **comment_create_count** | **Float** | | | +| **conversation_create_count** | **Float** | | | +| **vote_count** | **Float** | | | +| **account_created_count** | **Float** | | | +| **user_mention_search** | **Float** | | | +| **hash_tag_search** | **Float** | | | +| **gif_search_trending** | **Float** | | | +| **gif_search** | **Float** | | | +| **api_credits_used** | **Float** | | | +| **created_at** | **Time** | | | +| **billed** | **Boolean** | | | +| **ignored** | **Boolean** | | | +| **api_error_count** | **Float** | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::APITenantDailyUsage.new( + id: null, + tenant_id: null, + year_number: null, + month_number: null, + day_number: null, + comment_fetch_count: null, + comment_create_count: null, + conversation_create_count: null, + vote_count: null, + account_created_count: null, + user_mention_search: null, + hash_tag_search: null, + gif_search_trending: null, + gif_search: null, + api_credits_used: null, + created_at: null, + billed: null, + ignored: null, + api_error_count: null +) +``` + diff --git a/client/docs/AddHashTag200Response.md b/client/docs/AddHashTag200Response.md new file mode 100644 index 0000000..a1e56d0 --- /dev/null +++ b/client/docs/AddHashTag200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::AddHashTag200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **hash_tag** | [**TenantHashTag**](TenantHashTag.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::AddHashTag200Response.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/AddHashTagsBulk200Response.md b/client/docs/AddHashTagsBulk200Response.md new file mode 100644 index 0000000..f80e4f9 --- /dev/null +++ b/client/docs/AddHashTagsBulk200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::AddHashTagsBulk200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **results** | [**Array<AddHashTag200Response>**](AddHashTag200Response.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::AddHashTagsBulk200Response.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/BillingInfo.md b/client/docs/BillingInfo.md new file mode 100644 index 0000000..e2e8058 --- /dev/null +++ b/client/docs/BillingInfo.md @@ -0,0 +1,32 @@ +# FastCommentsClient::BillingInfo + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **name** | **String** | | | +| **address** | **String** | | | +| **city** | **String** | | | +| **state** | **String** | | | +| **zip** | **String** | | | +| **country** | **String** | | | +| **currency** | **String** | Currency for invoices. | [optional] | +| **email** | **String** | Email for invoices. | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::BillingInfo.new( + name: null, + address: null, + city: null, + state: null, + zip: null, + country: null, + currency: null, + email: null +) +``` + diff --git a/client/docs/BulkCreateHashTagsBody.md b/client/docs/BulkCreateHashTagsBody.md new file mode 100644 index 0000000..fb0056d --- /dev/null +++ b/client/docs/BulkCreateHashTagsBody.md @@ -0,0 +1,20 @@ +# FastCommentsClient::BulkCreateHashTagsBody + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | [optional] | +| **tags** | [**Array<BulkCreateHashTagsBodyTagsInner>**](BulkCreateHashTagsBodyTagsInner.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::BulkCreateHashTagsBody.new( + tenant_id: null, + tags: null +) +``` + diff --git a/client/docs/BulkCreateHashTagsBodyTagsInner.md b/client/docs/BulkCreateHashTagsBodyTagsInner.md new file mode 100644 index 0000000..cddaa22 --- /dev/null +++ b/client/docs/BulkCreateHashTagsBodyTagsInner.md @@ -0,0 +1,20 @@ +# FastCommentsClient::BulkCreateHashTagsBodyTagsInner + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **url** | **String** | | [optional] | +| **tag** | **String** | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::BulkCreateHashTagsBodyTagsInner.new( + url: null, + tag: null +) +``` + diff --git a/client/docs/BulkCreateHashTagsResponse.md b/client/docs/BulkCreateHashTagsResponse.md new file mode 100644 index 0000000..432f917 --- /dev/null +++ b/client/docs/BulkCreateHashTagsResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::BulkCreateHashTagsResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **results** | [**Array<AddHashTag200Response>**](AddHashTag200Response.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::BulkCreateHashTagsResponse.new( + status: null, + results: null +) +``` + diff --git a/client/docs/CommentLogData.md b/client/docs/CommentLogData.md index 25b61ef..4536816 100644 --- a/client/docs/CommentLogData.md +++ b/client/docs/CommentLogData.md @@ -47,6 +47,9 @@ | **trust_factor_before** | **Float** | | [optional] | | **trust_factor_after** | **Float** | | [optional] | | **referenced_comment_id** | **String** | | [optional] | +| **invalid_locale** | **String** | | [optional] | +| **detected_locale** | **String** | | [optional] | +| **detected_language** | **String** | | [optional] | ## Example @@ -96,7 +99,10 @@ instance = FastCommentsClient::CommentLogData.new( flag_count_before: null, trust_factor_before: null, trust_factor_after: null, - referenced_comment_id: null + referenced_comment_id: null, + invalid_locale: null, + detected_locale: null, + detected_language: null ) ``` diff --git a/client/docs/CreateEmailTemplate200Response.md b/client/docs/CreateEmailTemplate200Response.md new file mode 100644 index 0000000..6c4c8b5 --- /dev/null +++ b/client/docs/CreateEmailTemplate200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::CreateEmailTemplate200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **email_template** | [**CustomEmailTemplate**](CustomEmailTemplate.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateEmailTemplate200Response.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/CreateEmailTemplateBody.md b/client/docs/CreateEmailTemplateBody.md new file mode 100644 index 0000000..ea21520 --- /dev/null +++ b/client/docs/CreateEmailTemplateBody.md @@ -0,0 +1,28 @@ +# FastCommentsClient::CreateEmailTemplateBody + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **email_template_id** | **String** | | | +| **display_name** | **String** | | | +| **ejs** | **String** | | | +| **domain** | **String** | | [optional] | +| **translation_overrides_by_locale** | **Hash<String, Hash>** | Construct a type with a set of properties K of type T | [optional] | +| **test_data** | **Hash<String, Object>** | Construct a type with a set of properties K of type T | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateEmailTemplateBody.new( + email_template_id: null, + display_name: null, + ejs: null, + domain: null, + translation_overrides_by_locale: null, + test_data: null +) +``` + diff --git a/client/docs/CreateEmailTemplateResponse.md b/client/docs/CreateEmailTemplateResponse.md new file mode 100644 index 0000000..5534970 --- /dev/null +++ b/client/docs/CreateEmailTemplateResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::CreateEmailTemplateResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **email_template** | [**CustomEmailTemplate**](CustomEmailTemplate.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateEmailTemplateResponse.new( + status: null, + email_template: null +) +``` + diff --git a/client/docs/CreateHashTagBody.md b/client/docs/CreateHashTagBody.md new file mode 100644 index 0000000..6109f82 --- /dev/null +++ b/client/docs/CreateHashTagBody.md @@ -0,0 +1,22 @@ +# FastCommentsClient::CreateHashTagBody + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | [optional] | +| **tag** | **String** | | | +| **url** | **String** | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateHashTagBody.new( + tenant_id: null, + tag: null, + url: null +) +``` + diff --git a/client/docs/CreateHashTagResponse.md b/client/docs/CreateHashTagResponse.md new file mode 100644 index 0000000..8301bcb --- /dev/null +++ b/client/docs/CreateHashTagResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::CreateHashTagResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **hash_tag** | [**TenantHashTag**](TenantHashTag.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateHashTagResponse.new( + status: null, + hash_tag: null +) +``` + diff --git a/client/docs/CreateModerator200Response.md b/client/docs/CreateModerator200Response.md new file mode 100644 index 0000000..9126e85 --- /dev/null +++ b/client/docs/CreateModerator200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::CreateModerator200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **moderator** | [**Moderator**](Moderator.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateModerator200Response.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/CreateModeratorBody.md b/client/docs/CreateModeratorBody.md new file mode 100644 index 0000000..7ba131b --- /dev/null +++ b/client/docs/CreateModeratorBody.md @@ -0,0 +1,24 @@ +# FastCommentsClient::CreateModeratorBody + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **name** | **String** | | | +| **email** | **String** | | | +| **user_id** | **String** | | [optional] | +| **moderation_group_ids** | **Array<String>** | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateModeratorBody.new( + name: null, + email: null, + user_id: null, + moderation_group_ids: null +) +``` + diff --git a/client/docs/CreateModeratorResponse.md b/client/docs/CreateModeratorResponse.md new file mode 100644 index 0000000..1286b94 --- /dev/null +++ b/client/docs/CreateModeratorResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::CreateModeratorResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **moderator** | [**Moderator**](Moderator.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateModeratorResponse.new( + status: null, + moderator: null +) +``` + diff --git a/client/docs/CreateQuestionConfig200Response.md b/client/docs/CreateQuestionConfig200Response.md new file mode 100644 index 0000000..967e739 --- /dev/null +++ b/client/docs/CreateQuestionConfig200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::CreateQuestionConfig200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **question_config** | [**QuestionConfig**](QuestionConfig.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateQuestionConfig200Response.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/CreateQuestionConfigBody.md b/client/docs/CreateQuestionConfigBody.md new file mode 100644 index 0000000..2221a0a --- /dev/null +++ b/client/docs/CreateQuestionConfigBody.md @@ -0,0 +1,44 @@ +# FastCommentsClient::CreateQuestionConfigBody + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **name** | **String** | | | +| **question** | **String** | | | +| **help_text** | **String** | | [optional] | +| **type** | **String** | | | +| **num_stars** | **Float** | | [optional] | +| **min** | **Float** | | [optional] | +| **max** | **Float** | | [optional] | +| **default_value** | **Float** | | [optional] | +| **label_negative** | **String** | | [optional] | +| **label_positive** | **String** | | [optional] | +| **custom_options** | [**Array<QuestionConfigCustomOptionsInner>**](QuestionConfigCustomOptionsInner.md) | | [optional] | +| **sub_question_ids** | **Array<String>** | | [optional] | +| **always_show_sub_questions** | **Boolean** | | [optional] | +| **reporting_order** | **Float** | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateQuestionConfigBody.new( + name: null, + question: null, + help_text: null, + type: null, + num_stars: null, + min: null, + max: null, + default_value: null, + label_negative: null, + label_positive: null, + custom_options: null, + sub_question_ids: null, + always_show_sub_questions: null, + reporting_order: null +) +``` + diff --git a/client/docs/CreateQuestionConfigResponse.md b/client/docs/CreateQuestionConfigResponse.md new file mode 100644 index 0000000..24666d9 --- /dev/null +++ b/client/docs/CreateQuestionConfigResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::CreateQuestionConfigResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **question_config** | [**QuestionConfig**](QuestionConfig.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateQuestionConfigResponse.new( + status: null, + question_config: null +) +``` + diff --git a/client/docs/CreateQuestionResult200Response.md b/client/docs/CreateQuestionResult200Response.md new file mode 100644 index 0000000..a253a3f --- /dev/null +++ b/client/docs/CreateQuestionResult200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::CreateQuestionResult200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **question_result** | [**QuestionResult**](QuestionResult.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateQuestionResult200Response.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/CreateQuestionResultBody.md b/client/docs/CreateQuestionResultBody.md new file mode 100644 index 0000000..9abaaf3 --- /dev/null +++ b/client/docs/CreateQuestionResultBody.md @@ -0,0 +1,30 @@ +# FastCommentsClient::CreateQuestionResultBody + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **url_id** | **String** | | | +| **value** | **Float** | | | +| **question_id** | **String** | | | +| **anon_user_id** | **String** | | [optional] | +| **user_id** | **String** | | [optional] | +| **comment_id** | **String** | | [optional] | +| **meta** | [**Array<MetaItem>**](MetaItem.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateQuestionResultBody.new( + url_id: null, + value: null, + question_id: null, + anon_user_id: null, + user_id: null, + comment_id: null, + meta: null +) +``` + diff --git a/client/docs/CreateQuestionResultResponse.md b/client/docs/CreateQuestionResultResponse.md new file mode 100644 index 0000000..cfdb69a --- /dev/null +++ b/client/docs/CreateQuestionResultResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::CreateQuestionResultResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **question_result** | [**QuestionResult**](QuestionResult.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateQuestionResultResponse.new( + status: null, + question_result: null +) +``` + diff --git a/client/docs/CreateTenant200Response.md b/client/docs/CreateTenant200Response.md new file mode 100644 index 0000000..fbdc522 --- /dev/null +++ b/client/docs/CreateTenant200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::CreateTenant200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenant** | [**APITenant**](APITenant.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateTenant200Response.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/CreateTenantBody.md b/client/docs/CreateTenantBody.md new file mode 100644 index 0000000..95f08c1 --- /dev/null +++ b/client/docs/CreateTenantBody.md @@ -0,0 +1,62 @@ +# FastCommentsClient::CreateTenantBody + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **name** | **String** | | | +| **domain_configuration** | [**Array<APIDomainConfiguration>**](APIDomainConfiguration.md) | | | +| **email** | **String** | | [optional] | +| **sign_up_date** | **Float** | | [optional] | +| **package_id** | **String** | | [optional] | +| **payment_frequency** | **Float** | | [optional] | +| **billing_info_valid** | **Boolean** | | [optional] | +| **billing_handled_externally** | **Boolean** | | [optional] | +| **created_by** | **String** | | [optional] | +| **is_setup** | **Boolean** | | [optional] | +| **billing_info** | [**BillingInfo**](BillingInfo.md) | | [optional] | +| **stripe_customer_id** | **String** | | [optional] | +| **stripe_subscription_id** | **String** | | [optional] | +| **stripe_plan_id** | **String** | | [optional] | +| **enable_profanity_filter** | **Boolean** | | [optional] | +| **enable_spam_filter** | **Boolean** | | [optional] | +| **remove_unverified_comments** | **Boolean** | | [optional] | +| **unverified_comments_tt_lms** | **Float** | | [optional] | +| **comments_require_approval** | **Boolean** | | [optional] | +| **auto_approve_comment_on_verification** | **Boolean** | | [optional] | +| **send_profane_to_spam** | **Boolean** | | [optional] | +| **de_anon_ip_addr** | **Float** | | [optional] | +| **meta** | **Hash<String, String>** | Construct a type with a set of properties K of type T | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateTenantBody.new( + name: null, + domain_configuration: null, + email: null, + sign_up_date: null, + package_id: null, + payment_frequency: null, + billing_info_valid: null, + billing_handled_externally: null, + created_by: null, + is_setup: null, + billing_info: null, + stripe_customer_id: null, + stripe_subscription_id: null, + stripe_plan_id: null, + enable_profanity_filter: null, + enable_spam_filter: null, + remove_unverified_comments: null, + unverified_comments_tt_lms: null, + comments_require_approval: null, + auto_approve_comment_on_verification: null, + send_profane_to_spam: null, + de_anon_ip_addr: null, + meta: null +) +``` + diff --git a/client/docs/CreateTenantPackage200Response.md b/client/docs/CreateTenantPackage200Response.md new file mode 100644 index 0000000..8bbd588 --- /dev/null +++ b/client/docs/CreateTenantPackage200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::CreateTenantPackage200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenant_package** | [**TenantPackage**](TenantPackage.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateTenantPackage200Response.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/CreateTenantPackageBody.md b/client/docs/CreateTenantPackageBody.md new file mode 100644 index 0000000..6ed4494 --- /dev/null +++ b/client/docs/CreateTenantPackageBody.md @@ -0,0 +1,112 @@ +# FastCommentsClient::CreateTenantPackageBody + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **name** | **String** | | | +| **monthly_cost_usd** | **Float** | | [optional] | +| **yearly_cost_usd** | **Float** | | [optional] | +| **monthly_stripe_plan_id** | **String** | | [optional] | +| **yearly_stripe_plan_id** | **String** | | [optional] | +| **max_monthly_page_loads** | **Float** | | | +| **max_monthly_api_credits** | **Float** | | | +| **max_monthly_small_widgets_credits** | **Float** | | [optional] | +| **max_monthly_comments** | **Float** | | | +| **max_concurrent_users** | **Float** | | | +| **max_tenant_users** | **Float** | | | +| **max_sso_users** | **Float** | | | +| **max_moderators** | **Float** | | | +| **max_domains** | **Float** | | | +| **max_white_labeled_tenants** | **Float** | | [optional] | +| **max_monthly_event_log_requests** | **Float** | | [optional] | +| **has_white_labeling** | **Boolean** | | [optional] | +| **has_debranding** | **Boolean** | | | +| **has_llm_spam_detection** | **Boolean** | | [optional] | +| **for_who_text** | **String** | | | +| **feature_taglines** | **Array<String>** | | | +| **has_auditing** | **Boolean** | | [optional] | +| **has_flex_pricing** | **Boolean** | | | +| **enable_saml** | **Boolean** | | [optional] | +| **flex_page_load_cost_cents** | **Float** | | [optional] | +| **flex_page_load_unit** | **Float** | | [optional] | +| **flex_comment_cost_cents** | **Float** | | [optional] | +| **flex_comment_unit** | **Float** | | [optional] | +| **flex_sso_user_cost_cents** | **Float** | | [optional] | +| **flex_sso_user_unit** | **Float** | | [optional] | +| **flex_api_credit_cost_cents** | **Float** | | [optional] | +| **flex_api_credit_unit** | **Float** | | [optional] | +| **flex_small_widgets_credit_cost_cents** | **Float** | | [optional] | +| **flex_small_widgets_credit_unit** | **Float** | | [optional] | +| **flex_moderator_cost_cents** | **Float** | | [optional] | +| **flex_moderator_unit** | **Float** | | [optional] | +| **flex_admin_cost_cents** | **Float** | | [optional] | +| **flex_admin_unit** | **Float** | | [optional] | +| **flex_domain_cost_cents** | **Float** | | [optional] | +| **flex_domain_unit** | **Float** | | [optional] | +| **flex_chat_gpt_cost_cents** | **Float** | | [optional] | +| **flex_chat_gpt_unit** | **Float** | | [optional] | +| **flex_minimum_cost_cents** | **Float** | | [optional] | +| **flex_managed_tenant_cost_cents** | **Float** | | [optional] | +| **flex_sso_admin_cost_cents** | **Float** | | [optional] | +| **flex_sso_admin_unit** | **Float** | | [optional] | +| **flex_sso_moderator_cost_cents** | **Float** | | [optional] | +| **flex_sso_moderator_unit** | **Float** | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateTenantPackageBody.new( + name: null, + monthly_cost_usd: null, + yearly_cost_usd: null, + monthly_stripe_plan_id: null, + yearly_stripe_plan_id: null, + max_monthly_page_loads: null, + max_monthly_api_credits: null, + max_monthly_small_widgets_credits: null, + max_monthly_comments: null, + max_concurrent_users: null, + max_tenant_users: null, + max_sso_users: null, + max_moderators: null, + max_domains: null, + max_white_labeled_tenants: null, + max_monthly_event_log_requests: null, + has_white_labeling: null, + has_debranding: null, + has_llm_spam_detection: null, + for_who_text: null, + feature_taglines: null, + has_auditing: null, + has_flex_pricing: null, + enable_saml: null, + flex_page_load_cost_cents: null, + flex_page_load_unit: null, + flex_comment_cost_cents: null, + flex_comment_unit: null, + flex_sso_user_cost_cents: null, + flex_sso_user_unit: null, + flex_api_credit_cost_cents: null, + flex_api_credit_unit: null, + flex_small_widgets_credit_cost_cents: null, + flex_small_widgets_credit_unit: null, + flex_moderator_cost_cents: null, + flex_moderator_unit: null, + flex_admin_cost_cents: null, + flex_admin_unit: null, + flex_domain_cost_cents: null, + flex_domain_unit: null, + flex_chat_gpt_cost_cents: null, + flex_chat_gpt_unit: null, + flex_minimum_cost_cents: null, + flex_managed_tenant_cost_cents: null, + flex_sso_admin_cost_cents: null, + flex_sso_admin_unit: null, + flex_sso_moderator_cost_cents: null, + flex_sso_moderator_unit: null +) +``` + diff --git a/client/docs/CreateTenantPackageResponse.md b/client/docs/CreateTenantPackageResponse.md new file mode 100644 index 0000000..187e137 --- /dev/null +++ b/client/docs/CreateTenantPackageResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::CreateTenantPackageResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenant_package** | [**TenantPackage**](TenantPackage.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateTenantPackageResponse.new( + status: null, + tenant_package: null +) +``` + diff --git a/client/docs/CreateTenantResponse.md b/client/docs/CreateTenantResponse.md new file mode 100644 index 0000000..0e0584e --- /dev/null +++ b/client/docs/CreateTenantResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::CreateTenantResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenant** | [**APITenant**](APITenant.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateTenantResponse.new( + status: null, + tenant: null +) +``` + diff --git a/client/docs/CreateTenantUser200Response.md b/client/docs/CreateTenantUser200Response.md new file mode 100644 index 0000000..33db806 --- /dev/null +++ b/client/docs/CreateTenantUser200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::CreateTenantUser200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenant_user** | [**User**](User.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateTenantUser200Response.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/CreateTenantUserBody.md b/client/docs/CreateTenantUserBody.md new file mode 100644 index 0000000..448c171 --- /dev/null +++ b/client/docs/CreateTenantUserBody.md @@ -0,0 +1,64 @@ +# FastCommentsClient::CreateTenantUserBody + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **username** | **String** | | | +| **email** | **String** | | | +| **display_name** | **String** | | [optional] | +| **website_url** | **String** | | [optional] | +| **sign_up_date** | **Float** | | [optional] | +| **locale** | **String** | | [optional] | +| **verified** | **Boolean** | | [optional] | +| **login_count** | **Float** | | [optional] | +| **opted_in_notifications** | **Boolean** | | [optional] | +| **opted_in_tenant_notifications** | **Boolean** | | [optional] | +| **hide_account_code** | **Boolean** | | [optional] | +| **avatar_src** | **String** | | [optional] | +| **is_help_request_admin** | **Boolean** | | [optional] | +| **is_account_owner** | **Boolean** | | [optional] | +| **is_admin_admin** | **Boolean** | | [optional] | +| **is_billing_admin** | **Boolean** | | [optional] | +| **is_analytics_admin** | **Boolean** | | [optional] | +| **is_customization_admin** | **Boolean** | | [optional] | +| **is_manage_data_admin** | **Boolean** | | [optional] | +| **is_comment_moderator_admin** | **Boolean** | | [optional] | +| **is_api_admin** | **Boolean** | | [optional] | +| **moderator_ids** | **Array<String>** | | [optional] | +| **digest_email_frequency** | **Float** | | [optional] | +| **display_label** | **String** | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateTenantUserBody.new( + username: null, + email: null, + display_name: null, + website_url: null, + sign_up_date: null, + locale: null, + verified: null, + login_count: null, + opted_in_notifications: null, + opted_in_tenant_notifications: null, + hide_account_code: null, + avatar_src: null, + is_help_request_admin: null, + is_account_owner: null, + is_admin_admin: null, + is_billing_admin: null, + is_analytics_admin: null, + is_customization_admin: null, + is_manage_data_admin: null, + is_comment_moderator_admin: null, + is_api_admin: null, + moderator_ids: null, + digest_email_frequency: null, + display_label: null +) +``` + diff --git a/client/docs/CreateTenantUserResponse.md b/client/docs/CreateTenantUserResponse.md new file mode 100644 index 0000000..5dd2cc1 --- /dev/null +++ b/client/docs/CreateTenantUserResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::CreateTenantUserResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenant_user** | [**User**](User.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateTenantUserResponse.new( + status: null, + tenant_user: null +) +``` + diff --git a/client/docs/CreateVote200Response.md b/client/docs/CreateVote200Response.md new file mode 100644 index 0000000..6b329ed --- /dev/null +++ b/client/docs/CreateVote200Response.md @@ -0,0 +1,32 @@ +# FastCommentsClient::CreateVote200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateVote200Response.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/CreateVoteResponse.md b/client/docs/CreateVoteResponse.md new file mode 100644 index 0000000..600f458 --- /dev/null +++ b/client/docs/CreateVoteResponse.md @@ -0,0 +1,18 @@ +# FastCommentsClient::CreateVoteResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CreateVoteResponse.new( + status: null +) +``` + diff --git a/client/docs/CustomEmailTemplate.md b/client/docs/CustomEmailTemplate.md new file mode 100644 index 0000000..d444c5b --- /dev/null +++ b/client/docs/CustomEmailTemplate.md @@ -0,0 +1,38 @@ +# FastCommentsClient::CustomEmailTemplate + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **_id** | **String** | | | +| **tenant_id** | **String** | | | +| **email_template_id** | **String** | | | +| **display_name** | **String** | | | +| **created_at** | **Time** | | | +| **updated_at** | **Time** | | | +| **updated_by_user_id** | **String** | | | +| **domain** | **String** | | [optional] | +| **ejs** | **String** | | | +| **translation_overrides_by_locale** | **Hash<String, Hash>** | Construct a type with a set of properties K of type T | | +| **test_data** | **Object** | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::CustomEmailTemplate.new( + _id: null, + tenant_id: null, + email_template_id: null, + display_name: null, + created_at: null, + updated_at: null, + updated_by_user_id: null, + domain: null, + ejs: null, + translation_overrides_by_locale: null, + test_data: null +) +``` + diff --git a/client/docs/DefaultApi.md b/client/docs/DefaultApi.md index 2bbbdf3..fb9db1a 100644 --- a/client/docs/DefaultApi.md +++ b/client/docs/DefaultApi.md @@ -5,6 +5,8 @@ All URIs are relative to *https://fastcomments.com* | Method | HTTP request | Description | | ------ | ------------ | ----------- | | [**add_domain_config**](DefaultApi.md#add_domain_config) | **POST** /api/v1/domain-configs | | +| [**add_hash_tag**](DefaultApi.md#add_hash_tag) | **POST** /api/v1/hash-tags | | +| [**add_hash_tags_bulk**](DefaultApi.md#add_hash_tags_bulk) | **POST** /api/v1/hash-tags/bulk | | | [**add_page**](DefaultApi.md#add_page) | **POST** /api/v1/pages | | | [**add_sso_user**](DefaultApi.md#add_sso_user) | **POST** /api/v1/sso-users | | | [**aggregate**](DefaultApi.md#aggregate) | **POST** /api/v1/aggregate | | @@ -12,44 +14,104 @@ All URIs are relative to *https://fastcomments.com* | [**block_user_from_comment**](DefaultApi.md#block_user_from_comment) | **POST** /api/v1/comments/{id}/block | | | [**bulk_aggregate_question_results**](DefaultApi.md#bulk_aggregate_question_results) | **POST** /api/v1/question-results-aggregation/bulk | | | [**combine_comments_with_question_results**](DefaultApi.md#combine_comments_with_question_results) | **GET** /api/v1/question-results-aggregation/combine/comments | | +| [**create_email_template**](DefaultApi.md#create_email_template) | **POST** /api/v1/email-templates | | | [**create_feed_post**](DefaultApi.md#create_feed_post) | **POST** /api/v1/feed-posts | | +| [**create_moderator**](DefaultApi.md#create_moderator) | **POST** /api/v1/moderators | | +| [**create_question_config**](DefaultApi.md#create_question_config) | **POST** /api/v1/question-configs | | +| [**create_question_result**](DefaultApi.md#create_question_result) | **POST** /api/v1/question-results | | | [**create_subscription**](DefaultApi.md#create_subscription) | **POST** /api/v1/subscriptions | | +| [**create_tenant**](DefaultApi.md#create_tenant) | **POST** /api/v1/tenants | | +| [**create_tenant_package**](DefaultApi.md#create_tenant_package) | **POST** /api/v1/tenant-packages | | +| [**create_tenant_user**](DefaultApi.md#create_tenant_user) | **POST** /api/v1/tenant-users | | | [**create_user_badge**](DefaultApi.md#create_user_badge) | **POST** /api/v1/user-badges | | +| [**create_vote**](DefaultApi.md#create_vote) | **POST** /api/v1/votes | | | [**delete_comment**](DefaultApi.md#delete_comment) | **DELETE** /api/v1/comments/{id} | | | [**delete_domain_config**](DefaultApi.md#delete_domain_config) | **DELETE** /api/v1/domain-configs/{domain} | | +| [**delete_email_template**](DefaultApi.md#delete_email_template) | **DELETE** /api/v1/email-templates/{id} | | +| [**delete_email_template_render_error**](DefaultApi.md#delete_email_template_render_error) | **DELETE** /api/v1/email-templates/{id}/render-errors/{errorId} | | +| [**delete_hash_tag**](DefaultApi.md#delete_hash_tag) | **DELETE** /api/v1/hash-tags/{tag} | | +| [**delete_moderator**](DefaultApi.md#delete_moderator) | **DELETE** /api/v1/moderators/{id} | | +| [**delete_notification_count**](DefaultApi.md#delete_notification_count) | **DELETE** /api/v1/notification-count/{id} | | | [**delete_page**](DefaultApi.md#delete_page) | **DELETE** /api/v1/pages/{id} | | +| [**delete_pending_webhook_event**](DefaultApi.md#delete_pending_webhook_event) | **DELETE** /api/v1/pending-webhook-events/{id} | | +| [**delete_question_config**](DefaultApi.md#delete_question_config) | **DELETE** /api/v1/question-configs/{id} | | +| [**delete_question_result**](DefaultApi.md#delete_question_result) | **DELETE** /api/v1/question-results/{id} | | | [**delete_sso_user**](DefaultApi.md#delete_sso_user) | **DELETE** /api/v1/sso-users/{id} | | | [**delete_subscription**](DefaultApi.md#delete_subscription) | **DELETE** /api/v1/subscriptions/{id} | | +| [**delete_tenant**](DefaultApi.md#delete_tenant) | **DELETE** /api/v1/tenants/{id} | | +| [**delete_tenant_package**](DefaultApi.md#delete_tenant_package) | **DELETE** /api/v1/tenant-packages/{id} | | +| [**delete_tenant_user**](DefaultApi.md#delete_tenant_user) | **DELETE** /api/v1/tenant-users/{id} | | | [**delete_user_badge**](DefaultApi.md#delete_user_badge) | **DELETE** /api/v1/user-badges/{id} | | +| [**delete_vote**](DefaultApi.md#delete_vote) | **DELETE** /api/v1/votes/{id} | | | [**flag_comment**](DefaultApi.md#flag_comment) | **POST** /api/v1/comments/{id}/flag | | | [**get_audit_logs**](DefaultApi.md#get_audit_logs) | **GET** /api/v1/audit-logs | | +| [**get_cached_notification_count**](DefaultApi.md#get_cached_notification_count) | **GET** /api/v1/notification-count/{id} | | | [**get_comment**](DefaultApi.md#get_comment) | **GET** /api/v1/comments/{id} | | | [**get_comments**](DefaultApi.md#get_comments) | **GET** /api/v1/comments | | | [**get_domain_config**](DefaultApi.md#get_domain_config) | **GET** /api/v1/domain-configs/{domain} | | | [**get_domain_configs**](DefaultApi.md#get_domain_configs) | **GET** /api/v1/domain-configs | | +| [**get_email_template**](DefaultApi.md#get_email_template) | **GET** /api/v1/email-templates/{id} | | +| [**get_email_template_definitions**](DefaultApi.md#get_email_template_definitions) | **GET** /api/v1/email-templates/definitions | | +| [**get_email_template_render_errors**](DefaultApi.md#get_email_template_render_errors) | **GET** /api/v1/email-templates/{id}/render-errors | | +| [**get_email_templates**](DefaultApi.md#get_email_templates) | **GET** /api/v1/email-templates | | | [**get_feed_posts**](DefaultApi.md#get_feed_posts) | **GET** /api/v1/feed-posts | | +| [**get_hash_tags**](DefaultApi.md#get_hash_tags) | **GET** /api/v1/hash-tags | | +| [**get_moderator**](DefaultApi.md#get_moderator) | **GET** /api/v1/moderators/{id} | | +| [**get_moderators**](DefaultApi.md#get_moderators) | **GET** /api/v1/moderators | | +| [**get_notification_count**](DefaultApi.md#get_notification_count) | **GET** /api/v1/notifications/count | | +| [**get_notifications**](DefaultApi.md#get_notifications) | **GET** /api/v1/notifications | | | [**get_page_by_urlid**](DefaultApi.md#get_page_by_urlid) | **GET** /api/v1/pages/by-url-id | | | [**get_pages**](DefaultApi.md#get_pages) | **GET** /api/v1/pages | | +| [**get_pending_webhook_event_count**](DefaultApi.md#get_pending_webhook_event_count) | **GET** /api/v1/pending-webhook-events/count | | +| [**get_pending_webhook_events**](DefaultApi.md#get_pending_webhook_events) | **GET** /api/v1/pending-webhook-events | | +| [**get_question_config**](DefaultApi.md#get_question_config) | **GET** /api/v1/question-configs/{id} | | +| [**get_question_configs**](DefaultApi.md#get_question_configs) | **GET** /api/v1/question-configs | | +| [**get_question_result**](DefaultApi.md#get_question_result) | **GET** /api/v1/question-results/{id} | | +| [**get_question_results**](DefaultApi.md#get_question_results) | **GET** /api/v1/question-results | | | [**get_sso_user_by_email**](DefaultApi.md#get_sso_user_by_email) | **GET** /api/v1/sso-users/by-email/{email} | | | [**get_sso_user_by_id**](DefaultApi.md#get_sso_user_by_id) | **GET** /api/v1/sso-users/by-id/{id} | | | [**get_sso_users**](DefaultApi.md#get_sso_users) | **GET** /api/v1/sso-users | | | [**get_subscriptions**](DefaultApi.md#get_subscriptions) | **GET** /api/v1/subscriptions | | +| [**get_tenant**](DefaultApi.md#get_tenant) | **GET** /api/v1/tenants/{id} | | +| [**get_tenant_daily_usages**](DefaultApi.md#get_tenant_daily_usages) | **GET** /api/v1/tenant-daily-usage | | +| [**get_tenant_package**](DefaultApi.md#get_tenant_package) | **GET** /api/v1/tenant-packages/{id} | | +| [**get_tenant_packages**](DefaultApi.md#get_tenant_packages) | **GET** /api/v1/tenant-packages | | +| [**get_tenant_user**](DefaultApi.md#get_tenant_user) | **GET** /api/v1/tenant-users/{id} | | +| [**get_tenant_users**](DefaultApi.md#get_tenant_users) | **GET** /api/v1/tenant-users | | +| [**get_tenants**](DefaultApi.md#get_tenants) | **GET** /api/v1/tenants | | +| [**get_user**](DefaultApi.md#get_user) | **GET** /api/v1/users/{id} | | | [**get_user_badge**](DefaultApi.md#get_user_badge) | **GET** /api/v1/user-badges/{id} | | | [**get_user_badge_progress_by_id**](DefaultApi.md#get_user_badge_progress_by_id) | **GET** /api/v1/user-badge-progress/{id} | | | [**get_user_badge_progress_by_user_id**](DefaultApi.md#get_user_badge_progress_by_user_id) | **GET** /api/v1/user-badge-progress/user/{userId} | | | [**get_user_badge_progress_list**](DefaultApi.md#get_user_badge_progress_list) | **GET** /api/v1/user-badge-progress | | | [**get_user_badges**](DefaultApi.md#get_user_badges) | **GET** /api/v1/user-badges | | +| [**get_votes**](DefaultApi.md#get_votes) | **GET** /api/v1/votes | | +| [**get_votes_for_user**](DefaultApi.md#get_votes_for_user) | **GET** /api/v1/votes/for-user | | | [**patch_domain_config**](DefaultApi.md#patch_domain_config) | **PATCH** /api/v1/domain-configs/{domainToUpdate} | | +| [**patch_hash_tag**](DefaultApi.md#patch_hash_tag) | **PATCH** /api/v1/hash-tags/{tag} | | | [**patch_page**](DefaultApi.md#patch_page) | **PATCH** /api/v1/pages/{id} | | | [**patch_sso_user**](DefaultApi.md#patch_sso_user) | **PATCH** /api/v1/sso-users/{id} | | | [**put_domain_config**](DefaultApi.md#put_domain_config) | **PUT** /api/v1/domain-configs/{domainToUpdate} | | | [**put_sso_user**](DefaultApi.md#put_sso_user) | **PUT** /api/v1/sso-users/{id} | | +| [**render_email_template**](DefaultApi.md#render_email_template) | **POST** /api/v1/email-templates/render | | +| [**replace_tenant_package**](DefaultApi.md#replace_tenant_package) | **PUT** /api/v1/tenant-packages/{id} | | +| [**replace_tenant_user**](DefaultApi.md#replace_tenant_user) | **PUT** /api/v1/tenant-users/{id} | | | [**save_comment**](DefaultApi.md#save_comment) | **POST** /api/v1/comments | | | [**save_comments_bulk**](DefaultApi.md#save_comments_bulk) | **POST** /api/v1/comments/bulk | | +| [**send_invite**](DefaultApi.md#send_invite) | **POST** /api/v1/moderators/{id}/send-invite | | +| [**send_login_link**](DefaultApi.md#send_login_link) | **POST** /api/v1/tenant-users/{id}/send-login-link | | | [**un_block_user_from_comment**](DefaultApi.md#un_block_user_from_comment) | **POST** /api/v1/comments/{id}/un-block | | | [**un_flag_comment**](DefaultApi.md#un_flag_comment) | **POST** /api/v1/comments/{id}/un-flag | | | [**update_comment**](DefaultApi.md#update_comment) | **PATCH** /api/v1/comments/{id} | | +| [**update_email_template**](DefaultApi.md#update_email_template) | **PATCH** /api/v1/email-templates/{id} | | | [**update_feed_post**](DefaultApi.md#update_feed_post) | **PATCH** /api/v1/feed-posts/{id} | | +| [**update_moderator**](DefaultApi.md#update_moderator) | **PATCH** /api/v1/moderators/{id} | | +| [**update_notification**](DefaultApi.md#update_notification) | **PATCH** /api/v1/notifications/{id} | | +| [**update_question_config**](DefaultApi.md#update_question_config) | **PATCH** /api/v1/question-configs/{id} | | +| [**update_question_result**](DefaultApi.md#update_question_result) | **PATCH** /api/v1/question-results/{id} | | +| [**update_tenant**](DefaultApi.md#update_tenant) | **PATCH** /api/v1/tenants/{id} | | +| [**update_tenant_package**](DefaultApi.md#update_tenant_package) | **PATCH** /api/v1/tenant-packages/{id} | | +| [**update_tenant_user**](DefaultApi.md#update_tenant_user) | **PATCH** /api/v1/tenant-users/{id} | | | [**update_user_badge**](DefaultApi.md#update_user_badge) | **PUT** /api/v1/user-badges/{id} | | @@ -124,6 +186,152 @@ end - **Accept**: application/json +## add_hash_tag + +> add_hash_tag(opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +opts = { + tenant_id: 'tenant_id_example', # String | + create_hash_tag_body: FastCommentsClient::CreateHashTagBody.new({tag: 'tag_example'}) # CreateHashTagBody | +} + +begin + + result = api_instance.add_hash_tag(opts) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->add_hash_tag: #{e}" +end +``` + +#### Using the add_hash_tag_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> add_hash_tag_with_http_info(opts) + +```ruby +begin + + data, status_code, headers = api_instance.add_hash_tag_with_http_info(opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->add_hash_tag_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | [optional] | +| **create_hash_tag_body** | [**CreateHashTagBody**](CreateHashTagBody.md) | | [optional] | + +### Return type + +[**AddHashTag200Response**](AddHashTag200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## add_hash_tags_bulk + +> add_hash_tags_bulk(opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +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 | +} + +begin + + result = api_instance.add_hash_tags_bulk(opts) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->add_hash_tags_bulk: #{e}" +end +``` + +#### Using the add_hash_tags_bulk_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> add_hash_tags_bulk_with_http_info(opts) + +```ruby +begin + + data, status_code, headers = api_instance.add_hash_tags_bulk_with_http_info(opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->add_hash_tags_bulk_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | [optional] | +| **bulk_create_hash_tags_body** | [**BulkCreateHashTagsBody**](BulkCreateHashTagsBody.md) | | [optional] | + +### Return type + +[**AddHashTagsBulk200Response**](AddHashTagsBulk200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + ## add_page > add_page(tenant_id, create_api_page_data) @@ -669,9 +877,9 @@ end - **Accept**: application/json -## create_feed_post +## create_email_template -> create_feed_post(tenant_id, create_feed_post_params, opts) +> create_email_template(tenant_id, create_email_template_body) @@ -690,38 +898,32 @@ 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 | -} +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_feed_post(tenant_id, create_feed_post_params, 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_feed_post: #{e}" + puts "Error when calling DefaultApi->create_email_template: #{e}" end ``` -#### Using the create_feed_post_with_http_info variant +#### Using the create_email_template_with_http_info variant 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_email_template_with_http_info(tenant_id, create_email_template_body) ```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_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_feed_post_with_http_info: #{e}" + puts "Error when calling DefaultApi->create_email_template_with_http_info: #{e}" end ``` @@ -730,15 +932,11 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | -| **create_feed_post_params** | [**CreateFeedPostParams**](CreateFeedPostParams.md) | | | -| **broadcast_id** | **String** | | [optional] | -| **is_live** | **Boolean** | | [optional] | -| **do_spam_check** | **Boolean** | | [optional] | -| **skip_dup_check** | **Boolean** | | [optional] | +| **create_email_template_body** | [**CreateEmailTemplateBody**](CreateEmailTemplateBody.md) | | | ### Return type -[**CreateFeedPost200Response**](CreateFeedPost200Response.md) +[**CreateEmailTemplate200Response**](CreateEmailTemplate200Response.md) ### Authorization @@ -750,9 +948,9 @@ end - **Accept**: application/json -## create_subscription +## create_feed_post -> create_subscription(tenant_id, create_api_user_subscription_data) +> create_feed_post(tenant_id, create_feed_post_params, opts) @@ -771,32 +969,38 @@ 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 | +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 | +} begin - result = api_instance.create_subscription(tenant_id, create_api_user_subscription_data) + 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_subscription: #{e}" + puts "Error when calling DefaultApi->create_feed_post: #{e}" end ``` -#### Using the create_subscription_with_http_info variant +#### Using the create_feed_post_with_http_info variant 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_feed_post_with_http_info(tenant_id, create_feed_post_params, 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_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_subscription_with_http_info: #{e}" + puts "Error when calling DefaultApi->create_feed_post_with_http_info: #{e}" end ``` @@ -805,11 +1009,15 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | -| **create_api_user_subscription_data** | [**CreateAPIUserSubscriptionData**](CreateAPIUserSubscriptionData.md) | | | +| **create_feed_post_params** | [**CreateFeedPostParams**](CreateFeedPostParams.md) | | | +| **broadcast_id** | **String** | | [optional] | +| **is_live** | **Boolean** | | [optional] | +| **do_spam_check** | **Boolean** | | [optional] | +| **skip_dup_check** | **Boolean** | | [optional] | ### Return type -[**CreateSubscriptionAPIResponse**](CreateSubscriptionAPIResponse.md) +[**CreateFeedPost200Response**](CreateFeedPost200Response.md) ### Authorization @@ -821,9 +1029,9 @@ end - **Accept**: application/json -## create_user_badge +## create_moderator -> create_user_badge(tenant_id, create_user_badge_params) +> create_moderator(tenant_id, create_moderator_body) @@ -842,32 +1050,32 @@ 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 | +create_moderator_body = FastCommentsClient::CreateModeratorBody.new({name: 'name_example', email: 'email_example'}) # CreateModeratorBody | begin - result = api_instance.create_user_badge(tenant_id, create_user_badge_params) + result = api_instance.create_moderator(tenant_id, create_moderator_body) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->create_user_badge: #{e}" + puts "Error when calling DefaultApi->create_moderator: #{e}" end ``` -#### Using the create_user_badge_with_http_info variant +#### Using the create_moderator_with_http_info variant 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_moderator_with_http_info(tenant_id, create_moderator_body) ```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_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_user_badge_with_http_info: #{e}" + puts "Error when calling DefaultApi->create_moderator_with_http_info: #{e}" end ``` @@ -876,11 +1084,11 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | -| **create_user_badge_params** | [**CreateUserBadgeParams**](CreateUserBadgeParams.md) | | | +| **create_moderator_body** | [**CreateModeratorBody**](CreateModeratorBody.md) | | | ### Return type -[**CreateUserBadge200Response**](CreateUserBadge200Response.md) +[**CreateModerator200Response**](CreateModerator200Response.md) ### Authorization @@ -892,9 +1100,9 @@ end - **Accept**: application/json -## delete_comment +## create_question_config -> delete_comment(tenant_id, id, opts) +> create_question_config(tenant_id, create_question_config_body) @@ -913,36 +1121,32 @@ 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 | -} +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.delete_comment(tenant_id, id, opts) + result = api_instance.create_question_config(tenant_id, create_question_config_body) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->delete_comment: #{e}" + puts "Error when calling DefaultApi->create_question_config: #{e}" end ``` -#### Using the delete_comment_with_http_info variant +#### Using the create_question_config_with_http_info variant 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)> create_question_config_with_http_info(tenant_id, create_question_config_body) ```ruby begin - data, status_code, headers = api_instance.delete_comment_with_http_info(tenant_id, id, 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 # => + p data # => rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->delete_comment_with_http_info: #{e}" + puts "Error when calling DefaultApi->create_question_config_with_http_info: #{e}" end ``` @@ -951,13 +1155,11 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | -| **id** | **String** | | | -| **context_user_id** | **String** | | [optional] | -| **is_live** | **Boolean** | | [optional] | +| **create_question_config_body** | [**CreateQuestionConfigBody**](CreateQuestionConfigBody.md) | | | ### Return type -[**DeleteComment200Response**](DeleteComment200Response.md) +[**CreateQuestionConfig200Response**](CreateQuestionConfig200Response.md) ### Authorization @@ -965,13 +1167,13 @@ end ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json -## delete_domain_config +## create_question_result -> delete_domain_config(tenant_id, domain) +> create_question_result(tenant_id, create_question_result_body) @@ -990,32 +1192,32 @@ end api_instance = FastCommentsClient::DefaultApi.new tenant_id = 'tenant_id_example' # String | -domain = 'domain_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.delete_domain_config(tenant_id, domain) + result = api_instance.create_question_result(tenant_id, create_question_result_body) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->delete_domain_config: #{e}" + puts "Error when calling DefaultApi->create_question_result: #{e}" end ``` -#### Using the delete_domain_config_with_http_info variant +#### Using the create_question_result_with_http_info variant 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)> create_question_result_with_http_info(tenant_id, create_question_result_body) ```ruby begin - data, status_code, headers = api_instance.delete_domain_config_with_http_info(tenant_id, domain) + 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->delete_domain_config_with_http_info: #{e}" + puts "Error when calling DefaultApi->create_question_result_with_http_info: #{e}" end ``` @@ -1024,11 +1226,11 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | -| **domain** | **String** | | | +| **create_question_result_body** | [**CreateQuestionResultBody**](CreateQuestionResultBody.md) | | | ### Return type -[**DeleteDomainConfig200Response**](DeleteDomainConfig200Response.md) +[**CreateQuestionResult200Response**](CreateQuestionResult200Response.md) ### Authorization @@ -1036,13 +1238,13 @@ end ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json -## delete_page +## create_subscription -> delete_page(tenant_id, id) +> create_subscription(tenant_id, create_api_user_subscription_data) @@ -1061,32 +1263,32 @@ end api_instance = FastCommentsClient::DefaultApi.new tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | +create_api_user_subscription_data = FastCommentsClient::CreateAPIUserSubscriptionData.new({url_id: 'url_id_example'}) # CreateAPIUserSubscriptionData | begin - result = api_instance.delete_page(tenant_id, id) + result = api_instance.create_subscription(tenant_id, create_api_user_subscription_data) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->delete_page: #{e}" + puts "Error when calling DefaultApi->create_subscription: #{e}" end ``` -#### Using the delete_page_with_http_info variant +#### Using the create_subscription_with_http_info variant 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)> create_subscription_with_http_info(tenant_id, create_api_user_subscription_data) ```ruby begin - data, status_code, headers = api_instance.delete_page_with_http_info(tenant_id, id) + 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 # => + p data # => rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->delete_page_with_http_info: #{e}" + puts "Error when calling DefaultApi->create_subscription_with_http_info: #{e}" end ``` @@ -1095,11 +1297,11 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | -| **id** | **String** | | | +| **create_api_user_subscription_data** | [**CreateAPIUserSubscriptionData**](CreateAPIUserSubscriptionData.md) | | | ### Return type -[**DeletePageAPIResponse**](DeletePageAPIResponse.md) +[**CreateSubscriptionAPIResponse**](CreateSubscriptionAPIResponse.md) ### Authorization @@ -1107,13 +1309,13 @@ end ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json -## delete_sso_user +## create_tenant -> delete_sso_user(tenant_id, id, opts) +> create_tenant(tenant_id, create_tenant_body) @@ -1132,36 +1334,32 @@ 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 | -} +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.delete_sso_user(tenant_id, id, opts) + result = api_instance.create_tenant(tenant_id, create_tenant_body) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->delete_sso_user: #{e}" + puts "Error when calling DefaultApi->create_tenant: #{e}" end ``` -#### Using the delete_sso_user_with_http_info variant +#### Using the create_tenant_with_http_info variant 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)> create_tenant_with_http_info(tenant_id, create_tenant_body) ```ruby begin - data, status_code, headers = api_instance.delete_sso_user_with_http_info(tenant_id, id, 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 # => + p data # => rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->delete_sso_user_with_http_info: #{e}" + puts "Error when calling DefaultApi->create_tenant_with_http_info: #{e}" end ``` @@ -1170,13 +1368,11 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | -| **id** | **String** | | | -| **delete_comments** | **Boolean** | | [optional] | -| **comment_delete_mode** | **String** | | [optional] | +| **create_tenant_body** | [**CreateTenantBody**](CreateTenantBody.md) | | | ### Return type -[**DeleteSSOUserAPIResponse**](DeleteSSOUserAPIResponse.md) +[**CreateTenant200Response**](CreateTenant200Response.md) ### Authorization @@ -1184,13 +1380,13 @@ end ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json -## delete_subscription +## create_tenant_package -> delete_subscription(tenant_id, id, opts) +> create_tenant_package(tenant_id, create_tenant_package_body) @@ -1209,35 +1405,32 @@ end api_instance = FastCommentsClient::DefaultApi.new tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | -opts = { - user_id: 'user_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.delete_subscription(tenant_id, id, opts) + result = api_instance.create_tenant_package(tenant_id, create_tenant_package_body) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->delete_subscription: #{e}" + puts "Error when calling DefaultApi->create_tenant_package: #{e}" end ``` -#### Using the delete_subscription_with_http_info variant +#### Using the create_tenant_package_with_http_info variant 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)> create_tenant_package_with_http_info(tenant_id, create_tenant_package_body) ```ruby begin - data, status_code, headers = api_instance.delete_subscription_with_http_info(tenant_id, id, 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 # => + p data # => rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->delete_subscription_with_http_info: #{e}" + puts "Error when calling DefaultApi->create_tenant_package_with_http_info: #{e}" end ``` @@ -1246,12 +1439,11 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | -| **id** | **String** | | | -| **user_id** | **String** | | [optional] | +| **create_tenant_package_body** | [**CreateTenantPackageBody**](CreateTenantPackageBody.md) | | | ### Return type -[**DeleteSubscriptionAPIResponse**](DeleteSubscriptionAPIResponse.md) +[**CreateTenantPackage200Response**](CreateTenantPackage200Response.md) ### Authorization @@ -1259,13 +1451,13 @@ end ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json -## delete_user_badge +## create_tenant_user -> delete_user_badge(tenant_id, id) +> create_tenant_user(tenant_id, create_tenant_user_body) @@ -1284,32 +1476,32 @@ end api_instance = FastCommentsClient::DefaultApi.new tenant_id = 'tenant_id_example' # String | -id = 'id_example' # String | +create_tenant_user_body = FastCommentsClient::CreateTenantUserBody.new({username: 'username_example', email: 'email_example'}) # CreateTenantUserBody | begin - result = api_instance.delete_user_badge(tenant_id, id) + result = api_instance.create_tenant_user(tenant_id, create_tenant_user_body) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->delete_user_badge: #{e}" + puts "Error when calling DefaultApi->create_tenant_user: #{e}" end ``` -#### Using the delete_user_badge_with_http_info variant +#### Using the create_tenant_user_with_http_info variant 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)> create_tenant_user_with_http_info(tenant_id, create_tenant_user_body) ```ruby begin - data, status_code, headers = api_instance.delete_user_badge_with_http_info(tenant_id, id) + 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->delete_user_badge_with_http_info: #{e}" + puts "Error when calling DefaultApi->create_tenant_user_with_http_info: #{e}" end ``` @@ -1318,11 +1510,11 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | -| **id** | **String** | | | +| **create_tenant_user_body** | [**CreateTenantUserBody**](CreateTenantUserBody.md) | | | ### Return type -[**UpdateUserBadge200Response**](UpdateUserBadge200Response.md) +[**CreateTenantUser200Response**](CreateTenantUser200Response.md) ### Authorization @@ -1330,13 +1522,13 @@ end ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json -## flag_comment +## create_user_badge -> flag_comment(tenant_id, id, opts) +> create_user_badge(tenant_id, create_user_badge_params) @@ -1355,36 +1547,32 @@ 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 | -} +create_user_badge_params = FastCommentsClient::CreateUserBadgeParams.new({user_id: 'user_id_example', badge_id: 'badge_id_example'}) # CreateUserBadgeParams | begin - result = api_instance.flag_comment(tenant_id, id, opts) + result = api_instance.create_user_badge(tenant_id, create_user_badge_params) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->flag_comment: #{e}" + puts "Error when calling DefaultApi->create_user_badge: #{e}" end ``` -#### Using the flag_comment_with_http_info variant +#### Using the create_user_badge_with_http_info variant 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)> create_user_badge_with_http_info(tenant_id, create_user_badge_params) ```ruby begin - data, status_code, headers = api_instance.flag_comment_with_http_info(tenant_id, id, 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 # => + p data # => rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->flag_comment_with_http_info: #{e}" + puts "Error when calling DefaultApi->create_user_badge_with_http_info: #{e}" end ``` @@ -1393,13 +1581,11 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | -| **id** | **String** | | | -| **user_id** | **String** | | [optional] | -| **anon_user_id** | **String** | | [optional] | +| **create_user_badge_params** | [**CreateUserBadgeParams**](CreateUserBadgeParams.md) | | | ### Return type -[**FlagComment200Response**](FlagComment200Response.md) +[**CreateUserBadge200Response**](CreateUserBadge200Response.md) ### Authorization @@ -1407,13 +1593,13 @@ end ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json -## get_audit_logs +## create_vote -> get_audit_logs(tenant_id, opts) +> create_vote(tenant_id, comment_id, direction, opts) @@ -1432,38 +1618,37 @@ end api_instance = FastCommentsClient::DefaultApi.new tenant_id = 'tenant_id_example' # String | +comment_id = 'comment_id_example' # String | +direction = 'up' # String | opts = { - limit: 1.2, # Float | - skip: 1.2, # Float | - order: FastCommentsClient::SORTDIR::ASC, # SORTDIR | - after: 1.2, # Float | - before: 1.2 # Float | + user_id: 'user_id_example', # String | + anon_user_id: 'anon_user_id_example' # String | } begin - result = api_instance.get_audit_logs(tenant_id, opts) + result = api_instance.create_vote(tenant_id, comment_id, direction, opts) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->get_audit_logs: #{e}" + puts "Error when calling DefaultApi->create_vote: #{e}" end ``` -#### Using the get_audit_logs_with_http_info variant +#### Using the create_vote_with_http_info variant 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)> create_vote_with_http_info(tenant_id, comment_id, direction, opts) ```ruby begin - data, status_code, headers = api_instance.get_audit_logs_with_http_info(tenant_id, 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 # => + p data # => rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->get_audit_logs_with_http_info: #{e}" + puts "Error when calling DefaultApi->create_vote_with_http_info: #{e}" end ``` @@ -1472,15 +1657,14 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | -| **limit** | **Float** | | [optional] | -| **skip** | **Float** | | [optional] | -| **order** | [**SORTDIR**](.md) | | [optional] | -| **after** | **Float** | | [optional] | -| **before** | **Float** | | [optional] | +| **comment_id** | **String** | | | +| **direction** | **String** | | | +| **user_id** | **String** | | [optional] | +| **anon_user_id** | **String** | | [optional] | ### Return type -[**GetAuditLogs200Response**](GetAuditLogs200Response.md) +[**CreateVote200Response**](CreateVote200Response.md) ### Authorization @@ -1492,9 +1676,9 @@ end - **Accept**: application/json -## get_comment +## delete_comment -> get_comment(tenant_id, id) +> delete_comment(tenant_id, id, opts) @@ -1514,31 +1698,35 @@ 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 | +} begin - result = api_instance.get_comment(tenant_id, id) + result = api_instance.delete_comment(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->get_comment: #{e}" + puts "Error when calling DefaultApi->delete_comment: #{e}" end ``` -#### Using the get_comment_with_http_info variant +#### Using the delete_comment_with_http_info variant 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)> delete_comment_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.get_comment_with_http_info(tenant_id, id) + 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->get_comment_with_http_info: #{e}" + puts "Error when calling DefaultApi->delete_comment_with_http_info: #{e}" end ``` @@ -1548,10 +1736,12 @@ end | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | | **id** | **String** | | | +| **context_user_id** | **String** | | [optional] | +| **is_live** | **Boolean** | | [optional] | ### Return type -[**GetComment200Response**](GetComment200Response.md) +[**DeleteComment200Response**](DeleteComment200Response.md) ### Authorization @@ -1563,9 +1753,9 @@ end - **Accept**: application/json -## get_comments +## delete_domain_config -> get_comments(tenant_id, opts) +> delete_domain_config(tenant_id, domain) @@ -1584,47 +1774,32 @@ 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 | -} +domain = 'domain_example' # String | begin - result = api_instance.get_comments(tenant_id, opts) + result = api_instance.delete_domain_config(tenant_id, domain) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->get_comments: #{e}" + puts "Error when calling DefaultApi->delete_domain_config: #{e}" end ``` -#### Using the get_comments_with_http_info variant +#### Using the delete_domain_config_with_http_info variant 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)> delete_domain_config_with_http_info(tenant_id, domain) ```ruby begin - data, status_code, headers = api_instance.get_comments_with_http_info(tenant_id, opts) + data, status_code, headers = api_instance.delete_domain_config_with_http_info(tenant_id, domain) 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}" + puts "Error when calling DefaultApi->delete_domain_config_with_http_info: #{e}" end ``` @@ -1633,24 +1808,11 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | -| **page** | **Integer** | | [optional] | -| **limit** | **Integer** | | [optional] | -| **skip** | **Integer** | | [optional] | -| **as_tree** | **Boolean** | | [optional] | -| **skip_children** | **Integer** | | [optional] | -| **limit_children** | **Integer** | | [optional] | -| **max_tree_depth** | **Integer** | | [optional] | -| **url_id** | **String** | | [optional] | -| **user_id** | **String** | | [optional] | -| **anon_user_id** | **String** | | [optional] | -| **context_user_id** | **String** | | [optional] | -| **hash_tag** | **String** | | [optional] | -| **parent_id** | **String** | | [optional] | -| **direction** | [**SortDirections**](.md) | | [optional] | +| **domain** | **String** | | | ### Return type -[**GetComments200Response**](GetComments200Response.md) +[**DeleteDomainConfig200Response**](DeleteDomainConfig200Response.md) ### Authorization @@ -1662,9 +1824,9 @@ end - **Accept**: application/json -## get_domain_config +## delete_email_template -> get_domain_config(tenant_id, domain) +> delete_email_template(tenant_id, id) @@ -1683,32 +1845,32 @@ end api_instance = FastCommentsClient::DefaultApi.new tenant_id = 'tenant_id_example' # String | -domain = 'domain_example' # String | +id = 'id_example' # String | begin - result = api_instance.get_domain_config(tenant_id, domain) + result = api_instance.delete_email_template(tenant_id, id) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->get_domain_config: #{e}" + puts "Error when calling DefaultApi->delete_email_template: #{e}" end ``` -#### Using the get_domain_config_with_http_info variant +#### Using the delete_email_template_with_http_info variant 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)> delete_email_template_with_http_info(tenant_id, id) ```ruby begin - data, status_code, headers = api_instance.get_domain_config_with_http_info(tenant_id, domain) + 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->get_domain_config_with_http_info: #{e}" + puts "Error when calling DefaultApi->delete_email_template_with_http_info: #{e}" end ``` @@ -1717,11 +1879,11 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | -| **domain** | **String** | | | +| **id** | **String** | | | ### Return type -[**GetDomainConfig200Response**](GetDomainConfig200Response.md) +[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) ### Authorization @@ -1733,9 +1895,9 @@ end - **Accept**: application/json -## get_domain_configs +## delete_email_template_render_error -> get_domain_configs(tenant_id) +> delete_email_template_render_error(tenant_id, id, error_id) @@ -1754,31 +1916,33 @@ end api_instance = FastCommentsClient::DefaultApi.new tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | +error_id = 'error_id_example' # String | begin - result = api_instance.get_domain_configs(tenant_id) + result = api_instance.delete_email_template_render_error(tenant_id, id, error_id) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->get_domain_configs: #{e}" + puts "Error when calling DefaultApi->delete_email_template_render_error: #{e}" end ``` -#### Using the get_domain_configs_with_http_info variant +#### Using the delete_email_template_render_error_with_http_info variant 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)> delete_email_template_render_error_with_http_info(tenant_id, id, error_id) ```ruby begin - data, status_code, headers = api_instance.get_domain_configs_with_http_info(tenant_id) + 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->get_domain_configs_with_http_info: #{e}" + puts "Error when calling DefaultApi->delete_email_template_render_error_with_http_info: #{e}" end ``` @@ -1787,10 +1951,12 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | +| **id** | **String** | | | +| **error_id** | **String** | | | ### Return type -[**GetDomainConfigs200Response**](GetDomainConfigs200Response.md) +[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) ### Authorization @@ -1802,13 +1968,11 @@ end - **Accept**: application/json -## get_feed_posts - -> get_feed_posts(tenant_id, opts) +## delete_hash_tag +> delete_hash_tag(tag, opts) - req tenantId afterId ### Examples @@ -1824,37 +1988,36 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -tenant_id = 'tenant_id_example' # String | +tag = 'tag_example' # String | opts = { - after_id: 'after_id_example', # String | - limit: 56, # Integer | - tags: ['inner_example'] # Array | + tenant_id: 'tenant_id_example', # String | + delete_hash_tag_request: FastCommentsClient::DeleteHashTagRequest.new # DeleteHashTagRequest | } begin - result = api_instance.get_feed_posts(tenant_id, opts) + result = api_instance.delete_hash_tag(tag, opts) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->get_feed_posts: #{e}" + puts "Error when calling DefaultApi->delete_hash_tag: #{e}" end ``` -#### Using the get_feed_posts_with_http_info variant +#### Using the delete_hash_tag_with_http_info variant 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)> delete_hash_tag_with_http_info(tag, opts) ```ruby begin - data, status_code, headers = api_instance.get_feed_posts_with_http_info(tenant_id, opts) + 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->get_feed_posts_with_http_info: #{e}" + puts "Error when calling DefaultApi->delete_hash_tag_with_http_info: #{e}" end ``` @@ -1862,14 +2025,13 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **tenant_id** | **String** | | | -| **after_id** | **String** | | [optional] | -| **limit** | **Integer** | | [optional] | -| **tags** | [**Array<String>**](String.md) | | [optional] | +| **tag** | **String** | | | +| **tenant_id** | **String** | | [optional] | +| **delete_hash_tag_request** | [**DeleteHashTagRequest**](DeleteHashTagRequest.md) | | [optional] | ### Return type -[**GetFeedPosts200Response**](GetFeedPosts200Response.md) +[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) ### Authorization @@ -1877,13 +2039,13 @@ end ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json -## get_page_by_urlid +## delete_moderator -> get_page_by_urlid(tenant_id, url_id) +> delete_moderator(tenant_id, id, opts) @@ -1902,32 +2064,35 @@ end api_instance = FastCommentsClient::DefaultApi.new tenant_id = 'tenant_id_example' # String | -url_id = 'url_id_example' # String | +id = 'id_example' # String | +opts = { + send_email: 'send_email_example' # String | +} begin - result = api_instance.get_page_by_urlid(tenant_id, url_id) + result = api_instance.delete_moderator(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->get_page_by_urlid: #{e}" + puts "Error when calling DefaultApi->delete_moderator: #{e}" end ``` -#### Using the get_page_by_urlid_with_http_info variant +#### Using the delete_moderator_with_http_info variant 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)> delete_moderator_with_http_info(tenant_id, id, 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.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->get_page_by_urlid_with_http_info: #{e}" + puts "Error when calling DefaultApi->delete_moderator_with_http_info: #{e}" end ``` @@ -1936,11 +2101,12 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | -| **url_id** | **String** | | | +| **id** | **String** | | | +| **send_email** | **String** | | [optional] | ### Return type -[**GetPageByURLIdAPIResponse**](GetPageByURLIdAPIResponse.md) +[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) ### Authorization @@ -1952,9 +2118,9 @@ end - **Accept**: application/json -## get_pages +## delete_notification_count -> get_pages(tenant_id) +> delete_notification_count(tenant_id, id) @@ -1973,31 +2139,32 @@ end api_instance = FastCommentsClient::DefaultApi.new tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | begin - result = api_instance.get_pages(tenant_id) + result = api_instance.delete_notification_count(tenant_id, id) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->get_pages: #{e}" + puts "Error when calling DefaultApi->delete_notification_count: #{e}" end ``` -#### Using the get_pages_with_http_info variant +#### Using the delete_notification_count_with_http_info variant This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_pages_with_http_info(tenant_id) +> , Integer, Hash)> delete_notification_count_with_http_info(tenant_id, id) ```ruby begin - data, status_code, headers = api_instance.get_pages_with_http_info(tenant_id) + 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->get_pages_with_http_info: #{e}" + puts "Error when calling DefaultApi->delete_notification_count_with_http_info: #{e}" end ``` @@ -2006,10 +2173,11 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | +| **id** | **String** | | | ### Return type -[**GetPagesAPIResponse**](GetPagesAPIResponse.md) +[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) ### Authorization @@ -2021,9 +2189,9 @@ end - **Accept**: application/json -## get_sso_user_by_email +## delete_page -> get_sso_user_by_email(tenant_id, email) +> delete_page(tenant_id, id) @@ -2042,32 +2210,32 @@ end api_instance = FastCommentsClient::DefaultApi.new tenant_id = 'tenant_id_example' # String | -email = 'email_example' # String | +id = 'id_example' # String | begin - result = api_instance.get_sso_user_by_email(tenant_id, email) + result = api_instance.delete_page(tenant_id, id) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->get_sso_user_by_email: #{e}" + puts "Error when calling DefaultApi->delete_page: #{e}" end ``` -#### Using the get_sso_user_by_email_with_http_info variant +#### Using the delete_page_with_http_info variant 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)> delete_page_with_http_info(tenant_id, id) ```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.delete_page_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_sso_user_by_email_with_http_info: #{e}" + puts "Error when calling DefaultApi->delete_page_with_http_info: #{e}" end ``` @@ -2076,11 +2244,11 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | -| **email** | **String** | | | +| **id** | **String** | | | ### Return type -[**GetSSOUserByEmailAPIResponse**](GetSSOUserByEmailAPIResponse.md) +[**DeletePageAPIResponse**](DeletePageAPIResponse.md) ### Authorization @@ -2092,9 +2260,9 @@ end - **Accept**: application/json -## get_sso_user_by_id +## delete_pending_webhook_event -> get_sso_user_by_id(tenant_id, id) +> delete_pending_webhook_event(tenant_id, id) @@ -2117,28 +2285,28 @@ id = 'id_example' # String | begin - result = api_instance.get_sso_user_by_id(tenant_id, id) + result = api_instance.delete_pending_webhook_event(tenant_id, id) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->get_sso_user_by_id: #{e}" + puts "Error when calling DefaultApi->delete_pending_webhook_event: #{e}" end ``` -#### Using the get_sso_user_by_id_with_http_info variant +#### Using the delete_pending_webhook_event_with_http_info variant 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)> delete_pending_webhook_event_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) + 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->get_sso_user_by_id_with_http_info: #{e}" + puts "Error when calling DefaultApi->delete_pending_webhook_event_with_http_info: #{e}" end ``` @@ -2151,7 +2319,7 @@ end ### Return type -[**GetSSOUserByIdAPIResponse**](GetSSOUserByIdAPIResponse.md) +[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) ### Authorization @@ -2163,9 +2331,9 @@ end - **Accept**: application/json -## get_sso_users +## delete_question_config -> get_sso_users(tenant_id, opts) +> delete_question_config(tenant_id, id) @@ -2184,34 +2352,32 @@ end api_instance = FastCommentsClient::DefaultApi.new tenant_id = 'tenant_id_example' # String | -opts = { - skip: 56 # Integer | -} +id = 'id_example' # String | begin - result = api_instance.get_sso_users(tenant_id, opts) + result = api_instance.delete_question_config(tenant_id, id) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->get_sso_users: #{e}" + puts "Error when calling DefaultApi->delete_question_config: #{e}" end ``` -#### Using the get_sso_users_with_http_info variant +#### Using the delete_question_config_with_http_info variant 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)> delete_question_config_with_http_info(tenant_id, id) ```ruby begin - data, status_code, headers = api_instance.get_sso_users_with_http_info(tenant_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 # => + p data # => rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->get_sso_users_with_http_info: #{e}" + puts "Error when calling DefaultApi->delete_question_config_with_http_info: #{e}" end ``` @@ -2220,11 +2386,11 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | -| **skip** | **Integer** | | [optional] | +| **id** | **String** | | | ### Return type -[**GetSSOUsers200Response**](GetSSOUsers200Response.md) +[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) ### Authorization @@ -2236,9 +2402,80 @@ end - **Accept**: application/json -## get_subscriptions +## delete_question_result + +> delete_question_result(tenant_id, id) + -> get_subscriptions(tenant_id, opts) + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | + +begin + + result = api_instance.delete_question_result(tenant_id, id) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->delete_question_result: #{e}" +end +``` + +#### Using the delete_question_result_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , 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) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->delete_question_result_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **id** | **String** | | | + +### Return type + +[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## delete_sso_user + +> delete_sso_user(tenant_id, id, opts) @@ -2257,34 +2494,36 @@ end api_instance = FastCommentsClient::DefaultApi.new tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | opts = { - user_id: 'user_id_example' # String | + delete_comments: true, # Boolean | + comment_delete_mode: 'comment_delete_mode_example' # String | } begin - result = api_instance.get_subscriptions(tenant_id, opts) + result = api_instance.delete_sso_user(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->get_subscriptions: #{e}" + puts "Error when calling DefaultApi->delete_sso_user: #{e}" end ``` -#### Using the get_subscriptions_with_http_info variant +#### Using the delete_sso_user_with_http_info variant 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)> delete_sso_user_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.get_subscriptions_with_http_info(tenant_id, 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 # => + p data # => rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->get_subscriptions_with_http_info: #{e}" + puts "Error when calling DefaultApi->delete_sso_user_with_http_info: #{e}" end ``` @@ -2293,11 +2532,13 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | -| **user_id** | **String** | | [optional] | +| **id** | **String** | | | +| **delete_comments** | **Boolean** | | [optional] | +| **comment_delete_mode** | **String** | | [optional] | ### Return type -[**GetSubscriptionsAPIResponse**](GetSubscriptionsAPIResponse.md) +[**DeleteSSOUserAPIResponse**](DeleteSSOUserAPIResponse.md) ### Authorization @@ -2309,9 +2550,9 @@ end - **Accept**: application/json -## get_user_badge +## delete_subscription -> get_user_badge(tenant_id, id) +> delete_subscription(tenant_id, id, opts) @@ -2331,31 +2572,34 @@ end api_instance = FastCommentsClient::DefaultApi.new tenant_id = 'tenant_id_example' # String | id = 'id_example' # String | +opts = { + user_id: 'user_id_example' # String | +} begin - result = api_instance.get_user_badge(tenant_id, id) + result = api_instance.delete_subscription(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->get_user_badge: #{e}" + puts "Error when calling DefaultApi->delete_subscription: #{e}" end ``` -#### Using the get_user_badge_with_http_info variant +#### Using the delete_subscription_with_http_info variant 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)> delete_subscription_with_http_info(tenant_id, id, opts) ```ruby begin - data, status_code, headers = api_instance.get_user_badge_with_http_info(tenant_id, id) + data, status_code, headers = api_instance.delete_subscription_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_user_badge_with_http_info: #{e}" + puts "Error when calling DefaultApi->delete_subscription_with_http_info: #{e}" end ``` @@ -2365,10 +2609,11 @@ end | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | | **id** | **String** | | | +| **user_id** | **String** | | [optional] | ### Return type -[**GetUserBadge200Response**](GetUserBadge200Response.md) +[**DeleteSubscriptionAPIResponse**](DeleteSubscriptionAPIResponse.md) ### Authorization @@ -2380,9 +2625,9 @@ end - **Accept**: application/json -## get_user_badge_progress_by_id +## delete_tenant -> get_user_badge_progress_by_id(tenant_id, id) +> delete_tenant(tenant_id, id, opts) @@ -2402,31 +2647,34 @@ end api_instance = FastCommentsClient::DefaultApi.new tenant_id = 'tenant_id_example' # String | id = 'id_example' # String | +opts = { + sure: 'sure_example' # String | +} begin - result = api_instance.get_user_badge_progress_by_id(tenant_id, id) + result = api_instance.delete_tenant(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->get_user_badge_progress_by_id: #{e}" + puts "Error when calling DefaultApi->delete_tenant: #{e}" end ``` -#### Using the get_user_badge_progress_by_id_with_http_info variant +#### Using the delete_tenant_with_http_info variant 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)> delete_tenant_with_http_info(tenant_id, id, 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.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->get_user_badge_progress_by_id_with_http_info: #{e}" + puts "Error when calling DefaultApi->delete_tenant_with_http_info: #{e}" end ``` @@ -2436,10 +2684,11 @@ end | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | | **id** | **String** | | | +| **sure** | **String** | | [optional] | ### Return type -[**GetUserBadgeProgressById200Response**](GetUserBadgeProgressById200Response.md) +[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) ### Authorization @@ -2451,9 +2700,9 @@ end - **Accept**: application/json -## get_user_badge_progress_by_user_id +## delete_tenant_package -> get_user_badge_progress_by_user_id(tenant_id, user_id) +> delete_tenant_package(tenant_id, id) @@ -2472,32 +2721,32 @@ end api_instance = FastCommentsClient::DefaultApi.new tenant_id = 'tenant_id_example' # String | -user_id = 'user_id_example' # String | +id = 'id_example' # String | begin - result = api_instance.get_user_badge_progress_by_user_id(tenant_id, user_id) + result = api_instance.delete_tenant_package(tenant_id, id) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->get_user_badge_progress_by_user_id: #{e}" + puts "Error when calling DefaultApi->delete_tenant_package: #{e}" end ``` -#### Using the get_user_badge_progress_by_user_id_with_http_info variant +#### Using the delete_tenant_package_with_http_info variant 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)> delete_tenant_package_with_http_info(tenant_id, id) ```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.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->get_user_badge_progress_by_user_id_with_http_info: #{e}" + puts "Error when calling DefaultApi->delete_tenant_package_with_http_info: #{e}" end ``` @@ -2506,11 +2755,11 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | -| **user_id** | **String** | | | +| **id** | **String** | | | ### Return type -[**GetUserBadgeProgressById200Response**](GetUserBadgeProgressById200Response.md) +[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) ### Authorization @@ -2522,9 +2771,9 @@ end - **Accept**: application/json -## get_user_badge_progress_list +## delete_tenant_user -> get_user_badge_progress_list(tenant_id, opts) +> delete_tenant_user(tenant_id, id, opts) @@ -2543,36 +2792,36 @@ end api_instance = FastCommentsClient::DefaultApi.new tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | opts = { - user_id: 'user_id_example', # String | - limit: 1.2, # Float | - skip: 1.2 # Float | + delete_comments: 'delete_comments_example', # String | + comment_delete_mode: 'comment_delete_mode_example' # String | } begin - result = api_instance.get_user_badge_progress_list(tenant_id, opts) + result = api_instance.delete_tenant_user(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->get_user_badge_progress_list: #{e}" + puts "Error when calling DefaultApi->delete_tenant_user: #{e}" end ``` -#### Using the get_user_badge_progress_list_with_http_info variant +#### Using the delete_tenant_user_with_http_info variant 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)> delete_tenant_user_with_http_info(tenant_id, id, 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.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->get_user_badge_progress_list_with_http_info: #{e}" + puts "Error when calling DefaultApi->delete_tenant_user_with_http_info: #{e}" end ``` @@ -2581,13 +2830,13 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | -| **user_id** | **String** | | [optional] | -| **limit** | **Float** | | [optional] | -| **skip** | **Float** | | [optional] | +| **id** | **String** | | | +| **delete_comments** | **String** | | [optional] | +| **comment_delete_mode** | **String** | | [optional] | ### Return type -[**GetUserBadgeProgressList200Response**](GetUserBadgeProgressList200Response.md) +[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) ### Authorization @@ -2599,9 +2848,9 @@ end - **Accept**: application/json -## get_user_badges +## delete_user_badge -> get_user_badges(tenant_id, opts) +> delete_user_badge(tenant_id, id) @@ -2620,39 +2869,261 @@ 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 | -} +id = 'id_example' # String | begin - result = api_instance.get_user_badges(tenant_id, opts) + result = api_instance.delete_user_badge(tenant_id, id) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->get_user_badges: #{e}" + puts "Error when calling DefaultApi->delete_user_badge: #{e}" end ``` -#### Using the get_user_badges_with_http_info variant +#### Using the delete_user_badge_with_http_info variant 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)> delete_user_badge_with_http_info(tenant_id, id) ```ruby begin - data, status_code, headers = api_instance.get_user_badges_with_http_info(tenant_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 # => + p data # => rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->get_user_badges_with_http_info: #{e}" + puts "Error when calling DefaultApi->delete_user_badge_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **id** | **String** | | | + +### Return type + +[**UpdateUserBadge200Response**](UpdateUserBadge200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## delete_vote + +> delete_vote(tenant_id, id, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | +opts = { + edit_key: 'edit_key_example' # String | +} + +begin + + result = api_instance.delete_vote(tenant_id, id, opts) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->delete_vote: #{e}" +end +``` + +#### Using the delete_vote_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> delete_vote_with_http_info(tenant_id, id, opts) + +```ruby +begin + + data, status_code, headers = api_instance.delete_vote_with_http_info(tenant_id, id, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->delete_vote_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **id** | **String** | | | +| **edit_key** | **String** | | [optional] | + +### Return type + +[**DeleteVote200Response**](DeleteVote200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## flag_comment + +> flag_comment(tenant_id, id, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +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 | +} + +begin + + result = api_instance.flag_comment(tenant_id, id, opts) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->flag_comment: #{e}" +end +``` + +#### Using the flag_comment_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> flag_comment_with_http_info(tenant_id, id, opts) + +```ruby +begin + + data, status_code, headers = api_instance.flag_comment_with_http_info(tenant_id, id, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->flag_comment_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **id** | **String** | | | +| **user_id** | **String** | | [optional] | +| **anon_user_id** | **String** | | [optional] | + +### Return type + +[**FlagComment200Response**](FlagComment200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_audit_logs + +> get_audit_logs(tenant_id, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +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 | +} + +begin + + result = api_instance.get_audit_logs(tenant_id, opts) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_audit_logs: #{e}" +end +``` + +#### Using the get_audit_logs_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , 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(tenant_id, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_audit_logs_with_http_info: #{e}" end ``` @@ -2661,16 +3132,4205 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | -| **user_id** | **String** | | [optional] | -| **badge_id** | **String** | | [optional] | -| **type** | **Float** | | [optional] | -| **displayed_on_comments** | **Boolean** | | [optional] | | **limit** | **Float** | | [optional] | | **skip** | **Float** | | [optional] | +| **order** | [**SORTDIR**](.md) | | [optional] | +| **after** | **Float** | | [optional] | +| **before** | **Float** | | [optional] | + +### Return type + +[**GetAuditLogs200Response**](GetAuditLogs200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_cached_notification_count + +> get_cached_notification_count(tenant_id, id) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | + +begin + + 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}" +end +``` + +#### Using the get_cached_notification_count_with_http_info variant + +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) + +```ruby +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 # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_cached_notification_count_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **id** | **String** | | | + +### Return type + +[**GetCachedNotificationCount200Response**](GetCachedNotificationCount200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_comment + +> get_comment(tenant_id, id) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | + +begin + + result = api_instance.get_comment(tenant_id, id) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_comment: #{e}" +end +``` + +#### Using the get_comment_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , 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) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_comment_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **id** | **String** | | | + +### Return type + +[**GetComment200Response**](GetComment200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_comments + +> get_comments(tenant_id, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +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 | +} + +begin + + result = api_instance.get_comments(tenant_id, opts) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_comments: #{e}" +end +``` + +#### Using the get_comments_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> get_comments_with_http_info(tenant_id, opts) + +```ruby +begin + + data, status_code, headers = api_instance.get_comments_with_http_info(tenant_id, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_comments_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **page** | **Integer** | | [optional] | +| **limit** | **Integer** | | [optional] | +| **skip** | **Integer** | | [optional] | +| **as_tree** | **Boolean** | | [optional] | +| **skip_children** | **Integer** | | [optional] | +| **limit_children** | **Integer** | | [optional] | +| **max_tree_depth** | **Integer** | | [optional] | +| **url_id** | **String** | | [optional] | +| **user_id** | **String** | | [optional] | +| **anon_user_id** | **String** | | [optional] | +| **context_user_id** | **String** | | [optional] | +| **hash_tag** | **String** | | [optional] | +| **parent_id** | **String** | | [optional] | +| **direction** | [**SortDirections**](.md) | | [optional] | + +### Return type + +[**GetComments200Response**](GetComments200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_domain_config + +> get_domain_config(tenant_id, domain) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +domain = 'domain_example' # String | + +begin + + result = api_instance.get_domain_config(tenant_id, domain) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_domain_config: #{e}" +end +``` + +#### Using the get_domain_config_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , 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) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_domain_config_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **domain** | **String** | | | + +### Return type + +[**GetDomainConfig200Response**](GetDomainConfig200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_domain_configs + +> get_domain_configs(tenant_id) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | + +begin + + result = api_instance.get_domain_configs(tenant_id) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_domain_configs: #{e}" +end +``` + +#### Using the get_domain_configs_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , 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) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_domain_configs_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | + +### Return type + +[**GetDomainConfigs200Response**](GetDomainConfigs200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_email_template + +> get_email_template(tenant_id, id) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | + +begin + + result = api_instance.get_email_template(tenant_id, id) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_email_template: #{e}" +end +``` + +#### Using the get_email_template_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , 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) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_email_template_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **id** | **String** | | | + +### Return type + +[**GetEmailTemplate200Response**](GetEmailTemplate200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_email_template_definitions + +> get_email_template_definitions(tenant_id) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | + +begin + + 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}" +end +``` + +#### Using the get_email_template_definitions_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , 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) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_email_template_definitions_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | + +### Return type + +[**GetEmailTemplateDefinitions200Response**](GetEmailTemplateDefinitions200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_email_template_render_errors + +> get_email_template_render_errors(tenant_id, id, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | +opts = { + skip: 1.2 # Float | +} + +begin + + 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}" +end +``` + +#### Using the get_email_template_render_errors_with_http_info variant + +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) + +```ruby +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 # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_email_template_render_errors_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **id** | **String** | | | +| **skip** | **Float** | | [optional] | + +### Return type + +[**GetEmailTemplateRenderErrors200Response**](GetEmailTemplateRenderErrors200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_email_templates + +> get_email_templates(tenant_id, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +opts = { + skip: 1.2 # Float | +} + +begin + + result = api_instance.get_email_templates(tenant_id, opts) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_email_templates: #{e}" +end +``` + +#### Using the get_email_templates_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , 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(tenant_id, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_email_templates_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **skip** | **Float** | | [optional] | + +### Return type + +[**GetEmailTemplates200Response**](GetEmailTemplates200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_feed_posts + +> get_feed_posts(tenant_id, opts) + + + + req tenantId afterId + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +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 | +} + +begin + + result = api_instance.get_feed_posts(tenant_id, opts) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_feed_posts: #{e}" +end +``` + +#### Using the get_feed_posts_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , 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(tenant_id, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_feed_posts_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **after_id** | **String** | | [optional] | +| **limit** | **Integer** | | [optional] | +| **tags** | [**Array<String>**](String.md) | | [optional] | + +### Return type + +[**GetFeedPosts200Response**](GetFeedPosts200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_hash_tags + +> get_hash_tags(tenant_id, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +opts = { + page: 1.2 # Float | +} + +begin + + result = api_instance.get_hash_tags(tenant_id, opts) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_hash_tags: #{e}" +end +``` + +#### Using the get_hash_tags_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , 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(tenant_id, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_hash_tags_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **page** | **Float** | | [optional] | + +### Return type + +[**GetHashTags200Response**](GetHashTags200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_moderator + +> get_moderator(tenant_id, id) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | + +begin + + result = api_instance.get_moderator(tenant_id, id) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_moderator: #{e}" +end +``` + +#### Using the get_moderator_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , 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) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_moderator_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **id** | **String** | | | + +### Return type + +[**GetModerator200Response**](GetModerator200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_moderators + +> get_moderators(tenant_id, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +opts = { + skip: 1.2 # Float | +} + +begin + + result = api_instance.get_moderators(tenant_id, opts) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_moderators: #{e}" +end +``` + +#### Using the get_moderators_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> get_moderators_with_http_info(tenant_id, opts) + +```ruby +begin + + data, status_code, headers = api_instance.get_moderators_with_http_info(tenant_id, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_moderators_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **skip** | **Float** | | [optional] | + +### Return type + +[**GetModerators200Response**](GetModerators200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_notification_count + +> get_notification_count(tenant_id, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +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 | +} + +begin + + result = api_instance.get_notification_count(tenant_id, opts) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_notification_count: #{e}" +end +``` + +#### Using the get_notification_count_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , 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(tenant_id, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_notification_count_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **user_id** | **String** | | [optional] | +| **url_id** | **String** | | [optional] | +| **from_comment_id** | **String** | | [optional] | +| **viewed** | **Boolean** | | [optional] | +| **type** | **String** | | [optional] | + +### Return type + +[**GetNotificationCount200Response**](GetNotificationCount200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_notifications + +> get_notifications(tenant_id, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +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 | +} + +begin + + result = api_instance.get_notifications(tenant_id, opts) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_notifications: #{e}" +end +``` + +#### Using the get_notifications_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> get_notifications_with_http_info(tenant_id, opts) + +```ruby +begin + + data, status_code, headers = api_instance.get_notifications_with_http_info(tenant_id, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_notifications_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **user_id** | **String** | | [optional] | +| **url_id** | **String** | | [optional] | +| **from_comment_id** | **String** | | [optional] | +| **viewed** | **Boolean** | | [optional] | +| **type** | **String** | | [optional] | +| **skip** | **Float** | | [optional] | + +### Return type + +[**GetNotifications200Response**](GetNotifications200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_page_by_urlid + +> get_page_by_urlid(tenant_id, url_id) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +url_id = 'url_id_example' # String | + +begin + + 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}" +end +``` + +#### Using the get_page_by_urlid_with_http_info variant + +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) + +```ruby +begin + + 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 # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_page_by_urlid_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **url_id** | **String** | | | + +### Return type + +[**GetPageByURLIdAPIResponse**](GetPageByURLIdAPIResponse.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_pages + +> get_pages(tenant_id) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | + +begin + + result = api_instance.get_pages(tenant_id) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_pages: #{e}" +end +``` + +#### Using the get_pages_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> get_pages_with_http_info(tenant_id) + +```ruby +begin + + data, status_code, headers = api_instance.get_pages_with_http_info(tenant_id) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_pages_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | + +### Return type + +[**GetPagesAPIResponse**](GetPagesAPIResponse.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_pending_webhook_event_count + +> get_pending_webhook_event_count(tenant_id, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +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 | +} + +begin + + 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}" +end +``` + +#### Using the get_pending_webhook_event_count_with_http_info variant + +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) + +```ruby +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 # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_pending_webhook_event_count_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **comment_id** | **String** | | [optional] | +| **external_id** | **String** | | [optional] | +| **event_type** | **String** | | [optional] | +| **type** | **String** | | [optional] | +| **domain** | **String** | | [optional] | +| **attempt_count_gt** | **Float** | | [optional] | + +### Return type + +[**GetPendingWebhookEventCount200Response**](GetPendingWebhookEventCount200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_pending_webhook_events + +> get_pending_webhook_events(tenant_id, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +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 | +} + +begin + + 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}" +end +``` + +#### Using the get_pending_webhook_events_with_http_info variant + +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) + +```ruby +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 # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_pending_webhook_events_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **comment_id** | **String** | | [optional] | +| **external_id** | **String** | | [optional] | +| **event_type** | **String** | | [optional] | +| **type** | **String** | | [optional] | +| **domain** | **String** | | [optional] | +| **attempt_count_gt** | **Float** | | [optional] | +| **skip** | **Float** | | [optional] | + +### Return type + +[**GetPendingWebhookEvents200Response**](GetPendingWebhookEvents200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_question_config + +> get_question_config(tenant_id, id) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | + +begin + + result = api_instance.get_question_config(tenant_id, id) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_question_config: #{e}" +end +``` + +#### Using the get_question_config_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , 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) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_question_config_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **id** | **String** | | | + +### Return type + +[**GetQuestionConfig200Response**](GetQuestionConfig200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_question_configs + +> get_question_configs(tenant_id, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +opts = { + skip: 1.2 # Float | +} + +begin + + result = api_instance.get_question_configs(tenant_id, opts) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_question_configs: #{e}" +end +``` + +#### Using the get_question_configs_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , 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(tenant_id, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_question_configs_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **skip** | **Float** | | [optional] | + +### Return type + +[**GetQuestionConfigs200Response**](GetQuestionConfigs200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_question_result + +> get_question_result(tenant_id, id) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | + +begin + + result = api_instance.get_question_result(tenant_id, id) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_question_result: #{e}" +end +``` + +#### Using the get_question_result_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , 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) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_question_result_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **id** | **String** | | | + +### Return type + +[**GetQuestionResult200Response**](GetQuestionResult200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_question_results + +> get_question_results(tenant_id, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +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 | +} + +begin + + result = api_instance.get_question_results(tenant_id, opts) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_question_results: #{e}" +end +``` + +#### Using the get_question_results_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , 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(tenant_id, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_question_results_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **url_id** | **String** | | [optional] | +| **user_id** | **String** | | [optional] | +| **start_date** | **String** | | [optional] | +| **question_id** | **String** | | [optional] | +| **question_ids** | **String** | | [optional] | +| **skip** | **Float** | | [optional] | + +### Return type + +[**GetQuestionResults200Response**](GetQuestionResults200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_sso_user_by_email + +> get_sso_user_by_email(tenant_id, email) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +email = 'email_example' # String | + +begin + + 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}" +end +``` + +#### Using the get_sso_user_by_email_with_http_info variant + +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) + +```ruby +begin + + 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 # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_sso_user_by_email_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **email** | **String** | | | + +### Return type + +[**GetSSOUserByEmailAPIResponse**](GetSSOUserByEmailAPIResponse.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_sso_user_by_id + +> get_sso_user_by_id(tenant_id, id) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | + +begin + + 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}" +end +``` + +#### Using the get_sso_user_by_id_with_http_info variant + +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) + +```ruby +begin + + 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 # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_sso_user_by_id_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **id** | **String** | | | + +### Return type + +[**GetSSOUserByIdAPIResponse**](GetSSOUserByIdAPIResponse.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_sso_users + +> get_sso_users(tenant_id, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +opts = { + skip: 56 # Integer | +} + +begin + + result = api_instance.get_sso_users(tenant_id, opts) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_sso_users: #{e}" +end +``` + +#### Using the get_sso_users_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , 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(tenant_id, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_sso_users_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **skip** | **Integer** | | [optional] | + +### Return type + +[**GetSSOUsers200Response**](GetSSOUsers200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_subscriptions + +> get_subscriptions(tenant_id, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +opts = { + user_id: 'user_id_example' # String | +} + +begin + + result = api_instance.get_subscriptions(tenant_id, opts) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_subscriptions: #{e}" +end +``` + +#### Using the get_subscriptions_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> get_subscriptions_with_http_info(tenant_id, opts) + +```ruby +begin + + data, status_code, headers = api_instance.get_subscriptions_with_http_info(tenant_id, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_subscriptions_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **user_id** | **String** | | [optional] | + +### Return type + +[**GetSubscriptionsAPIResponse**](GetSubscriptionsAPIResponse.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_tenant + +> get_tenant(tenant_id, id) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | + +begin + + result = api_instance.get_tenant(tenant_id, id) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_tenant: #{e}" +end +``` + +#### Using the get_tenant_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , 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) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_tenant_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **id** | **String** | | | + +### Return type + +[**GetTenant200Response**](GetTenant200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_tenant_daily_usages + +> get_tenant_daily_usages(tenant_id, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +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 | +} + +begin + + 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}" +end +``` + +#### Using the get_tenant_daily_usages_with_http_info variant + +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) + +```ruby +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 # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_tenant_daily_usages_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **year_number** | **Float** | | [optional] | +| **month_number** | **Float** | | [optional] | +| **day_number** | **Float** | | [optional] | +| **skip** | **Float** | | [optional] | + +### Return type + +[**GetTenantDailyUsages200Response**](GetTenantDailyUsages200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_tenant_package + +> get_tenant_package(tenant_id, id) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | + +begin + + result = api_instance.get_tenant_package(tenant_id, id) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_tenant_package: #{e}" +end +``` + +#### Using the get_tenant_package_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , 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) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_tenant_package_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **id** | **String** | | | + +### Return type + +[**GetTenantPackage200Response**](GetTenantPackage200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_tenant_packages + +> get_tenant_packages(tenant_id, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +opts = { + skip: 1.2 # Float | +} + +begin + + result = api_instance.get_tenant_packages(tenant_id, opts) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_tenant_packages: #{e}" +end +``` + +#### Using the get_tenant_packages_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , 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(tenant_id, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_tenant_packages_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **skip** | **Float** | | [optional] | + +### Return type + +[**GetTenantPackages200Response**](GetTenantPackages200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_tenant_user + +> get_tenant_user(tenant_id, id) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | + +begin + + result = api_instance.get_tenant_user(tenant_id, id) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_tenant_user: #{e}" +end +``` + +#### Using the get_tenant_user_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , 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) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_tenant_user_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **id** | **String** | | | + +### Return type + +[**GetTenantUser200Response**](GetTenantUser200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_tenant_users + +> get_tenant_users(tenant_id, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +opts = { + skip: 1.2 # Float | +} + +begin + + result = api_instance.get_tenant_users(tenant_id, opts) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_tenant_users: #{e}" +end +``` + +#### Using the get_tenant_users_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , 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(tenant_id, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_tenant_users_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **skip** | **Float** | | [optional] | + +### Return type + +[**GetTenantUsers200Response**](GetTenantUsers200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_tenants + +> get_tenants(tenant_id, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +opts = { + meta: 'meta_example', # String | + skip: 1.2 # Float | +} + +begin + + result = api_instance.get_tenants(tenant_id, opts) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_tenants: #{e}" +end +``` + +#### Using the get_tenants_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> get_tenants_with_http_info(tenant_id, opts) + +```ruby +begin + + data, status_code, headers = api_instance.get_tenants_with_http_info(tenant_id, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_tenants_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **meta** | **String** | | [optional] | +| **skip** | **Float** | | [optional] | + +### Return type + +[**GetTenants200Response**](GetTenants200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_user + +> get_user(tenant_id, id) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | + +begin + + result = api_instance.get_user(tenant_id, id) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_user: #{e}" +end +``` + +#### Using the get_user_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , 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) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_user_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **id** | **String** | | | + +### Return type + +[**GetUser200Response**](GetUser200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_user_badge + +> get_user_badge(tenant_id, id) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | + +begin + + result = api_instance.get_user_badge(tenant_id, id) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_user_badge: #{e}" +end +``` + +#### Using the get_user_badge_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , 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) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_user_badge_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **id** | **String** | | | + +### Return type + +[**GetUserBadge200Response**](GetUserBadge200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_user_badge_progress_by_id + +> get_user_badge_progress_by_id(tenant_id, id) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | + +begin + + 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}" +end +``` + +#### Using the get_user_badge_progress_by_id_with_http_info variant + +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) + +```ruby +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 # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_user_badge_progress_by_id_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **id** | **String** | | | + +### Return type + +[**GetUserBadgeProgressById200Response**](GetUserBadgeProgressById200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_user_badge_progress_by_user_id + +> get_user_badge_progress_by_user_id(tenant_id, user_id) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +user_id = 'user_id_example' # String | + +begin + + 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}" +end +``` + +#### Using the get_user_badge_progress_by_user_id_with_http_info variant + +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) + +```ruby +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 # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_user_badge_progress_by_user_id_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **user_id** | **String** | | | + +### Return type + +[**GetUserBadgeProgressById200Response**](GetUserBadgeProgressById200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_user_badge_progress_list + +> get_user_badge_progress_list(tenant_id, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +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 | +} + +begin + + 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}" +end +``` + +#### Using the get_user_badge_progress_list_with_http_info variant + +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) + +```ruby +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 # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_user_badge_progress_list_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **user_id** | **String** | | [optional] | +| **limit** | **Float** | | [optional] | +| **skip** | **Float** | | [optional] | + +### Return type + +[**GetUserBadgeProgressList200Response**](GetUserBadgeProgressList200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_user_badges + +> get_user_badges(tenant_id, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +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 | +} + +begin + + result = api_instance.get_user_badges(tenant_id, opts) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_user_badges: #{e}" +end +``` + +#### Using the get_user_badges_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , 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(tenant_id, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_user_badges_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **user_id** | **String** | | [optional] | +| **badge_id** | **String** | | [optional] | +| **type** | **Float** | | [optional] | +| **displayed_on_comments** | **Boolean** | | [optional] | +| **limit** | **Float** | | [optional] | +| **skip** | **Float** | | [optional] | + +### Return type + +[**GetUserBadges200Response**](GetUserBadges200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_votes + +> get_votes(tenant_id, url_id) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +url_id = 'url_id_example' # String | + +begin + + result = api_instance.get_votes(tenant_id, url_id) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_votes: #{e}" +end +``` + +#### Using the get_votes_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , 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) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_votes_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **url_id** | **String** | | | + +### Return type + +[**GetVotes200Response**](GetVotes200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## get_votes_for_user + +> get_votes_for_user(tenant_id, url_id, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +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 | +} + +begin + + 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}" +end +``` + +#### Using the get_votes_for_user_with_http_info variant + +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) + +```ruby +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 # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->get_votes_for_user_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **url_id** | **String** | | | +| **user_id** | **String** | | [optional] | +| **anon_user_id** | **String** | | [optional] | + +### Return type + +[**GetVotesForUser200Response**](GetVotesForUser200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## patch_domain_config + +> patch_domain_config(tenant_id, domain_to_update, patch_domain_config_params) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +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 | + +begin + + 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}" +end +``` + +#### Using the patch_domain_config_with_http_info variant + +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) + +```ruby +begin + + 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 # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->patch_domain_config_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **domain_to_update** | **String** | | | +| **patch_domain_config_params** | [**PatchDomainConfigParams**](PatchDomainConfigParams.md) | | | + +### Return type + +[**GetDomainConfig200Response**](GetDomainConfig200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## patch_hash_tag + +> patch_hash_tag(tag, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +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 | +} + +begin + + result = api_instance.patch_hash_tag(tag, opts) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->patch_hash_tag: #{e}" +end +``` + +#### Using the patch_hash_tag_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> patch_hash_tag_with_http_info(tag, opts) + +```ruby +begin + + data, status_code, headers = api_instance.patch_hash_tag_with_http_info(tag, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->patch_hash_tag_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tag** | **String** | | | +| **tenant_id** | **String** | | [optional] | +| **update_hash_tag_body** | [**UpdateHashTagBody**](UpdateHashTagBody.md) | | [optional] | + +### Return type + +[**PatchHashTag200Response**](PatchHashTag200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## patch_page + +> patch_page(tenant_id, id, update_api_page_data) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | +update_api_page_data = FastCommentsClient::UpdateAPIPageData.new # UpdateAPIPageData | + +begin + + 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}" +end +``` + +#### Using the patch_page_with_http_info variant + +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) + +```ruby +begin + + 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 # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->patch_page_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **id** | **String** | | | +| **update_api_page_data** | [**UpdateAPIPageData**](UpdateAPIPageData.md) | | | + +### Return type + +[**PatchPageAPIResponse**](PatchPageAPIResponse.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## patch_sso_user + +> patch_sso_user(tenant_id, id, update_apisso_user_data, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +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 | +} + +begin + + 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}" +end +``` + +#### Using the patch_sso_user_with_http_info variant + +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) + +```ruby +begin + + 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 # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->patch_sso_user_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **id** | **String** | | | +| **update_apisso_user_data** | [**UpdateAPISSOUserData**](UpdateAPISSOUserData.md) | | | +| **update_comments** | **Boolean** | | [optional] | + +### Return type + +[**PatchSSOUserAPIResponse**](PatchSSOUserAPIResponse.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## put_domain_config + +> put_domain_config(tenant_id, domain_to_update, update_domain_config_params) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +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 | + +begin + + 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}" +end +``` + +#### Using the put_domain_config_with_http_info variant + +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) + +```ruby +begin + + 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 # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->put_domain_config_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **domain_to_update** | **String** | | | +| **update_domain_config_params** | [**UpdateDomainConfigParams**](UpdateDomainConfigParams.md) | | | + +### Return type + +[**GetDomainConfig200Response**](GetDomainConfig200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## put_sso_user + +> put_sso_user(tenant_id, id, update_apisso_user_data, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +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 | +} + +begin + + 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}" +end +``` + +#### Using the put_sso_user_with_http_info variant + +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) + +```ruby +begin + + 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 # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->put_sso_user_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **id** | **String** | | | +| **update_apisso_user_data** | [**UpdateAPISSOUserData**](UpdateAPISSOUserData.md) | | | +| **update_comments** | **Boolean** | | [optional] | + +### Return type + +[**PutSSOUserAPIResponse**](PutSSOUserAPIResponse.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## render_email_template + +> render_email_template(tenant_id, render_email_template_body, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +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 | +} + +begin + + 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}" +end +``` + +#### Using the render_email_template_with_http_info variant + +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) + +```ruby +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 # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->render_email_template_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **render_email_template_body** | [**RenderEmailTemplateBody**](RenderEmailTemplateBody.md) | | | +| **locale** | **String** | | [optional] | + +### Return type + +[**RenderEmailTemplate200Response**](RenderEmailTemplate200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## replace_tenant_package + +> replace_tenant_package(tenant_id, id, replace_tenant_package_body) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +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 | + +begin + + 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}" +end +``` + +#### Using the replace_tenant_package_with_http_info variant + +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) + +```ruby +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 # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->replace_tenant_package_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **id** | **String** | | | +| **replace_tenant_package_body** | [**ReplaceTenantPackageBody**](ReplaceTenantPackageBody.md) | | | + +### Return type + +[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## replace_tenant_user + +> replace_tenant_user(tenant_id, id, replace_tenant_user_body, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +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 | +} + +begin + + 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}" +end +``` + +#### Using the replace_tenant_user_with_http_info variant + +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) + +```ruby +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 # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->replace_tenant_user_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **id** | **String** | | | +| **replace_tenant_user_body** | [**ReplaceTenantUserBody**](ReplaceTenantUserBody.md) | | | +| **update_comments** | **String** | | [optional] | + +### Return type + +[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## save_comment + +> save_comment(tenant_id, create_comment_params, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +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 | +} + +begin + + 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}" +end +``` + +#### Using the save_comment_with_http_info variant + +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) + +```ruby +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 # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->save_comment_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **create_comment_params** | [**CreateCommentParams**](CreateCommentParams.md) | | | +| **is_live** | **Boolean** | | [optional] | +| **do_spam_check** | **Boolean** | | [optional] | +| **send_emails** | **Boolean** | | [optional] | +| **populate_notifications** | **Boolean** | | [optional] | + +### Return type + +[**SaveComment200Response**](SaveComment200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## save_comments_bulk + +> > save_comments_bulk(tenant_id, create_comment_params, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +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 | +} + +begin + + 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}" +end +``` + +#### Using the save_comments_bulk_with_http_info variant + +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) + +```ruby +begin + + 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 # => > +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->save_comments_bulk_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **create_comment_params** | [**Array<CreateCommentParams>**](CreateCommentParams.md) | | | +| **is_live** | **Boolean** | | [optional] | +| **do_spam_check** | **Boolean** | | [optional] | +| **send_emails** | **Boolean** | | [optional] | +| **populate_notifications** | **Boolean** | | [optional] | + +### Return type + +[**Array<SaveComment200Response>**](SaveComment200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## send_invite + +> send_invite(tenant_id, id, from_name) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | +from_name = 'from_name_example' # String | + +begin + + result = api_instance.send_invite(tenant_id, id, from_name) + p result +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->send_invite: #{e}" +end +``` + +#### Using the send_invite_with_http_info variant + +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) + +```ruby +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 # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->send_invite_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **id** | **String** | | | +| **from_name** | **String** | | | + +### Return type + +[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## send_login_link + +> send_login_link(tenant_id, id, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | +id = 'id_example' # String | +opts = { + redirect_url: 'redirect_url_example' # String | +} + +begin + + 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}" +end +``` + +#### Using the send_login_link_with_http_info variant + +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) + +```ruby +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 # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->send_login_link_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **id** | **String** | | | +| **redirect_url** | **String** | | [optional] | + +### Return type + +[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## un_block_user_from_comment + +> un_block_user_from_comment(tenant_id, id, un_block_from_comment_params, opts) + + + +### Examples + +```ruby +require 'time' +require 'fastcomments-client' +# setup authorization +FastCommentsClient.configure do |config| + # Configure API key authorization: api_key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + # config.api_key_prefix['x-api-key'] = 'Bearer' +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 | +} + +begin + + 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}" +end +``` + +#### Using the un_block_user_from_comment_with_http_info variant + +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) + +```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) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FastCommentsClient::ApiError => e + puts "Error when calling DefaultApi->un_block_user_from_comment_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | +| **id** | **String** | | | +| **un_block_from_comment_params** | [**UnBlockFromCommentParams**](UnBlockFromCommentParams.md) | | | +| **user_id** | **String** | | [optional] | +| **anon_user_id** | **String** | | [optional] | ### Return type -[**GetUserBadges200Response**](GetUserBadges200Response.md) +[**UnBlockCommentPublic200Response**](UnBlockCommentPublic200Response.md) ### Authorization @@ -2678,13 +7338,13 @@ end ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json -## patch_domain_config +## un_flag_comment -> patch_domain_config(tenant_id, domain_to_update, patch_domain_config_params) +> un_flag_comment(tenant_id, id, opts) @@ -2703,33 +7363,36 @@ 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 | +id = 'id_example' # String | +opts = { + user_id: 'user_id_example', # String | + anon_user_id: 'anon_user_id_example' # String | +} begin - result = api_instance.patch_domain_config(tenant_id, domain_to_update, patch_domain_config_params) + result = api_instance.un_flag_comment(tenant_id, id, opts) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->patch_domain_config: #{e}" + puts "Error when calling DefaultApi->un_flag_comment: #{e}" end ``` -#### Using the patch_domain_config_with_http_info variant +#### Using the un_flag_comment_with_http_info variant 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)> un_flag_comment_with_http_info(tenant_id, id, 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.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->patch_domain_config_with_http_info: #{e}" + puts "Error when calling DefaultApi->un_flag_comment_with_http_info: #{e}" end ``` @@ -2738,12 +7401,13 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | -| **domain_to_update** | **String** | | | -| **patch_domain_config_params** | [**PatchDomainConfigParams**](PatchDomainConfigParams.md) | | | +| **id** | **String** | | | +| **user_id** | **String** | | [optional] | +| **anon_user_id** | **String** | | [optional] | ### Return type -[**GetDomainConfig200Response**](GetDomainConfig200Response.md) +[**FlagComment200Response**](FlagComment200Response.md) ### Authorization @@ -2751,13 +7415,13 @@ end ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json -## patch_page +## update_comment -> patch_page(tenant_id, id, update_api_page_data) +> update_comment(tenant_id, id, updatable_comment_params, opts) @@ -2777,32 +7441,37 @@ end api_instance = FastCommentsClient::DefaultApi.new tenant_id = 'tenant_id_example' # String | id = 'id_example' # String | -update_api_page_data = FastCommentsClient::UpdateAPIPageData.new # UpdateAPIPageData | +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 | +} begin - result = api_instance.patch_page(tenant_id, id, update_api_page_data) + result = api_instance.update_comment(tenant_id, id, updatable_comment_params, opts) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->patch_page: #{e}" + puts "Error when calling DefaultApi->update_comment: #{e}" end ``` -#### Using the patch_page_with_http_info variant +#### Using the update_comment_with_http_info variant 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)> update_comment_with_http_info(tenant_id, id, updatable_comment_params, 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.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->patch_page_with_http_info: #{e}" + puts "Error when calling DefaultApi->update_comment_with_http_info: #{e}" end ``` @@ -2812,11 +7481,14 @@ end | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | | **id** | **String** | | | -| **update_api_page_data** | [**UpdateAPIPageData**](UpdateAPIPageData.md) | | | +| **updatable_comment_params** | [**UpdatableCommentParams**](UpdatableCommentParams.md) | | | +| **context_user_id** | **String** | | [optional] | +| **do_spam_check** | **Boolean** | | [optional] | +| **is_live** | **Boolean** | | [optional] | ### Return type -[**PatchPageAPIResponse**](PatchPageAPIResponse.md) +[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) ### Authorization @@ -2828,9 +7500,9 @@ end - **Accept**: application/json -## patch_sso_user +## update_email_template -> patch_sso_user(tenant_id, id, update_apisso_user_data, opts) +> update_email_template(tenant_id, id, update_email_template_body) @@ -2850,35 +7522,32 @@ 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 | -} +update_email_template_body = FastCommentsClient::UpdateEmailTemplateBody.new # UpdateEmailTemplateBody | begin - result = api_instance.patch_sso_user(tenant_id, id, update_apisso_user_data, 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->patch_sso_user: #{e}" + puts "Error when calling DefaultApi->update_email_template: #{e}" end ``` -#### Using the patch_sso_user_with_http_info variant +#### Using the update_email_template_with_http_info variant 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)> update_email_template_with_http_info(tenant_id, id, update_email_template_body) ```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.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->patch_sso_user_with_http_info: #{e}" + puts "Error when calling DefaultApi->update_email_template_with_http_info: #{e}" end ``` @@ -2888,12 +7557,11 @@ end | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | | **id** | **String** | | | -| **update_apisso_user_data** | [**UpdateAPISSOUserData**](UpdateAPISSOUserData.md) | | | -| **update_comments** | **Boolean** | | [optional] | +| **update_email_template_body** | [**UpdateEmailTemplateBody**](UpdateEmailTemplateBody.md) | | | ### Return type -[**PatchSSOUserAPIResponse**](PatchSSOUserAPIResponse.md) +[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) ### Authorization @@ -2905,9 +7573,9 @@ end - **Accept**: application/json -## put_domain_config +## update_feed_post -> put_domain_config(tenant_id, domain_to_update, update_domain_config_params) +> update_feed_post(tenant_id, id, feed_post) @@ -2926,33 +7594,33 @@ 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 | +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.put_domain_config(tenant_id, domain_to_update, update_domain_config_params) + result = api_instance.update_feed_post(tenant_id, id, feed_post) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->put_domain_config: #{e}" + puts "Error when calling DefaultApi->update_feed_post: #{e}" end ``` -#### Using the put_domain_config_with_http_info variant +#### Using the update_feed_post_with_http_info variant 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)> update_feed_post_with_http_info(tenant_id, id, feed_post) ```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.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->put_domain_config_with_http_info: #{e}" + puts "Error when calling DefaultApi->update_feed_post_with_http_info: #{e}" end ``` @@ -2961,12 +7629,12 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | -| **domain_to_update** | **String** | | | -| **update_domain_config_params** | [**UpdateDomainConfigParams**](UpdateDomainConfigParams.md) | | | +| **id** | **String** | | | +| **feed_post** | [**FeedPost**](FeedPost.md) | | | ### Return type -[**GetDomainConfig200Response**](GetDomainConfig200Response.md) +[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) ### Authorization @@ -2978,9 +7646,9 @@ end - **Accept**: application/json -## put_sso_user +## update_moderator -> put_sso_user(tenant_id, id, update_apisso_user_data, opts) +> update_moderator(tenant_id, id, update_moderator_body) @@ -3000,35 +7668,32 @@ 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 | -} +update_moderator_body = FastCommentsClient::UpdateModeratorBody.new # UpdateModeratorBody | begin - result = api_instance.put_sso_user(tenant_id, id, update_apisso_user_data, opts) + result = api_instance.update_moderator(tenant_id, id, update_moderator_body) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->put_sso_user: #{e}" + puts "Error when calling DefaultApi->update_moderator: #{e}" end ``` -#### Using the put_sso_user_with_http_info variant +#### Using the update_moderator_with_http_info variant 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)> update_moderator_with_http_info(tenant_id, id, update_moderator_body) ```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.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->put_sso_user_with_http_info: #{e}" + puts "Error when calling DefaultApi->update_moderator_with_http_info: #{e}" end ``` @@ -3038,12 +7703,11 @@ end | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | | **id** | **String** | | | -| **update_apisso_user_data** | [**UpdateAPISSOUserData**](UpdateAPISSOUserData.md) | | | -| **update_comments** | **Boolean** | | [optional] | +| **update_moderator_body** | [**UpdateModeratorBody**](UpdateModeratorBody.md) | | | ### Return type -[**PutSSOUserAPIResponse**](PutSSOUserAPIResponse.md) +[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) ### Authorization @@ -3055,9 +7719,9 @@ end - **Accept**: application/json -## save_comment +## update_notification -> save_comment(tenant_id, create_comment_params, opts) +> update_notification(tenant_id, id, update_notification_body, opts) @@ -3076,38 +7740,36 @@ 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 | +id = 'id_example' # String | +update_notification_body = FastCommentsClient::UpdateNotificationBody.new # UpdateNotificationBody | opts = { - is_live: true, # Boolean | - do_spam_check: true, # Boolean | - send_emails: true, # Boolean | - populate_notifications: true # Boolean | + user_id: 'user_id_example' # String | } begin - result = api_instance.save_comment(tenant_id, create_comment_params, opts) + result = api_instance.update_notification(tenant_id, id, update_notification_body, opts) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->save_comment: #{e}" + puts "Error when calling DefaultApi->update_notification: #{e}" end ``` -#### Using the save_comment_with_http_info variant +#### Using the update_notification_with_http_info variant 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)> update_notification_with_http_info(tenant_id, id, update_notification_body, 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.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->save_comment_with_http_info: #{e}" + puts "Error when calling DefaultApi->update_notification_with_http_info: #{e}" end ``` @@ -3116,15 +7778,13 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | -| **create_comment_params** | [**CreateCommentParams**](CreateCommentParams.md) | | | -| **is_live** | **Boolean** | | [optional] | -| **do_spam_check** | **Boolean** | | [optional] | -| **send_emails** | **Boolean** | | [optional] | -| **populate_notifications** | **Boolean** | | [optional] | +| **id** | **String** | | | +| **update_notification_body** | [**UpdateNotificationBody**](UpdateNotificationBody.md) | | | +| **user_id** | **String** | | [optional] | ### Return type -[**SaveComment200Response**](SaveComment200Response.md) +[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) ### Authorization @@ -3136,9 +7796,9 @@ end - **Accept**: application/json -## save_comments_bulk +## update_question_config -> > save_comments_bulk(tenant_id, create_comment_params, opts) +> update_question_config(tenant_id, id, update_question_config_body) @@ -3157,38 +7817,33 @@ 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 | -} +id = 'id_example' # String | +update_question_config_body = FastCommentsClient::UpdateQuestionConfigBody.new # UpdateQuestionConfigBody | begin - result = api_instance.save_comments_bulk(tenant_id, create_comment_params, 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->save_comments_bulk: #{e}" + puts "Error when calling DefaultApi->update_question_config: #{e}" end ``` -#### Using the save_comments_bulk_with_http_info variant +#### Using the update_question_config_with_http_info variant 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)> update_question_config_with_http_info(tenant_id, id, update_question_config_body) ```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.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->save_comments_bulk_with_http_info: #{e}" + puts "Error when calling DefaultApi->update_question_config_with_http_info: #{e}" end ``` @@ -3197,15 +7852,12 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | -| **create_comment_params** | [**Array<CreateCommentParams>**](CreateCommentParams.md) | | | -| **is_live** | **Boolean** | | [optional] | -| **do_spam_check** | **Boolean** | | [optional] | -| **send_emails** | **Boolean** | | [optional] | -| **populate_notifications** | **Boolean** | | [optional] | +| **id** | **String** | | | +| **update_question_config_body** | [**UpdateQuestionConfigBody**](UpdateQuestionConfigBody.md) | | | ### Return type -[**Array<SaveComment200Response>**](SaveComment200Response.md) +[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) ### Authorization @@ -3217,9 +7869,9 @@ end - **Accept**: application/json -## un_block_user_from_comment +## update_question_result -> un_block_user_from_comment(tenant_id, id, un_block_from_comment_params, opts) +> update_question_result(tenant_id, id, update_question_result_body) @@ -3239,36 +7891,32 @@ 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 | -} +update_question_result_body = FastCommentsClient::UpdateQuestionResultBody.new # UpdateQuestionResultBody | begin - result = api_instance.un_block_user_from_comment(tenant_id, id, un_block_from_comment_params, 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->un_block_user_from_comment: #{e}" + puts "Error when calling DefaultApi->update_question_result: #{e}" end ``` -#### Using the un_block_user_from_comment_with_http_info variant +#### Using the update_question_result_with_http_info variant 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)> update_question_result_with_http_info(tenant_id, id, update_question_result_body) ```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.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->un_block_user_from_comment_with_http_info: #{e}" + puts "Error when calling DefaultApi->update_question_result_with_http_info: #{e}" end ``` @@ -3278,13 +7926,11 @@ end | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | | **id** | **String** | | | -| **un_block_from_comment_params** | [**UnBlockFromCommentParams**](UnBlockFromCommentParams.md) | | | -| **user_id** | **String** | | [optional] | -| **anon_user_id** | **String** | | [optional] | +| **update_question_result_body** | [**UpdateQuestionResultBody**](UpdateQuestionResultBody.md) | | | ### Return type -[**UnBlockCommentPublic200Response**](UnBlockCommentPublic200Response.md) +[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) ### Authorization @@ -3296,9 +7942,9 @@ end - **Accept**: application/json -## un_flag_comment +## update_tenant -> un_flag_comment(tenant_id, id, opts) +> update_tenant(tenant_id, id, update_tenant_body) @@ -3318,35 +7964,32 @@ 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 | -} +update_tenant_body = FastCommentsClient::UpdateTenantBody.new # UpdateTenantBody | begin - result = api_instance.un_flag_comment(tenant_id, id, opts) + result = api_instance.update_tenant(tenant_id, id, update_tenant_body) p result rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->un_flag_comment: #{e}" + puts "Error when calling DefaultApi->update_tenant: #{e}" end ``` -#### Using the un_flag_comment_with_http_info variant +#### Using the update_tenant_with_http_info variant 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)> update_tenant_with_http_info(tenant_id, id, update_tenant_body) ```ruby begin - data, status_code, headers = api_instance.un_flag_comment_with_http_info(tenant_id, id, 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 # => + p data # => rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->un_flag_comment_with_http_info: #{e}" + puts "Error when calling DefaultApi->update_tenant_with_http_info: #{e}" end ``` @@ -3356,12 +7999,11 @@ end | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | | **id** | **String** | | | -| **user_id** | **String** | | [optional] | -| **anon_user_id** | **String** | | [optional] | +| **update_tenant_body** | [**UpdateTenantBody**](UpdateTenantBody.md) | | | ### Return type -[**FlagComment200Response**](FlagComment200Response.md) +[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) ### Authorization @@ -3369,13 +8011,13 @@ end ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json -## update_comment +## update_tenant_package -> update_comment(tenant_id, id, updatable_comment_params, opts) +> update_tenant_package(tenant_id, id, update_tenant_package_body) @@ -3395,37 +8037,32 @@ 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 | -} +update_tenant_package_body = FastCommentsClient::UpdateTenantPackageBody.new # UpdateTenantPackageBody | begin - result = api_instance.update_comment(tenant_id, id, updatable_comment_params, 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_comment: #{e}" + puts "Error when calling DefaultApi->update_tenant_package: #{e}" end ``` -#### Using the update_comment_with_http_info variant +#### Using the update_tenant_package_with_http_info variant 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_tenant_package_with_http_info(tenant_id, id, update_tenant_package_body) ```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_tenant_package_with_http_info(tenant_id, id, update_tenant_package_body) p status_code # => 2xx p headers # => { ... } p data # => rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->update_comment_with_http_info: #{e}" + puts "Error when calling DefaultApi->update_tenant_package_with_http_info: #{e}" end ``` @@ -3435,10 +8072,7 @@ end | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | | **id** | **String** | | | -| **updatable_comment_params** | [**UpdatableCommentParams**](UpdatableCommentParams.md) | | | -| **context_user_id** | **String** | | [optional] | -| **do_spam_check** | **Boolean** | | [optional] | -| **is_live** | **Boolean** | | [optional] | +| **update_tenant_package_body** | [**UpdateTenantPackageBody**](UpdateTenantPackageBody.md) | | | ### Return type @@ -3454,9 +8088,9 @@ end - **Accept**: application/json -## update_feed_post +## update_tenant_user -> update_feed_post(tenant_id, id, feed_post) +> update_tenant_user(tenant_id, id, update_tenant_user_body, opts) @@ -3476,32 +8110,35 @@ 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 | +update_tenant_user_body = FastCommentsClient::UpdateTenantUserBody.new # UpdateTenantUserBody | +opts = { + update_comments: 'update_comments_example' # String | +} begin - result = api_instance.update_feed_post(tenant_id, id, feed_post) + 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_feed_post: #{e}" + puts "Error when calling DefaultApi->update_tenant_user: #{e}" end ``` -#### Using the update_feed_post_with_http_info variant +#### Using the update_tenant_user_with_http_info variant 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_tenant_user_with_http_info(tenant_id, id, update_tenant_user_body, 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_tenant_user_with_http_info(tenant_id, id, update_tenant_user_body, opts) p status_code # => 2xx p headers # => { ... } p data # => rescue FastCommentsClient::ApiError => e - puts "Error when calling DefaultApi->update_feed_post_with_http_info: #{e}" + puts "Error when calling DefaultApi->update_tenant_user_with_http_info: #{e}" end ``` @@ -3511,7 +8148,8 @@ end | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | | **id** | **String** | | | -| **feed_post** | [**FeedPost**](FeedPost.md) | | | +| **update_tenant_user_body** | [**UpdateTenantUserBody**](UpdateTenantUserBody.md) | | | +| **update_comments** | **String** | | [optional] | ### Return type diff --git a/client/docs/DeleteHashTagRequest.md b/client/docs/DeleteHashTagRequest.md new file mode 100644 index 0000000..ce3d723 --- /dev/null +++ b/client/docs/DeleteHashTagRequest.md @@ -0,0 +1,18 @@ +# FastCommentsClient::DeleteHashTagRequest + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::DeleteHashTagRequest.new( + tenant_id: null +) +``` + diff --git a/client/docs/DeleteVote200Response.md b/client/docs/DeleteVote200Response.md new file mode 100644 index 0000000..dda8612 --- /dev/null +++ b/client/docs/DeleteVote200Response.md @@ -0,0 +1,32 @@ +# FastCommentsClient::DeleteVote200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::DeleteVote200Response.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/DeleteVoteResponse.md b/client/docs/DeleteVoteResponse.md new file mode 100644 index 0000000..e608d80 --- /dev/null +++ b/client/docs/DeleteVoteResponse.md @@ -0,0 +1,18 @@ +# FastCommentsClient::DeleteVoteResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::DeleteVoteResponse.new( + status: null +) +``` + diff --git a/client/docs/DigestEmailFrequency.md b/client/docs/DigestEmailFrequency.md new file mode 100644 index 0000000..ff7be09 --- /dev/null +++ b/client/docs/DigestEmailFrequency.md @@ -0,0 +1,15 @@ +# FastCommentsClient::DigestEmailFrequency + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::DigestEmailFrequency.new() +``` + diff --git a/client/docs/EmailTemplateDefinition.md b/client/docs/EmailTemplateDefinition.md new file mode 100644 index 0000000..b6d3e17 --- /dev/null +++ b/client/docs/EmailTemplateDefinition.md @@ -0,0 +1,24 @@ +# FastCommentsClient::EmailTemplateDefinition + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **email_template_id** | **String** | | | +| **default_test_data** | **Hash<String, Object>** | Construct a type with a set of properties K of type T | | +| **default_translations_by_locale** | **Hash<String, Hash>** | Construct a type with a set of properties K of type T | | +| **default_ejs** | **String** | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::EmailTemplateDefinition.new( + email_template_id: null, + default_test_data: null, + default_translations_by_locale: null, + default_ejs: null +) +``` + diff --git a/client/docs/EmailTemplateRenderErrorResponse.md b/client/docs/EmailTemplateRenderErrorResponse.md new file mode 100644 index 0000000..67fde85 --- /dev/null +++ b/client/docs/EmailTemplateRenderErrorResponse.md @@ -0,0 +1,30 @@ +# FastCommentsClient::EmailTemplateRenderErrorResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **id** | **String** | | | +| **tenant_id** | **String** | | | +| **custom_template_id** | **String** | | | +| **error** | **String** | | | +| **count** | **Float** | | | +| **created_at** | **Time** | | | +| **last_occurred_at** | **Time** | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::EmailTemplateRenderErrorResponse.new( + id: null, + tenant_id: null, + custom_template_id: null, + error: null, + count: null, + created_at: null, + last_occurred_at: null +) +``` + diff --git a/client/docs/GetCachedNotificationCount200Response.md b/client/docs/GetCachedNotificationCount200Response.md new file mode 100644 index 0000000..fb7cdaf --- /dev/null +++ b/client/docs/GetCachedNotificationCount200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetCachedNotificationCount200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **data** | [**UserNotificationCount**](UserNotificationCount.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetCachedNotificationCount200Response.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/GetCachedNotificationCountResponse.md b/client/docs/GetCachedNotificationCountResponse.md new file mode 100644 index 0000000..5c24609 --- /dev/null +++ b/client/docs/GetCachedNotificationCountResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::GetCachedNotificationCountResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **data** | [**UserNotificationCount**](UserNotificationCount.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetCachedNotificationCountResponse.new( + status: null, + data: null +) +``` + diff --git a/client/docs/GetEmailTemplate200Response.md b/client/docs/GetEmailTemplate200Response.md new file mode 100644 index 0000000..768609f --- /dev/null +++ b/client/docs/GetEmailTemplate200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetEmailTemplate200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **email_template** | [**CustomEmailTemplate**](CustomEmailTemplate.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetEmailTemplate200Response.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/GetEmailTemplateDefinitions200Response.md b/client/docs/GetEmailTemplateDefinitions200Response.md new file mode 100644 index 0000000..cb2c765 --- /dev/null +++ b/client/docs/GetEmailTemplateDefinitions200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetEmailTemplateDefinitions200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **definitions** | [**Array<EmailTemplateDefinition>**](EmailTemplateDefinition.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetEmailTemplateDefinitions200Response.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/GetEmailTemplateDefinitionsResponse.md b/client/docs/GetEmailTemplateDefinitionsResponse.md new file mode 100644 index 0000000..54ff82b --- /dev/null +++ b/client/docs/GetEmailTemplateDefinitionsResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::GetEmailTemplateDefinitionsResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **definitions** | [**Array<EmailTemplateDefinition>**](EmailTemplateDefinition.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetEmailTemplateDefinitionsResponse.new( + status: null, + definitions: null +) +``` + diff --git a/client/docs/GetEmailTemplateRenderErrors200Response.md b/client/docs/GetEmailTemplateRenderErrors200Response.md new file mode 100644 index 0000000..1bde760 --- /dev/null +++ b/client/docs/GetEmailTemplateRenderErrors200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetEmailTemplateRenderErrors200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **render_errors** | [**Array<EmailTemplateRenderErrorResponse>**](EmailTemplateRenderErrorResponse.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetEmailTemplateRenderErrors200Response.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/GetEmailTemplateRenderErrorsResponse.md b/client/docs/GetEmailTemplateRenderErrorsResponse.md new file mode 100644 index 0000000..b7bbe7c --- /dev/null +++ b/client/docs/GetEmailTemplateRenderErrorsResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::GetEmailTemplateRenderErrorsResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **render_errors** | [**Array<EmailTemplateRenderErrorResponse>**](EmailTemplateRenderErrorResponse.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetEmailTemplateRenderErrorsResponse.new( + status: null, + render_errors: null +) +``` + diff --git a/client/docs/GetEmailTemplateResponse.md b/client/docs/GetEmailTemplateResponse.md new file mode 100644 index 0000000..ebbaac6 --- /dev/null +++ b/client/docs/GetEmailTemplateResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::GetEmailTemplateResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **email_template** | [**CustomEmailTemplate**](CustomEmailTemplate.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetEmailTemplateResponse.new( + status: null, + email_template: null +) +``` + diff --git a/client/docs/GetEmailTemplates200Response.md b/client/docs/GetEmailTemplates200Response.md new file mode 100644 index 0000000..67ae366 --- /dev/null +++ b/client/docs/GetEmailTemplates200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetEmailTemplates200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **email_templates** | [**Array<CustomEmailTemplate>**](CustomEmailTemplate.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetEmailTemplates200Response.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/GetEmailTemplatesResponse.md b/client/docs/GetEmailTemplatesResponse.md new file mode 100644 index 0000000..9c7134a --- /dev/null +++ b/client/docs/GetEmailTemplatesResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::GetEmailTemplatesResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **email_templates** | [**Array<CustomEmailTemplate>**](CustomEmailTemplate.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetEmailTemplatesResponse.new( + status: null, + email_templates: null +) +``` + diff --git a/client/docs/GetHashTags200Response.md b/client/docs/GetHashTags200Response.md new file mode 100644 index 0000000..eb5c201 --- /dev/null +++ b/client/docs/GetHashTags200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetHashTags200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **hash_tags** | [**Array<TenantHashTag>**](TenantHashTag.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetHashTags200Response.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/GetHashTagsResponse.md b/client/docs/GetHashTagsResponse.md new file mode 100644 index 0000000..cfc8c8d --- /dev/null +++ b/client/docs/GetHashTagsResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::GetHashTagsResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **hash_tags** | [**Array<TenantHashTag>**](TenantHashTag.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetHashTagsResponse.new( + status: null, + hash_tags: null +) +``` + diff --git a/client/docs/GetModerator200Response.md b/client/docs/GetModerator200Response.md new file mode 100644 index 0000000..42c9e49 --- /dev/null +++ b/client/docs/GetModerator200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetModerator200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **moderator** | [**Moderator**](Moderator.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetModerator200Response.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/GetModeratorResponse.md b/client/docs/GetModeratorResponse.md new file mode 100644 index 0000000..3efab25 --- /dev/null +++ b/client/docs/GetModeratorResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::GetModeratorResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **moderator** | [**Moderator**](Moderator.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetModeratorResponse.new( + status: null, + moderator: null +) +``` + diff --git a/client/docs/GetModerators200Response.md b/client/docs/GetModerators200Response.md new file mode 100644 index 0000000..8197b16 --- /dev/null +++ b/client/docs/GetModerators200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetModerators200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **moderators** | [**Array<Moderator>**](Moderator.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetModerators200Response.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/GetModeratorsResponse.md b/client/docs/GetModeratorsResponse.md new file mode 100644 index 0000000..0409e50 --- /dev/null +++ b/client/docs/GetModeratorsResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::GetModeratorsResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **moderators** | [**Array<Moderator>**](Moderator.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetModeratorsResponse.new( + status: null, + moderators: null +) +``` + diff --git a/client/docs/GetNotificationCount200Response.md b/client/docs/GetNotificationCount200Response.md new file mode 100644 index 0000000..47bef8e --- /dev/null +++ b/client/docs/GetNotificationCount200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetNotificationCount200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **count** | **Float** | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetNotificationCount200Response.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/GetNotificationCountResponse.md b/client/docs/GetNotificationCountResponse.md new file mode 100644 index 0000000..95647c5 --- /dev/null +++ b/client/docs/GetNotificationCountResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::GetNotificationCountResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **count** | **Float** | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetNotificationCountResponse.new( + status: null, + count: null +) +``` + diff --git a/client/docs/GetNotifications200Response.md b/client/docs/GetNotifications200Response.md new file mode 100644 index 0000000..2666833 --- /dev/null +++ b/client/docs/GetNotifications200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetNotifications200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **notifications** | [**Array<UserNotification>**](UserNotification.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetNotifications200Response.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/GetNotificationsResponse.md b/client/docs/GetNotificationsResponse.md new file mode 100644 index 0000000..7bb02fc --- /dev/null +++ b/client/docs/GetNotificationsResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::GetNotificationsResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **notifications** | [**Array<UserNotification>**](UserNotification.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetNotificationsResponse.new( + status: null, + notifications: null +) +``` + diff --git a/client/docs/GetPendingWebhookEventCount200Response.md b/client/docs/GetPendingWebhookEventCount200Response.md new file mode 100644 index 0000000..93ed11b --- /dev/null +++ b/client/docs/GetPendingWebhookEventCount200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetPendingWebhookEventCount200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **count** | **Float** | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetPendingWebhookEventCount200Response.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/GetPendingWebhookEventCountResponse.md b/client/docs/GetPendingWebhookEventCountResponse.md new file mode 100644 index 0000000..10eccfb --- /dev/null +++ b/client/docs/GetPendingWebhookEventCountResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::GetPendingWebhookEventCountResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **count** | **Float** | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetPendingWebhookEventCountResponse.new( + status: null, + count: null +) +``` + diff --git a/client/docs/GetPendingWebhookEvents200Response.md b/client/docs/GetPendingWebhookEvents200Response.md new file mode 100644 index 0000000..e989233 --- /dev/null +++ b/client/docs/GetPendingWebhookEvents200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetPendingWebhookEvents200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **pending_webhook_events** | [**Array<PendingCommentToSyncOutbound>**](PendingCommentToSyncOutbound.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetPendingWebhookEvents200Response.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/GetPendingWebhookEventsResponse.md b/client/docs/GetPendingWebhookEventsResponse.md new file mode 100644 index 0000000..6630195 --- /dev/null +++ b/client/docs/GetPendingWebhookEventsResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::GetPendingWebhookEventsResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **pending_webhook_events** | [**Array<PendingCommentToSyncOutbound>**](PendingCommentToSyncOutbound.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetPendingWebhookEventsResponse.new( + status: null, + pending_webhook_events: null +) +``` + diff --git a/client/docs/GetQuestionConfig200Response.md b/client/docs/GetQuestionConfig200Response.md new file mode 100644 index 0000000..b480245 --- /dev/null +++ b/client/docs/GetQuestionConfig200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetQuestionConfig200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **question_config** | [**QuestionConfig**](QuestionConfig.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetQuestionConfig200Response.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/GetQuestionConfigResponse.md b/client/docs/GetQuestionConfigResponse.md new file mode 100644 index 0000000..679b909 --- /dev/null +++ b/client/docs/GetQuestionConfigResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::GetQuestionConfigResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **question_config** | [**QuestionConfig**](QuestionConfig.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetQuestionConfigResponse.new( + status: null, + question_config: null +) +``` + diff --git a/client/docs/GetQuestionConfigs200Response.md b/client/docs/GetQuestionConfigs200Response.md new file mode 100644 index 0000000..12911fb --- /dev/null +++ b/client/docs/GetQuestionConfigs200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetQuestionConfigs200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **question_configs** | [**Array<QuestionConfig>**](QuestionConfig.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetQuestionConfigs200Response.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/GetQuestionConfigsResponse.md b/client/docs/GetQuestionConfigsResponse.md new file mode 100644 index 0000000..2bb4252 --- /dev/null +++ b/client/docs/GetQuestionConfigsResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::GetQuestionConfigsResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **question_configs** | [**Array<QuestionConfig>**](QuestionConfig.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetQuestionConfigsResponse.new( + status: null, + question_configs: null +) +``` + diff --git a/client/docs/GetQuestionResult200Response.md b/client/docs/GetQuestionResult200Response.md new file mode 100644 index 0000000..136d7b2 --- /dev/null +++ b/client/docs/GetQuestionResult200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetQuestionResult200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **question_result** | [**QuestionResult**](QuestionResult.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetQuestionResult200Response.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/GetQuestionResultResponse.md b/client/docs/GetQuestionResultResponse.md new file mode 100644 index 0000000..37dfb36 --- /dev/null +++ b/client/docs/GetQuestionResultResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::GetQuestionResultResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **question_result** | [**QuestionResult**](QuestionResult.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetQuestionResultResponse.new( + status: null, + question_result: null +) +``` + diff --git a/client/docs/GetQuestionResults200Response.md b/client/docs/GetQuestionResults200Response.md new file mode 100644 index 0000000..c9ccbe5 --- /dev/null +++ b/client/docs/GetQuestionResults200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetQuestionResults200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **question_results** | [**Array<QuestionResult>**](QuestionResult.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetQuestionResults200Response.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/GetQuestionResultsResponse.md b/client/docs/GetQuestionResultsResponse.md new file mode 100644 index 0000000..64e61a1 --- /dev/null +++ b/client/docs/GetQuestionResultsResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::GetQuestionResultsResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **question_results** | [**Array<QuestionResult>**](QuestionResult.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetQuestionResultsResponse.new( + status: null, + question_results: null +) +``` + diff --git a/client/docs/GetTenant200Response.md b/client/docs/GetTenant200Response.md new file mode 100644 index 0000000..54b52b6 --- /dev/null +++ b/client/docs/GetTenant200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetTenant200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenant** | [**APITenant**](APITenant.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetTenant200Response.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/GetTenantDailyUsages200Response.md b/client/docs/GetTenantDailyUsages200Response.md new file mode 100644 index 0000000..db19223 --- /dev/null +++ b/client/docs/GetTenantDailyUsages200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetTenantDailyUsages200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenant_daily_usages** | [**Array<APITenantDailyUsage>**](APITenantDailyUsage.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetTenantDailyUsages200Response.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/GetTenantDailyUsagesResponse.md b/client/docs/GetTenantDailyUsagesResponse.md new file mode 100644 index 0000000..8741fb3 --- /dev/null +++ b/client/docs/GetTenantDailyUsagesResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::GetTenantDailyUsagesResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenant_daily_usages** | [**Array<APITenantDailyUsage>**](APITenantDailyUsage.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetTenantDailyUsagesResponse.new( + status: null, + tenant_daily_usages: null +) +``` + diff --git a/client/docs/GetTenantPackage200Response.md b/client/docs/GetTenantPackage200Response.md new file mode 100644 index 0000000..3bf5892 --- /dev/null +++ b/client/docs/GetTenantPackage200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetTenantPackage200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenant_package** | [**TenantPackage**](TenantPackage.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetTenantPackage200Response.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/GetTenantPackageResponse.md b/client/docs/GetTenantPackageResponse.md new file mode 100644 index 0000000..ea63e56 --- /dev/null +++ b/client/docs/GetTenantPackageResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::GetTenantPackageResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenant_package** | [**TenantPackage**](TenantPackage.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetTenantPackageResponse.new( + status: null, + tenant_package: null +) +``` + diff --git a/client/docs/GetTenantPackages200Response.md b/client/docs/GetTenantPackages200Response.md new file mode 100644 index 0000000..cc7baf5 --- /dev/null +++ b/client/docs/GetTenantPackages200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetTenantPackages200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenant_packages** | [**Array<TenantPackage>**](TenantPackage.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetTenantPackages200Response.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/GetTenantPackagesResponse.md b/client/docs/GetTenantPackagesResponse.md new file mode 100644 index 0000000..7178ea8 --- /dev/null +++ b/client/docs/GetTenantPackagesResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::GetTenantPackagesResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenant_packages** | [**Array<TenantPackage>**](TenantPackage.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetTenantPackagesResponse.new( + status: null, + tenant_packages: null +) +``` + diff --git a/client/docs/GetTenantResponse.md b/client/docs/GetTenantResponse.md new file mode 100644 index 0000000..8790636 --- /dev/null +++ b/client/docs/GetTenantResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::GetTenantResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenant** | [**APITenant**](APITenant.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetTenantResponse.new( + status: null, + tenant: null +) +``` + diff --git a/client/docs/GetTenantUser200Response.md b/client/docs/GetTenantUser200Response.md new file mode 100644 index 0000000..5c0dc63 --- /dev/null +++ b/client/docs/GetTenantUser200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetTenantUser200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenant_user** | [**User**](User.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetTenantUser200Response.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/GetTenantUserResponse.md b/client/docs/GetTenantUserResponse.md new file mode 100644 index 0000000..b06ba4c --- /dev/null +++ b/client/docs/GetTenantUserResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::GetTenantUserResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenant_user** | [**User**](User.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetTenantUserResponse.new( + status: null, + tenant_user: null +) +``` + diff --git a/client/docs/GetTenantUsers200Response.md b/client/docs/GetTenantUsers200Response.md new file mode 100644 index 0000000..65ecf2c --- /dev/null +++ b/client/docs/GetTenantUsers200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetTenantUsers200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenant_users** | [**Array<User>**](User.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetTenantUsers200Response.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/GetTenantUsersResponse.md b/client/docs/GetTenantUsersResponse.md new file mode 100644 index 0000000..117dfe4 --- /dev/null +++ b/client/docs/GetTenantUsersResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::GetTenantUsersResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenant_users** | [**Array<User>**](User.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetTenantUsersResponse.new( + status: null, + tenant_users: null +) +``` + diff --git a/client/docs/GetTenants200Response.md b/client/docs/GetTenants200Response.md new file mode 100644 index 0000000..7737858 --- /dev/null +++ b/client/docs/GetTenants200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetTenants200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenants** | [**Array<APITenant>**](APITenant.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetTenants200Response.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/GetTenantsResponse.md b/client/docs/GetTenantsResponse.md new file mode 100644 index 0000000..9253fe0 --- /dev/null +++ b/client/docs/GetTenantsResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::GetTenantsResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **tenants** | [**Array<APITenant>**](APITenant.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetTenantsResponse.new( + status: null, + tenants: null +) +``` + diff --git a/client/docs/GetUser200Response.md b/client/docs/GetUser200Response.md new file mode 100644 index 0000000..7e1867e --- /dev/null +++ b/client/docs/GetUser200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::GetUser200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **user** | [**User**](User.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetUser200Response.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/GetUserResponse.md b/client/docs/GetUserResponse.md new file mode 100644 index 0000000..638adfd --- /dev/null +++ b/client/docs/GetUserResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::GetUserResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **user** | [**User**](User.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetUserResponse.new( + status: null, + user: null +) +``` + diff --git a/client/docs/GetVotes200Response.md b/client/docs/GetVotes200Response.md new file mode 100644 index 0000000..ec3d5c1 --- /dev/null +++ b/client/docs/GetVotes200Response.md @@ -0,0 +1,38 @@ +# FastCommentsClient::GetVotes200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **applied_authorized_votes** | [**Array<PublicVote>**](PublicVote.md) | | | +| **applied_anonymous_votes** | [**Array<PublicVote>**](PublicVote.md) | | | +| **pending_votes** | [**Array<PublicVote>**](PublicVote.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetVotes200Response.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/GetVotesForUser200Response.md b/client/docs/GetVotesForUser200Response.md new file mode 100644 index 0000000..23bc2ed --- /dev/null +++ b/client/docs/GetVotesForUser200Response.md @@ -0,0 +1,38 @@ +# FastCommentsClient::GetVotesForUser200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **applied_authorized_votes** | [**Array<PublicVote>**](PublicVote.md) | | | +| **applied_anonymous_votes** | [**Array<PublicVote>**](PublicVote.md) | | | +| **pending_votes** | [**Array<PublicVote>**](PublicVote.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetVotesForUser200Response.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/GetVotesForUserResponse.md b/client/docs/GetVotesForUserResponse.md new file mode 100644 index 0000000..fcb4359 --- /dev/null +++ b/client/docs/GetVotesForUserResponse.md @@ -0,0 +1,24 @@ +# FastCommentsClient::GetVotesForUserResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **applied_authorized_votes** | [**Array<PublicVote>**](PublicVote.md) | | | +| **applied_anonymous_votes** | [**Array<PublicVote>**](PublicVote.md) | | | +| **pending_votes** | [**Array<PublicVote>**](PublicVote.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetVotesForUserResponse.new( + status: null, + applied_authorized_votes: null, + applied_anonymous_votes: null, + pending_votes: null +) +``` + diff --git a/client/docs/GetVotesResponse.md b/client/docs/GetVotesResponse.md new file mode 100644 index 0000000..a90c17c --- /dev/null +++ b/client/docs/GetVotesResponse.md @@ -0,0 +1,24 @@ +# FastCommentsClient::GetVotesResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **applied_authorized_votes** | [**Array<PublicVote>**](PublicVote.md) | | | +| **applied_anonymous_votes** | [**Array<PublicVote>**](PublicVote.md) | | | +| **pending_votes** | [**Array<PublicVote>**](PublicVote.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::GetVotesResponse.new( + status: null, + applied_authorized_votes: null, + applied_anonymous_votes: null, + pending_votes: null +) +``` + diff --git a/client/docs/ImportedSiteType.md b/client/docs/ImportedSiteType.md new file mode 100644 index 0000000..53ef21d --- /dev/null +++ b/client/docs/ImportedSiteType.md @@ -0,0 +1,15 @@ +# FastCommentsClient::ImportedSiteType + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::ImportedSiteType.new() +``` + diff --git a/client/docs/Moderator.md b/client/docs/Moderator.md new file mode 100644 index 0000000..e9a1d40 --- /dev/null +++ b/client/docs/Moderator.md @@ -0,0 +1,52 @@ +# FastCommentsClient::Moderator + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **_id** | **String** | | | +| **tenant_id** | **String** | | | +| **name** | **String** | | | +| **user_id** | **String** | | | +| **accepted_invite** | **Boolean** | | | +| **email** | **String** | | | +| **mark_reviewed_count** | **Float** | | | +| **deleted_count** | **Float** | | | +| **marked_spam_count** | **Float** | | | +| **marked_not_spam_count** | **Float** | | | +| **approved_count** | **Float** | | | +| **un_approved_count** | **Float** | | | +| **edited_count** | **Float** | | | +| **banned_count** | **Float** | | | +| **un_flagged_count** | **Float** | | | +| **verification_id** | **String** | | | +| **created_at** | **Time** | | | +| **moderation_group_ids** | **Array<String>** | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::Moderator.new( + _id: null, + tenant_id: null, + name: null, + user_id: null, + accepted_invite: null, + email: null, + mark_reviewed_count: null, + deleted_count: null, + marked_spam_count: null, + marked_not_spam_count: null, + approved_count: null, + un_approved_count: null, + edited_count: null, + banned_count: null, + un_flagged_count: null, + verification_id: null, + created_at: null, + moderation_group_ids: null +) +``` + diff --git a/client/docs/PatchHashTag200Response.md b/client/docs/PatchHashTag200Response.md new file mode 100644 index 0000000..98fbecf --- /dev/null +++ b/client/docs/PatchHashTag200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::PatchHashTag200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **hash_tag** | [**TenantHashTag**](TenantHashTag.md) | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::PatchHashTag200Response.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/PendingCommentToSyncOutbound.md b/client/docs/PendingCommentToSyncOutbound.md new file mode 100644 index 0000000..50820ef --- /dev/null +++ b/client/docs/PendingCommentToSyncOutbound.md @@ -0,0 +1,42 @@ +# FastCommentsClient::PendingCommentToSyncOutbound + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **_id** | **String** | | | +| **comment_id** | **String** | | | +| **comment** | [**FComment**](FComment.md) | | [optional] | +| **external_id** | **String** | | | +| **created_at** | **Time** | | | +| **tenant_id** | **String** | | | +| **attempt_count** | **Float** | | | +| **next_attempt_at** | **Time** | | | +| **event_type** | **Float** | | | +| **type** | **Float** | | | +| **domain** | **String** | | | +| **last_error** | **Object** | | | +| **webhook_id** | **String** | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::PendingCommentToSyncOutbound.new( + _id: null, + comment_id: null, + comment: null, + external_id: null, + created_at: null, + tenant_id: null, + attempt_count: null, + next_attempt_at: null, + event_type: null, + type: null, + domain: null, + last_error: null, + webhook_id: null +) +``` + diff --git a/client/docs/PublicApi.md b/client/docs/PublicApi.md index 81b2e2d..9b8a790 100644 --- a/client/docs/PublicApi.md +++ b/client/docs/PublicApi.md @@ -1801,7 +1801,7 @@ No authorization required ## search_users -> search_users(tenant_id, url_id, username_starts_with, opts) +> search_users(tenant_id, url_id, opts) @@ -1814,15 +1814,15 @@ require 'fastcomments-client' api_instance = FastCommentsClient::PublicApi.new tenant_id = 'tenant_id_example' # String | url_id = 'url_id_example' # String | -username_starts_with = 'username_starts_with_example' # String | opts = { + username_starts_with: 'username_starts_with_example', # String | mention_group_ids: ['inner_example'], # Array | sso: 'sso_example' # String | } begin - result = api_instance.search_users(tenant_id, url_id, username_starts_with, 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}" @@ -1833,12 +1833,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, username_starts_with, 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(tenant_id, url_id, username_starts_with, 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 # => @@ -1853,7 +1853,7 @@ end | ---- | ---- | ----------- | ----- | | **tenant_id** | **String** | | | | **url_id** | **String** | | | -| **username_starts_with** | **String** | | | +| **username_starts_with** | **String** | | [optional] | | **mention_group_ids** | [**Array<String>**](String.md) | | [optional] | | **sso** | **String** | | [optional] | diff --git a/client/docs/PublicVote.md b/client/docs/PublicVote.md new file mode 100644 index 0000000..e11a9e0 --- /dev/null +++ b/client/docs/PublicVote.md @@ -0,0 +1,28 @@ +# FastCommentsClient::PublicVote + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **id** | **String** | | | +| **url_id** | **String** | | | +| **comment_id** | **String** | | | +| **user_id** | **String** | | | +| **direction** | **String** | | | +| **created_at** | **Time** | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::PublicVote.new( + id: null, + url_id: null, + comment_id: null, + user_id: null, + direction: null, + created_at: null +) +``` + diff --git a/client/docs/QuestionConfig.md b/client/docs/QuestionConfig.md new file mode 100644 index 0000000..5dc6f5f --- /dev/null +++ b/client/docs/QuestionConfig.md @@ -0,0 +1,58 @@ +# FastCommentsClient::QuestionConfig + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **_id** | **String** | | | +| **tenant_id** | **String** | | | +| **name** | **String** | | | +| **question** | **String** | | | +| **summary_label** | **String** | | [optional] | +| **help_text** | **String** | | | +| **created_at** | **Time** | | | +| **created_by** | **String** | | | +| **used_count** | **Float** | | | +| **last_used** | **Time** | | | +| **type** | **String** | | | +| **num_stars** | **Float** | | | +| **min** | **Float** | | | +| **max** | **Float** | | | +| **default_value** | **Float** | | | +| **label_negative** | **String** | | | +| **label_positive** | **String** | | | +| **custom_options** | [**Array<QuestionConfigCustomOptionsInner>**](QuestionConfigCustomOptionsInner.md) | | | +| **sub_question_ids** | **Array<String>** | | | +| **always_show_sub_questions** | **Boolean** | | | +| **reporting_order** | **Float** | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::QuestionConfig.new( + _id: null, + tenant_id: null, + name: null, + question: null, + summary_label: null, + help_text: null, + created_at: null, + created_by: null, + used_count: null, + last_used: null, + type: null, + num_stars: null, + min: null, + max: null, + default_value: null, + label_negative: null, + label_positive: null, + custom_options: null, + sub_question_ids: null, + always_show_sub_questions: null, + reporting_order: null +) +``` + diff --git a/client/docs/QuestionConfigCustomOptionsInner.md b/client/docs/QuestionConfigCustomOptionsInner.md new file mode 100644 index 0000000..56879f2 --- /dev/null +++ b/client/docs/QuestionConfigCustomOptionsInner.md @@ -0,0 +1,20 @@ +# FastCommentsClient::QuestionConfigCustomOptionsInner + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **image_src** | **String** | | | +| **name** | **String** | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::QuestionConfigCustomOptionsInner.new( + image_src: null, + name: null +) +``` + diff --git a/client/docs/RenderEmailTemplate200Response.md b/client/docs/RenderEmailTemplate200Response.md new file mode 100644 index 0000000..b244cdc --- /dev/null +++ b/client/docs/RenderEmailTemplate200Response.md @@ -0,0 +1,34 @@ +# FastCommentsClient::RenderEmailTemplate200Response + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **html** | **String** | | | +| **reason** | **String** | | | +| **code** | **String** | | | +| **secondary_code** | **String** | | [optional] | +| **banned_until** | **Integer** | | [optional] | +| **max_character_length** | **Integer** | | [optional] | +| **translated_error** | **String** | | [optional] | +| **custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::RenderEmailTemplate200Response.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/RenderEmailTemplateBody.md b/client/docs/RenderEmailTemplateBody.md new file mode 100644 index 0000000..467a539 --- /dev/null +++ b/client/docs/RenderEmailTemplateBody.md @@ -0,0 +1,24 @@ +# FastCommentsClient::RenderEmailTemplateBody + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **email_template_id** | **String** | | | +| **ejs** | **String** | | | +| **test_data** | **Hash<String, Object>** | Construct a type with a set of properties K of type T | [optional] | +| **translation_overrides_by_locale** | **Hash<String, Hash>** | Construct a type with a set of properties K of type T | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::RenderEmailTemplateBody.new( + email_template_id: null, + ejs: null, + test_data: null, + translation_overrides_by_locale: null +) +``` + diff --git a/client/docs/RenderEmailTemplateResponse.md b/client/docs/RenderEmailTemplateResponse.md new file mode 100644 index 0000000..9afc722 --- /dev/null +++ b/client/docs/RenderEmailTemplateResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::RenderEmailTemplateResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **html** | **String** | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::RenderEmailTemplateResponse.new( + status: null, + html: null +) +``` + diff --git a/client/docs/ReplaceTenantPackageBody.md b/client/docs/ReplaceTenantPackageBody.md new file mode 100644 index 0000000..47a01ac --- /dev/null +++ b/client/docs/ReplaceTenantPackageBody.md @@ -0,0 +1,76 @@ +# FastCommentsClient::ReplaceTenantPackageBody + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **name** | **String** | | | +| **monthly_cost_usd** | **Float** | | | +| **yearly_cost_usd** | **Float** | | | +| **max_monthly_page_loads** | **Float** | | | +| **max_monthly_api_credits** | **Float** | | | +| **max_monthly_comments** | **Float** | | | +| **max_concurrent_users** | **Float** | | | +| **max_tenant_users** | **Float** | | | +| **max_sso_users** | **Float** | | | +| **max_moderators** | **Float** | | | +| **max_domains** | **Float** | | | +| **has_debranding** | **Boolean** | | | +| **for_who_text** | **String** | | | +| **feature_taglines** | **Array<String>** | | | +| **has_flex_pricing** | **Boolean** | | | +| **flex_page_load_cost_cents** | **Float** | | [optional] | +| **flex_page_load_unit** | **Float** | | [optional] | +| **flex_comment_cost_cents** | **Float** | | [optional] | +| **flex_comment_unit** | **Float** | | [optional] | +| **flex_sso_user_cost_cents** | **Float** | | [optional] | +| **flex_sso_user_unit** | **Float** | | [optional] | +| **flex_api_credit_cost_cents** | **Float** | | [optional] | +| **flex_api_credit_unit** | **Float** | | [optional] | +| **flex_moderator_cost_cents** | **Float** | | [optional] | +| **flex_moderator_unit** | **Float** | | [optional] | +| **flex_admin_cost_cents** | **Float** | | [optional] | +| **flex_admin_unit** | **Float** | | [optional] | +| **flex_domain_cost_cents** | **Float** | | [optional] | +| **flex_domain_unit** | **Float** | | [optional] | +| **flex_minimum_cost_cents** | **Float** | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::ReplaceTenantPackageBody.new( + name: null, + monthly_cost_usd: null, + yearly_cost_usd: null, + max_monthly_page_loads: null, + max_monthly_api_credits: null, + max_monthly_comments: null, + max_concurrent_users: null, + max_tenant_users: null, + max_sso_users: null, + max_moderators: null, + max_domains: null, + has_debranding: null, + for_who_text: null, + feature_taglines: null, + has_flex_pricing: null, + flex_page_load_cost_cents: null, + flex_page_load_unit: null, + flex_comment_cost_cents: null, + flex_comment_unit: null, + flex_sso_user_cost_cents: null, + flex_sso_user_unit: null, + flex_api_credit_cost_cents: null, + flex_api_credit_unit: null, + flex_moderator_cost_cents: null, + flex_moderator_unit: null, + flex_admin_cost_cents: null, + flex_admin_unit: null, + flex_domain_cost_cents: null, + flex_domain_unit: null, + flex_minimum_cost_cents: null +) +``` + diff --git a/client/docs/ReplaceTenantUserBody.md b/client/docs/ReplaceTenantUserBody.md new file mode 100644 index 0000000..1601c5b --- /dev/null +++ b/client/docs/ReplaceTenantUserBody.md @@ -0,0 +1,72 @@ +# FastCommentsClient::ReplaceTenantUserBody + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **username** | **String** | | | +| **email** | **String** | | | +| **display_name** | **String** | | [optional] | +| **website_url** | **String** | | [optional] | +| **sign_up_date** | **Float** | | [optional] | +| **locale** | **String** | | [optional] | +| **verified** | **Boolean** | | [optional] | +| **login_count** | **Float** | | [optional] | +| **opted_in_notifications** | **Boolean** | | [optional] | +| **opted_in_tenant_notifications** | **Boolean** | | [optional] | +| **hide_account_code** | **Boolean** | | [optional] | +| **avatar_src** | **String** | | [optional] | +| **is_help_request_admin** | **Boolean** | | [optional] | +| **is_account_owner** | **Boolean** | | [optional] | +| **is_admin_admin** | **Boolean** | | [optional] | +| **is_billing_admin** | **Boolean** | | [optional] | +| **is_analytics_admin** | **Boolean** | | [optional] | +| **is_customization_admin** | **Boolean** | | [optional] | +| **is_manage_data_admin** | **Boolean** | | [optional] | +| **is_comment_moderator_admin** | **Boolean** | | [optional] | +| **is_api_admin** | **Boolean** | | [optional] | +| **moderator_ids** | **Array<String>** | | [optional] | +| **digest_email_frequency** | **Float** | | [optional] | +| **display_label** | **String** | | [optional] | +| **created_from_url_id** | **String** | | [optional] | +| **created_from_tenant_id** | **String** | | [optional] | +| **last_login_date** | **Float** | | [optional] | +| **karma** | **Float** | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::ReplaceTenantUserBody.new( + username: null, + email: null, + display_name: null, + website_url: null, + sign_up_date: null, + locale: null, + verified: null, + login_count: null, + opted_in_notifications: null, + opted_in_tenant_notifications: null, + hide_account_code: null, + avatar_src: null, + is_help_request_admin: null, + is_account_owner: null, + is_admin_admin: null, + is_billing_admin: null, + is_analytics_admin: null, + is_customization_admin: null, + is_manage_data_admin: null, + is_comment_moderator_admin: null, + is_api_admin: null, + moderator_ids: null, + digest_email_frequency: null, + display_label: null, + created_from_url_id: null, + created_from_tenant_id: null, + last_login_date: null, + karma: null +) +``` + diff --git a/client/docs/TenantHashTag.md b/client/docs/TenantHashTag.md new file mode 100644 index 0000000..0d960dc --- /dev/null +++ b/client/docs/TenantHashTag.md @@ -0,0 +1,26 @@ +# FastCommentsClient::TenantHashTag + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **_id** | **String** | | | +| **created_at** | **Time** | | | +| **tenant_id** | **String** | | | +| **tag** | **String** | | | +| **url** | **String** | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::TenantHashTag.new( + _id: null, + created_at: null, + tenant_id: null, + tag: null, + url: null +) +``` + diff --git a/client/docs/TenantPackage.md b/client/docs/TenantPackage.md new file mode 100644 index 0000000..6d1e4df --- /dev/null +++ b/client/docs/TenantPackage.md @@ -0,0 +1,120 @@ +# FastCommentsClient::TenantPackage + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **_id** | **String** | | | +| **name** | **String** | | | +| **tenant_id** | **String** | | | +| **created_at** | **Time** | | | +| **monthly_cost_usd** | **Float** | | | +| **yearly_cost_usd** | **Float** | | | +| **monthly_stripe_plan_id** | **String** | | | +| **yearly_stripe_plan_id** | **String** | | | +| **max_monthly_page_loads** | **Float** | | | +| **max_monthly_api_credits** | **Float** | | | +| **max_monthly_small_widgets_credits** | **Float** | | | +| **max_monthly_comments** | **Float** | | | +| **max_concurrent_users** | **Float** | | | +| **max_tenant_users** | **Float** | | | +| **max_sso_users** | **Float** | | | +| **max_moderators** | **Float** | | | +| **max_domains** | **Float** | | | +| **max_white_labeled_tenants** | **Float** | | | +| **max_monthly_event_log_requests** | **Float** | | | +| **has_white_labeling** | **Boolean** | | | +| **has_debranding** | **Boolean** | | | +| **has_llm_spam_detection** | **Boolean** | | | +| **for_who_text** | **String** | | | +| **feature_taglines** | **Array<String>** | | | +| **has_auditing** | **Boolean** | | | +| **has_flex_pricing** | **Boolean** | | | +| **enable_saml** | **Boolean** | | [optional] | +| **flex_page_load_cost_cents** | **Float** | | [optional] | +| **flex_page_load_unit** | **Float** | | [optional] | +| **flex_comment_cost_cents** | **Float** | | [optional] | +| **flex_comment_unit** | **Float** | | [optional] | +| **flex_sso_user_cost_cents** | **Float** | | [optional] | +| **flex_sso_user_unit** | **Float** | | [optional] | +| **flex_api_credit_cost_cents** | **Float** | | [optional] | +| **flex_api_credit_unit** | **Float** | | [optional] | +| **flex_small_widgets_credit_cost_cents** | **Float** | | [optional] | +| **flex_small_widgets_credit_unit** | **Float** | | [optional] | +| **flex_moderator_cost_cents** | **Float** | | [optional] | +| **flex_moderator_unit** | **Float** | | [optional] | +| **flex_admin_cost_cents** | **Float** | | [optional] | +| **flex_admin_unit** | **Float** | | [optional] | +| **flex_domain_cost_cents** | **Float** | | [optional] | +| **flex_domain_unit** | **Float** | | [optional] | +| **flex_chat_gpt_cost_cents** | **Float** | | [optional] | +| **flex_chat_gpt_unit** | **Float** | | [optional] | +| **flex_minimum_cost_cents** | **Float** | | [optional] | +| **flex_managed_tenant_cost_cents** | **Float** | | [optional] | +| **flex_sso_admin_cost_cents** | **Float** | | [optional] | +| **flex_sso_admin_unit** | **Float** | | [optional] | +| **flex_sso_moderator_cost_cents** | **Float** | | [optional] | +| **flex_sso_moderator_unit** | **Float** | | [optional] | +| **is_sso_billing_monthly_active_users** | **Boolean** | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::TenantPackage.new( + _id: null, + name: null, + tenant_id: null, + created_at: null, + monthly_cost_usd: null, + yearly_cost_usd: null, + monthly_stripe_plan_id: null, + yearly_stripe_plan_id: null, + max_monthly_page_loads: null, + max_monthly_api_credits: null, + max_monthly_small_widgets_credits: null, + max_monthly_comments: null, + max_concurrent_users: null, + max_tenant_users: null, + max_sso_users: null, + max_moderators: null, + max_domains: null, + max_white_labeled_tenants: null, + max_monthly_event_log_requests: null, + has_white_labeling: null, + has_debranding: null, + has_llm_spam_detection: null, + for_who_text: null, + feature_taglines: null, + has_auditing: null, + has_flex_pricing: null, + enable_saml: null, + flex_page_load_cost_cents: null, + flex_page_load_unit: null, + flex_comment_cost_cents: null, + flex_comment_unit: null, + flex_sso_user_cost_cents: null, + flex_sso_user_unit: null, + flex_api_credit_cost_cents: null, + flex_api_credit_unit: null, + flex_small_widgets_credit_cost_cents: null, + flex_small_widgets_credit_unit: null, + flex_moderator_cost_cents: null, + flex_moderator_unit: null, + flex_admin_cost_cents: null, + flex_admin_unit: null, + flex_domain_cost_cents: null, + flex_domain_unit: null, + flex_chat_gpt_cost_cents: null, + flex_chat_gpt_unit: null, + flex_minimum_cost_cents: null, + flex_managed_tenant_cost_cents: null, + flex_sso_admin_cost_cents: null, + flex_sso_admin_unit: null, + flex_sso_moderator_cost_cents: null, + flex_sso_moderator_unit: null, + is_sso_billing_monthly_active_users: null +) +``` + diff --git a/client/docs/UpdateEmailTemplateBody.md b/client/docs/UpdateEmailTemplateBody.md new file mode 100644 index 0000000..45ba2ff --- /dev/null +++ b/client/docs/UpdateEmailTemplateBody.md @@ -0,0 +1,28 @@ +# FastCommentsClient::UpdateEmailTemplateBody + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **email_template_id** | **String** | | [optional] | +| **display_name** | **String** | | [optional] | +| **ejs** | **String** | | [optional] | +| **domain** | **String** | | [optional] | +| **translation_overrides_by_locale** | **Hash<String, Hash>** | Construct a type with a set of properties K of type T | [optional] | +| **test_data** | **Hash<String, Object>** | Construct a type with a set of properties K of type T | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UpdateEmailTemplateBody.new( + email_template_id: null, + display_name: null, + ejs: null, + domain: null, + translation_overrides_by_locale: null, + test_data: null +) +``` + diff --git a/client/docs/UpdateHashTagBody.md b/client/docs/UpdateHashTagBody.md new file mode 100644 index 0000000..794e466 --- /dev/null +++ b/client/docs/UpdateHashTagBody.md @@ -0,0 +1,22 @@ +# FastCommentsClient::UpdateHashTagBody + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | [optional] | +| **url** | **String** | | [optional] | +| **tag** | **String** | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UpdateHashTagBody.new( + tenant_id: null, + url: null, + tag: null +) +``` + diff --git a/client/docs/UpdateHashTagResponse.md b/client/docs/UpdateHashTagResponse.md new file mode 100644 index 0000000..d35f341 --- /dev/null +++ b/client/docs/UpdateHashTagResponse.md @@ -0,0 +1,20 @@ +# FastCommentsClient::UpdateHashTagResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **status** | [**APIStatus**](APIStatus.md) | | | +| **hash_tag** | [**TenantHashTag**](TenantHashTag.md) | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UpdateHashTagResponse.new( + status: null, + hash_tag: null +) +``` + diff --git a/client/docs/UpdateModeratorBody.md b/client/docs/UpdateModeratorBody.md new file mode 100644 index 0000000..78bda81 --- /dev/null +++ b/client/docs/UpdateModeratorBody.md @@ -0,0 +1,24 @@ +# FastCommentsClient::UpdateModeratorBody + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **name** | **String** | | [optional] | +| **email** | **String** | | [optional] | +| **user_id** | **String** | | [optional] | +| **moderation_group_ids** | **Array<String>** | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UpdateModeratorBody.new( + name: null, + email: null, + user_id: null, + moderation_group_ids: null +) +``` + diff --git a/client/docs/UpdateNotificationBody.md b/client/docs/UpdateNotificationBody.md new file mode 100644 index 0000000..e772922 --- /dev/null +++ b/client/docs/UpdateNotificationBody.md @@ -0,0 +1,20 @@ +# FastCommentsClient::UpdateNotificationBody + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **viewed** | **Boolean** | | [optional] | +| **opted_out** | **Boolean** | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UpdateNotificationBody.new( + viewed: null, + opted_out: null +) +``` + diff --git a/client/docs/UpdateQuestionConfigBody.md b/client/docs/UpdateQuestionConfigBody.md new file mode 100644 index 0000000..9dbfdd1 --- /dev/null +++ b/client/docs/UpdateQuestionConfigBody.md @@ -0,0 +1,44 @@ +# FastCommentsClient::UpdateQuestionConfigBody + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **name** | **String** | | [optional] | +| **question** | **String** | | [optional] | +| **help_text** | **String** | | [optional] | +| **type** | **String** | | [optional] | +| **num_stars** | **Float** | | [optional] | +| **min** | **Float** | | [optional] | +| **max** | **Float** | | [optional] | +| **default_value** | **Float** | | [optional] | +| **label_negative** | **String** | | [optional] | +| **label_positive** | **String** | | [optional] | +| **custom_options** | [**Array<QuestionConfigCustomOptionsInner>**](QuestionConfigCustomOptionsInner.md) | | [optional] | +| **sub_question_ids** | **Array<String>** | | [optional] | +| **always_show_sub_questions** | **Boolean** | | [optional] | +| **reporting_order** | **Float** | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UpdateQuestionConfigBody.new( + name: null, + question: null, + help_text: null, + type: null, + num_stars: null, + min: null, + max: null, + default_value: null, + label_negative: null, + label_positive: null, + custom_options: null, + sub_question_ids: null, + always_show_sub_questions: null, + reporting_order: null +) +``` + diff --git a/client/docs/UpdateQuestionResultBody.md b/client/docs/UpdateQuestionResultBody.md new file mode 100644 index 0000000..846f195 --- /dev/null +++ b/client/docs/UpdateQuestionResultBody.md @@ -0,0 +1,30 @@ +# FastCommentsClient::UpdateQuestionResultBody + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **url_id** | **String** | | [optional] | +| **anon_user_id** | **String** | | [optional] | +| **user_id** | **String** | | [optional] | +| **value** | **Float** | | [optional] | +| **comment_id** | **String** | | [optional] | +| **question_id** | **String** | | [optional] | +| **meta** | [**Array<MetaItem>**](MetaItem.md) | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UpdateQuestionResultBody.new( + url_id: null, + anon_user_id: null, + user_id: null, + value: null, + comment_id: null, + question_id: null, + meta: null +) +``` + diff --git a/client/docs/UpdateTenantBody.md b/client/docs/UpdateTenantBody.md new file mode 100644 index 0000000..c456f3b --- /dev/null +++ b/client/docs/UpdateTenantBody.md @@ -0,0 +1,64 @@ +# FastCommentsClient::UpdateTenantBody + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **name** | **String** | | [optional] | +| **email** | **String** | | [optional] | +| **sign_up_date** | **Float** | | [optional] | +| **package_id** | **String** | | [optional] | +| **payment_frequency** | **Float** | | [optional] | +| **billing_info_valid** | **Boolean** | | [optional] | +| **billing_handled_externally** | **Boolean** | | [optional] | +| **created_by** | **String** | | [optional] | +| **is_setup** | **Boolean** | | [optional] | +| **domain_configuration** | [**Array<APIDomainConfiguration>**](APIDomainConfiguration.md) | | [optional] | +| **billing_info** | [**BillingInfo**](BillingInfo.md) | | [optional] | +| **stripe_customer_id** | **String** | | [optional] | +| **stripe_subscription_id** | **String** | | [optional] | +| **stripe_plan_id** | **String** | | [optional] | +| **enable_profanity_filter** | **Boolean** | | [optional] | +| **enable_spam_filter** | **Boolean** | | [optional] | +| **remove_unverified_comments** | **Boolean** | | [optional] | +| **unverified_comments_tt_lms** | **Float** | | [optional] | +| **comments_require_approval** | **Boolean** | | [optional] | +| **auto_approve_comment_on_verification** | **Boolean** | | [optional] | +| **send_profane_to_spam** | **Boolean** | | [optional] | +| **de_anon_ip_addr** | **Float** | | [optional] | +| **meta** | **Hash<String, String>** | Construct a type with a set of properties K of type T | [optional] | +| **managed_by_tenant_id** | **String** | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UpdateTenantBody.new( + name: null, + email: null, + sign_up_date: null, + package_id: null, + payment_frequency: null, + billing_info_valid: null, + billing_handled_externally: null, + created_by: null, + is_setup: null, + domain_configuration: null, + billing_info: null, + stripe_customer_id: null, + stripe_subscription_id: null, + stripe_plan_id: null, + enable_profanity_filter: null, + enable_spam_filter: null, + remove_unverified_comments: null, + unverified_comments_tt_lms: null, + comments_require_approval: null, + auto_approve_comment_on_verification: null, + send_profane_to_spam: null, + de_anon_ip_addr: null, + meta: null, + managed_by_tenant_id: null +) +``` + diff --git a/client/docs/UpdateTenantPackageBody.md b/client/docs/UpdateTenantPackageBody.md new file mode 100644 index 0000000..7ec05ea --- /dev/null +++ b/client/docs/UpdateTenantPackageBody.md @@ -0,0 +1,78 @@ +# FastCommentsClient::UpdateTenantPackageBody + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **name** | **String** | | [optional] | +| **monthly_cost_usd** | **Float** | | [optional] | +| **yearly_cost_usd** | **Float** | | [optional] | +| **max_monthly_page_loads** | **Float** | | [optional] | +| **max_monthly_api_credits** | **Float** | | [optional] | +| **max_monthly_comments** | **Float** | | [optional] | +| **max_concurrent_users** | **Float** | | [optional] | +| **max_tenant_users** | **Float** | | [optional] | +| **max_sso_users** | **Float** | | [optional] | +| **max_moderators** | **Float** | | [optional] | +| **max_domains** | **Float** | | [optional] | +| **has_debranding** | **Boolean** | | [optional] | +| **has_white_labeling** | **Boolean** | | [optional] | +| **for_who_text** | **String** | | [optional] | +| **feature_taglines** | **Array<String>** | | [optional] | +| **has_flex_pricing** | **Boolean** | | [optional] | +| **flex_page_load_cost_cents** | **Float** | | [optional] | +| **flex_page_load_unit** | **Float** | | [optional] | +| **flex_comment_cost_cents** | **Float** | | [optional] | +| **flex_comment_unit** | **Float** | | [optional] | +| **flex_sso_user_cost_cents** | **Float** | | [optional] | +| **flex_sso_user_unit** | **Float** | | [optional] | +| **flex_api_credit_cost_cents** | **Float** | | [optional] | +| **flex_api_credit_unit** | **Float** | | [optional] | +| **flex_moderator_cost_cents** | **Float** | | [optional] | +| **flex_moderator_unit** | **Float** | | [optional] | +| **flex_admin_cost_cents** | **Float** | | [optional] | +| **flex_admin_unit** | **Float** | | [optional] | +| **flex_domain_cost_cents** | **Float** | | [optional] | +| **flex_domain_unit** | **Float** | | [optional] | +| **flex_minimum_cost_cents** | **Float** | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UpdateTenantPackageBody.new( + name: null, + monthly_cost_usd: null, + yearly_cost_usd: null, + max_monthly_page_loads: null, + max_monthly_api_credits: null, + max_monthly_comments: null, + max_concurrent_users: null, + max_tenant_users: null, + max_sso_users: null, + max_moderators: null, + max_domains: null, + has_debranding: null, + has_white_labeling: null, + for_who_text: null, + feature_taglines: null, + has_flex_pricing: null, + flex_page_load_cost_cents: null, + flex_page_load_unit: null, + flex_comment_cost_cents: null, + flex_comment_unit: null, + flex_sso_user_cost_cents: null, + flex_sso_user_unit: null, + flex_api_credit_cost_cents: null, + flex_api_credit_unit: null, + flex_moderator_cost_cents: null, + flex_moderator_unit: null, + flex_admin_cost_cents: null, + flex_admin_unit: null, + flex_domain_cost_cents: null, + flex_domain_unit: null, + flex_minimum_cost_cents: null +) +``` + diff --git a/client/docs/UpdateTenantUserBody.md b/client/docs/UpdateTenantUserBody.md new file mode 100644 index 0000000..9066d58 --- /dev/null +++ b/client/docs/UpdateTenantUserBody.md @@ -0,0 +1,64 @@ +# FastCommentsClient::UpdateTenantUserBody + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **username** | **String** | | [optional] | +| **display_name** | **String** | | [optional] | +| **website_url** | **String** | | [optional] | +| **email** | **String** | | [optional] | +| **sign_up_date** | **Float** | | [optional] | +| **verified** | **Boolean** | | [optional] | +| **login_count** | **Float** | | [optional] | +| **opted_in_notifications** | **Boolean** | | [optional] | +| **opted_in_tenant_notifications** | **Boolean** | | [optional] | +| **hide_account_code** | **Boolean** | | [optional] | +| **avatar_src** | **String** | | [optional] | +| **is_help_request_admin** | **Boolean** | | [optional] | +| **is_account_owner** | **Boolean** | | [optional] | +| **is_admin_admin** | **Boolean** | | [optional] | +| **is_billing_admin** | **Boolean** | | [optional] | +| **is_analytics_admin** | **Boolean** | | [optional] | +| **is_customization_admin** | **Boolean** | | [optional] | +| **is_manage_data_admin** | **Boolean** | | [optional] | +| **is_comment_moderator_admin** | **Boolean** | | [optional] | +| **is_api_admin** | **Boolean** | | [optional] | +| **moderator_ids** | **Array<String>** | | [optional] | +| **locale** | **String** | | [optional] | +| **digest_email_frequency** | **Float** | | [optional] | +| **display_label** | **String** | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UpdateTenantUserBody.new( + username: null, + display_name: null, + website_url: null, + email: null, + sign_up_date: null, + verified: null, + login_count: null, + opted_in_notifications: null, + opted_in_tenant_notifications: null, + hide_account_code: null, + avatar_src: null, + is_help_request_admin: null, + is_account_owner: null, + is_admin_admin: null, + is_billing_admin: null, + is_analytics_admin: null, + is_customization_admin: null, + is_manage_data_admin: null, + is_comment_moderator_admin: null, + is_api_admin: null, + moderator_ids: null, + locale: null, + digest_email_frequency: null, + display_label: null +) +``` + diff --git a/client/docs/User.md b/client/docs/User.md new file mode 100644 index 0000000..1c9119a --- /dev/null +++ b/client/docs/User.md @@ -0,0 +1,118 @@ +# FastCommentsClient::User + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **_id** | **String** | | | +| **tenant_id** | **String** | | [optional] | +| **username** | **String** | | | +| **display_name** | **String** | | [optional] | +| **website_url** | **String** | | [optional] | +| **email** | **String** | | | +| **pending_email** | **String** | | [optional] | +| **sign_up_date** | **Integer** | | | +| **created_from_url_id** | **String** | | [optional] | +| **created_from_tenant_id** | **String** | | | +| **created_from_ip_hashed** | **String** | | | +| **verified** | **Boolean** | | | +| **login_id** | **String** | | | +| **login_id_date** | **Integer** | | | +| **login_count** | **Integer** | | [optional] | +| **opted_in_notifications** | **Boolean** | | [optional] | +| **opted_in_tenant_notifications** | **Boolean** | | [optional] | +| **hide_account_code** | **Boolean** | | [optional] | +| **avatar_src** | **String** | | [optional] | +| **is_fast_comments_help_request_admin** | **Boolean** | | [optional] | +| **is_help_request_admin** | **Boolean** | | [optional] | +| **is_account_owner** | **Boolean** | | [optional] | +| **is_admin_admin** | **Boolean** | | [optional] | +| **is_billing_admin** | **Boolean** | | [optional] | +| **is_analytics_admin** | **Boolean** | | [optional] | +| **is_customization_admin** | **Boolean** | | [optional] | +| **is_manage_data_admin** | **Boolean** | | [optional] | +| **is_comment_moderator_admin** | **Boolean** | | [optional] | +| **is_api_admin** | **Boolean** | | [optional] | +| **moderator_ids** | **Array<String>** | | [optional] | +| **is_impersonator** | **Boolean** | | [optional] | +| **is_coupon_manager** | **Boolean** | | [optional] | +| **locale** | **String** | | [optional] | +| **digest_email_frequency** | [**DigestEmailFrequency**](DigestEmailFrequency.md) | | [optional] | +| **ignored_add_to_my_site_messages** | **Boolean** | | [optional] | +| **last_login_date** | **Time** | | [optional] | +| **display_label** | **String** | | [optional] | +| **is_profile_activity_private** | **Boolean** | | [optional] | +| **is_profile_comments_private** | **Boolean** | | [optional] | +| **is_profile_dm_disabled** | **Boolean** | | [optional] | +| **profile_comment_approval_mode** | **Float** | | [optional] | +| **karma** | **Float** | | [optional] | +| **password_hash** | **String** | | [optional] | +| **average_ticket_ack_time_ms** | **Float** | | [optional] | +| **has_blocked_users** | **Boolean** | | [optional] | +| **bio** | **String** | | [optional] | +| **header_background_src** | **String** | | [optional] | +| **country_code** | **String** | | [optional] | +| **country_flag** | **String** | | [optional] | +| **social_links** | **Array<String>** | | [optional] | +| **has_two_factor** | **Boolean** | | [optional] | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::User.new( + _id: null, + tenant_id: null, + username: null, + display_name: null, + website_url: null, + email: null, + pending_email: null, + sign_up_date: null, + created_from_url_id: null, + created_from_tenant_id: null, + created_from_ip_hashed: null, + verified: null, + login_id: null, + login_id_date: null, + login_count: null, + opted_in_notifications: null, + opted_in_tenant_notifications: null, + hide_account_code: null, + avatar_src: null, + is_fast_comments_help_request_admin: null, + is_help_request_admin: null, + is_account_owner: null, + is_admin_admin: null, + is_billing_admin: null, + is_analytics_admin: null, + is_customization_admin: null, + is_manage_data_admin: null, + is_comment_moderator_admin: null, + is_api_admin: null, + moderator_ids: null, + is_impersonator: null, + is_coupon_manager: null, + locale: null, + digest_email_frequency: null, + ignored_add_to_my_site_messages: null, + last_login_date: null, + display_label: null, + is_profile_activity_private: null, + is_profile_comments_private: null, + is_profile_dm_disabled: null, + profile_comment_approval_mode: null, + karma: null, + password_hash: null, + average_ticket_ack_time_ms: null, + has_blocked_users: null, + bio: null, + header_background_src: null, + country_code: null, + country_flag: null, + social_links: null, + has_two_factor: null +) +``` + diff --git a/client/docs/UserNotificationCount.md b/client/docs/UserNotificationCount.md new file mode 100644 index 0000000..c8682ea --- /dev/null +++ b/client/docs/UserNotificationCount.md @@ -0,0 +1,24 @@ +# FastCommentsClient::UserNotificationCount + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **_id** | **String** | | | +| **count** | **Float** | | | +| **created_at** | **Time** | | | +| **expire_at** | **Time** | | | + +## Example + +```ruby +require 'fastcomments-client' + +instance = FastCommentsClient::UserNotificationCount.new( + _id: null, + count: null, + created_at: null, + expire_at: null +) +``` + diff --git a/client/lib/fastcomments-client.rb b/client/lib/fastcomments-client.rb index 2f92e24..f6bb8af 100644 --- a/client/lib/fastcomments-client.rb +++ b/client/lib/fastcomments-client.rb @@ -22,6 +22,7 @@ require 'fastcomments-client/models/api_comment' require 'fastcomments-client/models/api_comment_base' require 'fastcomments-client/models/api_create_user_badge_response' +require 'fastcomments-client/models/api_domain_configuration' require 'fastcomments-client/models/api_empty_response' require 'fastcomments-client/models/api_empty_success_response' require 'fastcomments-client/models/api_error' @@ -34,10 +35,14 @@ require 'fastcomments-client/models/api_page' require 'fastcomments-client/models/apisso_user' require 'fastcomments-client/models/api_status' +require 'fastcomments-client/models/api_tenant' +require 'fastcomments-client/models/api_tenant_daily_usage' require 'fastcomments-client/models/api_user_subscription' require 'fastcomments-client/models/add_domain_config200_response' require 'fastcomments-client/models/add_domain_config200_response_any_of' require 'fastcomments-client/models/add_domain_config_params' +require 'fastcomments-client/models/add_hash_tag200_response' +require 'fastcomments-client/models/add_hash_tags_bulk200_response' require 'fastcomments-client/models/add_page_api_response' require 'fastcomments-client/models/add_sso_user_api_response' require 'fastcomments-client/models/aggregate_question_results200_response' @@ -51,6 +56,7 @@ require 'fastcomments-client/models/aggregation_response' require 'fastcomments-client/models/aggregation_response_stats' require 'fastcomments-client/models/aggregation_value' +require 'fastcomments-client/models/billing_info' require 'fastcomments-client/models/block_from_comment_params' require 'fastcomments-client/models/block_from_comment_public200_response' require 'fastcomments-client/models/block_success' @@ -58,6 +64,9 @@ require 'fastcomments-client/models/bulk_aggregate_question_results200_response' require 'fastcomments-client/models/bulk_aggregate_question_results_request' require 'fastcomments-client/models/bulk_aggregate_question_results_response' +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' require 'fastcomments-client/models/change_comment_pin_status_response' require 'fastcomments-client/models/check_blocked_comments_response' require 'fastcomments-client/models/checked_comments_for_blocked200_response' @@ -81,15 +90,41 @@ require 'fastcomments-client/models/create_api_user_subscription_data' require 'fastcomments-client/models/create_comment_params' require 'fastcomments-client/models/create_comment_public200_response' +require 'fastcomments-client/models/create_email_template200_response' +require 'fastcomments-client/models/create_email_template_body' +require 'fastcomments-client/models/create_email_template_response' require 'fastcomments-client/models/create_feed_post200_response' require 'fastcomments-client/models/create_feed_post_params' require 'fastcomments-client/models/create_feed_post_public200_response' require 'fastcomments-client/models/create_feed_post_response' 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_moderator200_response' +require 'fastcomments-client/models/create_moderator_body' +require 'fastcomments-client/models/create_moderator_response' +require 'fastcomments-client/models/create_question_config200_response' +require 'fastcomments-client/models/create_question_config_body' +require 'fastcomments-client/models/create_question_config_response' +require 'fastcomments-client/models/create_question_result200_response' +require 'fastcomments-client/models/create_question_result_body' +require 'fastcomments-client/models/create_question_result_response' require 'fastcomments-client/models/create_subscription_api_response' +require 'fastcomments-client/models/create_tenant200_response' +require 'fastcomments-client/models/create_tenant_body' +require 'fastcomments-client/models/create_tenant_package200_response' +require 'fastcomments-client/models/create_tenant_package_body' +require 'fastcomments-client/models/create_tenant_package_response' +require 'fastcomments-client/models/create_tenant_response' +require 'fastcomments-client/models/create_tenant_user200_response' +require 'fastcomments-client/models/create_tenant_user_body' +require 'fastcomments-client/models/create_tenant_user_response' require 'fastcomments-client/models/create_user_badge200_response' require 'fastcomments-client/models/create_user_badge_params' +require 'fastcomments-client/models/create_vote200_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_comment200_response' require 'fastcomments-client/models/delete_comment_action' require 'fastcomments-client/models/delete_comment_public200_response' @@ -98,10 +133,16 @@ require 'fastcomments-client/models/delete_domain_config200_response' require 'fastcomments-client/models/delete_feed_post_public200_response' require 'fastcomments-client/models/delete_feed_post_public200_response_any_of' +require 'fastcomments-client/models/delete_hash_tag_request' require 'fastcomments-client/models/delete_page_api_response' require 'fastcomments-client/models/delete_sso_user_api_response' require 'fastcomments-client/models/delete_subscription_api_response' +require 'fastcomments-client/models/delete_vote200_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' +require 'fastcomments-client/models/email_template_render_error_response' require 'fastcomments-client/models/event_log_entry' require 'fastcomments-client/models/f_comment' require 'fastcomments-client/models/f_comment_meta' @@ -118,6 +159,8 @@ require 'fastcomments-client/models/flag_comment_response' require 'fastcomments-client/models/get_audit_logs200_response' require 'fastcomments-client/models/get_audit_logs_response' +require 'fastcomments-client/models/get_cached_notification_count200_response' +require 'fastcomments-client/models/get_cached_notification_count_response' require 'fastcomments-client/models/get_comment200_response' require 'fastcomments-client/models/get_comment_text200_response' require 'fastcomments-client/models/get_comment_vote_user_names200_response' @@ -130,20 +173,65 @@ require 'fastcomments-client/models/get_domain_configs200_response' require 'fastcomments-client/models/get_domain_configs200_response_any_of' require 'fastcomments-client/models/get_domain_configs200_response_any_of1' +require 'fastcomments-client/models/get_email_template200_response' +require 'fastcomments-client/models/get_email_template_definitions200_response' +require 'fastcomments-client/models/get_email_template_definitions_response' +require 'fastcomments-client/models/get_email_template_render_errors200_response' +require 'fastcomments-client/models/get_email_template_render_errors_response' +require 'fastcomments-client/models/get_email_template_response' +require 'fastcomments-client/models/get_email_templates200_response' +require 'fastcomments-client/models/get_email_templates_response' require 'fastcomments-client/models/get_event_log200_response' require 'fastcomments-client/models/get_event_log_response' require 'fastcomments-client/models/get_feed_posts200_response' require 'fastcomments-client/models/get_feed_posts_public200_response' require 'fastcomments-client/models/get_feed_posts_response' require 'fastcomments-client/models/get_feed_posts_stats200_response' +require 'fastcomments-client/models/get_hash_tags200_response' +require 'fastcomments-client/models/get_hash_tags_response' +require 'fastcomments-client/models/get_moderator200_response' +require 'fastcomments-client/models/get_moderator_response' +require 'fastcomments-client/models/get_moderators200_response' +require 'fastcomments-client/models/get_moderators_response' require 'fastcomments-client/models/get_my_notifications_response' +require 'fastcomments-client/models/get_notification_count200_response' +require 'fastcomments-client/models/get_notification_count_response' +require 'fastcomments-client/models/get_notifications200_response' +require 'fastcomments-client/models/get_notifications_response' require 'fastcomments-client/models/get_page_by_urlid_api_response' require 'fastcomments-client/models/get_pages_api_response' +require 'fastcomments-client/models/get_pending_webhook_event_count200_response' +require 'fastcomments-client/models/get_pending_webhook_event_count_response' +require 'fastcomments-client/models/get_pending_webhook_events200_response' +require 'fastcomments-client/models/get_pending_webhook_events_response' require 'fastcomments-client/models/get_public_feed_posts_response' +require 'fastcomments-client/models/get_question_config200_response' +require 'fastcomments-client/models/get_question_config_response' +require 'fastcomments-client/models/get_question_configs200_response' +require 'fastcomments-client/models/get_question_configs_response' +require 'fastcomments-client/models/get_question_result200_response' +require 'fastcomments-client/models/get_question_result_response' +require 'fastcomments-client/models/get_question_results200_response' +require 'fastcomments-client/models/get_question_results_response' 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_users200_response' require 'fastcomments-client/models/get_subscriptions_api_response' +require 'fastcomments-client/models/get_tenant200_response' +require 'fastcomments-client/models/get_tenant_daily_usages200_response' +require 'fastcomments-client/models/get_tenant_daily_usages_response' +require 'fastcomments-client/models/get_tenant_package200_response' +require 'fastcomments-client/models/get_tenant_package_response' +require 'fastcomments-client/models/get_tenant_packages200_response' +require 'fastcomments-client/models/get_tenant_packages_response' +require 'fastcomments-client/models/get_tenant_response' +require 'fastcomments-client/models/get_tenant_user200_response' +require 'fastcomments-client/models/get_tenant_user_response' +require 'fastcomments-client/models/get_tenant_users200_response' +require 'fastcomments-client/models/get_tenant_users_response' +require 'fastcomments-client/models/get_tenants200_response' +require 'fastcomments-client/models/get_tenants_response' +require 'fastcomments-client/models/get_user200_response' require 'fastcomments-client/models/get_user_badge200_response' require 'fastcomments-client/models/get_user_badge_progress_by_id200_response' require 'fastcomments-client/models/get_user_badge_progress_list200_response' @@ -154,22 +242,31 @@ require 'fastcomments-client/models/get_user_presence_statuses200_response' require 'fastcomments-client/models/get_user_presence_statuses_response' require 'fastcomments-client/models/get_user_reacts_public200_response' +require 'fastcomments-client/models/get_user_response' +require 'fastcomments-client/models/get_votes200_response' +require 'fastcomments-client/models/get_votes_for_user200_response' +require 'fastcomments-client/models/get_votes_for_user_response' +require 'fastcomments-client/models/get_votes_response' require 'fastcomments-client/models/gif_rating' require 'fastcomments-client/models/header_state' require 'fastcomments-client/models/ignored_response' require 'fastcomments-client/models/image_content_profanity_level' +require 'fastcomments-client/models/imported_site_type' 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_comment200_response' require 'fastcomments-client/models/media_asset' require 'fastcomments-client/models/meta_item' +require 'fastcomments-client/models/moderator' require 'fastcomments-client/models/notification_and_count' require 'fastcomments-client/models/notification_object_type' require 'fastcomments-client/models/notification_type' require 'fastcomments-client/models/patch_domain_config_params' +require 'fastcomments-client/models/patch_hash_tag200_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_comment200_response' require 'fastcomments-client/models/pub_sub_comment' require 'fastcomments-client/models/pub_sub_comment_base' @@ -181,9 +278,12 @@ require 'fastcomments-client/models/public_comment' require 'fastcomments-client/models/public_comment_base' require 'fastcomments-client/models/public_feed_posts_response' +require 'fastcomments-client/models/public_vote' require 'fastcomments-client/models/put_sso_user_api_response' require 'fastcomments-client/models/query_predicate' require 'fastcomments-client/models/query_predicate_value' +require 'fastcomments-client/models/question_config' +require 'fastcomments-client/models/question_config_custom_options_inner' require 'fastcomments-client/models/question_datum' require 'fastcomments-client/models/question_rendering_type' require 'fastcomments-client/models/question_result' @@ -195,9 +295,14 @@ 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/record_string_string_or_number_value' +require 'fastcomments-client/models/render_email_template200_response' +require 'fastcomments-client/models/render_email_template_body' +require 'fastcomments-client/models/render_email_template_response' 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_user_body' require 'fastcomments-client/models/reset_user_notifications200_response' require 'fastcomments-client/models/reset_user_notifications_response' require 'fastcomments-client/models/sortdir' @@ -213,6 +318,8 @@ require 'fastcomments-client/models/size_preset' require 'fastcomments-client/models/sort_directions' require 'fastcomments-client/models/spam_rule' +require 'fastcomments-client/models/tenant_hash_tag' +require 'fastcomments-client/models/tenant_package' require 'fastcomments-client/models/un_block_comment_public200_response' require 'fastcomments-client/models/un_block_from_comment_params' require 'fastcomments-client/models/unblock_success' @@ -220,14 +327,26 @@ require 'fastcomments-client/models/update_api_page_data' require 'fastcomments-client/models/update_apisso_user_data' require 'fastcomments-client/models/update_domain_config_params' +require 'fastcomments-client/models/update_email_template_body' require 'fastcomments-client/models/update_feed_post_params' +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_notification_body' +require 'fastcomments-client/models/update_question_config_body' +require 'fastcomments-client/models/update_question_result_body' +require 'fastcomments-client/models/update_tenant_body' +require 'fastcomments-client/models/update_tenant_package_body' +require 'fastcomments-client/models/update_tenant_user_body' require 'fastcomments-client/models/update_user_badge200_response' require 'fastcomments-client/models/update_user_badge_params' require 'fastcomments-client/models/update_user_notification_status200_response' require 'fastcomments-client/models/upload_image_response' +require 'fastcomments-client/models/user' require 'fastcomments-client/models/user_badge' require 'fastcomments-client/models/user_badge_progress' require 'fastcomments-client/models/user_notification' +require 'fastcomments-client/models/user_notification_count' require 'fastcomments-client/models/user_notification_write_response' require 'fastcomments-client/models/user_presence_data' require 'fastcomments-client/models/user_reacts_response' diff --git a/client/lib/fastcomments-client/api/default_api.rb b/client/lib/fastcomments-client/api/default_api.rb index d3fe85e..2f628b1 100644 --- a/client/lib/fastcomments-client/api/default_api.rb +++ b/client/lib/fastcomments-client/api/default_api.rb @@ -90,6 +90,132 @@ 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 + # @option opts [String] :tenant_id + # @option opts [CreateHashTagBody] :create_hash_tag_body + # @return [AddHashTag200Response] + def add_hash_tag(opts = {}) + data, _status_code, _headers = add_hash_tag_with_http_info(opts) + data + end + + # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id + # @option opts [CreateHashTagBody] :create_hash_tag_body + # @return [Array<(AddHashTag200Response, Integer, Hash)>] AddHashTag200Response 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 ...' + 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? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + # HTTP header 'Content-Type' + content_type = @api_client.select_header_content_type(['application/json']) + if !content_type.nil? + header_params['Content-Type'] = content_type + end + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_hash_tag_body']) + + # return_type + return_type = opts[:debug_return_type] || 'AddHashTag200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.add_hash_tag", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#add_hash_tag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id + # @option opts [BulkCreateHashTagsBody] :bulk_create_hash_tags_body + # @return [AddHashTagsBulk200Response] + def add_hash_tags_bulk(opts = {}) + data, _status_code, _headers = add_hash_tags_bulk_with_http_info(opts) + data + end + + # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id + # @option opts [BulkCreateHashTagsBody] :bulk_create_hash_tags_body + # @return [Array<(AddHashTagsBulk200Response, Integer, Hash)>] AddHashTagsBulk200Response 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 ...' + 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? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + # HTTP header 'Content-Type' + content_type = @api_client.select_header_content_type(['application/json']) + if !content_type.nil? + header_params['Content-Type'] = content_type + end + + # form parameters + 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']) + + # return_type + return_type = opts[:debug_return_type] || 'AddHashTagsBulk200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.add_hash_tags_bulk", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#add_hash_tags_bulk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # @param tenant_id [String] # @param create_api_page_data [CreateAPIPageData] # @param [Hash] opts the optional parameters @@ -630,6 +756,77 @@ 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 + # @return [CreateEmailTemplate200Response] + 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 tenant_id [String] + # @param create_email_template_body [CreateEmailTemplateBody] + # @param [Hash] opts the optional parameters + # @return [Array<(CreateEmailTemplate200Response, Integer, Hash)>] CreateEmailTemplate200Response 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 ...' + 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.create_email_template" + end + # verify the required parameter 'create_email_template_body' is set + if @api_client.config.client_side_validation && create_email_template_body.nil? + fail ArgumentError, "Missing the required parameter 'create_email_template_body' when calling DefaultApi.create_email_template" + end + # resource path + local_var_path = '/api/v1/email-templates' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + # HTTP header 'Content-Type' + content_type = @api_client.select_header_content_type(['application/json']) + if !content_type.nil? + header_params['Content-Type'] = content_type + end + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] || @api_client.object_to_http_body(create_email_template_body) + + # return_type + return_type = opts[:debug_return_type] || 'CreateEmailTemplate200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.create_email_template", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#create_email_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # @param tenant_id [String] # @param create_feed_post_params [CreateFeedPostParams] # @param [Hash] opts the optional parameters @@ -714,32 +911,32 @@ def create_feed_post_with_http_info(tenant_id, create_feed_post_params, opts = { end # @param tenant_id [String] - # @param create_api_user_subscription_data [CreateAPIUserSubscriptionData] + # @param create_moderator_body [CreateModeratorBody] # @param [Hash] opts the optional parameters - # @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) + # @return [CreateModerator200Response] + 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 tenant_id [String] - # @param create_api_user_subscription_data [CreateAPIUserSubscriptionData] + # @param create_moderator_body [CreateModeratorBody] # @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(tenant_id, create_api_user_subscription_data, opts = {}) + # @return [Array<(CreateModerator200Response, Integer, Hash)>] CreateModerator200Response 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_subscription ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.create_moderator ...' 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.create_subscription" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_moderator" end - # verify the required parameter 'create_api_user_subscription_data' is set - if @api_client.config.client_side_validation && create_api_user_subscription_data.nil? - fail ArgumentError, "Missing the required parameter 'create_api_user_subscription_data' when calling DefaultApi.create_subscription" + # verify the required parameter 'create_moderator_body' is set + if @api_client.config.client_side_validation && create_moderator_body.nil? + fail ArgumentError, "Missing the required parameter 'create_moderator_body' when calling DefaultApi.create_moderator" end # resource path - local_var_path = '/api/v1/subscriptions' + local_var_path = '/api/v1/moderators' # query parameters query_params = opts[:query_params] || {} @@ -759,16 +956,16 @@ def create_subscription_with_http_info(tenant_id, create_api_user_subscription_d form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(create_api_user_subscription_data) + post_body = opts[:debug_body] || @api_client.object_to_http_body(create_moderator_body) # return_type - return_type = opts[:debug_return_type] || 'CreateSubscriptionAPIResponse' + return_type = opts[:debug_return_type] || 'CreateModerator200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.create_subscription", + :operation => :"DefaultApi.create_moderator", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -779,38 +976,38 @@ def create_subscription_with_http_info(tenant_id, create_api_user_subscription_d data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#create_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#create_moderator\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] - # @param create_user_badge_params [CreateUserBadgeParams] + # @param create_question_config_body [CreateQuestionConfigBody] # @param [Hash] opts the optional parameters - # @return [CreateUserBadge200Response] - 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) + # @return [CreateQuestionConfig200Response] + 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 tenant_id [String] - # @param create_user_badge_params [CreateUserBadgeParams] + # @param create_question_config_body [CreateQuestionConfigBody] # @param [Hash] opts the optional parameters - # @return [Array<(CreateUserBadge200Response, Integer, Hash)>] CreateUserBadge200Response data, response status code and response headers - def create_user_badge_with_http_info(tenant_id, create_user_badge_params, opts = {}) + # @return [Array<(CreateQuestionConfig200Response, Integer, Hash)>] CreateQuestionConfig200Response 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_user_badge ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.create_question_config ...' 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.create_user_badge" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_question_config" end - # verify the required parameter 'create_user_badge_params' is set - if @api_client.config.client_side_validation && create_user_badge_params.nil? - fail ArgumentError, "Missing the required parameter 'create_user_badge_params' when calling DefaultApi.create_user_badge" + # verify the required parameter 'create_question_config_body' is set + if @api_client.config.client_side_validation && create_question_config_body.nil? + fail ArgumentError, "Missing the required parameter 'create_question_config_body' when calling DefaultApi.create_question_config" end # resource path - local_var_path = '/api/v1/user-badges' + local_var_path = '/api/v1/question-configs' # query parameters query_params = opts[:query_params] || {} @@ -830,16 +1027,16 @@ def create_user_badge_with_http_info(tenant_id, create_user_badge_params, opts = form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(create_user_badge_params) + post_body = opts[:debug_body] || @api_client.object_to_http_body(create_question_config_body) # return_type - return_type = opts[:debug_return_type] || 'CreateUserBadge200Response' + return_type = opts[:debug_return_type] || 'CreateQuestionConfig200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.create_user_badge", + :operation => :"DefaultApi.create_question_config", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -850,68 +1047,67 @@ def create_user_badge_with_http_info(tenant_id, create_user_badge_params, opts = data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#create_user_badge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#create_question_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] - # @param id [String] + # @param create_question_result_body [CreateQuestionResultBody] # @param [Hash] opts the optional parameters - # @option opts [String] :context_user_id - # @option opts [Boolean] :is_live - # @return [DeleteComment200Response] - def delete_comment(tenant_id, id, opts = {}) - data, _status_code, _headers = delete_comment_with_http_info(tenant_id, id, opts) + # @return [CreateQuestionResult200Response] + 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 tenant_id [String] - # @param id [String] + # @param create_question_result_body [CreateQuestionResultBody] # @param [Hash] opts the optional parameters - # @option opts [String] :context_user_id - # @option opts [Boolean] :is_live - # @return [Array<(DeleteComment200Response, Integer, Hash)>] DeleteComment200Response data, response status code and response headers - def delete_comment_with_http_info(tenant_id, id, opts = {}) + # @return [Array<(CreateQuestionResult200Response, Integer, Hash)>] CreateQuestionResult200Response 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.delete_comment ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.create_question_result ...' 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_comment" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_question_result" end - # verify the required parameter 'id' is set - if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_comment" + # verify the required parameter 'create_question_result_body' is set + if @api_client.config.client_side_validation && create_question_result_body.nil? + fail ArgumentError, "Missing the required parameter 'create_question_result_body' when calling DefaultApi.create_question_result" end # resource path - local_var_path = '/api/v1/comments/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/question-results' # query parameters query_params = opts[:query_params] || {} query_params[:'tenantId'] = tenant_id - query_params[:'contextUserId'] = opts[:'context_user_id'] if !opts[:'context_user_id'].nil? - query_params[:'isLive'] = opts[:'is_live'] if !opts[:'is_live'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + # HTTP header 'Content-Type' + content_type = @api_client.select_header_content_type(['application/json']) + if !content_type.nil? + header_params['Content-Type'] = content_type + end # form parameters form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] + post_body = opts[:debug_body] || @api_client.object_to_http_body(create_question_result_body) # return_type - return_type = opts[:debug_return_type] || 'DeleteComment200Response' + return_type = opts[:debug_return_type] || 'CreateQuestionResult200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.delete_comment", + :operation => :"DefaultApi.create_question_result", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -920,40 +1116,40 @@ def delete_comment_with_http_info(tenant_id, id, opts = {}) :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#delete_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#create_question_result\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] - # @param domain [String] + # @param create_api_user_subscription_data [CreateAPIUserSubscriptionData] # @param [Hash] opts the optional parameters - # @return [DeleteDomainConfig200Response] - def delete_domain_config(tenant_id, domain, opts = {}) - data, _status_code, _headers = delete_domain_config_with_http_info(tenant_id, domain, opts) + # @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) data end # @param tenant_id [String] - # @param domain [String] + # @param create_api_user_subscription_data [CreateAPIUserSubscriptionData] # @param [Hash] opts the optional parameters - # @return [Array<(DeleteDomainConfig200Response, Integer, Hash)>] DeleteDomainConfig200Response data, response status code and response headers - def delete_domain_config_with_http_info(tenant_id, domain, opts = {}) + # @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 = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: DefaultApi.delete_domain_config ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.create_subscription ...' 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_domain_config" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_subscription" end - # verify the required parameter 'domain' is set - if @api_client.config.client_side_validation && domain.nil? - fail ArgumentError, "Missing the required parameter 'domain' when calling DefaultApi.delete_domain_config" + # verify the required parameter 'create_api_user_subscription_data' is set + if @api_client.config.client_side_validation && create_api_user_subscription_data.nil? + fail ArgumentError, "Missing the required parameter 'create_api_user_subscription_data' when calling DefaultApi.create_subscription" end # resource path - local_var_path = '/api/v1/domain-configs/{domain}'.sub('{' + 'domain' + '}', CGI.escape(domain.to_s)) + local_var_path = '/api/v1/subscriptions' # query parameters query_params = opts[:query_params] || {} @@ -963,21 +1159,26 @@ def delete_domain_config_with_http_info(tenant_id, domain, opts = {}) header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + # HTTP header 'Content-Type' + content_type = @api_client.select_header_content_type(['application/json']) + if !content_type.nil? + header_params['Content-Type'] = content_type + end # form parameters form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] + post_body = opts[:debug_body] || @api_client.object_to_http_body(create_api_user_subscription_data) # return_type - return_type = opts[:debug_return_type] || 'DeleteDomainConfig200Response' + return_type = opts[:debug_return_type] || 'CreateSubscriptionAPIResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.delete_domain_config", + :operation => :"DefaultApi.create_subscription", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -986,40 +1187,40 @@ def delete_domain_config_with_http_info(tenant_id, domain, opts = {}) :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#delete_domain_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#create_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] - # @param id [String] + # @param create_tenant_body [CreateTenantBody] # @param [Hash] opts the optional parameters - # @return [DeletePageAPIResponse] - def delete_page(tenant_id, id, opts = {}) - data, _status_code, _headers = delete_page_with_http_info(tenant_id, id, opts) + # @return [CreateTenant200Response] + 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 tenant_id [String] - # @param id [String] + # @param create_tenant_body [CreateTenantBody] # @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(tenant_id, id, opts = {}) + # @return [Array<(CreateTenant200Response, Integer, Hash)>] CreateTenant200Response 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.delete_page ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.create_tenant ...' 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_page" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_tenant" end - # verify the required parameter 'id' is set - if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_page" + # verify the required parameter 'create_tenant_body' is set + if @api_client.config.client_side_validation && create_tenant_body.nil? + fail ArgumentError, "Missing the required parameter 'create_tenant_body' when calling DefaultApi.create_tenant" end # resource path - local_var_path = '/api/v1/pages/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tenants' # query parameters query_params = opts[:query_params] || {} @@ -1029,21 +1230,26 @@ def delete_page_with_http_info(tenant_id, id, opts = {}) header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + # HTTP header 'Content-Type' + content_type = @api_client.select_header_content_type(['application/json']) + if !content_type.nil? + header_params['Content-Type'] = content_type + end # form parameters form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] + post_body = opts[:debug_body] || @api_client.object_to_http_body(create_tenant_body) # return_type - return_type = opts[:debug_return_type] || 'DeletePageAPIResponse' + return_type = opts[:debug_return_type] || 'CreateTenant200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.delete_page", + :operation => :"DefaultApi.create_tenant", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -1052,70 +1258,69 @@ def delete_page_with_http_info(tenant_id, id, opts = {}) :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#delete_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#create_tenant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] - # @param id [String] + # @param create_tenant_package_body [CreateTenantPackageBody] # @param [Hash] opts the optional parameters - # @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) + # @return [CreateTenantPackage200Response] + 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 tenant_id [String] - # @param id [String] + # @param create_tenant_package_body [CreateTenantPackageBody] # @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(tenant_id, id, opts = {}) + # @return [Array<(CreateTenantPackage200Response, Integer, Hash)>] CreateTenantPackage200Response 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.delete_sso_user ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.create_tenant_package ...' 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_sso_user" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_tenant_package" end - # verify the required parameter 'id' is set - if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_sso_user" + # verify the required parameter 'create_tenant_package_body' is set + if @api_client.config.client_side_validation && create_tenant_package_body.nil? + fail ArgumentError, "Missing the required parameter 'create_tenant_package_body' when calling DefaultApi.create_tenant_package" end # resource path - local_var_path = '/api/v1/sso-users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tenant-packages' # query parameters query_params = opts[:query_params] || {} query_params[:'tenantId'] = tenant_id - query_params[:'deleteComments'] = opts[:'delete_comments'] if !opts[:'delete_comments'].nil? - query_params[:'commentDeleteMode'] = opts[:'comment_delete_mode'] if !opts[:'comment_delete_mode'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + # HTTP header 'Content-Type' + content_type = @api_client.select_header_content_type(['application/json']) + if !content_type.nil? + header_params['Content-Type'] = content_type + end # form parameters form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] + post_body = opts[:debug_body] || @api_client.object_to_http_body(create_tenant_package_body) # return_type - return_type = opts[:debug_return_type] || 'DeleteSSOUserAPIResponse' + return_type = opts[:debug_return_type] || 'CreateTenantPackage200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.delete_sso_user", + :operation => :"DefaultApi.create_tenant_package", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -1124,67 +1329,69 @@ def delete_sso_user_with_http_info(tenant_id, id, opts = {}) :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#delete_sso_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#create_tenant_package\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] - # @param id [String] + # @param create_tenant_user_body [CreateTenantUserBody] # @param [Hash] opts the optional parameters - # @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) + # @return [CreateTenantUser200Response] + 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 tenant_id [String] - # @param id [String] + # @param create_tenant_user_body [CreateTenantUserBody] # @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(tenant_id, id, opts = {}) + # @return [Array<(CreateTenantUser200Response, Integer, Hash)>] CreateTenantUser200Response 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.delete_subscription ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.create_tenant_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 DefaultApi.delete_subscription" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_tenant_user" end - # verify the required parameter 'id' is set - if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_subscription" + # verify the required parameter 'create_tenant_user_body' is set + if @api_client.config.client_side_validation && create_tenant_user_body.nil? + fail ArgumentError, "Missing the required parameter 'create_tenant_user_body' when calling DefaultApi.create_tenant_user" end # resource path - local_var_path = '/api/v1/subscriptions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tenant-users' # query parameters query_params = opts[:query_params] || {} query_params[:'tenantId'] = tenant_id - query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + # HTTP header 'Content-Type' + content_type = @api_client.select_header_content_type(['application/json']) + if !content_type.nil? + header_params['Content-Type'] = content_type + end # form parameters form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] + post_body = opts[:debug_body] || @api_client.object_to_http_body(create_tenant_user_body) # return_type - return_type = opts[:debug_return_type] || 'DeleteSubscriptionAPIResponse' + return_type = opts[:debug_return_type] || 'CreateTenantUser200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.delete_subscription", + :operation => :"DefaultApi.create_tenant_user", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -1193,40 +1400,40 @@ def delete_subscription_with_http_info(tenant_id, id, opts = {}) :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#delete_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#create_tenant_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] - # @param id [String] + # @param create_user_badge_params [CreateUserBadgeParams] # @param [Hash] opts the optional parameters - # @return [UpdateUserBadge200Response] - def delete_user_badge(tenant_id, id, opts = {}) - data, _status_code, _headers = delete_user_badge_with_http_info(tenant_id, id, opts) + # @return [CreateUserBadge200Response] + 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 tenant_id [String] - # @param id [String] + # @param create_user_badge_params [CreateUserBadgeParams] # @param [Hash] opts the optional parameters - # @return [Array<(UpdateUserBadge200Response, Integer, Hash)>] UpdateUserBadge200Response data, response status code and response headers - def delete_user_badge_with_http_info(tenant_id, id, opts = {}) + # @return [Array<(CreateUserBadge200Response, Integer, Hash)>] CreateUserBadge200Response 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.delete_user_badge ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.create_user_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 DefaultApi.delete_user_badge" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_user_badge" end - # verify the required parameter 'id' is set - if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_user_badge" + # verify the required parameter 'create_user_badge_params' is set + if @api_client.config.client_side_validation && create_user_badge_params.nil? + fail ArgumentError, "Missing the required parameter 'create_user_badge_params' when calling DefaultApi.create_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' # query parameters query_params = opts[:query_params] || {} @@ -1236,21 +1443,26 @@ def delete_user_badge_with_http_info(tenant_id, id, opts = {}) header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + # HTTP header 'Content-Type' + content_type = @api_client.select_header_content_type(['application/json']) + if !content_type.nil? + header_params['Content-Type'] = content_type + end # form parameters form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] + post_body = opts[:debug_body] || @api_client.object_to_http_body(create_user_badge_params) # return_type - return_type = opts[:debug_return_type] || 'UpdateUserBadge200Response' + return_type = opts[:debug_return_type] || 'CreateUserBadge200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.delete_user_badge", + :operation => :"DefaultApi.create_user_badge", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -1259,48 +1471,61 @@ def delete_user_badge_with_http_info(tenant_id, id, opts = {}) :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#delete_user_badge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#create_user_badge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] - # @param 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 [FlagComment200Response] - def flag_comment(tenant_id, id, opts = {}) - data, _status_code, _headers = flag_comment_with_http_info(tenant_id, id, opts) + # @return [CreateVote200Response] + 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 tenant_id [String] - # @param 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<(FlagComment200Response, Integer, Hash)>] FlagComment200Response data, response status code and response headers - def flag_comment_with_http_info(tenant_id, id, opts = {}) + # @return [Array<(CreateVote200Response, Integer, Hash)>] CreateVote200Response 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.flag_comment ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.create_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 DefaultApi.flag_comment" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.create_vote" end - # verify the required parameter 'id' is set - if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.flag_comment" + # 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 DefaultApi.create_vote" + end + # verify the required parameter 'direction' is set + if @api_client.config.client_side_validation && direction.nil? + fail ArgumentError, "Missing the required parameter 'direction' when calling DefaultApi.create_vote" + end + # verify enum value + allowable_values = ["up", "down"] + if @api_client.config.client_side_validation && !allowable_values.include?(direction) + fail ArgumentError, "invalid value for \"direction\", must be one of #{allowable_values}" end # resource path - local_var_path = '/api/v1/comments/{id}/flag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/votes' # query parameters query_params = opts[:query_params] || {} query_params[:'tenantId'] = tenant_id + query_params[:'commentId'] = comment_id + query_params[:'direction'] = direction query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? query_params[:'anonUserId'] = opts[:'anon_user_id'] if !opts[:'anon_user_id'].nil? @@ -1316,13 +1541,13 @@ def flag_comment_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'FlagComment200Response' + return_type = opts[:debug_return_type] || 'CreateVote200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.flag_comment", + :operation => :"DefaultApi.create_vote", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -1333,51 +1558,48 @@ def flag_comment_with_http_info(tenant_id, id, opts = {}) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#flag_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#create_vote\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] + # @param 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 [GetAuditLogs200Response] - def get_audit_logs(tenant_id, opts = {}) - data, _status_code, _headers = get_audit_logs_with_http_info(tenant_id, opts) + # @option opts [String] :context_user_id + # @option opts [Boolean] :is_live + # @return [DeleteComment200Response] + def delete_comment(tenant_id, id, opts = {}) + data, _status_code, _headers = delete_comment_with_http_info(tenant_id, id, opts) data end # @param tenant_id [String] + # @param 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<(GetAuditLogs200Response, Integer, Hash)>] GetAuditLogs200Response data, response status code and response headers - def get_audit_logs_with_http_info(tenant_id, opts = {}) + # @option opts [String] :context_user_id + # @option opts [Boolean] :is_live + # @return [Array<(DeleteComment200Response, Integer, Hash)>] DeleteComment200Response 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.get_audit_logs ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.delete_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 DefaultApi.get_audit_logs" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_comment" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_comment" end # resource path - local_var_path = '/api/v1/audit-logs' + local_var_path = '/api/v1/comments/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'tenantId'] = tenant_id - query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? - query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? - query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil? - query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil? - query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil? + query_params[:'contextUserId'] = opts[:'context_user_id'] if !opts[:'context_user_id'].nil? + query_params[:'isLive'] = opts[:'is_live'] if !opts[:'is_live'].nil? # header parameters header_params = opts[:header_params] || {} @@ -1391,13 +1613,13 @@ def get_audit_logs_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetAuditLogs200Response' + return_type = opts[:debug_return_type] || 'DeleteComment200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.get_audit_logs", + :operation => :"DefaultApi.delete_comment", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -1406,40 +1628,40 @@ def get_audit_logs_with_http_info(tenant_id, opts = {}) :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#get_audit_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#delete_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] - # @param id [String] + # @param domain [String] # @param [Hash] opts the optional parameters - # @return [GetComment200Response] - def get_comment(tenant_id, id, opts = {}) - data, _status_code, _headers = get_comment_with_http_info(tenant_id, id, opts) + # @return [DeleteDomainConfig200Response] + 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 tenant_id [String] - # @param id [String] + # @param domain [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetComment200Response, Integer, Hash)>] GetComment200Response data, response status code and response headers - def get_comment_with_http_info(tenant_id, id, opts = {}) + # @return [Array<(DeleteDomainConfig200Response, Integer, Hash)>] DeleteDomainConfig200Response data, response status code and response headers + def delete_domain_config_with_http_info(tenant_id, domain, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: DefaultApi.get_comment ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.delete_domain_config ...' 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.get_comment" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_domain_config" end - # verify the required parameter 'id' is set - if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_comment" + # verify the required parameter 'domain' is set + if @api_client.config.client_side_validation && domain.nil? + fail ArgumentError, "Missing the required parameter 'domain' when calling DefaultApi.delete_domain_config" end # resource path - local_var_path = '/api/v1/comments/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/domain-configs/{domain}'.sub('{' + 'domain' + '}', CGI.escape(domain.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1457,13 +1679,13 @@ def get_comment_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetComment200Response' + return_type = opts[:debug_return_type] || 'DeleteDomainConfig200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.get_comment", + :operation => :"DefaultApi.delete_domain_config", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -1472,80 +1694,44 @@ def get_comment_with_http_info(tenant_id, id, opts = {}) :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#get_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#delete_domain_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] + # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Integer] :page - # @option opts [Integer] :limit - # @option opts [Integer] :skip - # @option opts [Boolean] :as_tree - # @option opts [Integer] :skip_children - # @option opts [Integer] :limit_children - # @option opts [Integer] :max_tree_depth - # @option opts [String] :url_id - # @option opts [String] :user_id - # @option opts [String] :anon_user_id - # @option opts [String] :context_user_id - # @option opts [String] :hash_tag - # @option opts [String] :parent_id - # @option opts [SortDirections] :direction - # @return [GetComments200Response] - def get_comments(tenant_id, opts = {}) - data, _status_code, _headers = get_comments_with_http_info(tenant_id, opts) + # @return [FlagCommentPublic200Response] + 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 tenant_id [String] + # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Integer] :page - # @option opts [Integer] :limit - # @option opts [Integer] :skip - # @option opts [Boolean] :as_tree - # @option opts [Integer] :skip_children - # @option opts [Integer] :limit_children - # @option opts [Integer] :max_tree_depth - # @option opts [String] :url_id - # @option opts [String] :user_id - # @option opts [String] :anon_user_id - # @option opts [String] :context_user_id - # @option opts [String] :hash_tag - # @option opts [String] :parent_id - # @option opts [SortDirections] :direction - # @return [Array<(GetComments200Response, Integer, Hash)>] GetComments200Response data, response status code and response headers - def get_comments_with_http_info(tenant_id, opts = {}) + # @return [Array<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response 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.get_comments ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.delete_email_template ...' 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.get_comments" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_email_template" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_email_template" end # resource path - local_var_path = '/api/v1/comments' + local_var_path = '/api/v1/email-templates/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'tenantId'] = tenant_id - query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? - query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? - query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? - query_params[:'asTree'] = opts[:'as_tree'] if !opts[:'as_tree'].nil? - query_params[:'skipChildren'] = opts[:'skip_children'] if !opts[:'skip_children'].nil? - query_params[:'limitChildren'] = opts[:'limit_children'] if !opts[:'limit_children'].nil? - query_params[:'maxTreeDepth'] = opts[:'max_tree_depth'] if !opts[:'max_tree_depth'].nil? - query_params[:'urlId'] = opts[:'url_id'] if !opts[:'url_id'].nil? - query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? - query_params[:'anonUserId'] = opts[:'anon_user_id'] if !opts[:'anon_user_id'].nil? - query_params[:'contextUserId'] = opts[:'context_user_id'] if !opts[:'context_user_id'].nil? - query_params[:'hashTag'] = opts[:'hash_tag'] if !opts[:'hash_tag'].nil? - query_params[:'parentId'] = opts[:'parent_id'] if !opts[:'parent_id'].nil? - query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil? # header parameters header_params = opts[:header_params] || {} @@ -1559,13 +1745,13 @@ def get_comments_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetComments200Response' + return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.get_comments", + :operation => :"DefaultApi.delete_email_template", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -1574,40 +1760,46 @@ def get_comments_with_http_info(tenant_id, opts = {}) :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#get_comments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#delete_email_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] - # @param domain [String] + # @param id [String] + # @param error_id [String] # @param [Hash] opts the optional parameters - # @return [GetDomainConfig200Response] - def get_domain_config(tenant_id, domain, opts = {}) - data, _status_code, _headers = get_domain_config_with_http_info(tenant_id, domain, opts) + # @return [FlagCommentPublic200Response] + 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 tenant_id [String] - # @param domain [String] + # @param id [String] + # @param error_id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetDomainConfig200Response, Integer, Hash)>] GetDomainConfig200Response data, response status code and response headers - def get_domain_config_with_http_info(tenant_id, domain, opts = {}) + # @return [Array<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response 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.get_domain_config ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.delete_email_template_render_error ...' 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.get_domain_config" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_email_template_render_error" end - # verify the required parameter 'domain' is set - if @api_client.config.client_side_validation && domain.nil? - fail ArgumentError, "Missing the required parameter 'domain' when calling DefaultApi.get_domain_config" + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_email_template_render_error" + end + # verify the required parameter 'error_id' is set + if @api_client.config.client_side_validation && error_id.nil? + fail ArgumentError, "Missing the required parameter 'error_id' when calling DefaultApi.delete_email_template_render_error" end # resource path - local_var_path = '/api/v1/domain-configs/{domain}'.sub('{' + 'domain' + '}', CGI.escape(domain.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] || {} @@ -1625,13 +1817,13 @@ def get_domain_config_with_http_info(tenant_id, domain, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetDomainConfig200Response' + return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.get_domain_config", + :operation => :"DefaultApi.delete_email_template_render_error", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -1640,58 +1832,67 @@ def get_domain_config_with_http_info(tenant_id, domain, opts = {}) :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#get_domain_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#delete_email_template_render_error\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # @param tenant_id [String] + # @param tag [String] # @param [Hash] opts the optional parameters - # @return [GetDomainConfigs200Response] - def get_domain_configs(tenant_id, opts = {}) - data, _status_code, _headers = get_domain_configs_with_http_info(tenant_id, opts) + # @option opts [String] :tenant_id + # @option opts [DeleteHashTagRequest] :delete_hash_tag_request + # @return [FlagCommentPublic200Response] + def delete_hash_tag(tag, opts = {}) + data, _status_code, _headers = delete_hash_tag_with_http_info(tag, opts) data end - # @param tenant_id [String] + # @param tag [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetDomainConfigs200Response, Integer, Hash)>] GetDomainConfigs200Response data, response status code and response headers - def get_domain_configs_with_http_info(tenant_id, opts = {}) + # @option opts [String] :tenant_id + # @option opts [DeleteHashTagRequest] :delete_hash_tag_request + # @return [Array<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response 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.get_domain_configs ...' + @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.get_domain_configs" + # 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" end # resource path - local_var_path = '/api/v1/domain-configs' + local_var_path = '/api/v1/hash-tags/{tag}'.sub('{' + 'tag' + '}', CGI.escape(tag.to_s)) # query parameters query_params = opts[:query_params] || {} - query_params[:'tenantId'] = tenant_id + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + # HTTP header 'Content-Type' + content_type = @api_client.select_header_content_type(['application/json']) + if !content_type.nil? + header_params['Content-Type'] = content_type + end # form parameters form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] + post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'delete_hash_tag_request']) # return_type - return_type = opts[:debug_return_type] || 'GetDomainConfigs200Response' + return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.get_domain_configs", + :operation => :"DefaultApi.delete_hash_tag", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -1700,49 +1901,47 @@ def get_domain_configs_with_http_info(tenant_id, opts = {}) :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#get_domain_configs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#delete_hash_tag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # req tenantId afterId # @param tenant_id [String] + # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :after_id - # @option opts [Integer] :limit - # @option opts [Array] :tags - # @return [GetFeedPosts200Response] - def get_feed_posts(tenant_id, opts = {}) - data, _status_code, _headers = get_feed_posts_with_http_info(tenant_id, opts) + # @option opts [String] :send_email + # @return [FlagCommentPublic200Response] + def delete_moderator(tenant_id, id, opts = {}) + data, _status_code, _headers = delete_moderator_with_http_info(tenant_id, id, opts) data end - # req tenantId afterId # @param tenant_id [String] + # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :after_id - # @option opts [Integer] :limit - # @option opts [Array] :tags - # @return [Array<(GetFeedPosts200Response, Integer, Hash)>] GetFeedPosts200Response data, response status code and response headers - def get_feed_posts_with_http_info(tenant_id, opts = {}) + # @option opts [String] :send_email + # @return [Array<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response 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.get_feed_posts ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.delete_moderator ...' 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.get_feed_posts" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_moderator" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_moderator" end # resource path - local_var_path = '/api/v1/feed-posts' + local_var_path = '/api/v1/moderators/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'tenantId'] = tenant_id - query_params[:'afterId'] = opts[:'after_id'] if !opts[:'after_id'].nil? - query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? - query_params[:'tags'] = @api_client.build_collection_param(opts[:'tags'], :multi) if !opts[:'tags'].nil? + query_params[:'sendEmail'] = opts[:'send_email'] if !opts[:'send_email'].nil? # header parameters header_params = opts[:header_params] || {} @@ -1756,13 +1955,13 @@ def get_feed_posts_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetFeedPosts200Response' + return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.get_feed_posts", + :operation => :"DefaultApi.delete_moderator", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -1771,45 +1970,44 @@ def get_feed_posts_with_http_info(tenant_id, opts = {}) :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#get_feed_posts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#delete_moderator\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] - # @param url_id [String] + # @param id [String] # @param [Hash] opts the optional parameters - # @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) + # @return [FlagCommentPublic200Response] + 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 tenant_id [String] - # @param url_id [String] + # @param 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(tenant_id, url_id, opts = {}) + # @return [Array<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response 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.get_page_by_urlid ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.delete_notification_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 DefaultApi.get_page_by_urlid" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_notification_count" 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 DefaultApi.get_page_by_urlid" + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_notification_count" end # resource path - local_var_path = '/api/v1/pages/by-url-id' + local_var_path = '/api/v1/notification-count/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'tenantId'] = tenant_id - query_params[:'urlId'] = url_id # header parameters header_params = opts[:header_params] || {} @@ -1823,13 +2021,13 @@ def get_page_by_urlid_with_http_info(tenant_id, url_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetPageByURLIdAPIResponse' + return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.get_page_by_urlid", + :operation => :"DefaultApi.delete_notification_count", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -1838,34 +2036,40 @@ def get_page_by_urlid_with_http_info(tenant_id, url_id, opts = {}) :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#get_page_by_urlid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#delete_notification_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] + # @param id [String] # @param [Hash] opts the optional parameters - # @return [GetPagesAPIResponse] - def get_pages(tenant_id, opts = {}) - data, _status_code, _headers = get_pages_with_http_info(tenant_id, opts) + # @return [DeletePageAPIResponse] + def delete_page(tenant_id, id, opts = {}) + data, _status_code, _headers = delete_page_with_http_info(tenant_id, id, opts) data end # @param tenant_id [String] + # @param 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(tenant_id, opts = {}) + # @return [Array<(DeletePageAPIResponse, Integer, Hash)>] DeletePageAPIResponse data, response status code and response headers + def delete_page_with_http_info(tenant_id, id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: DefaultApi.get_pages ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.delete_page ...' 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.get_pages" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_page" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_page" end # resource path - local_var_path = '/api/v1/pages' + local_var_path = '/api/v1/pages/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1883,13 +2087,13 @@ def get_pages_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetPagesAPIResponse' + return_type = opts[:debug_return_type] || 'DeletePageAPIResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.get_pages", + :operation => :"DefaultApi.delete_page", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -1898,40 +2102,40 @@ def get_pages_with_http_info(tenant_id, opts = {}) :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#get_pages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#delete_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] - # @param email [String] + # @param id [String] # @param [Hash] opts the optional parameters - # @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) + # @return [FlagCommentPublic200Response] + 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 tenant_id [String] - # @param email [String] + # @param id [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(tenant_id, email, opts = {}) + # @return [Array<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response 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.get_sso_user_by_email ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.delete_pending_webhook_event ...' 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.get_sso_user_by_email" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_pending_webhook_event" end - # verify the required parameter 'email' is set - if @api_client.config.client_side_validation && email.nil? - fail ArgumentError, "Missing the required parameter 'email' when calling DefaultApi.get_sso_user_by_email" + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_pending_webhook_event" 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/pending-webhook-events/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1949,13 +2153,13 @@ def get_sso_user_by_email_with_http_info(tenant_id, email, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetSSOUserByEmailAPIResponse' + return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.get_sso_user_by_email", + :operation => :"DefaultApi.delete_pending_webhook_event", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -1964,9 +2168,9 @@ def get_sso_user_by_email_with_http_info(tenant_id, email, opts = {}) :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#get_sso_user_by_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#delete_pending_webhook_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end @@ -1974,30 +2178,30 @@ def get_sso_user_by_email_with_http_info(tenant_id, email, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @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) + # @return [FlagCommentPublic200Response] + 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 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(tenant_id, id, opts = {}) + # @return [Array<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response 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.get_sso_user_by_id ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.delete_question_config ...' 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.get_sso_user_by_id" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_question_config" end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_sso_user_by_id" + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_question_config" 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/question-configs/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2015,13 +2219,13 @@ def get_sso_user_by_id_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetSSOUserByIdAPIResponse' + return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.get_sso_user_by_id", + :operation => :"DefaultApi.delete_question_config", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -2030,41 +2234,44 @@ def get_sso_user_by_id_with_http_info(tenant_id, id, opts = {}) :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#get_sso_user_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#delete_question_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] + # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Integer] :skip - # @return [GetSSOUsers200Response] - def get_sso_users(tenant_id, opts = {}) - data, _status_code, _headers = get_sso_users_with_http_info(tenant_id, opts) + # @return [FlagCommentPublic200Response] + 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 tenant_id [String] + # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Integer] :skip - # @return [Array<(GetSSOUsers200Response, Integer, Hash)>] GetSSOUsers200Response data, response status code and response headers - def get_sso_users_with_http_info(tenant_id, opts = {}) + # @return [Array<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response 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.get_sso_users ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.delete_question_result ...' 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.get_sso_users" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_question_result" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_question_result" end # resource path - local_var_path = '/api/v1/sso-users' + local_var_path = '/api/v1/question-results/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'tenantId'] = tenant_id - query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? # header parameters header_params = opts[:header_params] || {} @@ -2078,13 +2285,13 @@ def get_sso_users_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetSSOUsers200Response' + return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.get_sso_users", + :operation => :"DefaultApi.delete_question_result", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -2093,41 +2300,50 @@ def get_sso_users_with_http_info(tenant_id, opts = {}) :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#get_sso_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#delete_question_result\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] + # @param id [String] # @param [Hash] opts the optional parameters - # @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) + # @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) data end # @param tenant_id [String] + # @param 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(tenant_id, opts = {}) + # @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 = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: DefaultApi.get_subscriptions ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.delete_sso_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 DefaultApi.get_subscriptions" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_sso_user" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_sso_user" end # resource path - local_var_path = '/api/v1/subscriptions' + local_var_path = '/api/v1/sso-users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # 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[:'deleteComments'] = opts[:'delete_comments'] if !opts[:'delete_comments'].nil? + query_params[:'commentDeleteMode'] = opts[:'comment_delete_mode'] if !opts[:'comment_delete_mode'].nil? # header parameters header_params = opts[:header_params] || {} @@ -2141,13 +2357,13 @@ def get_subscriptions_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetSubscriptionsAPIResponse' + return_type = opts[:debug_return_type] || 'DeleteSSOUserAPIResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.get_subscriptions", + :operation => :"DefaultApi.delete_sso_user", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -2156,9 +2372,9 @@ def get_subscriptions_with_http_info(tenant_id, opts = {}) :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#get_subscriptions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#delete_sso_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end @@ -2166,34 +2382,37 @@ def get_subscriptions_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [GetUserBadge200Response] - def get_user_badge(tenant_id, id, opts = {}) - data, _status_code, _headers = get_user_badge_with_http_info(tenant_id, id, opts) + # @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) data end # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetUserBadge200Response, Integer, Hash)>] GetUserBadge200Response data, response status code and response headers - def get_user_badge_with_http_info(tenant_id, id, opts = {}) + # @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 = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: DefaultApi.get_user_badge ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.delete_subscription ...' 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.get_user_badge" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_subscription" end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_user_badge" + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_subscription" end # resource path - local_var_path = '/api/v1/user-badges/{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] || {} query_params[:'tenantId'] = tenant_id + query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? # header parameters header_params = opts[:header_params] || {} @@ -2207,13 +2426,13 @@ def get_user_badge_with_http_info(tenant_id, id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetUserBadge200Response' + return_type = opts[:debug_return_type] || 'DeleteSubscriptionAPIResponse' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.get_user_badge", + :operation => :"DefaultApi.delete_subscription", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -2222,9 +2441,9 @@ def get_user_badge_with_http_info(tenant_id, id, opts = {}) :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#get_user_badge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#delete_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end @@ -2232,34 +2451,37 @@ 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 [GetUserBadgeProgressById200Response] - 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) + # @option opts [String] :sure + # @return [FlagCommentPublic200Response] + def delete_tenant(tenant_id, id, opts = {}) + data, _status_code, _headers = delete_tenant_with_http_info(tenant_id, id, opts) data end # @param tenant_id [String] # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetUserBadgeProgressById200Response, Integer, Hash)>] GetUserBadgeProgressById200Response data, response status code and response headers - def get_user_badge_progress_by_id_with_http_info(tenant_id, id, opts = {}) + # @option opts [String] :sure + # @return [Array<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response 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.get_user_badge_progress_by_id ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.delete_tenant ...' 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.get_user_badge_progress_by_id" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_tenant" end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_user_badge_progress_by_id" + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_tenant" end # resource path - local_var_path = '/api/v1/user-badge-progress/{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] || {} query_params[:'tenantId'] = tenant_id + query_params[:'sure'] = opts[:'sure'] if !opts[:'sure'].nil? # header parameters header_params = opts[:header_params] || {} @@ -2273,13 +2495,13 @@ 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] || 'GetUserBadgeProgressById200Response' + return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.get_user_badge_progress_by_id", + :operation => :"DefaultApi.delete_tenant", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -2288,40 +2510,40 @@ def get_user_badge_progress_by_id_with_http_info(tenant_id, id, opts = {}) :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#get_user_badge_progress_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#delete_tenant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] - # @param user_id [String] + # @param id [String] # @param [Hash] opts the optional parameters - # @return [GetUserBadgeProgressById200Response] - 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) + # @return [FlagCommentPublic200Response] + 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 tenant_id [String] - # @param user_id [String] + # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetUserBadgeProgressById200Response, Integer, Hash)>] GetUserBadgeProgressById200Response data, response status code and response headers - def get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id, opts = {}) + # @return [Array<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response 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.get_user_badge_progress_by_user_id ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.delete_tenant_package ...' 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.get_user_badge_progress_by_user_id" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_tenant_package" end - # verify the required parameter 'user_id' is set - if @api_client.config.client_side_validation && user_id.nil? - fail ArgumentError, "Missing the required parameter 'user_id' when calling DefaultApi.get_user_badge_progress_by_user_id" + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_tenant_package" 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/tenant-packages/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2339,13 +2561,13 @@ 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] || 'GetUserBadgeProgressById200Response' + return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.get_user_badge_progress_by_user_id", + :operation => :"DefaultApi.delete_tenant_package", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -2354,47 +2576,50 @@ def get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id, opts = :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#get_user_badge_progress_by_user_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#delete_tenant_package\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] + # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :user_id - # @option opts [Float] :limit - # @option opts [Float] :skip - # @return [GetUserBadgeProgressList200Response] - def get_user_badge_progress_list(tenant_id, opts = {}) - data, _status_code, _headers = get_user_badge_progress_list_with_http_info(tenant_id, opts) + # @option opts [String] :delete_comments + # @option opts [String] :comment_delete_mode + # @return [FlagCommentPublic200Response] + 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 tenant_id [String] + # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :user_id - # @option opts [Float] :limit - # @option opts [Float] :skip - # @return [Array<(GetUserBadgeProgressList200Response, Integer, Hash)>] GetUserBadgeProgressList200Response data, response status code and response headers - def get_user_badge_progress_list_with_http_info(tenant_id, opts = {}) + # @option opts [String] :delete_comments + # @option opts [String] :comment_delete_mode + # @return [Array<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response 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.get_user_badge_progress_list ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.delete_tenant_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 DefaultApi.get_user_badge_progress_list" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_tenant_user" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_tenant_user" end # resource path - local_var_path = '/api/v1/user-badge-progress' + local_var_path = '/api/v1/tenant-users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # 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[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? - query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? + query_params[:'deleteComments'] = opts[:'delete_comments'] if !opts[:'delete_comments'].nil? + query_params[:'commentDeleteMode'] = opts[:'comment_delete_mode'] if !opts[:'comment_delete_mode'].nil? # header parameters header_params = opts[:header_params] || {} @@ -2408,13 +2633,13 @@ 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] || 'GetUserBadgeProgressList200Response' + return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.get_user_badge_progress_list", + :operation => :"DefaultApi.delete_tenant_user", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -2423,56 +2648,44 @@ def get_user_badge_progress_list_with_http_info(tenant_id, opts = {}) :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#get_user_badge_progress_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#delete_tenant_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] + # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :user_id - # @option opts [String] :badge_id - # @option opts [Float] :type - # @option opts [Boolean] :displayed_on_comments - # @option opts [Float] :limit - # @option opts [Float] :skip - # @return [GetUserBadges200Response] - def get_user_badges(tenant_id, opts = {}) - data, _status_code, _headers = get_user_badges_with_http_info(tenant_id, opts) + # @return [UpdateUserBadge200Response] + 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 tenant_id [String] + # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :user_id - # @option opts [String] :badge_id - # @option opts [Float] :type - # @option opts [Boolean] :displayed_on_comments - # @option opts [Float] :limit - # @option opts [Float] :skip - # @return [Array<(GetUserBadges200Response, Integer, Hash)>] GetUserBadges200Response data, response status code and response headers - def get_user_badges_with_http_info(tenant_id, opts = {}) + # @return [Array<(UpdateUserBadge200Response, Integer, Hash)>] UpdateUserBadge200Response 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.get_user_badges ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.delete_user_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 DefaultApi.get_user_badges" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_user_badge" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_user_badge" end # resource path - local_var_path = '/api/v1/user-badges' + local_var_path = '/api/v1/user-badges/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # 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[:'badgeId'] = opts[:'badge_id'] if !opts[:'badge_id'].nil? - query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil? - query_params[:'displayedOnComments'] = opts[:'displayed_on_comments'] if !opts[:'displayed_on_comments'].nil? - query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? - query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? # header parameters header_params = opts[:header_params] || {} @@ -2486,13 +2699,13 @@ def get_user_badges_with_http_info(tenant_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetUserBadges200Response' + return_type = opts[:debug_return_type] || 'UpdateUserBadge200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.get_user_badges", + :operation => :"DefaultApi.delete_user_badge", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -2501,75 +2714,67 @@ def get_user_badges_with_http_info(tenant_id, opts = {}) :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#get_user_badges\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#delete_user_badge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] - # @param domain_to_update [String] - # @param patch_domain_config_params [PatchDomainConfigParams] + # @param id [String] # @param [Hash] opts the optional parameters - # @return [GetDomainConfig200Response] - 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) + # @option opts [String] :edit_key + # @return [DeleteVote200Response] + def delete_vote(tenant_id, id, opts = {}) + data, _status_code, _headers = delete_vote_with_http_info(tenant_id, id, opts) data end # @param tenant_id [String] - # @param domain_to_update [String] - # @param patch_domain_config_params [PatchDomainConfigParams] + # @param id [String] # @param [Hash] opts the optional parameters - # @return [Array<(GetDomainConfig200Response, Integer, Hash)>] GetDomainConfig200Response data, response status code and response headers - def patch_domain_config_with_http_info(tenant_id, domain_to_update, patch_domain_config_params, opts = {}) + # @option opts [String] :edit_key + # @return [Array<(DeleteVote200Response, Integer, Hash)>] DeleteVote200Response 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.patch_domain_config ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.delete_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 DefaultApi.patch_domain_config" - end - # verify the required parameter 'domain_to_update' is set - if @api_client.config.client_side_validation && domain_to_update.nil? - fail ArgumentError, "Missing the required parameter 'domain_to_update' when calling DefaultApi.patch_domain_config" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_vote" end - # verify the required parameter 'patch_domain_config_params' is set - if @api_client.config.client_side_validation && patch_domain_config_params.nil? - fail ArgumentError, "Missing the required parameter 'patch_domain_config_params' when calling DefaultApi.patch_domain_config" + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_vote" 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/votes/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'tenantId'] = tenant_id + query_params[:'editKey'] = opts[:'edit_key'] if !opts[:'edit_key'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] - # HTTP header 'Content-Type' - content_type = @api_client.select_header_content_type(['application/json']) - if !content_type.nil? - header_params['Content-Type'] = content_type - end # form parameters form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(patch_domain_config_params) + post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetDomainConfig200Response' + return_type = opts[:debug_return_type] || 'DeleteVote200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.patch_domain_config", + :operation => :"DefaultApi.delete_vote", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -2578,75 +2783,70 @@ def patch_domain_config_with_http_info(tenant_id, domain_to_update, patch_domain :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#patch_domain_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#delete_vote\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end 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 - # @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) + # @option opts [String] :user_id + # @option opts [String] :anon_user_id + # @return [FlagComment200Response] + def flag_comment(tenant_id, id, opts = {}) + data, _status_code, _headers = flag_comment_with_http_info(tenant_id, id, opts) data end # @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(tenant_id, id, update_api_page_data, opts = {}) + # @option opts [String] :user_id + # @option opts [String] :anon_user_id + # @return [Array<(FlagComment200Response, Integer, Hash)>] FlagComment200Response 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.patch_page ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.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 DefaultApi.patch_page" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.flag_comment" end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.patch_page" - end - # verify the required parameter 'update_api_page_data' is set - if @api_client.config.client_side_validation && update_api_page_data.nil? - fail ArgumentError, "Missing the required parameter 'update_api_page_data' when calling DefaultApi.patch_page" + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.flag_comment" end # resource path - local_var_path = '/api/v1/pages/{id}'.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] || {} query_params[:'tenantId'] = tenant_id + query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? + query_params[:'anonUserId'] = opts[:'anon_user_id'] if !opts[:'anon_user_id'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] - # HTTP header 'Content-Type' - content_type = @api_client.select_header_content_type(['application/json']) - if !content_type.nil? - header_params['Content-Type'] = content_type - end # form parameters form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(update_api_page_data) + post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'PatchPageAPIResponse' + return_type = opts[:debug_return_type] || 'FlagComment200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.patch_page", + :operation => :"DefaultApi.flag_comment", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -2655,19 +2855,3181 @@ def patch_page_with_http_info(tenant_id, id, update_api_page_data, opts = {}) :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#patch_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#flag_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end 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 - # @option opts [Boolean] :update_comments - # @return [PatchSSOUserAPIResponse] + # @option opts [Float] :limit + # @option opts [Float] :skip + # @option opts [SORTDIR] :order + # @option opts [Float] :after + # @option opts [Float] :before + # @return [GetAuditLogs200Response] + def get_audit_logs(tenant_id, opts = {}) + data, _status_code, _headers = get_audit_logs_with_http_info(tenant_id, opts) + data + end + + # @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<(GetAuditLogs200Response, Integer, Hash)>] GetAuditLogs200Response 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 ...' + 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.get_audit_logs" + end + # resource path + local_var_path = '/api/v1/audit-logs' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? + query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? + query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil? + query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil? + query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetAuditLogs200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_audit_logs", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_audit_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @return [GetCachedNotificationCount200Response] + 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 tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @return [Array<(GetCachedNotificationCount200Response, Integer, Hash)>] GetCachedNotificationCount200Response 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 ...' + 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.get_cached_notification_count" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetCachedNotificationCount200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_cached_notification_count", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_cached_notification_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @return [GetComment200Response] + def get_comment(tenant_id, id, opts = {}) + data, _status_code, _headers = get_comment_with_http_info(tenant_id, id, opts) + data + end + + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @return [Array<(GetComment200Response, Integer, Hash)>] GetComment200Response 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 ...' + 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.get_comment" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetComment200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_comment", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param [Hash] opts the optional parameters + # @option opts [Integer] :page + # @option opts [Integer] :limit + # @option opts [Integer] :skip + # @option opts [Boolean] :as_tree + # @option opts [Integer] :skip_children + # @option opts [Integer] :limit_children + # @option opts [Integer] :max_tree_depth + # @option opts [String] :url_id + # @option opts [String] :user_id + # @option opts [String] :anon_user_id + # @option opts [String] :context_user_id + # @option opts [String] :hash_tag + # @option opts [String] :parent_id + # @option opts [SortDirections] :direction + # @return [GetComments200Response] + def get_comments(tenant_id, opts = {}) + data, _status_code, _headers = get_comments_with_http_info(tenant_id, opts) + data + end + + # @param tenant_id [String] + # @param [Hash] opts the optional parameters + # @option opts [Integer] :page + # @option opts [Integer] :limit + # @option opts [Integer] :skip + # @option opts [Boolean] :as_tree + # @option opts [Integer] :skip_children + # @option opts [Integer] :limit_children + # @option opts [Integer] :max_tree_depth + # @option opts [String] :url_id + # @option opts [String] :user_id + # @option opts [String] :anon_user_id + # @option opts [String] :context_user_id + # @option opts [String] :hash_tag + # @option opts [String] :parent_id + # @option opts [SortDirections] :direction + # @return [Array<(GetComments200Response, Integer, Hash)>] GetComments200Response 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 ...' + 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.get_comments" + end + # resource path + local_var_path = '/api/v1/comments' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? + query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? + query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? + query_params[:'asTree'] = opts[:'as_tree'] if !opts[:'as_tree'].nil? + query_params[:'skipChildren'] = opts[:'skip_children'] if !opts[:'skip_children'].nil? + query_params[:'limitChildren'] = opts[:'limit_children'] if !opts[:'limit_children'].nil? + query_params[:'maxTreeDepth'] = opts[:'max_tree_depth'] if !opts[:'max_tree_depth'].nil? + query_params[:'urlId'] = opts[:'url_id'] if !opts[:'url_id'].nil? + query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? + query_params[:'anonUserId'] = opts[:'anon_user_id'] if !opts[:'anon_user_id'].nil? + query_params[:'contextUserId'] = opts[:'context_user_id'] if !opts[:'context_user_id'].nil? + query_params[:'hashTag'] = opts[:'hash_tag'] if !opts[:'hash_tag'].nil? + query_params[:'parentId'] = opts[:'parent_id'] if !opts[:'parent_id'].nil? + query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetComments200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_comments", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_comments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param domain [String] + # @param [Hash] opts the optional parameters + # @return [GetDomainConfig200Response] + 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 tenant_id [String] + # @param domain [String] + # @param [Hash] opts the optional parameters + # @return [Array<(GetDomainConfig200Response, Integer, Hash)>] GetDomainConfig200Response data, response status code and response headers + 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 + # verify the required parameter '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" + end + # verify the required parameter 'domain' is set + if @api_client.config.client_side_validation && domain.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetDomainConfig200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_domain_config", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_domain_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param [Hash] opts the optional parameters + # @return [GetDomainConfigs200Response] + def get_domain_configs(tenant_id, opts = {}) + data, _status_code, _headers = get_domain_configs_with_http_info(tenant_id, opts) + data + end + + # @param tenant_id [String] + # @param [Hash] opts the optional parameters + # @return [Array<(GetDomainConfigs200Response, Integer, Hash)>] GetDomainConfigs200Response data, response status code and response headers + 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 + # verify the required parameter '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" + end + # resource path + local_var_path = '/api/v1/domain-configs' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetDomainConfigs200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_domain_configs", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_domain_configs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @return [GetEmailTemplate200Response] + 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 tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @return [Array<(GetEmailTemplate200Response, Integer, Hash)>] GetEmailTemplate200Response 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 ...' + 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.get_email_template" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetEmailTemplate200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_email_template", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_email_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param [Hash] opts the optional parameters + # @return [GetEmailTemplateDefinitions200Response] + 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 tenant_id [String] + # @param [Hash] opts the optional parameters + # @return [Array<(GetEmailTemplateDefinitions200Response, Integer, Hash)>] GetEmailTemplateDefinitions200Response 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 ...' + 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.get_email_template_definitions" + end + # resource path + local_var_path = '/api/v1/email-templates/definitions' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetEmailTemplateDefinitions200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_email_template_definitions", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_email_template_definitions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @option opts [Float] :skip + # @return [GetEmailTemplateRenderErrors200Response] + 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 tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @option opts [Float] :skip + # @return [Array<(GetEmailTemplateRenderErrors200Response, Integer, Hash)>] GetEmailTemplateRenderErrors200Response 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 ...' + 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.get_email_template_render_errors" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetEmailTemplateRenderErrors200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_email_template_render_errors", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_email_template_render_errors\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param [Hash] opts the optional parameters + # @option opts [Float] :skip + # @return [GetEmailTemplates200Response] + def get_email_templates(tenant_id, opts = {}) + data, _status_code, _headers = get_email_templates_with_http_info(tenant_id, opts) + data + end + + # @param tenant_id [String] + # @param [Hash] opts the optional parameters + # @option opts [Float] :skip + # @return [Array<(GetEmailTemplates200Response, Integer, Hash)>] GetEmailTemplates200Response 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 ...' + 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.get_email_templates" + end + # resource path + local_var_path = '/api/v1/email-templates' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetEmailTemplates200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_email_templates", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_email_templates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # req tenantId afterId + # @param tenant_id [String] + # @param [Hash] opts the optional parameters + # @option opts [String] :after_id + # @option opts [Integer] :limit + # @option opts [Array] :tags + # @return [GetFeedPosts200Response] + 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 tenant_id [String] + # @param [Hash] opts the optional parameters + # @option opts [String] :after_id + # @option opts [Integer] :limit + # @option opts [Array] :tags + # @return [Array<(GetFeedPosts200Response, Integer, Hash)>] GetFeedPosts200Response 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 ...' + 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.get_feed_posts" + end + # resource path + local_var_path = '/api/v1/feed-posts' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'afterId'] = opts[:'after_id'] if !opts[:'after_id'].nil? + query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? + query_params[:'tags'] = @api_client.build_collection_param(opts[:'tags'], :multi) if !opts[:'tags'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetFeedPosts200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_feed_posts", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_feed_posts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param [Hash] opts the optional parameters + # @option opts [Float] :page + # @return [GetHashTags200Response] + def get_hash_tags(tenant_id, opts = {}) + data, _status_code, _headers = get_hash_tags_with_http_info(tenant_id, opts) + data + end + + # @param tenant_id [String] + # @param [Hash] opts the optional parameters + # @option opts [Float] :page + # @return [Array<(GetHashTags200Response, Integer, Hash)>] GetHashTags200Response 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 ...' + 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.get_hash_tags" + end + # resource path + local_var_path = '/api/v1/hash-tags' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetHashTags200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_hash_tags", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_hash_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @return [GetModerator200Response] + def get_moderator(tenant_id, id, opts = {}) + data, _status_code, _headers = get_moderator_with_http_info(tenant_id, id, opts) + data + end + + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @return [Array<(GetModerator200Response, Integer, Hash)>] GetModerator200Response 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 ...' + 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.get_moderator" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetModerator200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_moderator", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_moderator\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param [Hash] opts the optional parameters + # @option opts [Float] :skip + # @return [GetModerators200Response] + def get_moderators(tenant_id, opts = {}) + data, _status_code, _headers = get_moderators_with_http_info(tenant_id, opts) + data + end + + # @param tenant_id [String] + # @param [Hash] opts the optional parameters + # @option opts [Float] :skip + # @return [Array<(GetModerators200Response, Integer, Hash)>] GetModerators200Response 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 ...' + 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.get_moderators" + end + # resource path + local_var_path = '/api/v1/moderators' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetModerators200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_moderators", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_moderators\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @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 [GetNotificationCount200Response] + def get_notification_count(tenant_id, opts = {}) + data, _status_code, _headers = get_notification_count_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] :url_id + # @option opts [String] :from_comment_id + # @option opts [Boolean] :viewed + # @option opts [String] :type + # @return [Array<(GetNotificationCount200Response, Integer, Hash)>] GetNotificationCount200Response 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 ...' + 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.get_notification_count" + end + # resource path + local_var_path = '/api/v1/notifications/count' + + # 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[:'urlId'] = opts[:'url_id'] if !opts[:'url_id'].nil? + query_params[:'fromCommentId'] = opts[:'from_comment_id'] if !opts[:'from_comment_id'].nil? + query_params[:'viewed'] = opts[:'viewed'] if !opts[:'viewed'].nil? + query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetNotificationCount200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_notification_count", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_notification_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @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 + # @option opts [Float] :skip + # @return [GetNotifications200Response] + def get_notifications(tenant_id, opts = {}) + data, _status_code, _headers = get_notifications_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] :url_id + # @option opts [String] :from_comment_id + # @option opts [Boolean] :viewed + # @option opts [String] :type + # @option opts [Float] :skip + # @return [Array<(GetNotifications200Response, Integer, Hash)>] GetNotifications200Response 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 ...' + 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.get_notifications" + end + # resource path + local_var_path = '/api/v1/notifications' + + # 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[:'urlId'] = opts[:'url_id'] if !opts[:'url_id'].nil? + query_params[:'fromCommentId'] = opts[:'from_comment_id'] if !opts[:'from_comment_id'].nil? + query_params[:'viewed'] = opts[:'viewed'] if !opts[:'viewed'].nil? + query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil? + query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetNotifications200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_notifications", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_notifications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param url_id [String] + # @param [Hash] opts the optional parameters + # @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) + data + end + + # @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(tenant_id, url_id, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: DefaultApi.get_page_by_urlid ...' + 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.get_page_by_urlid" + 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 DefaultApi.get_page_by_urlid" + end + # resource path + local_var_path = '/api/v1/pages/by-url-id' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'urlId'] = url_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetPageByURLIdAPIResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_page_by_urlid", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_page_by_urlid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param [Hash] opts the optional parameters + # @return [GetPagesAPIResponse] + def get_pages(tenant_id, opts = {}) + data, _status_code, _headers = get_pages_with_http_info(tenant_id, opts) + data + end + + # @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(tenant_id, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: DefaultApi.get_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 DefaultApi.get_pages" + end + # resource path + local_var_path = '/api/v1/pages' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetPagesAPIResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_pages", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_pages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @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 + # @option opts [String] :type + # @option opts [String] :domain + # @option opts [Float] :attempt_count_gt + # @return [GetPendingWebhookEventCount200Response] + 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 tenant_id [String] + # @param [Hash] opts the optional parameters + # @option opts [String] :comment_id + # @option opts [String] :external_id + # @option opts [String] :event_type + # @option opts [String] :type + # @option opts [String] :domain + # @option opts [Float] :attempt_count_gt + # @return [Array<(GetPendingWebhookEventCount200Response, Integer, Hash)>] GetPendingWebhookEventCount200Response 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 ...' + 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.get_pending_webhook_event_count" + end + # resource path + local_var_path = '/api/v1/pending-webhook-events/count' + + # 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[:'externalId'] = opts[:'external_id'] if !opts[:'external_id'].nil? + query_params[:'eventType'] = opts[:'event_type'] if !opts[:'event_type'].nil? + query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil? + query_params[:'domain'] = opts[:'domain'] if !opts[:'domain'].nil? + query_params[:'attemptCountGT'] = opts[:'attempt_count_gt'] if !opts[:'attempt_count_gt'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetPendingWebhookEventCount200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_pending_webhook_event_count", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_pending_webhook_event_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @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 + # @option opts [String] :type + # @option opts [String] :domain + # @option opts [Float] :attempt_count_gt + # @option opts [Float] :skip + # @return [GetPendingWebhookEvents200Response] + 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 tenant_id [String] + # @param [Hash] opts the optional parameters + # @option opts [String] :comment_id + # @option opts [String] :external_id + # @option opts [String] :event_type + # @option opts [String] :type + # @option opts [String] :domain + # @option opts [Float] :attempt_count_gt + # @option opts [Float] :skip + # @return [Array<(GetPendingWebhookEvents200Response, Integer, Hash)>] GetPendingWebhookEvents200Response 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 ...' + 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.get_pending_webhook_events" + end + # resource path + local_var_path = '/api/v1/pending-webhook-events' + + # 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[:'externalId'] = opts[:'external_id'] if !opts[:'external_id'].nil? + query_params[:'eventType'] = opts[:'event_type'] if !opts[:'event_type'].nil? + query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil? + query_params[:'domain'] = opts[:'domain'] if !opts[:'domain'].nil? + query_params[:'attemptCountGT'] = opts[:'attempt_count_gt'] if !opts[:'attempt_count_gt'].nil? + query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetPendingWebhookEvents200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_pending_webhook_events", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_pending_webhook_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @return [GetQuestionConfig200Response] + 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 tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @return [Array<(GetQuestionConfig200Response, Integer, Hash)>] GetQuestionConfig200Response 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 ...' + 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.get_question_config" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetQuestionConfig200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_question_config", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_question_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param [Hash] opts the optional parameters + # @option opts [Float] :skip + # @return [GetQuestionConfigs200Response] + def get_question_configs(tenant_id, opts = {}) + data, _status_code, _headers = get_question_configs_with_http_info(tenant_id, opts) + data + end + + # @param tenant_id [String] + # @param [Hash] opts the optional parameters + # @option opts [Float] :skip + # @return [Array<(GetQuestionConfigs200Response, Integer, Hash)>] GetQuestionConfigs200Response 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 ...' + 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.get_question_configs" + end + # resource path + local_var_path = '/api/v1/question-configs' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetQuestionConfigs200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_question_configs", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_question_configs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @return [GetQuestionResult200Response] + 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 tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @return [Array<(GetQuestionResult200Response, Integer, Hash)>] GetQuestionResult200Response 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 ...' + 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.get_question_result" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetQuestionResult200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_question_result", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_question_result\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @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 + # @option opts [String] :question_id + # @option opts [String] :question_ids + # @option opts [Float] :skip + # @return [GetQuestionResults200Response] + def get_question_results(tenant_id, opts = {}) + data, _status_code, _headers = get_question_results_with_http_info(tenant_id, opts) + data + end + + # @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 + # @option opts [String] :question_id + # @option opts [String] :question_ids + # @option opts [Float] :skip + # @return [Array<(GetQuestionResults200Response, Integer, Hash)>] GetQuestionResults200Response 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 ...' + 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.get_question_results" + end + # resource path + local_var_path = '/api/v1/question-results' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'urlId'] = opts[:'url_id'] if !opts[:'url_id'].nil? + query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? + query_params[:'startDate'] = opts[:'start_date'] if !opts[:'start_date'].nil? + query_params[:'questionId'] = opts[:'question_id'] if !opts[:'question_id'].nil? + query_params[:'questionIds'] = opts[:'question_ids'] if !opts[:'question_ids'].nil? + query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetQuestionResults200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_question_results", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_question_results\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param email [String] + # @param [Hash] opts the optional parameters + # @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) + data + end + + # @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(tenant_id, email, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: DefaultApi.get_sso_user_by_email ...' + 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.get_sso_user_by_email" + end + # verify the required parameter 'email' is set + if @api_client.config.client_side_validation && email.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetSSOUserByEmailAPIResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_sso_user_by_email", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_sso_user_by_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @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) + data + end + + # @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(tenant_id, id, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: DefaultApi.get_sso_user_by_id ...' + 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.get_sso_user_by_id" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetSSOUserByIdAPIResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_sso_user_by_id", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_sso_user_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param [Hash] opts the optional parameters + # @option opts [Integer] :skip + # @return [GetSSOUsers200Response] + def get_sso_users(tenant_id, opts = {}) + data, _status_code, _headers = get_sso_users_with_http_info(tenant_id, opts) + data + end + + # @param tenant_id [String] + # @param [Hash] opts the optional parameters + # @option opts [Integer] :skip + # @return [Array<(GetSSOUsers200Response, Integer, Hash)>] GetSSOUsers200Response data, response status code and response headers + 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 + # verify the required parameter '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" + end + # resource path + local_var_path = '/api/v1/sso-users' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetSSOUsers200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_sso_users", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_sso_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param [Hash] opts the optional parameters + # @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) + data + end + + # @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(tenant_id, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: DefaultApi.get_subscriptions ...' + 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.get_subscriptions" + end + # resource path + local_var_path = '/api/v1/subscriptions' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetSubscriptionsAPIResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_subscriptions", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_subscriptions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @return [GetTenant200Response] + def get_tenant(tenant_id, id, opts = {}) + data, _status_code, _headers = get_tenant_with_http_info(tenant_id, id, opts) + data + end + + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @return [Array<(GetTenant200Response, Integer, Hash)>] GetTenant200Response 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 ...' + 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.get_tenant" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetTenant200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_tenant", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_tenant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @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 [GetTenantDailyUsages200Response] + 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 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<(GetTenantDailyUsages200Response, Integer, Hash)>] GetTenantDailyUsages200Response 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 ...' + 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.get_tenant_daily_usages" + end + # resource path + local_var_path = '/api/v1/tenant-daily-usage' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'yearNumber'] = opts[:'year_number'] if !opts[:'year_number'].nil? + query_params[:'monthNumber'] = opts[:'month_number'] if !opts[:'month_number'].nil? + query_params[:'dayNumber'] = opts[:'day_number'] if !opts[:'day_number'].nil? + query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetTenantDailyUsages200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_tenant_daily_usages", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_tenant_daily_usages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @return [GetTenantPackage200Response] + 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 tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @return [Array<(GetTenantPackage200Response, Integer, Hash)>] GetTenantPackage200Response 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 ...' + 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.get_tenant_package" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetTenantPackage200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_tenant_package", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_tenant_package\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param [Hash] opts the optional parameters + # @option opts [Float] :skip + # @return [GetTenantPackages200Response] + def get_tenant_packages(tenant_id, opts = {}) + data, _status_code, _headers = get_tenant_packages_with_http_info(tenant_id, opts) + data + end + + # @param tenant_id [String] + # @param [Hash] opts the optional parameters + # @option opts [Float] :skip + # @return [Array<(GetTenantPackages200Response, Integer, Hash)>] GetTenantPackages200Response 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 ...' + 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.get_tenant_packages" + end + # resource path + local_var_path = '/api/v1/tenant-packages' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetTenantPackages200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_tenant_packages", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_tenant_packages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @return [GetTenantUser200Response] + 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 tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @return [Array<(GetTenantUser200Response, Integer, Hash)>] GetTenantUser200Response 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 ...' + 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.get_tenant_user" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetTenantUser200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_tenant_user", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_tenant_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param [Hash] opts the optional parameters + # @option opts [Float] :skip + # @return [GetTenantUsers200Response] + def get_tenant_users(tenant_id, opts = {}) + data, _status_code, _headers = get_tenant_users_with_http_info(tenant_id, opts) + data + end + + # @param tenant_id [String] + # @param [Hash] opts the optional parameters + # @option opts [Float] :skip + # @return [Array<(GetTenantUsers200Response, Integer, Hash)>] GetTenantUsers200Response 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 ...' + 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.get_tenant_users" + end + # resource path + local_var_path = '/api/v1/tenant-users' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetTenantUsers200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_tenant_users", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_tenant_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param [Hash] opts the optional parameters + # @option opts [String] :meta + # @option opts [Float] :skip + # @return [GetTenants200Response] + def get_tenants(tenant_id, opts = {}) + data, _status_code, _headers = get_tenants_with_http_info(tenant_id, opts) + data + end + + # @param tenant_id [String] + # @param [Hash] opts the optional parameters + # @option opts [String] :meta + # @option opts [Float] :skip + # @return [Array<(GetTenants200Response, Integer, Hash)>] GetTenants200Response 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 ...' + 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.get_tenants" + end + # resource path + local_var_path = '/api/v1/tenants' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'meta'] = opts[:'meta'] if !opts[:'meta'].nil? + query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetTenants200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_tenants", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_tenants\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @return [GetUser200Response] + def get_user(tenant_id, id, opts = {}) + data, _status_code, _headers = get_user_with_http_info(tenant_id, id, opts) + data + end + + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @return [Array<(GetUser200Response, Integer, Hash)>] GetUser200Response 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 ...' + 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.get_user" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetUser200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_user", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @return [GetUserBadge200Response] + 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 tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @return [Array<(GetUserBadge200Response, Integer, Hash)>] GetUserBadge200Response 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 ...' + 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.get_user_badge" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetUserBadge200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_user_badge", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_user_badge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @return [GetUserBadgeProgressById200Response] + 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 tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @return [Array<(GetUserBadgeProgressById200Response, Integer, Hash)>] GetUserBadgeProgressById200Response 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 ...' + 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.get_user_badge_progress_by_id" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetUserBadgeProgressById200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_user_badge_progress_by_id", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_user_badge_progress_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param user_id [String] + # @param [Hash] opts the optional parameters + # @return [GetUserBadgeProgressById200Response] + 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 tenant_id [String] + # @param user_id [String] + # @param [Hash] opts the optional parameters + # @return [Array<(GetUserBadgeProgressById200Response, Integer, Hash)>] GetUserBadgeProgressById200Response 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 ...' + 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.get_user_badge_progress_by_user_id" + end + # verify the required parameter 'user_id' is set + if @api_client.config.client_side_validation && user_id.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetUserBadgeProgressById200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_user_badge_progress_by_user_id", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_user_badge_progress_by_user_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param [Hash] opts the optional parameters + # @option opts [String] :user_id + # @option opts [Float] :limit + # @option opts [Float] :skip + # @return [GetUserBadgeProgressList200Response] + 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 tenant_id [String] + # @param [Hash] opts the optional parameters + # @option opts [String] :user_id + # @option opts [Float] :limit + # @option opts [Float] :skip + # @return [Array<(GetUserBadgeProgressList200Response, Integer, Hash)>] GetUserBadgeProgressList200Response 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 ...' + 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.get_user_badge_progress_list" + end + # resource path + local_var_path = '/api/v1/user-badge-progress' + + # 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[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? + query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetUserBadgeProgressList200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_user_badge_progress_list", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_user_badge_progress_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param [Hash] opts the optional parameters + # @option opts [String] :user_id + # @option opts [String] :badge_id + # @option opts [Float] :type + # @option opts [Boolean] :displayed_on_comments + # @option opts [Float] :limit + # @option opts [Float] :skip + # @return [GetUserBadges200Response] + def get_user_badges(tenant_id, opts = {}) + data, _status_code, _headers = get_user_badges_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] :badge_id + # @option opts [Float] :type + # @option opts [Boolean] :displayed_on_comments + # @option opts [Float] :limit + # @option opts [Float] :skip + # @return [Array<(GetUserBadges200Response, Integer, Hash)>] GetUserBadges200Response 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 ...' + 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.get_user_badges" + end + # resource path + local_var_path = '/api/v1/user-badges' + + # 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[:'badgeId'] = opts[:'badge_id'] if !opts[:'badge_id'].nil? + query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil? + query_params[:'displayedOnComments'] = opts[:'displayed_on_comments'] if !opts[:'displayed_on_comments'].nil? + query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? + query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetUserBadges200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_user_badges", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_user_badges\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param url_id [String] + # @param [Hash] opts the optional parameters + # @return [GetVotes200Response] + 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 tenant_id [String] + # @param url_id [String] + # @param [Hash] opts the optional parameters + # @return [Array<(GetVotes200Response, Integer, Hash)>] GetVotes200Response 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 ...' + 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.get_votes" + 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 DefaultApi.get_votes" + end + # resource path + local_var_path = '/api/v1/votes' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'urlId'] = url_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetVotes200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_votes", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_votes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @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 [GetVotesForUser200Response] + 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 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<(GetVotesForUser200Response, Integer, Hash)>] GetVotesForUser200Response 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 ...' + 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.get_votes_for_user" + 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 DefaultApi.get_votes_for_user" + end + # resource path + local_var_path = '/api/v1/votes/for-user' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'urlId'] = url_id + query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? + query_params[:'anonUserId'] = opts[:'anon_user_id'] if !opts[:'anon_user_id'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetVotesForUser200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.get_votes_for_user", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#get_votes_for_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + 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 + # @return [GetDomainConfig200Response] + 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 tenant_id [String] + # @param domain_to_update [String] + # @param patch_domain_config_params [PatchDomainConfigParams] + # @param [Hash] opts the optional parameters + # @return [Array<(GetDomainConfig200Response, Integer, Hash)>] GetDomainConfig200Response data, response status code and response headers + 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 + # verify the required parameter '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" + end + # verify the required parameter 'domain_to_update' is set + if @api_client.config.client_side_validation && domain_to_update.nil? + fail ArgumentError, "Missing the required parameter 'domain_to_update' when calling DefaultApi.patch_domain_config" + end + # verify the required parameter 'patch_domain_config_params' is set + if @api_client.config.client_side_validation && patch_domain_config_params.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + # HTTP header 'Content-Type' + content_type = @api_client.select_header_content_type(['application/json']) + if !content_type.nil? + header_params['Content-Type'] = content_type + end + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] || @api_client.object_to_http_body(patch_domain_config_params) + + # return_type + return_type = opts[:debug_return_type] || 'GetDomainConfig200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.patch_domain_config", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#patch_domain_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tag [String] + # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id + # @option opts [UpdateHashTagBody] :update_hash_tag_body + # @return [PatchHashTag200Response] + def patch_hash_tag(tag, opts = {}) + data, _status_code, _headers = patch_hash_tag_with_http_info(tag, opts) + data + end + + # @param tag [String] + # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id + # @option opts [UpdateHashTagBody] :update_hash_tag_body + # @return [Array<(PatchHashTag200Response, Integer, Hash)>] PatchHashTag200Response 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 ...' + 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" + end + # resource path + local_var_path = '/api/v1/hash-tags/{tag}'.sub('{' + 'tag' + '}', CGI.escape(tag.to_s)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + # HTTP header 'Content-Type' + content_type = @api_client.select_header_content_type(['application/json']) + if !content_type.nil? + header_params['Content-Type'] = content_type + end + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_hash_tag_body']) + + # return_type + return_type = opts[:debug_return_type] || 'PatchHashTag200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.patch_hash_tag", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#patch_hash_tag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + 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 + # @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) + data + end + + # @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(tenant_id, id, update_api_page_data, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: DefaultApi.patch_page ...' + 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_page" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.patch_page" + end + # verify the required parameter 'update_api_page_data' is set + if @api_client.config.client_side_validation && update_api_page_data.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + # HTTP header 'Content-Type' + content_type = @api_client.select_header_content_type(['application/json']) + if !content_type.nil? + header_params['Content-Type'] = content_type + end + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] || @api_client.object_to_http_body(update_api_page_data) + + # return_type + return_type = opts[:debug_return_type] || 'PatchPageAPIResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.patch_page", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#patch_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + 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 + # @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) data @@ -2675,33 +6037,812 @@ def patch_sso_user(tenant_id, id, update_apisso_user_data, opts = {}) # @param tenant_id [String] # @param id [String] - # @param update_apisso_user_data [UpdateAPISSOUserData] + # @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(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 + # verify the required parameter '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" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.patch_sso_user" + end + # verify the required parameter 'update_apisso_user_data' is set + if @api_client.config.client_side_validation && update_apisso_user_data.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'updateComments'] = opts[:'update_comments'] if !opts[:'update_comments'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + # HTTP header 'Content-Type' + content_type = @api_client.select_header_content_type(['application/json']) + if !content_type.nil? + header_params['Content-Type'] = content_type + end + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] || @api_client.object_to_http_body(update_apisso_user_data) + + # return_type + return_type = opts[:debug_return_type] || 'PatchSSOUserAPIResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.patch_sso_user", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#patch_sso_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + 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 + # @return [GetDomainConfig200Response] + 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 tenant_id [String] + # @param domain_to_update [String] + # @param update_domain_config_params [UpdateDomainConfigParams] + # @param [Hash] opts the optional parameters + # @return [Array<(GetDomainConfig200Response, Integer, Hash)>] GetDomainConfig200Response data, response status code and response headers + 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 + # verify the required parameter '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" + end + # verify the required parameter 'domain_to_update' is set + if @api_client.config.client_side_validation && domain_to_update.nil? + fail ArgumentError, "Missing the required parameter 'domain_to_update' when calling DefaultApi.put_domain_config" + end + # verify the required parameter 'update_domain_config_params' is set + if @api_client.config.client_side_validation && update_domain_config_params.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + # HTTP header 'Content-Type' + content_type = @api_client.select_header_content_type(['application/json']) + if !content_type.nil? + header_params['Content-Type'] = content_type + end + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] || @api_client.object_to_http_body(update_domain_config_params) + + # return_type + return_type = opts[:debug_return_type] || 'GetDomainConfig200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.put_domain_config", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#put_domain_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + 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 + # @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) + data + end + + # @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(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 + # verify the required parameter '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" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.put_sso_user" + end + # verify the required parameter 'update_apisso_user_data' is set + if @api_client.config.client_side_validation && update_apisso_user_data.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'updateComments'] = opts[:'update_comments'] if !opts[:'update_comments'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + # HTTP header 'Content-Type' + content_type = @api_client.select_header_content_type(['application/json']) + if !content_type.nil? + header_params['Content-Type'] = content_type + end + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] || @api_client.object_to_http_body(update_apisso_user_data) + + # return_type + return_type = opts[:debug_return_type] || 'PutSSOUserAPIResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.put_sso_user", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#put_sso_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param render_email_template_body [RenderEmailTemplateBody] + # @param [Hash] opts the optional parameters + # @option opts [String] :locale + # @return [RenderEmailTemplate200Response] + 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 tenant_id [String] + # @param render_email_template_body [RenderEmailTemplateBody] + # @param [Hash] opts the optional parameters + # @option opts [String] :locale + # @return [Array<(RenderEmailTemplate200Response, Integer, Hash)>] RenderEmailTemplate200Response 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 ...' + 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.render_email_template" + end + # verify the required parameter 'render_email_template_body' is set + if @api_client.config.client_side_validation && render_email_template_body.nil? + fail ArgumentError, "Missing the required parameter 'render_email_template_body' when calling DefaultApi.render_email_template" + end + # resource path + local_var_path = '/api/v1/email-templates/render' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'locale'] = opts[:'locale'] if !opts[:'locale'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + # HTTP header 'Content-Type' + content_type = @api_client.select_header_content_type(['application/json']) + if !content_type.nil? + header_params['Content-Type'] = content_type + end + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] || @api_client.object_to_http_body(render_email_template_body) + + # return_type + return_type = opts[:debug_return_type] || 'RenderEmailTemplate200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.render_email_template", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#render_email_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + 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 + # @return [FlagCommentPublic200Response] + 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 tenant_id [String] + # @param id [String] + # @param replace_tenant_package_body [ReplaceTenantPackageBody] + # @param [Hash] opts the optional parameters + # @return [Array<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response 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 ...' + 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.replace_tenant_package" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.replace_tenant_package" + end + # verify the required parameter 'replace_tenant_package_body' is set + if @api_client.config.client_side_validation && replace_tenant_package_body.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + # HTTP header 'Content-Type' + content_type = @api_client.select_header_content_type(['application/json']) + if !content_type.nil? + header_params['Content-Type'] = content_type + end + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] || @api_client.object_to_http_body(replace_tenant_package_body) + + # return_type + return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.replace_tenant_package", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#replace_tenant_package\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + 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 + # @option opts [String] :update_comments + # @return [FlagCommentPublic200Response] + 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 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<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response 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 ...' + 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.replace_tenant_user" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.replace_tenant_user" + end + # verify the required parameter 'replace_tenant_user_body' is set + if @api_client.config.client_side_validation && replace_tenant_user_body.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'updateComments'] = opts[:'update_comments'] if !opts[:'update_comments'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + # HTTP header 'Content-Type' + content_type = @api_client.select_header_content_type(['application/json']) + if !content_type.nil? + header_params['Content-Type'] = content_type + end + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] || @api_client.object_to_http_body(replace_tenant_user_body) + + # return_type + return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.replace_tenant_user", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#replace_tenant_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @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 [SaveComment200Response] + 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 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<(SaveComment200Response, Integer, Hash)>] SaveComment200Response 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 ...' + 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.save_comment" + end + # verify the required parameter 'create_comment_params' is set + if @api_client.config.client_side_validation && create_comment_params.nil? + fail ArgumentError, "Missing the required parameter 'create_comment_params' when calling DefaultApi.save_comment" + end + # resource path + local_var_path = '/api/v1/comments' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'isLive'] = opts[:'is_live'] if !opts[:'is_live'].nil? + query_params[:'doSpamCheck'] = opts[:'do_spam_check'] if !opts[:'do_spam_check'].nil? + query_params[:'sendEmails'] = opts[:'send_emails'] if !opts[:'send_emails'].nil? + query_params[:'populateNotifications'] = opts[:'populate_notifications'] if !opts[:'populate_notifications'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + # HTTP header 'Content-Type' + content_type = @api_client.select_header_content_type(['application/json']) + if !content_type.nil? + header_params['Content-Type'] = content_type + end + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] || @api_client.object_to_http_body(create_comment_params) + + # return_type + return_type = opts[:debug_return_type] || 'SaveComment200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.save_comment", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#save_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @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(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 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(tenant_id, create_comment_params, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: DefaultApi.save_comments_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.save_comments_bulk" + end + # verify the required parameter 'create_comment_params' is set + if @api_client.config.client_side_validation && create_comment_params.nil? + fail ArgumentError, "Missing the required parameter 'create_comment_params' when calling DefaultApi.save_comments_bulk" + end + # resource path + local_var_path = '/api/v1/comments/bulk' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'isLive'] = opts[:'is_live'] if !opts[:'is_live'].nil? + query_params[:'doSpamCheck'] = opts[:'do_spam_check'] if !opts[:'do_spam_check'].nil? + query_params[:'sendEmails'] = opts[:'send_emails'] if !opts[:'send_emails'].nil? + query_params[:'populateNotifications'] = opts[:'populate_notifications'] if !opts[:'populate_notifications'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + # HTTP header 'Content-Type' + content_type = @api_client.select_header_content_type(['application/json']) + if !content_type.nil? + header_params['Content-Type'] = content_type + end + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] || @api_client.object_to_http_body(create_comment_params) + + # return_type + return_type = opts[:debug_return_type] || 'Array' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.save_comments_bulk", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#save_comments_bulk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param id [String] + # @param from_name [String] + # @param [Hash] opts the optional parameters + # @return [FlagCommentPublic200Response] + 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 tenant_id [String] + # @param id [String] + # @param from_name [String] + # @param [Hash] opts the optional parameters + # @return [Array<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response 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 ...' + 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.send_invite" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.send_invite" + end + # verify the required parameter 'from_name' is set + if @api_client.config.client_side_validation && from_name.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'fromName'] = from_name + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.send_invite", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#send_invite\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @param tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @option opts [String] :redirect_url + # @return [FlagCommentPublic200Response] + 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 tenant_id [String] + # @param id [String] + # @param [Hash] opts the optional parameters + # @option opts [String] :redirect_url + # @return [Array<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response 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 ...' + 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.send_login_link" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'redirectURL'] = opts[:'redirect_url'] if !opts[:'redirect_url'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.send_login_link", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#send_login_link\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + 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 + # @option opts [String] :user_id + # @option opts [String] :anon_user_id + # @return [UnBlockCommentPublic200Response] + 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 tenant_id [String] + # @param id [String] + # @param un_block_from_comment_params [UnBlockFromCommentParams] # @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(tenant_id, id, update_apisso_user_data, opts = {}) + # @option opts [String] :user_id + # @option opts [String] :anon_user_id + # @return [Array<(UnBlockCommentPublic200Response, Integer, Hash)>] UnBlockCommentPublic200Response 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.patch_sso_user ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.un_block_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 DefaultApi.patch_sso_user" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.un_block_user_from_comment" end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.patch_sso_user" + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.un_block_user_from_comment" end - # verify the required parameter 'update_apisso_user_data' is set - if @api_client.config.client_side_validation && update_apisso_user_data.nil? - fail ArgumentError, "Missing the required parameter 'update_apisso_user_data' when calling DefaultApi.patch_sso_user" + # verify the required parameter 'un_block_from_comment_params' is set + if @api_client.config.client_side_validation && un_block_from_comment_params.nil? + 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/sso-users/{id}'.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] || {} query_params[:'tenantId'] = tenant_id - query_params[:'updateComments'] = opts[:'update_comments'] if !opts[:'update_comments'].nil? + query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? + query_params[:'anonUserId'] = opts[:'anon_user_id'] if !opts[:'anon_user_id'].nil? # header parameters header_params = opts[:header_params] || {} @@ -2717,16 +6858,251 @@ def patch_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts = form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(update_apisso_user_data) + post_body = opts[:debug_body] || @api_client.object_to_http_body(un_block_from_comment_params) + + # return_type + return_type = opts[:debug_return_type] || 'UnBlockCommentPublic200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.un_block_user_from_comment", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#un_block_user_from_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @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 [FlagComment200Response] + 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 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<(FlagComment200Response, Integer, Hash)>] FlagComment200Response 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 ...' + 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.un_flag_comment" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + 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)) + + # 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[:'anonUserId'] = opts[:'anon_user_id'] if !opts[:'anon_user_id'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'FlagComment200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.un_flag_comment", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#un_flag_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # @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 [FlagCommentPublic200Response] + 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 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<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response 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 ...' + 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.update_comment" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.update_comment" + end + # verify the required parameter 'updatable_comment_params' is set + if @api_client.config.client_side_validation && updatable_comment_params.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'contextUserId'] = opts[:'context_user_id'] if !opts[:'context_user_id'].nil? + query_params[:'doSpamCheck'] = opts[:'do_spam_check'] if !opts[:'do_spam_check'].nil? + query_params[:'isLive'] = opts[:'is_live'] if !opts[:'is_live'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + # HTTP header 'Content-Type' + content_type = @api_client.select_header_content_type(['application/json']) + if !content_type.nil? + header_params['Content-Type'] = content_type + end + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] || @api_client.object_to_http_body(updatable_comment_params) + + # return_type + return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response' + + # auth_names + auth_names = opts[:debug_auth_names] || ['api_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.update_comment", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#update_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + 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 + # @return [FlagCommentPublic200Response] + 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 tenant_id [String] + # @param id [String] + # @param update_email_template_body [UpdateEmailTemplateBody] + # @param [Hash] opts the optional parameters + # @return [Array<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response 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 ...' + 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.update_email_template" + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.update_email_template" + end + # verify the required parameter 'update_email_template_body' is set + if @api_client.config.client_side_validation && update_email_template_body.nil? + 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)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + # HTTP header 'Content-Type' + content_type = @api_client.select_header_content_type(['application/json']) + if !content_type.nil? + header_params['Content-Type'] = content_type + end + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] || @api_client.object_to_http_body(update_email_template_body) # return_type - return_type = opts[:debug_return_type] || 'PatchSSOUserAPIResponse' + return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.patch_sso_user", + :operation => :"DefaultApi.update_email_template", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -2737,44 +7113,44 @@ def patch_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts = data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#patch_sso_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#update_email_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] - # @param domain_to_update [String] - # @param update_domain_config_params [UpdateDomainConfigParams] + # @param id [String] + # @param feed_post [FeedPost] # @param [Hash] opts the optional parameters - # @return [GetDomainConfig200Response] - 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) + # @return [FlagCommentPublic200Response] + 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 tenant_id [String] - # @param domain_to_update [String] - # @param update_domain_config_params [UpdateDomainConfigParams] + # @param id [String] + # @param feed_post [FeedPost] # @param [Hash] opts the optional parameters - # @return [Array<(GetDomainConfig200Response, Integer, Hash)>] GetDomainConfig200Response data, response status code and response headers - def put_domain_config_with_http_info(tenant_id, domain_to_update, update_domain_config_params, opts = {}) + # @return [Array<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response 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.put_domain_config ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.update_feed_post ...' 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.put_domain_config" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_feed_post" end - # verify the required parameter 'domain_to_update' is set - if @api_client.config.client_side_validation && domain_to_update.nil? - fail ArgumentError, "Missing the required parameter 'domain_to_update' when calling DefaultApi.put_domain_config" + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.update_feed_post" end - # verify the required parameter 'update_domain_config_params' is set - if @api_client.config.client_side_validation && update_domain_config_params.nil? - fail ArgumentError, "Missing the required parameter 'update_domain_config_params' when calling DefaultApi.put_domain_config" + # verify the required parameter 'feed_post' is set + if @api_client.config.client_side_validation && feed_post.nil? + fail ArgumentError, "Missing the required parameter 'feed_post' when calling DefaultApi.update_feed_post" 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/feed-posts/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2794,16 +7170,16 @@ def put_domain_config_with_http_info(tenant_id, domain_to_update, update_domain_ form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(update_domain_config_params) + post_body = opts[:debug_body] || @api_client.object_to_http_body(feed_post) # return_type - return_type = opts[:debug_return_type] || 'GetDomainConfig200Response' + return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.put_domain_config", + :operation => :"DefaultApi.update_feed_post", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -2812,53 +7188,50 @@ def put_domain_config_with_http_info(tenant_id, domain_to_update, update_domain_ :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#put_domain_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#update_feed_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] # @param id [String] - # @param update_apisso_user_data [UpdateAPISSOUserData] + # @param update_moderator_body [UpdateModeratorBody] # @param [Hash] opts the optional parameters - # @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) + # @return [FlagCommentPublic200Response] + 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 tenant_id [String] # @param id [String] - # @param update_apisso_user_data [UpdateAPISSOUserData] + # @param update_moderator_body [UpdateModeratorBody] # @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(tenant_id, id, update_apisso_user_data, opts = {}) + # @return [Array<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response 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.put_sso_user ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.update_moderator ...' 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.put_sso_user" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_moderator" end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.put_sso_user" + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.update_moderator" end - # verify the required parameter 'update_apisso_user_data' is set - if @api_client.config.client_side_validation && update_apisso_user_data.nil? - fail ArgumentError, "Missing the required parameter 'update_apisso_user_data' when calling DefaultApi.put_sso_user" + # verify the required parameter 'update_moderator_body' is set + if @api_client.config.client_side_validation && update_moderator_body.nil? + fail ArgumentError, "Missing the required parameter 'update_moderator_body' when calling DefaultApi.update_moderator" end # resource path - local_var_path = '/api/v1/sso-users/{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] || {} query_params[:'tenantId'] = tenant_id - query_params[:'updateComments'] = opts[:'update_comments'] if !opts[:'update_comments'].nil? # header parameters header_params = opts[:header_params] || {} @@ -2874,16 +7247,16 @@ def put_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts = { form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(update_apisso_user_data) + post_body = opts[:debug_body] || @api_client.object_to_http_body(update_moderator_body) # return_type - return_type = opts[:debug_return_type] || 'PutSSOUserAPIResponse' + return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.put_sso_user", + :operation => :"DefaultApi.update_moderator", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -2892,56 +7265,53 @@ def put_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts = { :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#put_sso_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#update_moderator\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] - # @param create_comment_params [CreateCommentParams] + # @param id [String] + # @param update_notification_body [UpdateNotificationBody] # @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 [SaveComment200Response] - def save_comment(tenant_id, create_comment_params, opts = {}) - data, _status_code, _headers = save_comment_with_http_info(tenant_id, create_comment_params, opts) + # @option opts [String] :user_id + # @return [FlagCommentPublic200Response] + 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 tenant_id [String] - # @param create_comment_params [CreateCommentParams] + # @param id [String] + # @param update_notification_body [UpdateNotificationBody] # @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<(SaveComment200Response, Integer, Hash)>] SaveComment200Response data, response status code and response headers - def save_comment_with_http_info(tenant_id, create_comment_params, opts = {}) + # @option opts [String] :user_id + # @return [Array<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response 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.save_comment ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.update_notification ...' 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.save_comment" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_notification" end - # verify the required parameter 'create_comment_params' is set - if @api_client.config.client_side_validation && create_comment_params.nil? - fail ArgumentError, "Missing the required parameter 'create_comment_params' when calling DefaultApi.save_comment" + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.update_notification" + end + # verify the required parameter 'update_notification_body' is set + if @api_client.config.client_side_validation && update_notification_body.nil? + fail ArgumentError, "Missing the required parameter 'update_notification_body' when calling DefaultApi.update_notification" end # resource path - local_var_path = '/api/v1/comments' + local_var_path = '/api/v1/notifications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'tenantId'] = tenant_id - query_params[:'isLive'] = opts[:'is_live'] if !opts[:'is_live'].nil? - query_params[:'doSpamCheck'] = opts[:'do_spam_check'] if !opts[:'do_spam_check'].nil? - query_params[:'sendEmails'] = opts[:'send_emails'] if !opts[:'send_emails'].nil? - query_params[:'populateNotifications'] = opts[:'populate_notifications'] if !opts[:'populate_notifications'].nil? + query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? # header parameters header_params = opts[:header_params] || {} @@ -2957,16 +7327,16 @@ def save_comment_with_http_info(tenant_id, create_comment_params, opts = {}) form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(create_comment_params) + post_body = opts[:debug_body] || @api_client.object_to_http_body(update_notification_body) # return_type - return_type = opts[:debug_return_type] || 'SaveComment200Response' + return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.save_comment", + :operation => :"DefaultApi.update_notification", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -2975,56 +7345,50 @@ def save_comment_with_http_info(tenant_id, create_comment_params, opts = {}) :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#save_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#update_notification\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] - # @param create_comment_params [Array] + # @param id [String] + # @param update_question_config_body [UpdateQuestionConfigBody] # @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(tenant_id, create_comment_params, opts = {}) - data, _status_code, _headers = save_comments_bulk_with_http_info(tenant_id, create_comment_params, opts) + # @return [FlagCommentPublic200Response] + 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 tenant_id [String] - # @param create_comment_params [Array] + # @param id [String] + # @param update_question_config_body [UpdateQuestionConfigBody] # @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(tenant_id, create_comment_params, opts = {}) + # @return [Array<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response 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.save_comments_bulk ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.update_question_config ...' 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.save_comments_bulk" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_question_config" end - # verify the required parameter 'create_comment_params' is set - if @api_client.config.client_side_validation && create_comment_params.nil? - fail ArgumentError, "Missing the required parameter 'create_comment_params' when calling DefaultApi.save_comments_bulk" + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.update_question_config" + end + # verify the required parameter 'update_question_config_body' is set + if @api_client.config.client_side_validation && update_question_config_body.nil? + fail ArgumentError, "Missing the required parameter 'update_question_config_body' when calling DefaultApi.update_question_config" end # resource path - local_var_path = '/api/v1/comments/bulk' + local_var_path = '/api/v1/question-configs/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'tenantId'] = tenant_id - query_params[:'isLive'] = opts[:'is_live'] if !opts[:'is_live'].nil? - query_params[:'doSpamCheck'] = opts[:'do_spam_check'] if !opts[:'do_spam_check'].nil? - query_params[:'sendEmails'] = opts[:'send_emails'] if !opts[:'send_emails'].nil? - query_params[:'populateNotifications'] = opts[:'populate_notifications'] if !opts[:'populate_notifications'].nil? # header parameters header_params = opts[:header_params] || {} @@ -3040,16 +7404,16 @@ def save_comments_bulk_with_http_info(tenant_id, create_comment_params, opts = { form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(create_comment_params) + post_body = opts[:debug_body] || @api_client.object_to_http_body(update_question_config_body) # return_type - return_type = opts[:debug_return_type] || 'Array' + return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.save_comments_bulk", + :operation => :"DefaultApi.update_question_config", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -3058,56 +7422,50 @@ def save_comments_bulk_with_http_info(tenant_id, create_comment_params, opts = { :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#save_comments_bulk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#update_question_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] # @param id [String] - # @param un_block_from_comment_params [UnBlockFromCommentParams] + # @param update_question_result_body [UpdateQuestionResultBody] # @param [Hash] opts the optional parameters - # @option opts [String] :user_id - # @option opts [String] :anon_user_id - # @return [UnBlockCommentPublic200Response] - 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) + # @return [FlagCommentPublic200Response] + 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 tenant_id [String] # @param id [String] - # @param un_block_from_comment_params [UnBlockFromCommentParams] + # @param update_question_result_body [UpdateQuestionResultBody] # @param [Hash] opts the optional parameters - # @option opts [String] :user_id - # @option opts [String] :anon_user_id - # @return [Array<(UnBlockCommentPublic200Response, Integer, Hash)>] UnBlockCommentPublic200Response 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 = {}) + # @return [Array<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response 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.un_block_user_from_comment ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.update_question_result ...' 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.un_block_user_from_comment" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_question_result" end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.un_block_user_from_comment" + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.update_question_result" end - # verify the required parameter 'un_block_from_comment_params' is set - if @api_client.config.client_side_validation && un_block_from_comment_params.nil? - fail ArgumentError, "Missing the required parameter 'un_block_from_comment_params' when calling DefaultApi.un_block_user_from_comment" + # verify the required parameter 'update_question_result_body' is set + if @api_client.config.client_side_validation && update_question_result_body.nil? + fail ArgumentError, "Missing the required parameter 'update_question_result_body' when calling DefaultApi.update_question_result" end # resource path - local_var_path = '/api/v1/comments/{id}/un-block'.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] || {} query_params[:'tenantId'] = tenant_id - query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? - query_params[:'anonUserId'] = opts[:'anon_user_id'] if !opts[:'anon_user_id'].nil? # header parameters header_params = opts[:header_params] || {} @@ -3123,16 +7481,16 @@ def un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comme form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(un_block_from_comment_params) + post_body = opts[:debug_body] || @api_client.object_to_http_body(update_question_result_body) # return_type - return_type = opts[:debug_return_type] || 'UnBlockCommentPublic200Response' + return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.un_block_user_from_comment", + :operation => :"DefaultApi.update_question_result", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -3141,70 +7499,75 @@ def un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comme :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#un_block_user_from_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#update_question_result\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] # @param id [String] + # @param update_tenant_body [UpdateTenantBody] # @param [Hash] opts the optional parameters - # @option opts [String] :user_id - # @option opts [String] :anon_user_id - # @return [FlagComment200Response] - def un_flag_comment(tenant_id, id, opts = {}) - data, _status_code, _headers = un_flag_comment_with_http_info(tenant_id, id, opts) + # @return [FlagCommentPublic200Response] + 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 tenant_id [String] # @param id [String] + # @param update_tenant_body [UpdateTenantBody] # @param [Hash] opts the optional parameters - # @option opts [String] :user_id - # @option opts [String] :anon_user_id - # @return [Array<(FlagComment200Response, Integer, Hash)>] FlagComment200Response data, response status code and response headers - def un_flag_comment_with_http_info(tenant_id, id, opts = {}) + # @return [Array<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response 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.un_flag_comment ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.update_tenant ...' 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.un_flag_comment" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_tenant" end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.un_flag_comment" + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.update_tenant" + end + # verify the required parameter 'update_tenant_body' is set + if @api_client.config.client_side_validation && update_tenant_body.nil? + fail ArgumentError, "Missing the required parameter 'update_tenant_body' when calling DefaultApi.update_tenant" end # resource path - local_var_path = '/api/v1/comments/{id}/un-flag'.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] || {} query_params[:'tenantId'] = tenant_id - query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? - query_params[:'anonUserId'] = opts[:'anon_user_id'] if !opts[:'anon_user_id'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + # HTTP header 'Content-Type' + content_type = @api_client.select_header_content_type(['application/json']) + if !content_type.nil? + header_params['Content-Type'] = content_type + end # form parameters form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] + post_body = opts[:debug_body] || @api_client.object_to_http_body(update_tenant_body) # return_type - return_type = opts[:debug_return_type] || 'FlagComment200Response' + return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response' # auth_names auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.un_flag_comment", + :operation => :"DefaultApi.update_tenant", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -3213,59 +7576,50 @@ def un_flag_comment_with_http_info(tenant_id, id, opts = {}) :return_type => return_type ) - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#un_flag_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#update_tenant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] # @param id [String] - # @param updatable_comment_params [UpdatableCommentParams] + # @param update_tenant_package_body [UpdateTenantPackageBody] # @param [Hash] opts the optional parameters - # @option opts [String] :context_user_id - # @option opts [Boolean] :do_spam_check - # @option opts [Boolean] :is_live # @return [FlagCommentPublic200Response] - 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_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 tenant_id [String] # @param id [String] - # @param updatable_comment_params [UpdatableCommentParams] + # @param update_tenant_package_body [UpdateTenantPackageBody] # @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<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response data, response status code and response headers - def update_comment_with_http_info(tenant_id, id, updatable_comment_params, 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_comment ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.update_tenant_package ...' 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.update_comment" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_tenant_package" end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.update_comment" + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.update_tenant_package" end - # verify the required parameter 'updatable_comment_params' is set - if @api_client.config.client_side_validation && updatable_comment_params.nil? - fail ArgumentError, "Missing the required parameter 'updatable_comment_params' when calling DefaultApi.update_comment" + # verify the required parameter 'update_tenant_package_body' is set + if @api_client.config.client_side_validation && update_tenant_package_body.nil? + fail ArgumentError, "Missing the required parameter 'update_tenant_package_body' when calling DefaultApi.update_tenant_package" end # resource path - local_var_path = '/api/v1/comments/{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] || {} query_params[:'tenantId'] = tenant_id - query_params[:'contextUserId'] = opts[:'context_user_id'] if !opts[:'context_user_id'].nil? - query_params[:'doSpamCheck'] = opts[:'do_spam_check'] if !opts[:'do_spam_check'].nil? - query_params[:'isLive'] = opts[:'is_live'] if !opts[:'is_live'].nil? # header parameters header_params = opts[:header_params] || {} @@ -3281,7 +7635,7 @@ def update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(updatable_comment_params) + post_body = opts[:debug_body] || @api_client.object_to_http_body(update_tenant_package_body) # return_type return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response' @@ -3290,7 +7644,7 @@ def update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.update_comment", + :operation => :"DefaultApi.update_tenant_package", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -3301,48 +7655,51 @@ def update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#update_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#update_tenant_package\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # @param tenant_id [String] # @param id [String] - # @param feed_post [FeedPost] + # @param update_tenant_user_body [UpdateTenantUserBody] # @param [Hash] opts the optional parameters + # @option opts [String] :update_comments # @return [FlagCommentPublic200Response] - 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_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 tenant_id [String] # @param id [String] - # @param feed_post [FeedPost] + # @param update_tenant_user_body [UpdateTenantUserBody] # @param [Hash] opts the optional parameters + # @option opts [String] :update_comments # @return [Array<(FlagCommentPublic200Response, Integer, Hash)>] FlagCommentPublic200Response data, response status code and response headers - def update_feed_post_with_http_info(tenant_id, id, feed_post, 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_feed_post ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.update_tenant_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 DefaultApi.update_feed_post" + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.update_tenant_user" end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.update_feed_post" + fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.update_tenant_user" end - # verify the required parameter 'feed_post' is set - if @api_client.config.client_side_validation && feed_post.nil? - fail ArgumentError, "Missing the required parameter 'feed_post' when calling DefaultApi.update_feed_post" + # verify the required parameter 'update_tenant_user_body' is set + if @api_client.config.client_side_validation && update_tenant_user_body.nil? + fail ArgumentError, "Missing the required parameter 'update_tenant_user_body' when calling DefaultApi.update_tenant_user" end # resource path - local_var_path = '/api/v1/feed-posts/{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] || {} query_params[:'tenantId'] = tenant_id + query_params[:'updateComments'] = opts[:'update_comments'] if !opts[:'update_comments'].nil? # header parameters header_params = opts[:header_params] || {} @@ -3358,7 +7715,7 @@ def update_feed_post_with_http_info(tenant_id, id, feed_post, opts = {}) form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(feed_post) + post_body = opts[:debug_body] || @api_client.object_to_http_body(update_tenant_user_body) # return_type return_type = opts[:debug_return_type] || 'FlagCommentPublic200Response' @@ -3367,7 +7724,7 @@ def update_feed_post_with_http_info(tenant_id, id, feed_post, opts = {}) auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"DefaultApi.update_feed_post", + :operation => :"DefaultApi.update_tenant_user", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -3378,7 +7735,7 @@ def update_feed_post_with_http_info(tenant_id, id, feed_post, opts = {}) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#update_feed_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#update_tenant_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end diff --git a/client/lib/fastcomments-client/api/public_api.rb b/client/lib/fastcomments-client/api/public_api.rb index ca562dd..f509db0 100644 --- a/client/lib/fastcomments-client/api/public_api.rb +++ b/client/lib/fastcomments-client/api/public_api.rb @@ -1936,24 +1936,24 @@ def reset_user_notifications_with_http_info(tenant_id, opts = {}) # @param tenant_id [String] # @param url_id [String] - # @param username_starts_with [String] # @param [Hash] opts the optional parameters + # @option opts [String] :username_starts_with # @option opts [Array] :mention_group_ids # @option opts [String] :sso # @return [SearchUsers200Response] - def search_users(tenant_id, url_id, username_starts_with, opts = {}) - data, _status_code, _headers = search_users_with_http_info(tenant_id, url_id, username_starts_with, 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 tenant_id [String] # @param url_id [String] - # @param username_starts_with [String] # @param [Hash] opts the optional parameters + # @option opts [String] :username_starts_with # @option opts [Array] :mention_group_ids # @option opts [String] :sso # @return [Array<(SearchUsers200Response, Integer, Hash)>] SearchUsers200Response data, response status code and response headers - def search_users_with_http_info(tenant_id, url_id, username_starts_with, 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 @@ -1965,17 +1965,13 @@ def search_users_with_http_info(tenant_id, url_id, username_starts_with, opts = if @api_client.config.client_side_validation && url_id.nil? fail ArgumentError, "Missing the required parameter 'url_id' when calling PublicApi.search_users" end - # verify the required parameter 'username_starts_with' is set - if @api_client.config.client_side_validation && username_starts_with.nil? - fail ArgumentError, "Missing the required parameter 'username_starts_with' when calling PublicApi.search_users" - end # resource path local_var_path = '/user-search/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'urlId'] = url_id - query_params[:'usernameStartsWith'] = username_starts_with + query_params[:'usernameStartsWith'] = opts[:'username_starts_with'] if !opts[:'username_starts_with'].nil? query_params[:'mentionGroupIds'] = @api_client.build_collection_param(opts[:'mention_group_ids'], :multi) if !opts[:'mention_group_ids'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? diff --git a/client/lib/fastcomments-client/models/add_hash_tag200_response.rb b/client/lib/fastcomments-client/models/add_hash_tag200_response.rb new file mode 100644 index 0000000..69e4dc6 --- /dev/null +++ b/client/lib/fastcomments-client/models/add_hash_tag200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module AddHashTag200Response + 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_bulk200_response.rb b/client/lib/fastcomments-client/models/add_hash_tags_bulk200_response.rb new file mode 100644 index 0000000..ca3f45d --- /dev/null +++ b/client/lib/fastcomments-client/models/add_hash_tags_bulk200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module AddHashTagsBulk200Response + 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/api_domain_configuration.rb b/client/lib/fastcomments-client/models/api_domain_configuration.rb new file mode 100644 index 0000000..6a985c6 --- /dev/null +++ b/client/lib/fastcomments-client/models/api_domain_configuration.rb @@ -0,0 +1,355 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class APIDomainConfiguration < ApiModelBase + attr_accessor :id + + attr_accessor :domain + + attr_accessor :email_from_name + + attr_accessor :email_from_email + + # Construct a type with a set of properties K of type T + attr_accessor :email_headers + + attr_accessor :wp_sync_token + + attr_accessor :wp_synced + + attr_accessor :wp_url + + attr_accessor :created_at + + attr_accessor :auto_added_date + + attr_accessor :site_type + + attr_accessor :logo_src + + attr_accessor :logo_src100px + + attr_accessor :footer_unsubscribe_url + + attr_accessor :disable_unsubscribe_links + + 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 + { + :'id' => :'id', + :'domain' => :'domain', + :'email_from_name' => :'emailFromName', + :'email_from_email' => :'emailFromEmail', + :'email_headers' => :'emailHeaders', + :'wp_sync_token' => :'wpSyncToken', + :'wp_synced' => :'wpSynced', + :'wp_url' => :'wpURL', + :'created_at' => :'createdAt', + :'auto_added_date' => :'autoAddedDate', + :'site_type' => :'siteType', + :'logo_src' => :'logoSrc', + :'logo_src100px' => :'logoSrc100px', + :'footer_unsubscribe_url' => :'footerUnsubscribeURL', + :'disable_unsubscribe_links' => :'disableUnsubscribeLinks' + } + 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 + { + :'id' => :'String', + :'domain' => :'String', + :'email_from_name' => :'String', + :'email_from_email' => :'String', + :'email_headers' => :'Hash', + :'wp_sync_token' => :'String', + :'wp_synced' => :'Boolean', + :'wp_url' => :'String', + :'created_at' => :'Time', + :'auto_added_date' => :'Time', + :'site_type' => :'ImportedSiteType', + :'logo_src' => :'String', + :'logo_src100px' => :'String', + :'footer_unsubscribe_url' => :'String', + :'disable_unsubscribe_links' => :'Boolean' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'email_from_name', + :'email_from_email', + :'wp_sync_token', + :'wp_url', + :'logo_src', + :'logo_src100px', + ]) + 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::APIDomainConfiguration` 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::APIDomainConfiguration`. 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?(:'id') + self.id = attributes[:'id'] + else + self.id = nil + end + + if attributes.key?(:'domain') + self.domain = attributes[:'domain'] + else + self.domain = nil + end + + if attributes.key?(:'email_from_name') + self.email_from_name = attributes[:'email_from_name'] + end + + if attributes.key?(:'email_from_email') + self.email_from_email = attributes[:'email_from_email'] + end + + if attributes.key?(:'email_headers') + if (value = attributes[:'email_headers']).is_a?(Hash) + self.email_headers = value + end + end + + if attributes.key?(:'wp_sync_token') + self.wp_sync_token = attributes[:'wp_sync_token'] + end + + if attributes.key?(:'wp_synced') + self.wp_synced = attributes[:'wp_synced'] + end + + if attributes.key?(:'wp_url') + self.wp_url = attributes[:'wp_url'] + end + + if attributes.key?(:'created_at') + self.created_at = attributes[:'created_at'] + else + self.created_at = nil + end + + if attributes.key?(:'auto_added_date') + self.auto_added_date = attributes[:'auto_added_date'] + end + + if attributes.key?(:'site_type') + self.site_type = attributes[:'site_type'] + end + + if attributes.key?(:'logo_src') + self.logo_src = attributes[:'logo_src'] + end + + if attributes.key?(:'logo_src100px') + self.logo_src100px = attributes[:'logo_src100px'] + end + + if attributes.key?(:'footer_unsubscribe_url') + self.footer_unsubscribe_url = attributes[:'footer_unsubscribe_url'] + end + + if attributes.key?(:'disable_unsubscribe_links') + self.disable_unsubscribe_links = attributes[:'disable_unsubscribe_links'] + 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 @id.nil? + invalid_properties.push('invalid value for "id", id cannot be nil.') + end + + if @domain.nil? + invalid_properties.push('invalid value for "domain", domain cannot be nil.') + end + + if @created_at.nil? + invalid_properties.push('invalid value for "created_at", created_at 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 @id.nil? + return false if @domain.nil? + return false if @created_at.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] id Value to be assigned + def id=(id) + if id.nil? + fail ArgumentError, 'id cannot be nil' + end + + @id = id + end + + # Custom attribute writer method with validation + # @param [Object] domain Value to be assigned + def domain=(domain) + if domain.nil? + fail ArgumentError, 'domain cannot be nil' + end + + @domain = domain + end + + # Custom attribute writer method with validation + # @param [Object] created_at Value to be assigned + def created_at=(created_at) + if created_at.nil? + fail ArgumentError, 'created_at cannot be nil' + end + + @created_at = created_at + 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 && + id == o.id && + domain == o.domain && + email_from_name == o.email_from_name && + email_from_email == o.email_from_email && + email_headers == o.email_headers && + wp_sync_token == o.wp_sync_token && + wp_synced == o.wp_synced && + wp_url == o.wp_url && + created_at == o.created_at && + auto_added_date == o.auto_added_date && + site_type == o.site_type && + logo_src == o.logo_src && + logo_src100px == o.logo_src100px && + footer_unsubscribe_url == o.footer_unsubscribe_url && + disable_unsubscribe_links == o.disable_unsubscribe_links + 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 + [id, domain, email_from_name, email_from_email, email_headers, wp_sync_token, wp_synced, wp_url, created_at, auto_added_date, site_type, logo_src, logo_src100px, footer_unsubscribe_url, disable_unsubscribe_links].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/api_tenant.rb b/client/lib/fastcomments-client/models/api_tenant.rb new file mode 100644 index 0000000..c4f2942 --- /dev/null +++ b/client/lib/fastcomments-client/models/api_tenant.rb @@ -0,0 +1,583 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class APITenant < ApiModelBase + attr_accessor :id + + attr_accessor :name + + attr_accessor :email + + attr_accessor :sign_up_date + + attr_accessor :package_id + + attr_accessor :payment_frequency + + attr_accessor :billing_info_valid + + attr_accessor :billing_handled_externally + + attr_accessor :created_by + + attr_accessor :is_setup + + attr_accessor :domain_configuration + + attr_accessor :billing_info + + attr_accessor :stripe_customer_id + + attr_accessor :stripe_subscription_id + + attr_accessor :stripe_plan_id + + attr_accessor :enable_profanity_filter + + attr_accessor :enable_spam_filter + + attr_accessor :last_billing_issue_reminder_date + + attr_accessor :remove_unverified_comments + + attr_accessor :unverified_comments_tt_lms + + attr_accessor :comments_require_approval + + attr_accessor :auto_approve_comment_on_verification + + attr_accessor :send_profane_to_spam + + attr_accessor :has_flex_pricing + + attr_accessor :has_auditing + + attr_accessor :flex_last_billed_amount + + attr_accessor :de_anon_ip_addr + + # Construct a type with a set of properties K of type T + attr_accessor :meta + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'id' => :'id', + :'name' => :'name', + :'email' => :'email', + :'sign_up_date' => :'signUpDate', + :'package_id' => :'packageId', + :'payment_frequency' => :'paymentFrequency', + :'billing_info_valid' => :'billingInfoValid', + :'billing_handled_externally' => :'billingHandledExternally', + :'created_by' => :'createdBy', + :'is_setup' => :'isSetup', + :'domain_configuration' => :'domainConfiguration', + :'billing_info' => :'billingInfo', + :'stripe_customer_id' => :'stripeCustomerId', + :'stripe_subscription_id' => :'stripeSubscriptionId', + :'stripe_plan_id' => :'stripePlanId', + :'enable_profanity_filter' => :'enableProfanityFilter', + :'enable_spam_filter' => :'enableSpamFilter', + :'last_billing_issue_reminder_date' => :'lastBillingIssueReminderDate', + :'remove_unverified_comments' => :'removeUnverifiedComments', + :'unverified_comments_tt_lms' => :'unverifiedCommentsTTLms', + :'comments_require_approval' => :'commentsRequireApproval', + :'auto_approve_comment_on_verification' => :'autoApproveCommentOnVerification', + :'send_profane_to_spam' => :'sendProfaneToSpam', + :'has_flex_pricing' => :'hasFlexPricing', + :'has_auditing' => :'hasAuditing', + :'flex_last_billed_amount' => :'flexLastBilledAmount', + :'de_anon_ip_addr' => :'deAnonIpAddr', + :'meta' => :'meta' + } + 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 + { + :'id' => :'String', + :'name' => :'String', + :'email' => :'String', + :'sign_up_date' => :'Float', + :'package_id' => :'String', + :'payment_frequency' => :'Float', + :'billing_info_valid' => :'Boolean', + :'billing_handled_externally' => :'Boolean', + :'created_by' => :'String', + :'is_setup' => :'Boolean', + :'domain_configuration' => :'Array', + :'billing_info' => :'BillingInfo', + :'stripe_customer_id' => :'String', + :'stripe_subscription_id' => :'String', + :'stripe_plan_id' => :'String', + :'enable_profanity_filter' => :'Boolean', + :'enable_spam_filter' => :'Boolean', + :'last_billing_issue_reminder_date' => :'Time', + :'remove_unverified_comments' => :'Boolean', + :'unverified_comments_tt_lms' => :'Float', + :'comments_require_approval' => :'Boolean', + :'auto_approve_comment_on_verification' => :'Boolean', + :'send_profane_to_spam' => :'Boolean', + :'has_flex_pricing' => :'Boolean', + :'has_auditing' => :'Boolean', + :'flex_last_billed_amount' => :'Float', + :'de_anon_ip_addr' => :'Float', + :'meta' => :'Hash' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'unverified_comments_tt_lms', + ]) + 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::APITenant` 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::APITenant`. 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?(:'id') + self.id = attributes[:'id'] + else + self.id = nil + end + + if attributes.key?(:'name') + self.name = attributes[:'name'] + else + self.name = nil + end + + if attributes.key?(:'email') + self.email = attributes[:'email'] + end + + if attributes.key?(:'sign_up_date') + self.sign_up_date = attributes[:'sign_up_date'] + else + self.sign_up_date = nil + end + + if attributes.key?(:'package_id') + self.package_id = attributes[:'package_id'] + else + self.package_id = nil + end + + if attributes.key?(:'payment_frequency') + self.payment_frequency = attributes[:'payment_frequency'] + else + self.payment_frequency = nil + end + + if attributes.key?(:'billing_info_valid') + self.billing_info_valid = attributes[:'billing_info_valid'] + else + self.billing_info_valid = nil + end + + if attributes.key?(:'billing_handled_externally') + self.billing_handled_externally = attributes[:'billing_handled_externally'] + end + + if attributes.key?(:'created_by') + self.created_by = attributes[:'created_by'] + else + self.created_by = nil + end + + if attributes.key?(:'is_setup') + self.is_setup = attributes[:'is_setup'] + else + self.is_setup = nil + end + + if attributes.key?(:'domain_configuration') + if (value = attributes[:'domain_configuration']).is_a?(Array) + self.domain_configuration = value + end + else + self.domain_configuration = nil + end + + if attributes.key?(:'billing_info') + self.billing_info = attributes[:'billing_info'] + end + + if attributes.key?(:'stripe_customer_id') + self.stripe_customer_id = attributes[:'stripe_customer_id'] + end + + if attributes.key?(:'stripe_subscription_id') + self.stripe_subscription_id = attributes[:'stripe_subscription_id'] + end + + if attributes.key?(:'stripe_plan_id') + self.stripe_plan_id = attributes[:'stripe_plan_id'] + end + + if attributes.key?(:'enable_profanity_filter') + self.enable_profanity_filter = attributes[:'enable_profanity_filter'] + else + self.enable_profanity_filter = nil + end + + if attributes.key?(:'enable_spam_filter') + self.enable_spam_filter = attributes[:'enable_spam_filter'] + else + self.enable_spam_filter = nil + end + + if attributes.key?(:'last_billing_issue_reminder_date') + self.last_billing_issue_reminder_date = attributes[:'last_billing_issue_reminder_date'] + end + + if attributes.key?(:'remove_unverified_comments') + self.remove_unverified_comments = attributes[:'remove_unverified_comments'] + end + + if attributes.key?(:'unverified_comments_tt_lms') + self.unverified_comments_tt_lms = attributes[:'unverified_comments_tt_lms'] + end + + if attributes.key?(:'comments_require_approval') + self.comments_require_approval = attributes[:'comments_require_approval'] + end + + if attributes.key?(:'auto_approve_comment_on_verification') + self.auto_approve_comment_on_verification = attributes[:'auto_approve_comment_on_verification'] + end + + if attributes.key?(:'send_profane_to_spam') + self.send_profane_to_spam = attributes[:'send_profane_to_spam'] + end + + if attributes.key?(:'has_flex_pricing') + self.has_flex_pricing = attributes[:'has_flex_pricing'] + end + + if attributes.key?(:'has_auditing') + self.has_auditing = attributes[:'has_auditing'] + end + + if attributes.key?(:'flex_last_billed_amount') + self.flex_last_billed_amount = attributes[:'flex_last_billed_amount'] + end + + if attributes.key?(:'de_anon_ip_addr') + self.de_anon_ip_addr = attributes[:'de_anon_ip_addr'] + end + + if attributes.key?(:'meta') + if (value = attributes[:'meta']).is_a?(Hash) + self.meta = value + end + 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 @id.nil? + invalid_properties.push('invalid value for "id", id cannot be nil.') + end + + if @name.nil? + invalid_properties.push('invalid value for "name", name cannot be nil.') + end + + if @sign_up_date.nil? + invalid_properties.push('invalid value for "sign_up_date", sign_up_date cannot be nil.') + end + + if @package_id.nil? + invalid_properties.push('invalid value for "package_id", package_id cannot be nil.') + end + + if @payment_frequency.nil? + invalid_properties.push('invalid value for "payment_frequency", payment_frequency cannot be nil.') + end + + if @billing_info_valid.nil? + invalid_properties.push('invalid value for "billing_info_valid", billing_info_valid cannot be nil.') + end + + if @created_by.nil? + invalid_properties.push('invalid value for "created_by", created_by cannot be nil.') + end + + if @is_setup.nil? + invalid_properties.push('invalid value for "is_setup", is_setup cannot be nil.') + end + + if @domain_configuration.nil? + invalid_properties.push('invalid value for "domain_configuration", domain_configuration cannot be nil.') + end + + if @enable_profanity_filter.nil? + invalid_properties.push('invalid value for "enable_profanity_filter", enable_profanity_filter cannot be nil.') + end + + if @enable_spam_filter.nil? + invalid_properties.push('invalid value for "enable_spam_filter", enable_spam_filter 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 @id.nil? + return false if @name.nil? + return false if @sign_up_date.nil? + return false if @package_id.nil? + return false if @payment_frequency.nil? + return false if @billing_info_valid.nil? + return false if @created_by.nil? + return false if @is_setup.nil? + return false if @domain_configuration.nil? + return false if @enable_profanity_filter.nil? + return false if @enable_spam_filter.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] id Value to be assigned + def id=(id) + if id.nil? + fail ArgumentError, 'id cannot be nil' + end + + @id = id + end + + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + + # Custom attribute writer method with validation + # @param [Object] sign_up_date Value to be assigned + def sign_up_date=(sign_up_date) + if sign_up_date.nil? + fail ArgumentError, 'sign_up_date cannot be nil' + end + + @sign_up_date = sign_up_date + end + + # Custom attribute writer method with validation + # @param [Object] package_id Value to be assigned + def package_id=(package_id) + if package_id.nil? + fail ArgumentError, 'package_id cannot be nil' + end + + @package_id = package_id + end + + # Custom attribute writer method with validation + # @param [Object] payment_frequency Value to be assigned + def payment_frequency=(payment_frequency) + if payment_frequency.nil? + fail ArgumentError, 'payment_frequency cannot be nil' + end + + @payment_frequency = payment_frequency + end + + # Custom attribute writer method with validation + # @param [Object] billing_info_valid Value to be assigned + def billing_info_valid=(billing_info_valid) + if billing_info_valid.nil? + fail ArgumentError, 'billing_info_valid cannot be nil' + end + + @billing_info_valid = billing_info_valid + end + + # Custom attribute writer method with validation + # @param [Object] created_by Value to be assigned + def created_by=(created_by) + if created_by.nil? + fail ArgumentError, 'created_by cannot be nil' + end + + @created_by = created_by + end + + # Custom attribute writer method with validation + # @param [Object] is_setup Value to be assigned + def is_setup=(is_setup) + if is_setup.nil? + fail ArgumentError, 'is_setup cannot be nil' + end + + @is_setup = is_setup + end + + # Custom attribute writer method with validation + # @param [Object] domain_configuration Value to be assigned + def domain_configuration=(domain_configuration) + if domain_configuration.nil? + fail ArgumentError, 'domain_configuration cannot be nil' + end + + @domain_configuration = domain_configuration + end + + # Custom attribute writer method with validation + # @param [Object] enable_profanity_filter Value to be assigned + def enable_profanity_filter=(enable_profanity_filter) + if enable_profanity_filter.nil? + fail ArgumentError, 'enable_profanity_filter cannot be nil' + end + + @enable_profanity_filter = enable_profanity_filter + end + + # Custom attribute writer method with validation + # @param [Object] enable_spam_filter Value to be assigned + def enable_spam_filter=(enable_spam_filter) + if enable_spam_filter.nil? + fail ArgumentError, 'enable_spam_filter cannot be nil' + end + + @enable_spam_filter = enable_spam_filter + 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 && + id == o.id && + name == o.name && + email == o.email && + sign_up_date == o.sign_up_date && + package_id == o.package_id && + payment_frequency == o.payment_frequency && + billing_info_valid == o.billing_info_valid && + billing_handled_externally == o.billing_handled_externally && + created_by == o.created_by && + is_setup == o.is_setup && + domain_configuration == o.domain_configuration && + billing_info == o.billing_info && + stripe_customer_id == o.stripe_customer_id && + stripe_subscription_id == o.stripe_subscription_id && + stripe_plan_id == o.stripe_plan_id && + enable_profanity_filter == o.enable_profanity_filter && + enable_spam_filter == o.enable_spam_filter && + last_billing_issue_reminder_date == o.last_billing_issue_reminder_date && + remove_unverified_comments == o.remove_unverified_comments && + unverified_comments_tt_lms == o.unverified_comments_tt_lms && + comments_require_approval == o.comments_require_approval && + auto_approve_comment_on_verification == o.auto_approve_comment_on_verification && + send_profane_to_spam == o.send_profane_to_spam && + has_flex_pricing == o.has_flex_pricing && + has_auditing == o.has_auditing && + flex_last_billed_amount == o.flex_last_billed_amount && + de_anon_ip_addr == o.de_anon_ip_addr && + meta == o.meta + 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 + [id, name, email, sign_up_date, package_id, payment_frequency, billing_info_valid, billing_handled_externally, created_by, is_setup, domain_configuration, billing_info, stripe_customer_id, stripe_subscription_id, stripe_plan_id, enable_profanity_filter, enable_spam_filter, last_billing_issue_reminder_date, remove_unverified_comments, unverified_comments_tt_lms, comments_require_approval, auto_approve_comment_on_verification, send_profane_to_spam, has_flex_pricing, has_auditing, flex_last_billed_amount, de_anon_ip_addr, meta].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/api_tenant_daily_usage.rb b/client/lib/fastcomments-client/models/api_tenant_daily_usage.rb new file mode 100644 index 0000000..39b37f5 --- /dev/null +++ b/client/lib/fastcomments-client/models/api_tenant_daily_usage.rb @@ -0,0 +1,632 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class APITenantDailyUsage < ApiModelBase + attr_accessor :id + + attr_accessor :tenant_id + + attr_accessor :year_number + + attr_accessor :month_number + + attr_accessor :day_number + + attr_accessor :comment_fetch_count + + attr_accessor :comment_create_count + + attr_accessor :conversation_create_count + + attr_accessor :vote_count + + attr_accessor :account_created_count + + attr_accessor :user_mention_search + + attr_accessor :hash_tag_search + + attr_accessor :gif_search_trending + + attr_accessor :gif_search + + attr_accessor :api_credits_used + + attr_accessor :created_at + + attr_accessor :billed + + attr_accessor :ignored + + attr_accessor :api_error_count + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'id' => :'id', + :'tenant_id' => :'tenantId', + :'year_number' => :'yearNumber', + :'month_number' => :'monthNumber', + :'day_number' => :'dayNumber', + :'comment_fetch_count' => :'commentFetchCount', + :'comment_create_count' => :'commentCreateCount', + :'conversation_create_count' => :'conversationCreateCount', + :'vote_count' => :'voteCount', + :'account_created_count' => :'accountCreatedCount', + :'user_mention_search' => :'userMentionSearch', + :'hash_tag_search' => :'hashTagSearch', + :'gif_search_trending' => :'gifSearchTrending', + :'gif_search' => :'gifSearch', + :'api_credits_used' => :'apiCreditsUsed', + :'created_at' => :'createdAt', + :'billed' => :'billed', + :'ignored' => :'ignored', + :'api_error_count' => :'apiErrorCount' + } + 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 + { + :'id' => :'String', + :'tenant_id' => :'String', + :'year_number' => :'Float', + :'month_number' => :'Float', + :'day_number' => :'Float', + :'comment_fetch_count' => :'Float', + :'comment_create_count' => :'Float', + :'conversation_create_count' => :'Float', + :'vote_count' => :'Float', + :'account_created_count' => :'Float', + :'user_mention_search' => :'Float', + :'hash_tag_search' => :'Float', + :'gif_search_trending' => :'Float', + :'gif_search' => :'Float', + :'api_credits_used' => :'Float', + :'created_at' => :'Time', + :'billed' => :'Boolean', + :'ignored' => :'Boolean', + :'api_error_count' => :'Float' + } + 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::APITenantDailyUsage` 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::APITenantDailyUsage`. 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?(:'id') + self.id = attributes[:'id'] + else + self.id = nil + end + + if attributes.key?(:'tenant_id') + self.tenant_id = attributes[:'tenant_id'] + else + self.tenant_id = nil + end + + if attributes.key?(:'year_number') + self.year_number = attributes[:'year_number'] + else + self.year_number = nil + end + + if attributes.key?(:'month_number') + self.month_number = attributes[:'month_number'] + else + self.month_number = nil + end + + if attributes.key?(:'day_number') + self.day_number = attributes[:'day_number'] + else + self.day_number = nil + end + + if attributes.key?(:'comment_fetch_count') + self.comment_fetch_count = attributes[:'comment_fetch_count'] + else + self.comment_fetch_count = nil + end + + if attributes.key?(:'comment_create_count') + self.comment_create_count = attributes[:'comment_create_count'] + else + self.comment_create_count = nil + end + + if attributes.key?(:'conversation_create_count') + self.conversation_create_count = attributes[:'conversation_create_count'] + else + self.conversation_create_count = nil + end + + if attributes.key?(:'vote_count') + self.vote_count = attributes[:'vote_count'] + else + self.vote_count = nil + end + + if attributes.key?(:'account_created_count') + self.account_created_count = attributes[:'account_created_count'] + else + self.account_created_count = nil + end + + if attributes.key?(:'user_mention_search') + self.user_mention_search = attributes[:'user_mention_search'] + else + self.user_mention_search = nil + end + + if attributes.key?(:'hash_tag_search') + self.hash_tag_search = attributes[:'hash_tag_search'] + else + self.hash_tag_search = nil + end + + if attributes.key?(:'gif_search_trending') + self.gif_search_trending = attributes[:'gif_search_trending'] + else + self.gif_search_trending = nil + end + + if attributes.key?(:'gif_search') + self.gif_search = attributes[:'gif_search'] + else + self.gif_search = nil + end + + if attributes.key?(:'api_credits_used') + self.api_credits_used = attributes[:'api_credits_used'] + else + self.api_credits_used = nil + end + + if attributes.key?(:'created_at') + self.created_at = attributes[:'created_at'] + else + self.created_at = nil + end + + if attributes.key?(:'billed') + self.billed = attributes[:'billed'] + else + self.billed = nil + end + + if attributes.key?(:'ignored') + self.ignored = attributes[:'ignored'] + else + self.ignored = nil + end + + if attributes.key?(:'api_error_count') + self.api_error_count = attributes[:'api_error_count'] + else + self.api_error_count = 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 @id.nil? + invalid_properties.push('invalid value for "id", id cannot be nil.') + end + + if @tenant_id.nil? + invalid_properties.push('invalid value for "tenant_id", tenant_id cannot be nil.') + end + + if @year_number.nil? + invalid_properties.push('invalid value for "year_number", year_number cannot be nil.') + end + + if @month_number.nil? + invalid_properties.push('invalid value for "month_number", month_number cannot be nil.') + end + + if @day_number.nil? + invalid_properties.push('invalid value for "day_number", day_number cannot be nil.') + end + + if @comment_fetch_count.nil? + invalid_properties.push('invalid value for "comment_fetch_count", comment_fetch_count cannot be nil.') + end + + if @comment_create_count.nil? + invalid_properties.push('invalid value for "comment_create_count", comment_create_count cannot be nil.') + end + + if @conversation_create_count.nil? + invalid_properties.push('invalid value for "conversation_create_count", conversation_create_count cannot be nil.') + end + + if @vote_count.nil? + invalid_properties.push('invalid value for "vote_count", vote_count cannot be nil.') + end + + if @account_created_count.nil? + invalid_properties.push('invalid value for "account_created_count", account_created_count cannot be nil.') + end + + if @user_mention_search.nil? + invalid_properties.push('invalid value for "user_mention_search", user_mention_search cannot be nil.') + end + + if @hash_tag_search.nil? + invalid_properties.push('invalid value for "hash_tag_search", hash_tag_search cannot be nil.') + end + + if @gif_search_trending.nil? + invalid_properties.push('invalid value for "gif_search_trending", gif_search_trending cannot be nil.') + end + + if @gif_search.nil? + invalid_properties.push('invalid value for "gif_search", gif_search cannot be nil.') + end + + if @api_credits_used.nil? + invalid_properties.push('invalid value for "api_credits_used", api_credits_used cannot be nil.') + end + + if @created_at.nil? + invalid_properties.push('invalid value for "created_at", created_at cannot be nil.') + end + + if @billed.nil? + invalid_properties.push('invalid value for "billed", billed cannot be nil.') + end + + if @ignored.nil? + invalid_properties.push('invalid value for "ignored", ignored cannot be nil.') + end + + if @api_error_count.nil? + invalid_properties.push('invalid value for "api_error_count", api_error_count 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 @id.nil? + return false if @tenant_id.nil? + return false if @year_number.nil? + return false if @month_number.nil? + return false if @day_number.nil? + return false if @comment_fetch_count.nil? + return false if @comment_create_count.nil? + return false if @conversation_create_count.nil? + return false if @vote_count.nil? + return false if @account_created_count.nil? + return false if @user_mention_search.nil? + return false if @hash_tag_search.nil? + return false if @gif_search_trending.nil? + return false if @gif_search.nil? + return false if @api_credits_used.nil? + return false if @created_at.nil? + return false if @billed.nil? + return false if @ignored.nil? + return false if @api_error_count.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] id Value to be assigned + def id=(id) + if id.nil? + fail ArgumentError, 'id cannot be nil' + end + + @id = id + end + + # Custom attribute writer method with validation + # @param [Object] tenant_id Value to be assigned + def tenant_id=(tenant_id) + if tenant_id.nil? + fail ArgumentError, 'tenant_id cannot be nil' + end + + @tenant_id = tenant_id + end + + # Custom attribute writer method with validation + # @param [Object] year_number Value to be assigned + def year_number=(year_number) + if year_number.nil? + fail ArgumentError, 'year_number cannot be nil' + end + + @year_number = year_number + end + + # Custom attribute writer method with validation + # @param [Object] month_number Value to be assigned + def month_number=(month_number) + if month_number.nil? + fail ArgumentError, 'month_number cannot be nil' + end + + @month_number = month_number + end + + # Custom attribute writer method with validation + # @param [Object] day_number Value to be assigned + def day_number=(day_number) + if day_number.nil? + fail ArgumentError, 'day_number cannot be nil' + end + + @day_number = day_number + end + + # Custom attribute writer method with validation + # @param [Object] comment_fetch_count Value to be assigned + def comment_fetch_count=(comment_fetch_count) + if comment_fetch_count.nil? + fail ArgumentError, 'comment_fetch_count cannot be nil' + end + + @comment_fetch_count = comment_fetch_count + end + + # Custom attribute writer method with validation + # @param [Object] comment_create_count Value to be assigned + def comment_create_count=(comment_create_count) + if comment_create_count.nil? + fail ArgumentError, 'comment_create_count cannot be nil' + end + + @comment_create_count = comment_create_count + end + + # Custom attribute writer method with validation + # @param [Object] conversation_create_count Value to be assigned + def conversation_create_count=(conversation_create_count) + if conversation_create_count.nil? + fail ArgumentError, 'conversation_create_count cannot be nil' + end + + @conversation_create_count = conversation_create_count + end + + # Custom attribute writer method with validation + # @param [Object] vote_count Value to be assigned + def vote_count=(vote_count) + if vote_count.nil? + fail ArgumentError, 'vote_count cannot be nil' + end + + @vote_count = vote_count + end + + # Custom attribute writer method with validation + # @param [Object] account_created_count Value to be assigned + def account_created_count=(account_created_count) + if account_created_count.nil? + fail ArgumentError, 'account_created_count cannot be nil' + end + + @account_created_count = account_created_count + end + + # Custom attribute writer method with validation + # @param [Object] user_mention_search Value to be assigned + def user_mention_search=(user_mention_search) + if user_mention_search.nil? + fail ArgumentError, 'user_mention_search cannot be nil' + end + + @user_mention_search = user_mention_search + end + + # Custom attribute writer method with validation + # @param [Object] hash_tag_search Value to be assigned + def hash_tag_search=(hash_tag_search) + if hash_tag_search.nil? + fail ArgumentError, 'hash_tag_search cannot be nil' + end + + @hash_tag_search = hash_tag_search + end + + # Custom attribute writer method with validation + # @param [Object] gif_search_trending Value to be assigned + def gif_search_trending=(gif_search_trending) + if gif_search_trending.nil? + fail ArgumentError, 'gif_search_trending cannot be nil' + end + + @gif_search_trending = gif_search_trending + end + + # Custom attribute writer method with validation + # @param [Object] gif_search Value to be assigned + def gif_search=(gif_search) + if gif_search.nil? + fail ArgumentError, 'gif_search cannot be nil' + end + + @gif_search = gif_search + end + + # Custom attribute writer method with validation + # @param [Object] api_credits_used Value to be assigned + def api_credits_used=(api_credits_used) + if api_credits_used.nil? + fail ArgumentError, 'api_credits_used cannot be nil' + end + + @api_credits_used = api_credits_used + end + + # Custom attribute writer method with validation + # @param [Object] created_at Value to be assigned + def created_at=(created_at) + if created_at.nil? + fail ArgumentError, 'created_at cannot be nil' + end + + @created_at = created_at + end + + # Custom attribute writer method with validation + # @param [Object] billed Value to be assigned + def billed=(billed) + if billed.nil? + fail ArgumentError, 'billed cannot be nil' + end + + @billed = billed + end + + # Custom attribute writer method with validation + # @param [Object] ignored Value to be assigned + def ignored=(ignored) + if ignored.nil? + fail ArgumentError, 'ignored cannot be nil' + end + + @ignored = ignored + end + + # Custom attribute writer method with validation + # @param [Object] api_error_count Value to be assigned + def api_error_count=(api_error_count) + if api_error_count.nil? + fail ArgumentError, 'api_error_count cannot be nil' + end + + @api_error_count = api_error_count + 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 && + id == o.id && + tenant_id == o.tenant_id && + year_number == o.year_number && + month_number == o.month_number && + day_number == o.day_number && + comment_fetch_count == o.comment_fetch_count && + comment_create_count == o.comment_create_count && + conversation_create_count == o.conversation_create_count && + vote_count == o.vote_count && + account_created_count == o.account_created_count && + user_mention_search == o.user_mention_search && + hash_tag_search == o.hash_tag_search && + gif_search_trending == o.gif_search_trending && + gif_search == o.gif_search && + api_credits_used == o.api_credits_used && + created_at == o.created_at && + billed == o.billed && + ignored == o.ignored && + api_error_count == o.api_error_count + 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 + [id, tenant_id, year_number, month_number, day_number, comment_fetch_count, comment_create_count, conversation_create_count, vote_count, account_created_count, user_mention_search, hash_tag_search, gif_search_trending, gif_search, api_credits_used, created_at, billed, ignored, api_error_count].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/billing_info.rb b/client/lib/fastcomments-client/models/billing_info.rb new file mode 100644 index 0000000..b265a45 --- /dev/null +++ b/client/lib/fastcomments-client/models/billing_info.rb @@ -0,0 +1,315 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class BillingInfo < ApiModelBase + attr_accessor :name + + attr_accessor :address + + attr_accessor :city + + attr_accessor :state + + attr_accessor :zip + + attr_accessor :country + + # Currency for invoices. + attr_accessor :currency + + # Email for invoices. + attr_accessor :email + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'name' => :'name', + :'address' => :'address', + :'city' => :'city', + :'state' => :'state', + :'zip' => :'zip', + :'country' => :'country', + :'currency' => :'currency', + :'email' => :'email' + } + 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 + { + :'name' => :'String', + :'address' => :'String', + :'city' => :'String', + :'state' => :'String', + :'zip' => :'String', + :'country' => :'String', + :'currency' => :'String', + :'email' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'currency', + ]) + 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::BillingInfo` 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::BillingInfo`. 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?(:'name') + self.name = attributes[:'name'] + else + self.name = nil + end + + if attributes.key?(:'address') + self.address = attributes[:'address'] + else + self.address = nil + end + + if attributes.key?(:'city') + self.city = attributes[:'city'] + else + self.city = nil + end + + if attributes.key?(:'state') + self.state = attributes[:'state'] + else + self.state = nil + end + + if attributes.key?(:'zip') + self.zip = attributes[:'zip'] + else + self.zip = nil + end + + if attributes.key?(:'country') + self.country = attributes[:'country'] + else + self.country = nil + end + + if attributes.key?(:'currency') + self.currency = attributes[:'currency'] + end + + if attributes.key?(:'email') + self.email = attributes[:'email'] + 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 @name.nil? + invalid_properties.push('invalid value for "name", name cannot be nil.') + end + + if @address.nil? + invalid_properties.push('invalid value for "address", address cannot be nil.') + end + + if @city.nil? + invalid_properties.push('invalid value for "city", city cannot be nil.') + end + + if @state.nil? + invalid_properties.push('invalid value for "state", state cannot be nil.') + end + + if @zip.nil? + invalid_properties.push('invalid value for "zip", zip cannot be nil.') + end + + if @country.nil? + invalid_properties.push('invalid value for "country", country 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 @name.nil? + return false if @address.nil? + return false if @city.nil? + return false if @state.nil? + return false if @zip.nil? + return false if @country.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + + # Custom attribute writer method with validation + # @param [Object] address Value to be assigned + def address=(address) + if address.nil? + fail ArgumentError, 'address cannot be nil' + end + + @address = address + end + + # Custom attribute writer method with validation + # @param [Object] city Value to be assigned + def city=(city) + if city.nil? + fail ArgumentError, 'city cannot be nil' + end + + @city = city + end + + # Custom attribute writer method with validation + # @param [Object] state Value to be assigned + def state=(state) + if state.nil? + fail ArgumentError, 'state cannot be nil' + end + + @state = state + end + + # Custom attribute writer method with validation + # @param [Object] zip Value to be assigned + def zip=(zip) + if zip.nil? + fail ArgumentError, 'zip cannot be nil' + end + + @zip = zip + end + + # Custom attribute writer method with validation + # @param [Object] country Value to be assigned + def country=(country) + if country.nil? + fail ArgumentError, 'country cannot be nil' + end + + @country = country + 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 && + name == o.name && + address == o.address && + city == o.city && + state == o.state && + zip == o.zip && + country == o.country && + currency == o.currency && + email == o.email + 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 + [name, address, city, state, zip, country, currency, email].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/bulk_create_hash_tags_body.rb b/client/lib/fastcomments-client/models/bulk_create_hash_tags_body.rb new file mode 100644 index 0000000..cf82ba1 --- /dev/null +++ b/client/lib/fastcomments-client/models/bulk_create_hash_tags_body.rb @@ -0,0 +1,175 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class BulkCreateHashTagsBody < ApiModelBase + attr_accessor :tenant_id + + attr_accessor :tags + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'tenant_id' => :'tenantId', + :'tags' => :'tags' + } + 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 + { + :'tenant_id' => :'String', + :'tags' => :'Array' + } + 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::BulkCreateHashTagsBody` 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::BulkCreateHashTagsBody`. 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?(:'tenant_id') + self.tenant_id = attributes[:'tenant_id'] + end + + if attributes.key?(:'tags') + if (value = attributes[:'tags']).is_a?(Array) + self.tags = value + end + else + self.tags = 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 @tags.nil? + invalid_properties.push('invalid value for "tags", tags 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 @tags.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] tags Value to be assigned + def tags=(tags) + if tags.nil? + fail ArgumentError, 'tags cannot be nil' + end + + @tags = tags + 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 && + tenant_id == o.tenant_id && + tags == o.tags + 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 + [tenant_id, tags].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/bulk_create_hash_tags_body_tags_inner.rb b/client/lib/fastcomments-client/models/bulk_create_hash_tags_body_tags_inner.rb new file mode 100644 index 0000000..8559872 --- /dev/null +++ b/client/lib/fastcomments-client/models/bulk_create_hash_tags_body_tags_inner.rb @@ -0,0 +1,173 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class BulkCreateHashTagsBodyTagsInner < ApiModelBase + attr_accessor :url + + attr_accessor :tag + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'url' => :'url', + :'tag' => :'tag' + } + 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 + { + :'url' => :'String', + :'tag' => :'String' + } + 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::BulkCreateHashTagsBodyTagsInner` 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::BulkCreateHashTagsBodyTagsInner`. 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?(:'url') + self.url = attributes[:'url'] + end + + if attributes.key?(:'tag') + self.tag = attributes[:'tag'] + else + self.tag = 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 @tag.nil? + invalid_properties.push('invalid value for "tag", tag 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 @tag.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] tag Value to be assigned + def tag=(tag) + if tag.nil? + fail ArgumentError, 'tag cannot be nil' + end + + @tag = tag + 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 && + url == o.url && + tag == o.tag + 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 + [url, tag].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/bulk_create_hash_tags_response.rb b/client/lib/fastcomments-client/models/bulk_create_hash_tags_response.rb new file mode 100644 index 0000000..1e87aa1 --- /dev/null +++ b/client/lib/fastcomments-client/models/bulk_create_hash_tags_response.rb @@ -0,0 +1,214 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class BulkCreateHashTagsResponse < ApiModelBase + attr_accessor :status + + attr_accessor :results + + 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', + :'results' => :'results' + } + 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', + :'results' => :'Array' + } + 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::BulkCreateHashTagsResponse` 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::BulkCreateHashTagsResponse`. 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 + + if attributes.key?(:'results') + if (value = attributes[:'results']).is_a?(Array) + self.results = value + end + else + self.results = 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 + + if @results.nil? + invalid_properties.push('invalid value for "results", results 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? + return false if @results.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 + + # Custom attribute writer method with validation + # @param [Object] results Value to be assigned + def results=(results) + if results.nil? + fail ArgumentError, 'results cannot be nil' + end + + @results = results + 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 && + results == o.results + 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, results].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/comment_log_data.rb b/client/lib/fastcomments-client/models/comment_log_data.rb index 13bd4e1..ff127f6 100644 --- a/client/lib/fastcomments-client/models/comment_log_data.rb +++ b/client/lib/fastcomments-client/models/comment_log_data.rb @@ -101,6 +101,12 @@ class CommentLogData < ApiModelBase attr_accessor :referenced_comment_id + attr_accessor :invalid_locale + + attr_accessor :detected_locale + + attr_accessor :detected_language + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -168,7 +174,10 @@ def self.attribute_map :'flag_count_before' => :'flagCountBefore', :'trust_factor_before' => :'trustFactorBefore', :'trust_factor_after' => :'trustFactorAfter', - :'referenced_comment_id' => :'referencedCommentId' + :'referenced_comment_id' => :'referencedCommentId', + :'invalid_locale' => :'invalidLocale', + :'detected_locale' => :'detectedLocale', + :'detected_language' => :'detectedLanguage' } end @@ -227,7 +236,10 @@ def self.openapi_types :'flag_count_before' => :'Float', :'trust_factor_before' => :'Float', :'trust_factor_after' => :'Float', - :'referenced_comment_id' => :'String' + :'referenced_comment_id' => :'String', + :'invalid_locale' => :'String', + :'detected_locale' => :'String', + :'detected_language' => :'String' } end @@ -434,6 +446,18 @@ def initialize(attributes = {}) if attributes.key?(:'referenced_comment_id') self.referenced_comment_id = attributes[:'referenced_comment_id'] end + + if attributes.key?(:'invalid_locale') + self.invalid_locale = attributes[:'invalid_locale'] + end + + if attributes.key?(:'detected_locale') + self.detected_locale = attributes[:'detected_locale'] + end + + if attributes.key?(:'detected_language') + self.detected_language = attributes[:'detected_language'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -510,7 +534,10 @@ def ==(o) flag_count_before == o.flag_count_before && trust_factor_before == o.trust_factor_before && trust_factor_after == o.trust_factor_after && - referenced_comment_id == o.referenced_comment_id + referenced_comment_id == o.referenced_comment_id && + invalid_locale == o.invalid_locale && + detected_locale == o.detected_locale && + detected_language == o.detected_language end # @see the `==` method @@ -522,7 +549,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [clear_content, is_deleted_user, phrase, bad_word, word, locale, tenant_badge_id, badge_id, was_logged_in, found_user, verified, engine, engine_response, engine_tokens, trust_factor, rule, user_id, subscribers, notification_count, votes_before, votes_up_before, votes_down_before, votes_after, votes_up_after, votes_down_after, repeat_action, reason, other_data, spam_before, spam_after, permanent_flag, approved_before, approved_after, reviewed_before, reviewed_after, text_before, text_after, expire_before, expire_after, flag_count_before, trust_factor_before, trust_factor_after, referenced_comment_id].hash + [clear_content, is_deleted_user, phrase, bad_word, word, locale, tenant_badge_id, badge_id, was_logged_in, found_user, verified, engine, engine_response, engine_tokens, trust_factor, rule, user_id, subscribers, notification_count, votes_before, votes_up_before, votes_down_before, votes_after, votes_up_after, votes_down_after, repeat_action, reason, other_data, spam_before, spam_after, permanent_flag, approved_before, approved_after, reviewed_before, reviewed_after, text_before, text_after, expire_before, expire_after, flag_count_before, trust_factor_before, trust_factor_after, referenced_comment_id, invalid_locale, detected_locale, detected_language].hash end # Builds the object from hash diff --git a/client/lib/fastcomments-client/models/comment_log_type.rb b/client/lib/fastcomments-client/models/comment_log_type.rb index 5f79c21..26e0860 100644 --- a/client/lib/fastcomments-client/models/comment_log_type.rb +++ b/client/lib/fastcomments-client/models/comment_log_type.rb @@ -70,9 +70,10 @@ class CommentLogType N52 = 52.freeze N53 = 53.freeze N54 = 54.freeze + N55 = 55.freeze def self.all_vars - @all_vars ||= [N0, N1, N2, N3, N4, N5, N6, N7, N8, N9, N10, N11, N12, N13, N14, N15, N16, N17, N18, N19, N20, N21, N22, N23, N24, N25, N26, N27, N28, N29, N30, N31, N32, N33, N34, N35, N36, N37, N38, N39, N40, N41, N42, N43, N44, N45, N46, N47, N48, N49, N50, N51, N52, N53, N54].freeze + @all_vars ||= [N0, N1, N2, N3, N4, N5, N6, N7, N8, N9, N10, N11, N12, N13, N14, N15, N16, N17, N18, N19, N20, N21, N22, N23, N24, N25, N26, N27, N28, N29, N30, N31, N32, N33, N34, N35, N36, N37, N38, N39, N40, N41, N42, N43, N44, N45, N46, N47, N48, N49, N50, N51, N52, N53, N54, N55].freeze end # Builds the enum from string diff --git a/client/lib/fastcomments-client/models/create_email_template200_response.rb b/client/lib/fastcomments-client/models/create_email_template200_response.rb new file mode 100644 index 0000000..9ab6946 --- /dev/null +++ b/client/lib/fastcomments-client/models/create_email_template200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module CreateEmailTemplate200Response + 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_email_template_body.rb b/client/lib/fastcomments-client/models/create_email_template_body.rb new file mode 100644 index 0000000..37ab640 --- /dev/null +++ b/client/lib/fastcomments-client/models/create_email_template_body.rb @@ -0,0 +1,249 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class CreateEmailTemplateBody < ApiModelBase + attr_accessor :email_template_id + + attr_accessor :display_name + + attr_accessor :ejs + + attr_accessor :domain + + # Construct a type with a set of properties K of type T + attr_accessor :translation_overrides_by_locale + + # Construct a type with a set of properties K of type T + attr_accessor :test_data + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'email_template_id' => :'emailTemplateId', + :'display_name' => :'displayName', + :'ejs' => :'ejs', + :'domain' => :'domain', + :'translation_overrides_by_locale' => :'translationOverridesByLocale', + :'test_data' => :'testData' + } + 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 + { + :'email_template_id' => :'String', + :'display_name' => :'String', + :'ejs' => :'String', + :'domain' => :'String', + :'translation_overrides_by_locale' => :'Hash', + :'test_data' => :'Hash' + } + 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::CreateEmailTemplateBody` 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::CreateEmailTemplateBody`. 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?(:'email_template_id') + self.email_template_id = attributes[:'email_template_id'] + else + self.email_template_id = nil + end + + if attributes.key?(:'display_name') + self.display_name = attributes[:'display_name'] + else + self.display_name = nil + end + + if attributes.key?(:'ejs') + self.ejs = attributes[:'ejs'] + else + self.ejs = nil + end + + if attributes.key?(:'domain') + self.domain = attributes[:'domain'] + end + + if attributes.key?(:'translation_overrides_by_locale') + if (value = attributes[:'translation_overrides_by_locale']).is_a?(Hash) + self.translation_overrides_by_locale = value + end + end + + if attributes.key?(:'test_data') + if (value = attributes[:'test_data']).is_a?(Hash) + self.test_data = value + end + 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 @email_template_id.nil? + invalid_properties.push('invalid value for "email_template_id", email_template_id cannot be nil.') + end + + if @display_name.nil? + invalid_properties.push('invalid value for "display_name", display_name cannot be nil.') + end + + if @ejs.nil? + invalid_properties.push('invalid value for "ejs", ejs 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 @email_template_id.nil? + return false if @display_name.nil? + return false if @ejs.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] email_template_id Value to be assigned + def email_template_id=(email_template_id) + if email_template_id.nil? + fail ArgumentError, 'email_template_id cannot be nil' + end + + @email_template_id = email_template_id + end + + # Custom attribute writer method with validation + # @param [Object] display_name Value to be assigned + def display_name=(display_name) + if display_name.nil? + fail ArgumentError, 'display_name cannot be nil' + end + + @display_name = display_name + end + + # Custom attribute writer method with validation + # @param [Object] ejs Value to be assigned + def ejs=(ejs) + if ejs.nil? + fail ArgumentError, 'ejs cannot be nil' + end + + @ejs = ejs + 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 && + email_template_id == o.email_template_id && + display_name == o.display_name && + ejs == o.ejs && + domain == o.domain && + translation_overrides_by_locale == o.translation_overrides_by_locale && + test_data == o.test_data + 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 + [email_template_id, display_name, ejs, domain, translation_overrides_by_locale, test_data].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/create_email_template_response.rb b/client/lib/fastcomments-client/models/create_email_template_response.rb new file mode 100644 index 0000000..cf7a42c --- /dev/null +++ b/client/lib/fastcomments-client/models/create_email_template_response.rb @@ -0,0 +1,212 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class CreateEmailTemplateResponse < ApiModelBase + attr_accessor :status + + attr_accessor :email_template + + 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', + :'email_template' => :'emailTemplate' + } + 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', + :'email_template' => :'CustomEmailTemplate' + } + 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::CreateEmailTemplateResponse` 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::CreateEmailTemplateResponse`. 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 + + if attributes.key?(:'email_template') + self.email_template = attributes[:'email_template'] + else + self.email_template = 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 + + if @email_template.nil? + invalid_properties.push('invalid value for "email_template", email_template 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? + return false if @email_template.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 + + # Custom attribute writer method with validation + # @param [Object] email_template Value to be assigned + def email_template=(email_template) + if email_template.nil? + fail ArgumentError, 'email_template cannot be nil' + end + + @email_template = email_template + 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 && + email_template == o.email_template + 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, email_template].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/create_hash_tag_body.rb b/client/lib/fastcomments-client/models/create_hash_tag_body.rb new file mode 100644 index 0000000..b832ca4 --- /dev/null +++ b/client/lib/fastcomments-client/models/create_hash_tag_body.rb @@ -0,0 +1,182 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class CreateHashTagBody < ApiModelBase + attr_accessor :tenant_id + + attr_accessor :tag + + attr_accessor :url + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'tenant_id' => :'tenantId', + :'tag' => :'tag', + :'url' => :'url' + } + 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 + { + :'tenant_id' => :'String', + :'tag' => :'String', + :'url' => :'String' + } + 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::CreateHashTagBody` 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::CreateHashTagBody`. 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?(:'tenant_id') + self.tenant_id = attributes[:'tenant_id'] + end + + if attributes.key?(:'tag') + self.tag = attributes[:'tag'] + else + self.tag = nil + end + + if attributes.key?(:'url') + self.url = attributes[:'url'] + 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 @tag.nil? + invalid_properties.push('invalid value for "tag", tag 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 @tag.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] tag Value to be assigned + def tag=(tag) + if tag.nil? + fail ArgumentError, 'tag cannot be nil' + end + + @tag = tag + 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 && + tenant_id == o.tenant_id && + tag == o.tag && + url == o.url + 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 + [tenant_id, tag, url].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/create_hash_tag_response.rb b/client/lib/fastcomments-client/models/create_hash_tag_response.rb new file mode 100644 index 0000000..31d6c08 --- /dev/null +++ b/client/lib/fastcomments-client/models/create_hash_tag_response.rb @@ -0,0 +1,212 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class CreateHashTagResponse < ApiModelBase + attr_accessor :status + + attr_accessor :hash_tag + + 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', + :'hash_tag' => :'hashTag' + } + 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', + :'hash_tag' => :'TenantHashTag' + } + 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::CreateHashTagResponse` 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::CreateHashTagResponse`. 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 + + if attributes.key?(:'hash_tag') + self.hash_tag = attributes[:'hash_tag'] + else + self.hash_tag = 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 + + if @hash_tag.nil? + invalid_properties.push('invalid value for "hash_tag", hash_tag 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? + return false if @hash_tag.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 + + # Custom attribute writer method with validation + # @param [Object] hash_tag Value to be assigned + def hash_tag=(hash_tag) + if hash_tag.nil? + fail ArgumentError, 'hash_tag cannot be nil' + end + + @hash_tag = hash_tag + 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 && + hash_tag == o.hash_tag + 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_tag].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/create_moderator200_response.rb b/client/lib/fastcomments-client/models/create_moderator200_response.rb new file mode 100644 index 0000000..db17a87 --- /dev/null +++ b/client/lib/fastcomments-client/models/create_moderator200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module CreateModerator200Response + 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_moderator_body.rb b/client/lib/fastcomments-client/models/create_moderator_body.rb new file mode 100644 index 0000000..98a2a02 --- /dev/null +++ b/client/lib/fastcomments-client/models/create_moderator_body.rb @@ -0,0 +1,210 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class CreateModeratorBody < ApiModelBase + attr_accessor :name + + attr_accessor :email + + attr_accessor :user_id + + attr_accessor :moderation_group_ids + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'name' => :'name', + :'email' => :'email', + :'user_id' => :'userId', + :'moderation_group_ids' => :'moderationGroupIds' + } + 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 + { + :'name' => :'String', + :'email' => :'String', + :'user_id' => :'String', + :'moderation_group_ids' => :'Array' + } + 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::CreateModeratorBody` 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::CreateModeratorBody`. 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?(:'name') + self.name = attributes[:'name'] + else + self.name = nil + end + + if attributes.key?(:'email') + self.email = attributes[:'email'] + else + self.email = nil + end + + if attributes.key?(:'user_id') + self.user_id = attributes[:'user_id'] + end + + if attributes.key?(:'moderation_group_ids') + if (value = attributes[:'moderation_group_ids']).is_a?(Array) + self.moderation_group_ids = value + end + 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 @name.nil? + invalid_properties.push('invalid value for "name", name cannot be nil.') + end + + if @email.nil? + invalid_properties.push('invalid value for "email", email 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 @name.nil? + return false if @email.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + + # Custom attribute writer method with validation + # @param [Object] email Value to be assigned + def email=(email) + if email.nil? + fail ArgumentError, 'email cannot be nil' + end + + @email = email + 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 && + name == o.name && + email == o.email && + user_id == o.user_id && + moderation_group_ids == o.moderation_group_ids + 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 + [name, email, user_id, moderation_group_ids].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/create_moderator_response.rb b/client/lib/fastcomments-client/models/create_moderator_response.rb new file mode 100644 index 0000000..4a31d61 --- /dev/null +++ b/client/lib/fastcomments-client/models/create_moderator_response.rb @@ -0,0 +1,212 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class CreateModeratorResponse < ApiModelBase + attr_accessor :status + + attr_accessor :moderator + + 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', + :'moderator' => :'moderator' + } + 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', + :'moderator' => :'Moderator' + } + 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::CreateModeratorResponse` 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::CreateModeratorResponse`. 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 + + if attributes.key?(:'moderator') + self.moderator = attributes[:'moderator'] + else + self.moderator = 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 + + if @moderator.nil? + invalid_properties.push('invalid value for "moderator", moderator 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? + return false if @moderator.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 + + # Custom attribute writer method with validation + # @param [Object] moderator Value to be assigned + def moderator=(moderator) + if moderator.nil? + fail ArgumentError, 'moderator cannot be nil' + end + + @moderator = moderator + 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 && + moderator == o.moderator + 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, moderator].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/create_question_config200_response.rb b/client/lib/fastcomments-client/models/create_question_config200_response.rb new file mode 100644 index 0000000..ef97bb3 --- /dev/null +++ b/client/lib/fastcomments-client/models/create_question_config200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module CreateQuestionConfig200Response + 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_config_body.rb b/client/lib/fastcomments-client/models/create_question_config_body.rb new file mode 100644 index 0000000..81f0ca0 --- /dev/null +++ b/client/lib/fastcomments-client/models/create_question_config_body.rb @@ -0,0 +1,336 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class CreateQuestionConfigBody < ApiModelBase + attr_accessor :name + + attr_accessor :question + + attr_accessor :help_text + + attr_accessor :type + + attr_accessor :num_stars + + attr_accessor :min + + attr_accessor :max + + attr_accessor :default_value + + attr_accessor :label_negative + + attr_accessor :label_positive + + attr_accessor :custom_options + + attr_accessor :sub_question_ids + + attr_accessor :always_show_sub_questions + + attr_accessor :reporting_order + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'name' => :'name', + :'question' => :'question', + :'help_text' => :'helpText', + :'type' => :'type', + :'num_stars' => :'numStars', + :'min' => :'min', + :'max' => :'max', + :'default_value' => :'defaultValue', + :'label_negative' => :'labelNegative', + :'label_positive' => :'labelPositive', + :'custom_options' => :'customOptions', + :'sub_question_ids' => :'subQuestionIds', + :'always_show_sub_questions' => :'alwaysShowSubQuestions', + :'reporting_order' => :'reportingOrder' + } + 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 + { + :'name' => :'String', + :'question' => :'String', + :'help_text' => :'String', + :'type' => :'String', + :'num_stars' => :'Float', + :'min' => :'Float', + :'max' => :'Float', + :'default_value' => :'Float', + :'label_negative' => :'String', + :'label_positive' => :'String', + :'custom_options' => :'Array', + :'sub_question_ids' => :'Array', + :'always_show_sub_questions' => :'Boolean', + :'reporting_order' => :'Float' + } + 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::CreateQuestionConfigBody` 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::CreateQuestionConfigBody`. 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?(:'name') + self.name = attributes[:'name'] + else + self.name = nil + end + + if attributes.key?(:'question') + self.question = attributes[:'question'] + else + self.question = nil + end + + if attributes.key?(:'help_text') + self.help_text = attributes[:'help_text'] + end + + if attributes.key?(:'type') + self.type = attributes[:'type'] + else + self.type = nil + end + + if attributes.key?(:'num_stars') + self.num_stars = attributes[:'num_stars'] + end + + if attributes.key?(:'min') + self.min = attributes[:'min'] + end + + if attributes.key?(:'max') + self.max = attributes[:'max'] + end + + if attributes.key?(:'default_value') + self.default_value = attributes[:'default_value'] + end + + if attributes.key?(:'label_negative') + self.label_negative = attributes[:'label_negative'] + end + + if attributes.key?(:'label_positive') + self.label_positive = attributes[:'label_positive'] + end + + if attributes.key?(:'custom_options') + if (value = attributes[:'custom_options']).is_a?(Array) + self.custom_options = value + end + end + + if attributes.key?(:'sub_question_ids') + if (value = attributes[:'sub_question_ids']).is_a?(Array) + self.sub_question_ids = value + end + end + + if attributes.key?(:'always_show_sub_questions') + self.always_show_sub_questions = attributes[:'always_show_sub_questions'] + end + + if attributes.key?(:'reporting_order') + self.reporting_order = attributes[:'reporting_order'] + else + self.reporting_order = 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 @name.nil? + invalid_properties.push('invalid value for "name", name cannot be nil.') + end + + if @question.nil? + invalid_properties.push('invalid value for "question", question cannot be nil.') + end + + if @type.nil? + invalid_properties.push('invalid value for "type", type cannot be nil.') + end + + if @reporting_order.nil? + invalid_properties.push('invalid value for "reporting_order", reporting_order 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 @name.nil? + return false if @question.nil? + return false if @type.nil? + return false if @reporting_order.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + + # Custom attribute writer method with validation + # @param [Object] question Value to be assigned + def question=(question) + if question.nil? + fail ArgumentError, 'question cannot be nil' + end + + @question = question + end + + # Custom attribute writer method with validation + # @param [Object] type Value to be assigned + def type=(type) + if type.nil? + fail ArgumentError, 'type cannot be nil' + end + + @type = type + end + + # Custom attribute writer method with validation + # @param [Object] reporting_order Value to be assigned + def reporting_order=(reporting_order) + if reporting_order.nil? + fail ArgumentError, 'reporting_order cannot be nil' + end + + @reporting_order = reporting_order + 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 && + name == o.name && + question == o.question && + help_text == o.help_text && + type == o.type && + num_stars == o.num_stars && + min == o.min && + max == o.max && + default_value == o.default_value && + label_negative == o.label_negative && + label_positive == o.label_positive && + custom_options == o.custom_options && + sub_question_ids == o.sub_question_ids && + always_show_sub_questions == o.always_show_sub_questions && + reporting_order == o.reporting_order + 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 + [name, question, help_text, type, num_stars, min, max, default_value, label_negative, label_positive, custom_options, sub_question_ids, always_show_sub_questions, reporting_order].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/create_question_config_response.rb b/client/lib/fastcomments-client/models/create_question_config_response.rb new file mode 100644 index 0000000..68a83d9 --- /dev/null +++ b/client/lib/fastcomments-client/models/create_question_config_response.rb @@ -0,0 +1,212 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class CreateQuestionConfigResponse < ApiModelBase + attr_accessor :status + + attr_accessor :question_config + + 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', + :'question_config' => :'questionConfig' + } + 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', + :'question_config' => :'QuestionConfig' + } + 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::CreateQuestionConfigResponse` 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::CreateQuestionConfigResponse`. 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 + + if attributes.key?(:'question_config') + self.question_config = attributes[:'question_config'] + else + self.question_config = 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 + + if @question_config.nil? + invalid_properties.push('invalid value for "question_config", question_config 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? + return false if @question_config.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 + + # Custom attribute writer method with validation + # @param [Object] question_config Value to be assigned + def question_config=(question_config) + if question_config.nil? + fail ArgumentError, 'question_config cannot be nil' + end + + @question_config = question_config + 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 && + question_config == o.question_config + 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, question_config].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/create_question_result200_response.rb b/client/lib/fastcomments-client/models/create_question_result200_response.rb new file mode 100644 index 0000000..a0137de --- /dev/null +++ b/client/lib/fastcomments-client/models/create_question_result200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module CreateQuestionResult200Response + 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_question_result_body.rb b/client/lib/fastcomments-client/models/create_question_result_body.rb new file mode 100644 index 0000000..1503072 --- /dev/null +++ b/client/lib/fastcomments-client/models/create_question_result_body.rb @@ -0,0 +1,255 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class CreateQuestionResultBody < ApiModelBase + attr_accessor :url_id + + attr_accessor :value + + attr_accessor :question_id + + attr_accessor :anon_user_id + + attr_accessor :user_id + + attr_accessor :comment_id + + attr_accessor :meta + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'url_id' => :'urlId', + :'value' => :'value', + :'question_id' => :'questionId', + :'anon_user_id' => :'anonUserId', + :'user_id' => :'userId', + :'comment_id' => :'commentId', + :'meta' => :'meta' + } + 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 + { + :'url_id' => :'String', + :'value' => :'Float', + :'question_id' => :'String', + :'anon_user_id' => :'String', + :'user_id' => :'String', + :'comment_id' => :'String', + :'meta' => :'Array' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'meta' + ]) + 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::CreateQuestionResultBody` 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::CreateQuestionResultBody`. 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?(:'url_id') + self.url_id = attributes[:'url_id'] + else + self.url_id = nil + end + + if attributes.key?(:'value') + self.value = attributes[:'value'] + else + self.value = nil + end + + if attributes.key?(:'question_id') + self.question_id = attributes[:'question_id'] + else + self.question_id = nil + end + + if attributes.key?(:'anon_user_id') + self.anon_user_id = attributes[:'anon_user_id'] + end + + if attributes.key?(:'user_id') + self.user_id = attributes[:'user_id'] + end + + if attributes.key?(:'comment_id') + self.comment_id = attributes[:'comment_id'] + end + + if attributes.key?(:'meta') + if (value = attributes[:'meta']).is_a?(Array) + self.meta = value + end + 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 @url_id.nil? + invalid_properties.push('invalid value for "url_id", url_id cannot be nil.') + end + + if @value.nil? + invalid_properties.push('invalid value for "value", value cannot be nil.') + end + + if @question_id.nil? + invalid_properties.push('invalid value for "question_id", question_id 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 @url_id.nil? + return false if @value.nil? + return false if @question_id.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] url_id Value to be assigned + def url_id=(url_id) + if url_id.nil? + fail ArgumentError, 'url_id cannot be nil' + end + + @url_id = url_id + end + + # Custom attribute writer method with validation + # @param [Object] value Value to be assigned + def value=(value) + if value.nil? + fail ArgumentError, 'value cannot be nil' + end + + @value = value + end + + # Custom attribute writer method with validation + # @param [Object] question_id Value to be assigned + def question_id=(question_id) + if question_id.nil? + fail ArgumentError, 'question_id cannot be nil' + end + + @question_id = question_id + 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 && + url_id == o.url_id && + value == o.value && + question_id == o.question_id && + anon_user_id == o.anon_user_id && + user_id == o.user_id && + comment_id == o.comment_id && + meta == o.meta + 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 + [url_id, value, question_id, anon_user_id, user_id, comment_id, meta].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/create_question_result_response.rb b/client/lib/fastcomments-client/models/create_question_result_response.rb new file mode 100644 index 0000000..2a54d3d --- /dev/null +++ b/client/lib/fastcomments-client/models/create_question_result_response.rb @@ -0,0 +1,212 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class CreateQuestionResultResponse < ApiModelBase + attr_accessor :status + + attr_accessor :question_result + + 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', + :'question_result' => :'questionResult' + } + 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', + :'question_result' => :'QuestionResult' + } + 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::CreateQuestionResultResponse` 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::CreateQuestionResultResponse`. 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 + + if attributes.key?(:'question_result') + self.question_result = attributes[:'question_result'] + else + self.question_result = 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 + + if @question_result.nil? + invalid_properties.push('invalid value for "question_result", question_result 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? + return false if @question_result.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 + + # Custom attribute writer method with validation + # @param [Object] question_result Value to be assigned + def question_result=(question_result) + if question_result.nil? + fail ArgumentError, 'question_result cannot be nil' + end + + @question_result = question_result + 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 && + question_result == o.question_result + 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, question_result].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/create_tenant200_response.rb b/client/lib/fastcomments-client/models/create_tenant200_response.rb new file mode 100644 index 0000000..13f640d --- /dev/null +++ b/client/lib/fastcomments-client/models/create_tenant200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module CreateTenant200Response + 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_body.rb b/client/lib/fastcomments-client/models/create_tenant_body.rb new file mode 100644 index 0000000..eb2906d --- /dev/null +++ b/client/lib/fastcomments-client/models/create_tenant_body.rb @@ -0,0 +1,384 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class CreateTenantBody < ApiModelBase + attr_accessor :name + + attr_accessor :domain_configuration + + attr_accessor :email + + attr_accessor :sign_up_date + + attr_accessor :package_id + + attr_accessor :payment_frequency + + attr_accessor :billing_info_valid + + attr_accessor :billing_handled_externally + + attr_accessor :created_by + + attr_accessor :is_setup + + attr_accessor :billing_info + + attr_accessor :stripe_customer_id + + attr_accessor :stripe_subscription_id + + attr_accessor :stripe_plan_id + + attr_accessor :enable_profanity_filter + + attr_accessor :enable_spam_filter + + attr_accessor :remove_unverified_comments + + attr_accessor :unverified_comments_tt_lms + + attr_accessor :comments_require_approval + + attr_accessor :auto_approve_comment_on_verification + + attr_accessor :send_profane_to_spam + + attr_accessor :de_anon_ip_addr + + # Construct a type with a set of properties K of type T + attr_accessor :meta + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'name' => :'name', + :'domain_configuration' => :'domainConfiguration', + :'email' => :'email', + :'sign_up_date' => :'signUpDate', + :'package_id' => :'packageId', + :'payment_frequency' => :'paymentFrequency', + :'billing_info_valid' => :'billingInfoValid', + :'billing_handled_externally' => :'billingHandledExternally', + :'created_by' => :'createdBy', + :'is_setup' => :'isSetup', + :'billing_info' => :'billingInfo', + :'stripe_customer_id' => :'stripeCustomerId', + :'stripe_subscription_id' => :'stripeSubscriptionId', + :'stripe_plan_id' => :'stripePlanId', + :'enable_profanity_filter' => :'enableProfanityFilter', + :'enable_spam_filter' => :'enableSpamFilter', + :'remove_unverified_comments' => :'removeUnverifiedComments', + :'unverified_comments_tt_lms' => :'unverifiedCommentsTTLms', + :'comments_require_approval' => :'commentsRequireApproval', + :'auto_approve_comment_on_verification' => :'autoApproveCommentOnVerification', + :'send_profane_to_spam' => :'sendProfaneToSpam', + :'de_anon_ip_addr' => :'deAnonIpAddr', + :'meta' => :'meta' + } + 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 + { + :'name' => :'String', + :'domain_configuration' => :'Array', + :'email' => :'String', + :'sign_up_date' => :'Float', + :'package_id' => :'String', + :'payment_frequency' => :'Float', + :'billing_info_valid' => :'Boolean', + :'billing_handled_externally' => :'Boolean', + :'created_by' => :'String', + :'is_setup' => :'Boolean', + :'billing_info' => :'BillingInfo', + :'stripe_customer_id' => :'String', + :'stripe_subscription_id' => :'String', + :'stripe_plan_id' => :'String', + :'enable_profanity_filter' => :'Boolean', + :'enable_spam_filter' => :'Boolean', + :'remove_unverified_comments' => :'Boolean', + :'unverified_comments_tt_lms' => :'Float', + :'comments_require_approval' => :'Boolean', + :'auto_approve_comment_on_verification' => :'Boolean', + :'send_profane_to_spam' => :'Boolean', + :'de_anon_ip_addr' => :'Float', + :'meta' => :'Hash' + } + 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::CreateTenantBody` 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::CreateTenantBody`. 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?(:'name') + self.name = attributes[:'name'] + else + self.name = nil + end + + if attributes.key?(:'domain_configuration') + if (value = attributes[:'domain_configuration']).is_a?(Array) + self.domain_configuration = value + end + else + self.domain_configuration = nil + end + + if attributes.key?(:'email') + self.email = attributes[:'email'] + end + + if attributes.key?(:'sign_up_date') + self.sign_up_date = attributes[:'sign_up_date'] + end + + if attributes.key?(:'package_id') + self.package_id = attributes[:'package_id'] + end + + if attributes.key?(:'payment_frequency') + self.payment_frequency = attributes[:'payment_frequency'] + end + + if attributes.key?(:'billing_info_valid') + self.billing_info_valid = attributes[:'billing_info_valid'] + end + + if attributes.key?(:'billing_handled_externally') + self.billing_handled_externally = attributes[:'billing_handled_externally'] + end + + if attributes.key?(:'created_by') + self.created_by = attributes[:'created_by'] + end + + if attributes.key?(:'is_setup') + self.is_setup = attributes[:'is_setup'] + end + + if attributes.key?(:'billing_info') + self.billing_info = attributes[:'billing_info'] + end + + if attributes.key?(:'stripe_customer_id') + self.stripe_customer_id = attributes[:'stripe_customer_id'] + end + + if attributes.key?(:'stripe_subscription_id') + self.stripe_subscription_id = attributes[:'stripe_subscription_id'] + end + + if attributes.key?(:'stripe_plan_id') + self.stripe_plan_id = attributes[:'stripe_plan_id'] + end + + if attributes.key?(:'enable_profanity_filter') + self.enable_profanity_filter = attributes[:'enable_profanity_filter'] + end + + if attributes.key?(:'enable_spam_filter') + self.enable_spam_filter = attributes[:'enable_spam_filter'] + end + + if attributes.key?(:'remove_unverified_comments') + self.remove_unverified_comments = attributes[:'remove_unverified_comments'] + end + + if attributes.key?(:'unverified_comments_tt_lms') + self.unverified_comments_tt_lms = attributes[:'unverified_comments_tt_lms'] + end + + if attributes.key?(:'comments_require_approval') + self.comments_require_approval = attributes[:'comments_require_approval'] + end + + if attributes.key?(:'auto_approve_comment_on_verification') + self.auto_approve_comment_on_verification = attributes[:'auto_approve_comment_on_verification'] + end + + if attributes.key?(:'send_profane_to_spam') + self.send_profane_to_spam = attributes[:'send_profane_to_spam'] + end + + if attributes.key?(:'de_anon_ip_addr') + self.de_anon_ip_addr = attributes[:'de_anon_ip_addr'] + end + + if attributes.key?(:'meta') + if (value = attributes[:'meta']).is_a?(Hash) + self.meta = value + end + 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 @name.nil? + invalid_properties.push('invalid value for "name", name cannot be nil.') + end + + if @domain_configuration.nil? + invalid_properties.push('invalid value for "domain_configuration", domain_configuration 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 @name.nil? + return false if @domain_configuration.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + + # Custom attribute writer method with validation + # @param [Object] domain_configuration Value to be assigned + def domain_configuration=(domain_configuration) + if domain_configuration.nil? + fail ArgumentError, 'domain_configuration cannot be nil' + end + + @domain_configuration = domain_configuration + 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 && + name == o.name && + domain_configuration == o.domain_configuration && + email == o.email && + sign_up_date == o.sign_up_date && + package_id == o.package_id && + payment_frequency == o.payment_frequency && + billing_info_valid == o.billing_info_valid && + billing_handled_externally == o.billing_handled_externally && + created_by == o.created_by && + is_setup == o.is_setup && + billing_info == o.billing_info && + stripe_customer_id == o.stripe_customer_id && + stripe_subscription_id == o.stripe_subscription_id && + stripe_plan_id == o.stripe_plan_id && + enable_profanity_filter == o.enable_profanity_filter && + enable_spam_filter == o.enable_spam_filter && + remove_unverified_comments == o.remove_unverified_comments && + unverified_comments_tt_lms == o.unverified_comments_tt_lms && + comments_require_approval == o.comments_require_approval && + auto_approve_comment_on_verification == o.auto_approve_comment_on_verification && + send_profane_to_spam == o.send_profane_to_spam && + de_anon_ip_addr == o.de_anon_ip_addr && + meta == o.meta + 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 + [name, domain_configuration, email, sign_up_date, package_id, payment_frequency, billing_info_valid, billing_handled_externally, created_by, is_setup, billing_info, stripe_customer_id, stripe_subscription_id, stripe_plan_id, enable_profanity_filter, enable_spam_filter, remove_unverified_comments, unverified_comments_tt_lms, comments_require_approval, auto_approve_comment_on_verification, send_profane_to_spam, de_anon_ip_addr, meta].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/create_tenant_package200_response.rb b/client/lib/fastcomments-client/models/create_tenant_package200_response.rb new file mode 100644 index 0000000..c665781 --- /dev/null +++ b/client/lib/fastcomments-client/models/create_tenant_package200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module CreateTenantPackage200Response + 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_package_body.rb b/client/lib/fastcomments-client/models/create_tenant_package_body.rb new file mode 100644 index 0000000..eeddd3a --- /dev/null +++ b/client/lib/fastcomments-client/models/create_tenant_package_body.rb @@ -0,0 +1,797 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class CreateTenantPackageBody < ApiModelBase + attr_accessor :name + + attr_accessor :monthly_cost_usd + + attr_accessor :yearly_cost_usd + + attr_accessor :monthly_stripe_plan_id + + attr_accessor :yearly_stripe_plan_id + + attr_accessor :max_monthly_page_loads + + attr_accessor :max_monthly_api_credits + + attr_accessor :max_monthly_small_widgets_credits + + attr_accessor :max_monthly_comments + + attr_accessor :max_concurrent_users + + attr_accessor :max_tenant_users + + attr_accessor :max_sso_users + + attr_accessor :max_moderators + + attr_accessor :max_domains + + attr_accessor :max_white_labeled_tenants + + attr_accessor :max_monthly_event_log_requests + + attr_accessor :has_white_labeling + + attr_accessor :has_debranding + + attr_accessor :has_llm_spam_detection + + attr_accessor :for_who_text + + attr_accessor :feature_taglines + + attr_accessor :has_auditing + + attr_accessor :has_flex_pricing + + attr_accessor :enable_saml + + attr_accessor :flex_page_load_cost_cents + + attr_accessor :flex_page_load_unit + + attr_accessor :flex_comment_cost_cents + + attr_accessor :flex_comment_unit + + attr_accessor :flex_sso_user_cost_cents + + attr_accessor :flex_sso_user_unit + + attr_accessor :flex_api_credit_cost_cents + + attr_accessor :flex_api_credit_unit + + attr_accessor :flex_small_widgets_credit_cost_cents + + attr_accessor :flex_small_widgets_credit_unit + + attr_accessor :flex_moderator_cost_cents + + attr_accessor :flex_moderator_unit + + attr_accessor :flex_admin_cost_cents + + attr_accessor :flex_admin_unit + + attr_accessor :flex_domain_cost_cents + + attr_accessor :flex_domain_unit + + attr_accessor :flex_chat_gpt_cost_cents + + attr_accessor :flex_chat_gpt_unit + + attr_accessor :flex_minimum_cost_cents + + attr_accessor :flex_managed_tenant_cost_cents + + attr_accessor :flex_sso_admin_cost_cents + + attr_accessor :flex_sso_admin_unit + + attr_accessor :flex_sso_moderator_cost_cents + + attr_accessor :flex_sso_moderator_unit + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'name' => :'name', + :'monthly_cost_usd' => :'monthlyCostUSD', + :'yearly_cost_usd' => :'yearlyCostUSD', + :'monthly_stripe_plan_id' => :'monthlyStripePlanId', + :'yearly_stripe_plan_id' => :'yearlyStripePlanId', + :'max_monthly_page_loads' => :'maxMonthlyPageLoads', + :'max_monthly_api_credits' => :'maxMonthlyAPICredits', + :'max_monthly_small_widgets_credits' => :'maxMonthlySmallWidgetsCredits', + :'max_monthly_comments' => :'maxMonthlyComments', + :'max_concurrent_users' => :'maxConcurrentUsers', + :'max_tenant_users' => :'maxTenantUsers', + :'max_sso_users' => :'maxSSOUsers', + :'max_moderators' => :'maxModerators', + :'max_domains' => :'maxDomains', + :'max_white_labeled_tenants' => :'maxWhiteLabeledTenants', + :'max_monthly_event_log_requests' => :'maxMonthlyEventLogRequests', + :'has_white_labeling' => :'hasWhiteLabeling', + :'has_debranding' => :'hasDebranding', + :'has_llm_spam_detection' => :'hasLLMSpamDetection', + :'for_who_text' => :'forWhoText', + :'feature_taglines' => :'featureTaglines', + :'has_auditing' => :'hasAuditing', + :'has_flex_pricing' => :'hasFlexPricing', + :'enable_saml' => :'enableSAML', + :'flex_page_load_cost_cents' => :'flexPageLoadCostCents', + :'flex_page_load_unit' => :'flexPageLoadUnit', + :'flex_comment_cost_cents' => :'flexCommentCostCents', + :'flex_comment_unit' => :'flexCommentUnit', + :'flex_sso_user_cost_cents' => :'flexSSOUserCostCents', + :'flex_sso_user_unit' => :'flexSSOUserUnit', + :'flex_api_credit_cost_cents' => :'flexAPICreditCostCents', + :'flex_api_credit_unit' => :'flexAPICreditUnit', + :'flex_small_widgets_credit_cost_cents' => :'flexSmallWidgetsCreditCostCents', + :'flex_small_widgets_credit_unit' => :'flexSmallWidgetsCreditUnit', + :'flex_moderator_cost_cents' => :'flexModeratorCostCents', + :'flex_moderator_unit' => :'flexModeratorUnit', + :'flex_admin_cost_cents' => :'flexAdminCostCents', + :'flex_admin_unit' => :'flexAdminUnit', + :'flex_domain_cost_cents' => :'flexDomainCostCents', + :'flex_domain_unit' => :'flexDomainUnit', + :'flex_chat_gpt_cost_cents' => :'flexChatGPTCostCents', + :'flex_chat_gpt_unit' => :'flexChatGPTUnit', + :'flex_minimum_cost_cents' => :'flexMinimumCostCents', + :'flex_managed_tenant_cost_cents' => :'flexManagedTenantCostCents', + :'flex_sso_admin_cost_cents' => :'flexSSOAdminCostCents', + :'flex_sso_admin_unit' => :'flexSSOAdminUnit', + :'flex_sso_moderator_cost_cents' => :'flexSSOModeratorCostCents', + :'flex_sso_moderator_unit' => :'flexSSOModeratorUnit' + } + 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 + { + :'name' => :'String', + :'monthly_cost_usd' => :'Float', + :'yearly_cost_usd' => :'Float', + :'monthly_stripe_plan_id' => :'String', + :'yearly_stripe_plan_id' => :'String', + :'max_monthly_page_loads' => :'Float', + :'max_monthly_api_credits' => :'Float', + :'max_monthly_small_widgets_credits' => :'Float', + :'max_monthly_comments' => :'Float', + :'max_concurrent_users' => :'Float', + :'max_tenant_users' => :'Float', + :'max_sso_users' => :'Float', + :'max_moderators' => :'Float', + :'max_domains' => :'Float', + :'max_white_labeled_tenants' => :'Float', + :'max_monthly_event_log_requests' => :'Float', + :'has_white_labeling' => :'Boolean', + :'has_debranding' => :'Boolean', + :'has_llm_spam_detection' => :'Boolean', + :'for_who_text' => :'String', + :'feature_taglines' => :'Array', + :'has_auditing' => :'Boolean', + :'has_flex_pricing' => :'Boolean', + :'enable_saml' => :'Boolean', + :'flex_page_load_cost_cents' => :'Float', + :'flex_page_load_unit' => :'Float', + :'flex_comment_cost_cents' => :'Float', + :'flex_comment_unit' => :'Float', + :'flex_sso_user_cost_cents' => :'Float', + :'flex_sso_user_unit' => :'Float', + :'flex_api_credit_cost_cents' => :'Float', + :'flex_api_credit_unit' => :'Float', + :'flex_small_widgets_credit_cost_cents' => :'Float', + :'flex_small_widgets_credit_unit' => :'Float', + :'flex_moderator_cost_cents' => :'Float', + :'flex_moderator_unit' => :'Float', + :'flex_admin_cost_cents' => :'Float', + :'flex_admin_unit' => :'Float', + :'flex_domain_cost_cents' => :'Float', + :'flex_domain_unit' => :'Float', + :'flex_chat_gpt_cost_cents' => :'Float', + :'flex_chat_gpt_unit' => :'Float', + :'flex_minimum_cost_cents' => :'Float', + :'flex_managed_tenant_cost_cents' => :'Float', + :'flex_sso_admin_cost_cents' => :'Float', + :'flex_sso_admin_unit' => :'Float', + :'flex_sso_moderator_cost_cents' => :'Float', + :'flex_sso_moderator_unit' => :'Float' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'monthly_cost_usd', + :'yearly_cost_usd', + :'monthly_stripe_plan_id', + :'yearly_stripe_plan_id', + ]) + 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::CreateTenantPackageBody` 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::CreateTenantPackageBody`. 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?(:'name') + self.name = attributes[:'name'] + else + self.name = nil + end + + if attributes.key?(:'monthly_cost_usd') + self.monthly_cost_usd = attributes[:'monthly_cost_usd'] + end + + if attributes.key?(:'yearly_cost_usd') + self.yearly_cost_usd = attributes[:'yearly_cost_usd'] + end + + if attributes.key?(:'monthly_stripe_plan_id') + self.monthly_stripe_plan_id = attributes[:'monthly_stripe_plan_id'] + end + + if attributes.key?(:'yearly_stripe_plan_id') + self.yearly_stripe_plan_id = attributes[:'yearly_stripe_plan_id'] + end + + if attributes.key?(:'max_monthly_page_loads') + self.max_monthly_page_loads = attributes[:'max_monthly_page_loads'] + else + self.max_monthly_page_loads = nil + end + + if attributes.key?(:'max_monthly_api_credits') + self.max_monthly_api_credits = attributes[:'max_monthly_api_credits'] + else + self.max_monthly_api_credits = nil + end + + if attributes.key?(:'max_monthly_small_widgets_credits') + self.max_monthly_small_widgets_credits = attributes[:'max_monthly_small_widgets_credits'] + end + + if attributes.key?(:'max_monthly_comments') + self.max_monthly_comments = attributes[:'max_monthly_comments'] + else + self.max_monthly_comments = nil + end + + if attributes.key?(:'max_concurrent_users') + self.max_concurrent_users = attributes[:'max_concurrent_users'] + else + self.max_concurrent_users = nil + end + + if attributes.key?(:'max_tenant_users') + self.max_tenant_users = attributes[:'max_tenant_users'] + else + self.max_tenant_users = nil + end + + if attributes.key?(:'max_sso_users') + self.max_sso_users = attributes[:'max_sso_users'] + else + self.max_sso_users = nil + end + + if attributes.key?(:'max_moderators') + self.max_moderators = attributes[:'max_moderators'] + else + self.max_moderators = nil + end + + if attributes.key?(:'max_domains') + self.max_domains = attributes[:'max_domains'] + else + self.max_domains = nil + end + + if attributes.key?(:'max_white_labeled_tenants') + self.max_white_labeled_tenants = attributes[:'max_white_labeled_tenants'] + end + + if attributes.key?(:'max_monthly_event_log_requests') + self.max_monthly_event_log_requests = attributes[:'max_monthly_event_log_requests'] + end + + if attributes.key?(:'has_white_labeling') + self.has_white_labeling = attributes[:'has_white_labeling'] + end + + if attributes.key?(:'has_debranding') + self.has_debranding = attributes[:'has_debranding'] + else + self.has_debranding = nil + end + + if attributes.key?(:'has_llm_spam_detection') + self.has_llm_spam_detection = attributes[:'has_llm_spam_detection'] + end + + if attributes.key?(:'for_who_text') + self.for_who_text = attributes[:'for_who_text'] + else + self.for_who_text = nil + end + + if attributes.key?(:'feature_taglines') + if (value = attributes[:'feature_taglines']).is_a?(Array) + self.feature_taglines = value + end + else + self.feature_taglines = nil + end + + if attributes.key?(:'has_auditing') + self.has_auditing = attributes[:'has_auditing'] + end + + if attributes.key?(:'has_flex_pricing') + self.has_flex_pricing = attributes[:'has_flex_pricing'] + else + self.has_flex_pricing = nil + end + + if attributes.key?(:'enable_saml') + self.enable_saml = attributes[:'enable_saml'] + end + + if attributes.key?(:'flex_page_load_cost_cents') + self.flex_page_load_cost_cents = attributes[:'flex_page_load_cost_cents'] + end + + if attributes.key?(:'flex_page_load_unit') + self.flex_page_load_unit = attributes[:'flex_page_load_unit'] + end + + if attributes.key?(:'flex_comment_cost_cents') + self.flex_comment_cost_cents = attributes[:'flex_comment_cost_cents'] + end + + if attributes.key?(:'flex_comment_unit') + self.flex_comment_unit = attributes[:'flex_comment_unit'] + end + + if attributes.key?(:'flex_sso_user_cost_cents') + self.flex_sso_user_cost_cents = attributes[:'flex_sso_user_cost_cents'] + end + + if attributes.key?(:'flex_sso_user_unit') + self.flex_sso_user_unit = attributes[:'flex_sso_user_unit'] + end + + if attributes.key?(:'flex_api_credit_cost_cents') + self.flex_api_credit_cost_cents = attributes[:'flex_api_credit_cost_cents'] + end + + if attributes.key?(:'flex_api_credit_unit') + self.flex_api_credit_unit = attributes[:'flex_api_credit_unit'] + end + + if attributes.key?(:'flex_small_widgets_credit_cost_cents') + self.flex_small_widgets_credit_cost_cents = attributes[:'flex_small_widgets_credit_cost_cents'] + end + + if attributes.key?(:'flex_small_widgets_credit_unit') + self.flex_small_widgets_credit_unit = attributes[:'flex_small_widgets_credit_unit'] + end + + if attributes.key?(:'flex_moderator_cost_cents') + self.flex_moderator_cost_cents = attributes[:'flex_moderator_cost_cents'] + end + + if attributes.key?(:'flex_moderator_unit') + self.flex_moderator_unit = attributes[:'flex_moderator_unit'] + end + + if attributes.key?(:'flex_admin_cost_cents') + self.flex_admin_cost_cents = attributes[:'flex_admin_cost_cents'] + end + + if attributes.key?(:'flex_admin_unit') + self.flex_admin_unit = attributes[:'flex_admin_unit'] + end + + if attributes.key?(:'flex_domain_cost_cents') + self.flex_domain_cost_cents = attributes[:'flex_domain_cost_cents'] + end + + if attributes.key?(:'flex_domain_unit') + self.flex_domain_unit = attributes[:'flex_domain_unit'] + end + + if attributes.key?(:'flex_chat_gpt_cost_cents') + self.flex_chat_gpt_cost_cents = attributes[:'flex_chat_gpt_cost_cents'] + end + + if attributes.key?(:'flex_chat_gpt_unit') + self.flex_chat_gpt_unit = attributes[:'flex_chat_gpt_unit'] + end + + if attributes.key?(:'flex_minimum_cost_cents') + self.flex_minimum_cost_cents = attributes[:'flex_minimum_cost_cents'] + end + + if attributes.key?(:'flex_managed_tenant_cost_cents') + self.flex_managed_tenant_cost_cents = attributes[:'flex_managed_tenant_cost_cents'] + end + + if attributes.key?(:'flex_sso_admin_cost_cents') + self.flex_sso_admin_cost_cents = attributes[:'flex_sso_admin_cost_cents'] + end + + if attributes.key?(:'flex_sso_admin_unit') + self.flex_sso_admin_unit = attributes[:'flex_sso_admin_unit'] + end + + if attributes.key?(:'flex_sso_moderator_cost_cents') + self.flex_sso_moderator_cost_cents = attributes[:'flex_sso_moderator_cost_cents'] + end + + if attributes.key?(:'flex_sso_moderator_unit') + self.flex_sso_moderator_unit = attributes[:'flex_sso_moderator_unit'] + 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 @name.nil? + invalid_properties.push('invalid value for "name", name cannot be nil.') + end + + if @max_monthly_page_loads.nil? + invalid_properties.push('invalid value for "max_monthly_page_loads", max_monthly_page_loads cannot be nil.') + end + + if @max_monthly_api_credits.nil? + invalid_properties.push('invalid value for "max_monthly_api_credits", max_monthly_api_credits cannot be nil.') + end + + if @max_monthly_comments.nil? + invalid_properties.push('invalid value for "max_monthly_comments", max_monthly_comments cannot be nil.') + end + + if @max_concurrent_users.nil? + invalid_properties.push('invalid value for "max_concurrent_users", max_concurrent_users cannot be nil.') + end + + if @max_tenant_users.nil? + invalid_properties.push('invalid value for "max_tenant_users", max_tenant_users cannot be nil.') + end + + if @max_sso_users.nil? + invalid_properties.push('invalid value for "max_sso_users", max_sso_users cannot be nil.') + end + + if @max_moderators.nil? + invalid_properties.push('invalid value for "max_moderators", max_moderators cannot be nil.') + end + + if @max_domains.nil? + invalid_properties.push('invalid value for "max_domains", max_domains cannot be nil.') + end + + if @has_debranding.nil? + invalid_properties.push('invalid value for "has_debranding", has_debranding cannot be nil.') + end + + if @for_who_text.nil? + invalid_properties.push('invalid value for "for_who_text", for_who_text cannot be nil.') + end + + if @feature_taglines.nil? + invalid_properties.push('invalid value for "feature_taglines", feature_taglines cannot be nil.') + end + + if @has_flex_pricing.nil? + invalid_properties.push('invalid value for "has_flex_pricing", has_flex_pricing 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 @name.nil? + return false if @max_monthly_page_loads.nil? + return false if @max_monthly_api_credits.nil? + return false if @max_monthly_comments.nil? + return false if @max_concurrent_users.nil? + return false if @max_tenant_users.nil? + return false if @max_sso_users.nil? + return false if @max_moderators.nil? + return false if @max_domains.nil? + return false if @has_debranding.nil? + return false if @for_who_text.nil? + return false if @feature_taglines.nil? + return false if @has_flex_pricing.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + + # Custom attribute writer method with validation + # @param [Object] max_monthly_page_loads Value to be assigned + def max_monthly_page_loads=(max_monthly_page_loads) + if max_monthly_page_loads.nil? + fail ArgumentError, 'max_monthly_page_loads cannot be nil' + end + + @max_monthly_page_loads = max_monthly_page_loads + end + + # Custom attribute writer method with validation + # @param [Object] max_monthly_api_credits Value to be assigned + def max_monthly_api_credits=(max_monthly_api_credits) + if max_monthly_api_credits.nil? + fail ArgumentError, 'max_monthly_api_credits cannot be nil' + end + + @max_monthly_api_credits = max_monthly_api_credits + end + + # Custom attribute writer method with validation + # @param [Object] max_monthly_comments Value to be assigned + def max_monthly_comments=(max_monthly_comments) + if max_monthly_comments.nil? + fail ArgumentError, 'max_monthly_comments cannot be nil' + end + + @max_monthly_comments = max_monthly_comments + end + + # Custom attribute writer method with validation + # @param [Object] max_concurrent_users Value to be assigned + def max_concurrent_users=(max_concurrent_users) + if max_concurrent_users.nil? + fail ArgumentError, 'max_concurrent_users cannot be nil' + end + + @max_concurrent_users = max_concurrent_users + end + + # Custom attribute writer method with validation + # @param [Object] max_tenant_users Value to be assigned + def max_tenant_users=(max_tenant_users) + if max_tenant_users.nil? + fail ArgumentError, 'max_tenant_users cannot be nil' + end + + @max_tenant_users = max_tenant_users + end + + # Custom attribute writer method with validation + # @param [Object] max_sso_users Value to be assigned + def max_sso_users=(max_sso_users) + if max_sso_users.nil? + fail ArgumentError, 'max_sso_users cannot be nil' + end + + @max_sso_users = max_sso_users + end + + # Custom attribute writer method with validation + # @param [Object] max_moderators Value to be assigned + def max_moderators=(max_moderators) + if max_moderators.nil? + fail ArgumentError, 'max_moderators cannot be nil' + end + + @max_moderators = max_moderators + end + + # Custom attribute writer method with validation + # @param [Object] max_domains Value to be assigned + def max_domains=(max_domains) + if max_domains.nil? + fail ArgumentError, 'max_domains cannot be nil' + end + + @max_domains = max_domains + end + + # Custom attribute writer method with validation + # @param [Object] has_debranding Value to be assigned + def has_debranding=(has_debranding) + if has_debranding.nil? + fail ArgumentError, 'has_debranding cannot be nil' + end + + @has_debranding = has_debranding + end + + # Custom attribute writer method with validation + # @param [Object] for_who_text Value to be assigned + def for_who_text=(for_who_text) + if for_who_text.nil? + fail ArgumentError, 'for_who_text cannot be nil' + end + + @for_who_text = for_who_text + end + + # Custom attribute writer method with validation + # @param [Object] feature_taglines Value to be assigned + def feature_taglines=(feature_taglines) + if feature_taglines.nil? + fail ArgumentError, 'feature_taglines cannot be nil' + end + + @feature_taglines = feature_taglines + end + + # Custom attribute writer method with validation + # @param [Object] has_flex_pricing Value to be assigned + def has_flex_pricing=(has_flex_pricing) + if has_flex_pricing.nil? + fail ArgumentError, 'has_flex_pricing cannot be nil' + end + + @has_flex_pricing = has_flex_pricing + 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 && + name == o.name && + monthly_cost_usd == o.monthly_cost_usd && + yearly_cost_usd == o.yearly_cost_usd && + monthly_stripe_plan_id == o.monthly_stripe_plan_id && + yearly_stripe_plan_id == o.yearly_stripe_plan_id && + max_monthly_page_loads == o.max_monthly_page_loads && + max_monthly_api_credits == o.max_monthly_api_credits && + max_monthly_small_widgets_credits == o.max_monthly_small_widgets_credits && + max_monthly_comments == o.max_monthly_comments && + max_concurrent_users == o.max_concurrent_users && + max_tenant_users == o.max_tenant_users && + max_sso_users == o.max_sso_users && + max_moderators == o.max_moderators && + max_domains == o.max_domains && + max_white_labeled_tenants == o.max_white_labeled_tenants && + max_monthly_event_log_requests == o.max_monthly_event_log_requests && + has_white_labeling == o.has_white_labeling && + has_debranding == o.has_debranding && + has_llm_spam_detection == o.has_llm_spam_detection && + for_who_text == o.for_who_text && + feature_taglines == o.feature_taglines && + has_auditing == o.has_auditing && + has_flex_pricing == o.has_flex_pricing && + enable_saml == o.enable_saml && + flex_page_load_cost_cents == o.flex_page_load_cost_cents && + flex_page_load_unit == o.flex_page_load_unit && + flex_comment_cost_cents == o.flex_comment_cost_cents && + flex_comment_unit == o.flex_comment_unit && + flex_sso_user_cost_cents == o.flex_sso_user_cost_cents && + flex_sso_user_unit == o.flex_sso_user_unit && + flex_api_credit_cost_cents == o.flex_api_credit_cost_cents && + flex_api_credit_unit == o.flex_api_credit_unit && + flex_small_widgets_credit_cost_cents == o.flex_small_widgets_credit_cost_cents && + flex_small_widgets_credit_unit == o.flex_small_widgets_credit_unit && + flex_moderator_cost_cents == o.flex_moderator_cost_cents && + flex_moderator_unit == o.flex_moderator_unit && + flex_admin_cost_cents == o.flex_admin_cost_cents && + flex_admin_unit == o.flex_admin_unit && + flex_domain_cost_cents == o.flex_domain_cost_cents && + flex_domain_unit == o.flex_domain_unit && + flex_chat_gpt_cost_cents == o.flex_chat_gpt_cost_cents && + flex_chat_gpt_unit == o.flex_chat_gpt_unit && + flex_minimum_cost_cents == o.flex_minimum_cost_cents && + flex_managed_tenant_cost_cents == o.flex_managed_tenant_cost_cents && + flex_sso_admin_cost_cents == o.flex_sso_admin_cost_cents && + flex_sso_admin_unit == o.flex_sso_admin_unit && + flex_sso_moderator_cost_cents == o.flex_sso_moderator_cost_cents && + flex_sso_moderator_unit == o.flex_sso_moderator_unit + 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 + [name, monthly_cost_usd, yearly_cost_usd, monthly_stripe_plan_id, yearly_stripe_plan_id, max_monthly_page_loads, max_monthly_api_credits, max_monthly_small_widgets_credits, max_monthly_comments, max_concurrent_users, max_tenant_users, max_sso_users, max_moderators, max_domains, max_white_labeled_tenants, max_monthly_event_log_requests, has_white_labeling, has_debranding, has_llm_spam_detection, for_who_text, feature_taglines, has_auditing, has_flex_pricing, enable_saml, flex_page_load_cost_cents, flex_page_load_unit, flex_comment_cost_cents, flex_comment_unit, flex_sso_user_cost_cents, flex_sso_user_unit, flex_api_credit_cost_cents, flex_api_credit_unit, flex_small_widgets_credit_cost_cents, flex_small_widgets_credit_unit, flex_moderator_cost_cents, flex_moderator_unit, flex_admin_cost_cents, flex_admin_unit, flex_domain_cost_cents, flex_domain_unit, flex_chat_gpt_cost_cents, flex_chat_gpt_unit, flex_minimum_cost_cents, flex_managed_tenant_cost_cents, flex_sso_admin_cost_cents, flex_sso_admin_unit, flex_sso_moderator_cost_cents, flex_sso_moderator_unit].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/create_tenant_package_response.rb b/client/lib/fastcomments-client/models/create_tenant_package_response.rb new file mode 100644 index 0000000..0125c9a --- /dev/null +++ b/client/lib/fastcomments-client/models/create_tenant_package_response.rb @@ -0,0 +1,212 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class CreateTenantPackageResponse < ApiModelBase + attr_accessor :status + + attr_accessor :tenant_package + + 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', + :'tenant_package' => :'tenantPackage' + } + 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', + :'tenant_package' => :'TenantPackage' + } + 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::CreateTenantPackageResponse` 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::CreateTenantPackageResponse`. 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 + + if attributes.key?(:'tenant_package') + self.tenant_package = attributes[:'tenant_package'] + else + self.tenant_package = 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 + + if @tenant_package.nil? + invalid_properties.push('invalid value for "tenant_package", tenant_package 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? + return false if @tenant_package.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 + + # Custom attribute writer method with validation + # @param [Object] tenant_package Value to be assigned + def tenant_package=(tenant_package) + if tenant_package.nil? + fail ArgumentError, 'tenant_package cannot be nil' + end + + @tenant_package = tenant_package + 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 && + tenant_package == o.tenant_package + 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, tenant_package].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/create_tenant_response.rb b/client/lib/fastcomments-client/models/create_tenant_response.rb new file mode 100644 index 0000000..1505399 --- /dev/null +++ b/client/lib/fastcomments-client/models/create_tenant_response.rb @@ -0,0 +1,212 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class CreateTenantResponse < ApiModelBase + attr_accessor :status + + attr_accessor :tenant + + 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', + :'tenant' => :'tenant' + } + 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', + :'tenant' => :'APITenant' + } + 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::CreateTenantResponse` 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::CreateTenantResponse`. 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 + + if attributes.key?(:'tenant') + self.tenant = attributes[:'tenant'] + else + self.tenant = 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 + + if @tenant.nil? + invalid_properties.push('invalid value for "tenant", tenant 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? + return false if @tenant.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 + + # Custom attribute writer method with validation + # @param [Object] tenant Value to be assigned + def tenant=(tenant) + if tenant.nil? + fail ArgumentError, 'tenant cannot be nil' + end + + @tenant = tenant + 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 && + tenant == o.tenant + 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, tenant].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/create_tenant_user200_response.rb b/client/lib/fastcomments-client/models/create_tenant_user200_response.rb new file mode 100644 index 0000000..1b1e22d --- /dev/null +++ b/client/lib/fastcomments-client/models/create_tenant_user200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module CreateTenantUser200Response + 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_tenant_user_body.rb b/client/lib/fastcomments-client/models/create_tenant_user_body.rb new file mode 100644 index 0000000..577ca8d --- /dev/null +++ b/client/lib/fastcomments-client/models/create_tenant_user_body.rb @@ -0,0 +1,390 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class CreateTenantUserBody < ApiModelBase + attr_accessor :username + + attr_accessor :email + + attr_accessor :display_name + + attr_accessor :website_url + + attr_accessor :sign_up_date + + attr_accessor :locale + + attr_accessor :verified + + attr_accessor :login_count + + attr_accessor :opted_in_notifications + + attr_accessor :opted_in_tenant_notifications + + attr_accessor :hide_account_code + + attr_accessor :avatar_src + + attr_accessor :is_help_request_admin + + attr_accessor :is_account_owner + + attr_accessor :is_admin_admin + + attr_accessor :is_billing_admin + + attr_accessor :is_analytics_admin + + attr_accessor :is_customization_admin + + attr_accessor :is_manage_data_admin + + attr_accessor :is_comment_moderator_admin + + attr_accessor :is_api_admin + + attr_accessor :moderator_ids + + attr_accessor :digest_email_frequency + + attr_accessor :display_label + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'username' => :'username', + :'email' => :'email', + :'display_name' => :'displayName', + :'website_url' => :'websiteUrl', + :'sign_up_date' => :'signUpDate', + :'locale' => :'locale', + :'verified' => :'verified', + :'login_count' => :'loginCount', + :'opted_in_notifications' => :'optedInNotifications', + :'opted_in_tenant_notifications' => :'optedInTenantNotifications', + :'hide_account_code' => :'hideAccountCode', + :'avatar_src' => :'avatarSrc', + :'is_help_request_admin' => :'isHelpRequestAdmin', + :'is_account_owner' => :'isAccountOwner', + :'is_admin_admin' => :'isAdminAdmin', + :'is_billing_admin' => :'isBillingAdmin', + :'is_analytics_admin' => :'isAnalyticsAdmin', + :'is_customization_admin' => :'isCustomizationAdmin', + :'is_manage_data_admin' => :'isManageDataAdmin', + :'is_comment_moderator_admin' => :'isCommentModeratorAdmin', + :'is_api_admin' => :'isAPIAdmin', + :'moderator_ids' => :'moderatorIds', + :'digest_email_frequency' => :'digestEmailFrequency', + :'display_label' => :'displayLabel' + } + 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 + { + :'username' => :'String', + :'email' => :'String', + :'display_name' => :'String', + :'website_url' => :'String', + :'sign_up_date' => :'Float', + :'locale' => :'String', + :'verified' => :'Boolean', + :'login_count' => :'Float', + :'opted_in_notifications' => :'Boolean', + :'opted_in_tenant_notifications' => :'Boolean', + :'hide_account_code' => :'Boolean', + :'avatar_src' => :'String', + :'is_help_request_admin' => :'Boolean', + :'is_account_owner' => :'Boolean', + :'is_admin_admin' => :'Boolean', + :'is_billing_admin' => :'Boolean', + :'is_analytics_admin' => :'Boolean', + :'is_customization_admin' => :'Boolean', + :'is_manage_data_admin' => :'Boolean', + :'is_comment_moderator_admin' => :'Boolean', + :'is_api_admin' => :'Boolean', + :'moderator_ids' => :'Array', + :'digest_email_frequency' => :'Float', + :'display_label' => :'String' + } + 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::CreateTenantUserBody` 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::CreateTenantUserBody`. 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?(:'username') + self.username = attributes[:'username'] + else + self.username = nil + end + + if attributes.key?(:'email') + self.email = attributes[:'email'] + else + self.email = nil + end + + if attributes.key?(:'display_name') + self.display_name = attributes[:'display_name'] + end + + if attributes.key?(:'website_url') + self.website_url = attributes[:'website_url'] + end + + if attributes.key?(:'sign_up_date') + self.sign_up_date = attributes[:'sign_up_date'] + end + + if attributes.key?(:'locale') + self.locale = attributes[:'locale'] + end + + if attributes.key?(:'verified') + self.verified = attributes[:'verified'] + end + + if attributes.key?(:'login_count') + self.login_count = attributes[:'login_count'] + end + + if attributes.key?(:'opted_in_notifications') + self.opted_in_notifications = attributes[:'opted_in_notifications'] + end + + if attributes.key?(:'opted_in_tenant_notifications') + self.opted_in_tenant_notifications = attributes[:'opted_in_tenant_notifications'] + end + + if attributes.key?(:'hide_account_code') + self.hide_account_code = attributes[:'hide_account_code'] + end + + if attributes.key?(:'avatar_src') + self.avatar_src = attributes[:'avatar_src'] + end + + if attributes.key?(:'is_help_request_admin') + self.is_help_request_admin = attributes[:'is_help_request_admin'] + end + + if attributes.key?(:'is_account_owner') + self.is_account_owner = attributes[:'is_account_owner'] + end + + if attributes.key?(:'is_admin_admin') + self.is_admin_admin = attributes[:'is_admin_admin'] + end + + if attributes.key?(:'is_billing_admin') + self.is_billing_admin = attributes[:'is_billing_admin'] + end + + if attributes.key?(:'is_analytics_admin') + self.is_analytics_admin = attributes[:'is_analytics_admin'] + end + + if attributes.key?(:'is_customization_admin') + self.is_customization_admin = attributes[:'is_customization_admin'] + end + + if attributes.key?(:'is_manage_data_admin') + self.is_manage_data_admin = attributes[:'is_manage_data_admin'] + end + + if attributes.key?(:'is_comment_moderator_admin') + self.is_comment_moderator_admin = attributes[:'is_comment_moderator_admin'] + end + + if attributes.key?(:'is_api_admin') + self.is_api_admin = attributes[:'is_api_admin'] + end + + if attributes.key?(:'moderator_ids') + if (value = attributes[:'moderator_ids']).is_a?(Array) + self.moderator_ids = value + end + end + + if attributes.key?(:'digest_email_frequency') + self.digest_email_frequency = attributes[:'digest_email_frequency'] + end + + if attributes.key?(:'display_label') + self.display_label = attributes[:'display_label'] + 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 @username.nil? + invalid_properties.push('invalid value for "username", username cannot be nil.') + end + + if @email.nil? + invalid_properties.push('invalid value for "email", email 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 @username.nil? + return false if @email.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] username Value to be assigned + def username=(username) + if username.nil? + fail ArgumentError, 'username cannot be nil' + end + + @username = username + end + + # Custom attribute writer method with validation + # @param [Object] email Value to be assigned + def email=(email) + if email.nil? + fail ArgumentError, 'email cannot be nil' + end + + @email = email + 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 && + username == o.username && + email == o.email && + display_name == o.display_name && + website_url == o.website_url && + sign_up_date == o.sign_up_date && + locale == o.locale && + verified == o.verified && + login_count == o.login_count && + opted_in_notifications == o.opted_in_notifications && + opted_in_tenant_notifications == o.opted_in_tenant_notifications && + hide_account_code == o.hide_account_code && + avatar_src == o.avatar_src && + is_help_request_admin == o.is_help_request_admin && + is_account_owner == o.is_account_owner && + is_admin_admin == o.is_admin_admin && + is_billing_admin == o.is_billing_admin && + is_analytics_admin == o.is_analytics_admin && + is_customization_admin == o.is_customization_admin && + is_manage_data_admin == o.is_manage_data_admin && + is_comment_moderator_admin == o.is_comment_moderator_admin && + is_api_admin == o.is_api_admin && + moderator_ids == o.moderator_ids && + digest_email_frequency == o.digest_email_frequency && + display_label == o.display_label + 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 + [username, email, display_name, website_url, sign_up_date, locale, verified, login_count, opted_in_notifications, opted_in_tenant_notifications, hide_account_code, avatar_src, is_help_request_admin, is_account_owner, is_admin_admin, is_billing_admin, is_analytics_admin, is_customization_admin, is_manage_data_admin, is_comment_moderator_admin, is_api_admin, moderator_ids, digest_email_frequency, display_label].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/create_tenant_user_response.rb b/client/lib/fastcomments-client/models/create_tenant_user_response.rb new file mode 100644 index 0000000..d461857 --- /dev/null +++ b/client/lib/fastcomments-client/models/create_tenant_user_response.rb @@ -0,0 +1,212 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class CreateTenantUserResponse < ApiModelBase + attr_accessor :status + + attr_accessor :tenant_user + + 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', + :'tenant_user' => :'tenantUser' + } + 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', + :'tenant_user' => :'User' + } + 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::CreateTenantUserResponse` 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::CreateTenantUserResponse`. 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 + + if attributes.key?(:'tenant_user') + self.tenant_user = attributes[:'tenant_user'] + else + self.tenant_user = 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 + + if @tenant_user.nil? + invalid_properties.push('invalid value for "tenant_user", tenant_user 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? + return false if @tenant_user.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 + + # Custom attribute writer method with validation + # @param [Object] tenant_user Value to be assigned + def tenant_user=(tenant_user) + if tenant_user.nil? + fail ArgumentError, 'tenant_user cannot be nil' + end + + @tenant_user = tenant_user + 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 && + tenant_user == o.tenant_user + 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, tenant_user].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/create_vote200_response.rb b/client/lib/fastcomments-client/models/create_vote200_response.rb new file mode 100644 index 0000000..dc6c963 --- /dev/null +++ b/client/lib/fastcomments-client/models/create_vote200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module CreateVote200Response + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'CreateVoteResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by 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..9a712fd --- /dev/null +++ b/client/lib/fastcomments-client/models/create_vote_response.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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class CreateVoteResponse < 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::CreateVoteResponse` 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::CreateVoteResponse`. 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/custom_email_template.rb b/client/lib/fastcomments-client/models/custom_email_template.rb new file mode 100644 index 0000000..bb0c4d5 --- /dev/null +++ b/client/lib/fastcomments-client/models/custom_email_template.rb @@ -0,0 +1,369 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class CustomEmailTemplate < ApiModelBase + attr_accessor :_id + + attr_accessor :tenant_id + + attr_accessor :email_template_id + + attr_accessor :display_name + + attr_accessor :created_at + + attr_accessor :updated_at + + attr_accessor :updated_by_user_id + + attr_accessor :domain + + attr_accessor :ejs + + # Construct a type with a set of properties K of type T + attr_accessor :translation_overrides_by_locale + + attr_accessor :test_data + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'_id' => :'_id', + :'tenant_id' => :'tenantId', + :'email_template_id' => :'emailTemplateId', + :'display_name' => :'displayName', + :'created_at' => :'createdAt', + :'updated_at' => :'updatedAt', + :'updated_by_user_id' => :'updatedByUserId', + :'domain' => :'domain', + :'ejs' => :'ejs', + :'translation_overrides_by_locale' => :'translationOverridesByLocale', + :'test_data' => :'testData' + } + 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 + { + :'_id' => :'String', + :'tenant_id' => :'String', + :'email_template_id' => :'String', + :'display_name' => :'String', + :'created_at' => :'Time', + :'updated_at' => :'Time', + :'updated_by_user_id' => :'String', + :'domain' => :'String', + :'ejs' => :'String', + :'translation_overrides_by_locale' => :'Hash', + :'test_data' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'updated_at', + :'updated_by_user_id', + :'domain', + :'test_data' + ]) + 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::CustomEmailTemplate` 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::CustomEmailTemplate`. 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?(:'_id') + self._id = attributes[:'_id'] + else + self._id = nil + end + + if attributes.key?(:'tenant_id') + self.tenant_id = attributes[:'tenant_id'] + else + self.tenant_id = nil + end + + if attributes.key?(:'email_template_id') + self.email_template_id = attributes[:'email_template_id'] + else + self.email_template_id = nil + end + + if attributes.key?(:'display_name') + self.display_name = attributes[:'display_name'] + else + self.display_name = nil + end + + if attributes.key?(:'created_at') + self.created_at = attributes[:'created_at'] + else + self.created_at = nil + end + + if attributes.key?(:'updated_at') + self.updated_at = attributes[:'updated_at'] + else + self.updated_at = nil + end + + if attributes.key?(:'updated_by_user_id') + self.updated_by_user_id = attributes[:'updated_by_user_id'] + else + self.updated_by_user_id = nil + end + + if attributes.key?(:'domain') + self.domain = attributes[:'domain'] + end + + if attributes.key?(:'ejs') + self.ejs = attributes[:'ejs'] + else + self.ejs = nil + end + + if attributes.key?(:'translation_overrides_by_locale') + if (value = attributes[:'translation_overrides_by_locale']).is_a?(Hash) + self.translation_overrides_by_locale = value + end + else + self.translation_overrides_by_locale = nil + end + + if attributes.key?(:'test_data') + self.test_data = attributes[:'test_data'] + else + self.test_data = 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 @_id.nil? + invalid_properties.push('invalid value for "_id", _id cannot be nil.') + end + + if @tenant_id.nil? + invalid_properties.push('invalid value for "tenant_id", tenant_id cannot be nil.') + end + + if @email_template_id.nil? + invalid_properties.push('invalid value for "email_template_id", email_template_id cannot be nil.') + end + + if @display_name.nil? + invalid_properties.push('invalid value for "display_name", display_name cannot be nil.') + end + + if @created_at.nil? + invalid_properties.push('invalid value for "created_at", created_at cannot be nil.') + end + + if @ejs.nil? + invalid_properties.push('invalid value for "ejs", ejs cannot be nil.') + end + + if @translation_overrides_by_locale.nil? + invalid_properties.push('invalid value for "translation_overrides_by_locale", translation_overrides_by_locale 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 @_id.nil? + return false if @tenant_id.nil? + return false if @email_template_id.nil? + return false if @display_name.nil? + return false if @created_at.nil? + return false if @ejs.nil? + return false if @translation_overrides_by_locale.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] _id Value to be assigned + def _id=(_id) + if _id.nil? + fail ArgumentError, '_id cannot be nil' + end + + @_id = _id + end + + # Custom attribute writer method with validation + # @param [Object] tenant_id Value to be assigned + def tenant_id=(tenant_id) + if tenant_id.nil? + fail ArgumentError, 'tenant_id cannot be nil' + end + + @tenant_id = tenant_id + end + + # Custom attribute writer method with validation + # @param [Object] email_template_id Value to be assigned + def email_template_id=(email_template_id) + if email_template_id.nil? + fail ArgumentError, 'email_template_id cannot be nil' + end + + @email_template_id = email_template_id + end + + # Custom attribute writer method with validation + # @param [Object] display_name Value to be assigned + def display_name=(display_name) + if display_name.nil? + fail ArgumentError, 'display_name cannot be nil' + end + + @display_name = display_name + end + + # Custom attribute writer method with validation + # @param [Object] created_at Value to be assigned + def created_at=(created_at) + if created_at.nil? + fail ArgumentError, 'created_at cannot be nil' + end + + @created_at = created_at + end + + # Custom attribute writer method with validation + # @param [Object] ejs Value to be assigned + def ejs=(ejs) + if ejs.nil? + fail ArgumentError, 'ejs cannot be nil' + end + + @ejs = ejs + end + + # Custom attribute writer method with validation + # @param [Object] translation_overrides_by_locale Value to be assigned + def translation_overrides_by_locale=(translation_overrides_by_locale) + if translation_overrides_by_locale.nil? + fail ArgumentError, 'translation_overrides_by_locale cannot be nil' + end + + @translation_overrides_by_locale = translation_overrides_by_locale + 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 && + _id == o._id && + tenant_id == o.tenant_id && + email_template_id == o.email_template_id && + display_name == o.display_name && + created_at == o.created_at && + updated_at == o.updated_at && + updated_by_user_id == o.updated_by_user_id && + domain == o.domain && + ejs == o.ejs && + translation_overrides_by_locale == o.translation_overrides_by_locale && + test_data == o.test_data + 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 + [_id, tenant_id, email_template_id, display_name, created_at, updated_at, updated_by_user_id, domain, ejs, translation_overrides_by_locale, test_data].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.rb b/client/lib/fastcomments-client/models/delete_hash_tag_request.rb new file mode 100644 index 0000000..126f557 --- /dev/null +++ b/client/lib/fastcomments-client/models/delete_hash_tag_request.rb @@ -0,0 +1,147 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class DeleteHashTagRequest < ApiModelBase + attr_accessor :tenant_id + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'tenant_id' => :'tenantId' + } + 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 + { + :'tenant_id' => :'String' + } + 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::DeleteHashTagRequest` 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::DeleteHashTagRequest`. 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?(:'tenant_id') + self.tenant_id = attributes[:'tenant_id'] + 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 + 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' + true + 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 && + tenant_id == o.tenant_id + 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 + [tenant_id].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_vote200_response.rb b/client/lib/fastcomments-client/models/delete_vote200_response.rb new file mode 100644 index 0000000..844ba2a --- /dev/null +++ b/client/lib/fastcomments-client/models/delete_vote200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module DeleteVote200Response + class << self + # List of class defined in anyOf (OpenAPI v3) + def openapi_any_of + [ + :'APIError', + :'DeleteVoteResponse' + ] + end + + # Builds the object + # @param [Mixed] Data to be matched against the list of anyOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of anyOf items and attempt to identify the appropriate one. + # Note: + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_any_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + return find_and_cast_into_type(klass, data) + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + openapi_any_of.include?(:AnyType) ? data : nil + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.iso8601(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = FastCommentsClient.const_get(klass) + if const + if const.respond_to?(:openapi_any_of) # nested anyOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model + end + end + end + + raise # if no match by 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..cfc7f86 --- /dev/null +++ b/client/lib/fastcomments-client/models/delete_vote_response.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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class DeleteVoteResponse < 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::DeleteVoteResponse` 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::DeleteVoteResponse`. 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/digest_email_frequency.rb b/client/lib/fastcomments-client/models/digest_email_frequency.rb new file mode 100644 index 0000000..3bef09e --- /dev/null +++ b/client/lib/fastcomments-client/models/digest_email_frequency.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class DigestEmailFrequency + NMINUS_1 = -1.freeze + N0 = 0.freeze + N1 = 1.freeze + N2 = 2.freeze + + def self.all_vars + @all_vars ||= [NMINUS_1, N0, N1, N2].freeze + end + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def self.build_from_hash(value) + new.build_from_hash(value) + end + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def build_from_hash(value) + return value if DigestEmailFrequency.all_vars.include?(value) + raise "Invalid ENUM value #{value} for class #DigestEmailFrequency" + end + end +end diff --git a/client/lib/fastcomments-client/models/email_template_definition.rb b/client/lib/fastcomments-client/models/email_template_definition.rb new file mode 100644 index 0000000..a02574a --- /dev/null +++ b/client/lib/fastcomments-client/models/email_template_definition.rb @@ -0,0 +1,248 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class EmailTemplateDefinition < ApiModelBase + attr_accessor :email_template_id + + # Construct a type with a set of properties K of type T + attr_accessor :default_test_data + + # Construct a type with a set of properties K of type T + attr_accessor :default_translations_by_locale + + attr_accessor :default_ejs + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'email_template_id' => :'emailTemplateId', + :'default_test_data' => :'defaultTestData', + :'default_translations_by_locale' => :'defaultTranslationsByLocale', + :'default_ejs' => :'defaultEJS' + } + 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 + { + :'email_template_id' => :'String', + :'default_test_data' => :'Hash', + :'default_translations_by_locale' => :'Hash', + :'default_ejs' => :'String' + } + 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::EmailTemplateDefinition` 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::EmailTemplateDefinition`. 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?(:'email_template_id') + self.email_template_id = attributes[:'email_template_id'] + else + self.email_template_id = nil + end + + if attributes.key?(:'default_test_data') + if (value = attributes[:'default_test_data']).is_a?(Hash) + self.default_test_data = value + end + else + self.default_test_data = nil + end + + if attributes.key?(:'default_translations_by_locale') + if (value = attributes[:'default_translations_by_locale']).is_a?(Hash) + self.default_translations_by_locale = value + end + else + self.default_translations_by_locale = nil + end + + if attributes.key?(:'default_ejs') + self.default_ejs = attributes[:'default_ejs'] + else + self.default_ejs = 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 @email_template_id.nil? + invalid_properties.push('invalid value for "email_template_id", email_template_id cannot be nil.') + end + + if @default_test_data.nil? + invalid_properties.push('invalid value for "default_test_data", default_test_data cannot be nil.') + end + + if @default_translations_by_locale.nil? + invalid_properties.push('invalid value for "default_translations_by_locale", default_translations_by_locale cannot be nil.') + end + + if @default_ejs.nil? + invalid_properties.push('invalid value for "default_ejs", default_ejs 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 @email_template_id.nil? + return false if @default_test_data.nil? + return false if @default_translations_by_locale.nil? + return false if @default_ejs.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] email_template_id Value to be assigned + def email_template_id=(email_template_id) + if email_template_id.nil? + fail ArgumentError, 'email_template_id cannot be nil' + end + + @email_template_id = email_template_id + end + + # Custom attribute writer method with validation + # @param [Object] default_test_data Value to be assigned + def default_test_data=(default_test_data) + if default_test_data.nil? + fail ArgumentError, 'default_test_data cannot be nil' + end + + @default_test_data = default_test_data + end + + # Custom attribute writer method with validation + # @param [Object] default_translations_by_locale Value to be assigned + def default_translations_by_locale=(default_translations_by_locale) + if default_translations_by_locale.nil? + fail ArgumentError, 'default_translations_by_locale cannot be nil' + end + + @default_translations_by_locale = default_translations_by_locale + end + + # Custom attribute writer method with validation + # @param [Object] default_ejs Value to be assigned + def default_ejs=(default_ejs) + if default_ejs.nil? + fail ArgumentError, 'default_ejs cannot be nil' + end + + @default_ejs = default_ejs + 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 && + email_template_id == o.email_template_id && + default_test_data == o.default_test_data && + default_translations_by_locale == o.default_translations_by_locale && + default_ejs == o.default_ejs + 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 + [email_template_id, default_test_data, default_translations_by_locale, default_ejs].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/email_template_render_error_response.rb b/client/lib/fastcomments-client/models/email_template_render_error_response.rb new file mode 100644 index 0000000..b55bb06 --- /dev/null +++ b/client/lib/fastcomments-client/models/email_template_render_error_response.rb @@ -0,0 +1,320 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class EmailTemplateRenderErrorResponse < ApiModelBase + attr_accessor :id + + attr_accessor :tenant_id + + attr_accessor :custom_template_id + + attr_accessor :error + + attr_accessor :count + + attr_accessor :created_at + + attr_accessor :last_occurred_at + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'id' => :'id', + :'tenant_id' => :'tenantId', + :'custom_template_id' => :'customTemplateId', + :'error' => :'error', + :'count' => :'count', + :'created_at' => :'createdAt', + :'last_occurred_at' => :'lastOccurredAt' + } + 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 + { + :'id' => :'String', + :'tenant_id' => :'String', + :'custom_template_id' => :'String', + :'error' => :'String', + :'count' => :'Float', + :'created_at' => :'Time', + :'last_occurred_at' => :'Time' + } + 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::EmailTemplateRenderErrorResponse` 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::EmailTemplateRenderErrorResponse`. 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?(:'id') + self.id = attributes[:'id'] + else + self.id = nil + end + + if attributes.key?(:'tenant_id') + self.tenant_id = attributes[:'tenant_id'] + else + self.tenant_id = nil + end + + if attributes.key?(:'custom_template_id') + self.custom_template_id = attributes[:'custom_template_id'] + else + self.custom_template_id = nil + end + + if attributes.key?(:'error') + self.error = attributes[:'error'] + else + self.error = nil + end + + if attributes.key?(:'count') + self.count = attributes[:'count'] + else + self.count = nil + end + + if attributes.key?(:'created_at') + self.created_at = attributes[:'created_at'] + else + self.created_at = nil + end + + if attributes.key?(:'last_occurred_at') + self.last_occurred_at = attributes[:'last_occurred_at'] + else + self.last_occurred_at = 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 @id.nil? + invalid_properties.push('invalid value for "id", id cannot be nil.') + end + + if @tenant_id.nil? + invalid_properties.push('invalid value for "tenant_id", tenant_id cannot be nil.') + end + + if @custom_template_id.nil? + invalid_properties.push('invalid value for "custom_template_id", custom_template_id cannot be nil.') + end + + if @error.nil? + invalid_properties.push('invalid value for "error", error cannot be nil.') + end + + if @count.nil? + invalid_properties.push('invalid value for "count", count cannot be nil.') + end + + if @created_at.nil? + invalid_properties.push('invalid value for "created_at", created_at cannot be nil.') + end + + if @last_occurred_at.nil? + invalid_properties.push('invalid value for "last_occurred_at", last_occurred_at 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 @id.nil? + return false if @tenant_id.nil? + return false if @custom_template_id.nil? + return false if @error.nil? + return false if @count.nil? + return false if @created_at.nil? + return false if @last_occurred_at.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] id Value to be assigned + def id=(id) + if id.nil? + fail ArgumentError, 'id cannot be nil' + end + + @id = id + end + + # Custom attribute writer method with validation + # @param [Object] tenant_id Value to be assigned + def tenant_id=(tenant_id) + if tenant_id.nil? + fail ArgumentError, 'tenant_id cannot be nil' + end + + @tenant_id = tenant_id + end + + # Custom attribute writer method with validation + # @param [Object] custom_template_id Value to be assigned + def custom_template_id=(custom_template_id) + if custom_template_id.nil? + fail ArgumentError, 'custom_template_id cannot be nil' + end + + @custom_template_id = custom_template_id + end + + # Custom attribute writer method with validation + # @param [Object] error Value to be assigned + def error=(error) + if error.nil? + fail ArgumentError, 'error cannot be nil' + end + + @error = error + end + + # Custom attribute writer method with validation + # @param [Object] count Value to be assigned + def count=(count) + if count.nil? + fail ArgumentError, 'count cannot be nil' + end + + @count = count + end + + # Custom attribute writer method with validation + # @param [Object] created_at Value to be assigned + def created_at=(created_at) + if created_at.nil? + fail ArgumentError, 'created_at cannot be nil' + end + + @created_at = created_at + end + + # Custom attribute writer method with validation + # @param [Object] last_occurred_at Value to be assigned + def last_occurred_at=(last_occurred_at) + if last_occurred_at.nil? + fail ArgumentError, 'last_occurred_at cannot be nil' + end + + @last_occurred_at = last_occurred_at + 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 && + id == o.id && + tenant_id == o.tenant_id && + custom_template_id == o.custom_template_id && + error == o.error && + count == o.count && + created_at == o.created_at && + last_occurred_at == o.last_occurred_at + 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 + [id, tenant_id, custom_template_id, error, count, created_at, last_occurred_at].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/get_cached_notification_count200_response.rb b/client/lib/fastcomments-client/models/get_cached_notification_count200_response.rb new file mode 100644 index 0000000..1e3834b --- /dev/null +++ b/client/lib/fastcomments-client/models/get_cached_notification_count200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetCachedNotificationCount200Response + 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_cached_notification_count_response.rb b/client/lib/fastcomments-client/models/get_cached_notification_count_response.rb new file mode 100644 index 0000000..4e891e0 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_cached_notification_count_response.rb @@ -0,0 +1,212 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class GetCachedNotificationCountResponse < ApiModelBase + attr_accessor :status + + attr_accessor :data + + 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', + :'data' => :'data' + } + 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', + :'data' => :'UserNotificationCount' + } + 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::GetCachedNotificationCountResponse` 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::GetCachedNotificationCountResponse`. 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 + + if attributes.key?(:'data') + self.data = attributes[:'data'] + else + self.data = 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 + + if @data.nil? + invalid_properties.push('invalid value for "data", data 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? + return false if @data.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 + + # Custom attribute writer method with validation + # @param [Object] data Value to be assigned + def data=(data) + if data.nil? + fail ArgumentError, 'data cannot be nil' + end + + @data = data + 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 && + data == o.data + 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, data].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/get_email_template200_response.rb b/client/lib/fastcomments-client/models/get_email_template200_response.rb new file mode 100644 index 0000000..3cfdb7f --- /dev/null +++ b/client/lib/fastcomments-client/models/get_email_template200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetEmailTemplate200Response + 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_template_definitions200_response.rb b/client/lib/fastcomments-client/models/get_email_template_definitions200_response.rb new file mode 100644 index 0000000..8277517 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_email_template_definitions200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetEmailTemplateDefinitions200Response + 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_definitions_response.rb b/client/lib/fastcomments-client/models/get_email_template_definitions_response.rb new file mode 100644 index 0000000..9d680f4 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_email_template_definitions_response.rb @@ -0,0 +1,214 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class GetEmailTemplateDefinitionsResponse < ApiModelBase + attr_accessor :status + + attr_accessor :definitions + + 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', + :'definitions' => :'definitions' + } + 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', + :'definitions' => :'Array' + } + 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::GetEmailTemplateDefinitionsResponse` 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::GetEmailTemplateDefinitionsResponse`. 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 + + if attributes.key?(:'definitions') + if (value = attributes[:'definitions']).is_a?(Array) + self.definitions = value + end + else + self.definitions = 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 + + if @definitions.nil? + invalid_properties.push('invalid value for "definitions", definitions 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? + return false if @definitions.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 + + # Custom attribute writer method with validation + # @param [Object] definitions Value to be assigned + def definitions=(definitions) + if definitions.nil? + fail ArgumentError, 'definitions cannot be nil' + end + + @definitions = definitions + 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 && + definitions == o.definitions + 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, definitions].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/get_email_template_render_errors200_response.rb b/client/lib/fastcomments-client/models/get_email_template_render_errors200_response.rb new file mode 100644 index 0000000..e0f026e --- /dev/null +++ b/client/lib/fastcomments-client/models/get_email_template_render_errors200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetEmailTemplateRenderErrors200Response + 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_render_errors_response.rb b/client/lib/fastcomments-client/models/get_email_template_render_errors_response.rb new file mode 100644 index 0000000..4102d92 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_email_template_render_errors_response.rb @@ -0,0 +1,214 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class GetEmailTemplateRenderErrorsResponse < ApiModelBase + attr_accessor :status + + attr_accessor :render_errors + + 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', + :'render_errors' => :'renderErrors' + } + 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', + :'render_errors' => :'Array' + } + 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::GetEmailTemplateRenderErrorsResponse` 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::GetEmailTemplateRenderErrorsResponse`. 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 + + if attributes.key?(:'render_errors') + if (value = attributes[:'render_errors']).is_a?(Array) + self.render_errors = value + end + else + self.render_errors = 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 + + if @render_errors.nil? + invalid_properties.push('invalid value for "render_errors", render_errors 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? + return false if @render_errors.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 + + # Custom attribute writer method with validation + # @param [Object] render_errors Value to be assigned + def render_errors=(render_errors) + if render_errors.nil? + fail ArgumentError, 'render_errors cannot be nil' + end + + @render_errors = render_errors + 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 && + render_errors == o.render_errors + 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, render_errors].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/get_email_template_response.rb b/client/lib/fastcomments-client/models/get_email_template_response.rb new file mode 100644 index 0000000..ea8a2fd --- /dev/null +++ b/client/lib/fastcomments-client/models/get_email_template_response.rb @@ -0,0 +1,212 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class GetEmailTemplateResponse < ApiModelBase + attr_accessor :status + + attr_accessor :email_template + + 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', + :'email_template' => :'emailTemplate' + } + 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', + :'email_template' => :'CustomEmailTemplate' + } + 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::GetEmailTemplateResponse` 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::GetEmailTemplateResponse`. 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 + + if attributes.key?(:'email_template') + self.email_template = attributes[:'email_template'] + else + self.email_template = 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 + + if @email_template.nil? + invalid_properties.push('invalid value for "email_template", email_template 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? + return false if @email_template.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 + + # Custom attribute writer method with validation + # @param [Object] email_template Value to be assigned + def email_template=(email_template) + if email_template.nil? + fail ArgumentError, 'email_template cannot be nil' + end + + @email_template = email_template + 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 && + email_template == o.email_template + 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, email_template].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/get_email_templates200_response.rb b/client/lib/fastcomments-client/models/get_email_templates200_response.rb new file mode 100644 index 0000000..bfb7346 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_email_templates200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetEmailTemplates200Response + 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_email_templates_response.rb b/client/lib/fastcomments-client/models/get_email_templates_response.rb new file mode 100644 index 0000000..2c486ec --- /dev/null +++ b/client/lib/fastcomments-client/models/get_email_templates_response.rb @@ -0,0 +1,214 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class GetEmailTemplatesResponse < ApiModelBase + attr_accessor :status + + attr_accessor :email_templates + + 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', + :'email_templates' => :'emailTemplates' + } + 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', + :'email_templates' => :'Array' + } + 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::GetEmailTemplatesResponse` 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::GetEmailTemplatesResponse`. 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 + + if attributes.key?(:'email_templates') + if (value = attributes[:'email_templates']).is_a?(Array) + self.email_templates = value + end + else + self.email_templates = 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 + + if @email_templates.nil? + invalid_properties.push('invalid value for "email_templates", email_templates 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? + return false if @email_templates.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 + + # Custom attribute writer method with validation + # @param [Object] email_templates Value to be assigned + def email_templates=(email_templates) + if email_templates.nil? + fail ArgumentError, 'email_templates cannot be nil' + end + + @email_templates = email_templates + 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 && + email_templates == o.email_templates + 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, email_templates].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/get_hash_tags200_response.rb b/client/lib/fastcomments-client/models/get_hash_tags200_response.rb new file mode 100644 index 0000000..463710b --- /dev/null +++ b/client/lib/fastcomments-client/models/get_hash_tags200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetHashTags200Response + 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_hash_tags_response.rb b/client/lib/fastcomments-client/models/get_hash_tags_response.rb new file mode 100644 index 0000000..2494aca --- /dev/null +++ b/client/lib/fastcomments-client/models/get_hash_tags_response.rb @@ -0,0 +1,214 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class GetHashTagsResponse < ApiModelBase + attr_accessor :status + + attr_accessor :hash_tags + + 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', + :'hash_tags' => :'hashTags' + } + 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', + :'hash_tags' => :'Array' + } + 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::GetHashTagsResponse` 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::GetHashTagsResponse`. 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 + + if attributes.key?(:'hash_tags') + if (value = attributes[:'hash_tags']).is_a?(Array) + self.hash_tags = value + end + else + self.hash_tags = 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 + + if @hash_tags.nil? + invalid_properties.push('invalid value for "hash_tags", hash_tags 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? + return false if @hash_tags.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 + + # Custom attribute writer method with validation + # @param [Object] hash_tags Value to be assigned + def hash_tags=(hash_tags) + if hash_tags.nil? + fail ArgumentError, 'hash_tags cannot be nil' + end + + @hash_tags = hash_tags + 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 && + hash_tags == o.hash_tags + 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_tags].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/get_moderator200_response.rb b/client/lib/fastcomments-client/models/get_moderator200_response.rb new file mode 100644 index 0000000..a24d843 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_moderator200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetModerator200Response + 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_moderator_response.rb b/client/lib/fastcomments-client/models/get_moderator_response.rb new file mode 100644 index 0000000..4b787a1 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_moderator_response.rb @@ -0,0 +1,212 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class GetModeratorResponse < ApiModelBase + attr_accessor :status + + attr_accessor :moderator + + 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', + :'moderator' => :'moderator' + } + 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', + :'moderator' => :'Moderator' + } + 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::GetModeratorResponse` 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::GetModeratorResponse`. 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 + + if attributes.key?(:'moderator') + self.moderator = attributes[:'moderator'] + else + self.moderator = 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 + + if @moderator.nil? + invalid_properties.push('invalid value for "moderator", moderator 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? + return false if @moderator.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 + + # Custom attribute writer method with validation + # @param [Object] moderator Value to be assigned + def moderator=(moderator) + if moderator.nil? + fail ArgumentError, 'moderator cannot be nil' + end + + @moderator = moderator + 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 && + moderator == o.moderator + 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, moderator].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/get_moderators200_response.rb b/client/lib/fastcomments-client/models/get_moderators200_response.rb new file mode 100644 index 0000000..08b0f26 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_moderators200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetModerators200Response + 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_moderators_response.rb b/client/lib/fastcomments-client/models/get_moderators_response.rb new file mode 100644 index 0000000..d476fff --- /dev/null +++ b/client/lib/fastcomments-client/models/get_moderators_response.rb @@ -0,0 +1,214 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class GetModeratorsResponse < ApiModelBase + attr_accessor :status + + attr_accessor :moderators + + 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', + :'moderators' => :'moderators' + } + 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', + :'moderators' => :'Array' + } + 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::GetModeratorsResponse` 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::GetModeratorsResponse`. 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 + + if attributes.key?(:'moderators') + if (value = attributes[:'moderators']).is_a?(Array) + self.moderators = value + end + else + self.moderators = 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 + + if @moderators.nil? + invalid_properties.push('invalid value for "moderators", moderators 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? + return false if @moderators.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 + + # Custom attribute writer method with validation + # @param [Object] moderators Value to be assigned + def moderators=(moderators) + if moderators.nil? + fail ArgumentError, 'moderators cannot be nil' + end + + @moderators = moderators + 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 && + moderators == o.moderators + 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, moderators].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/get_notification_count200_response.rb b/client/lib/fastcomments-client/models/get_notification_count200_response.rb new file mode 100644 index 0000000..fbe1885 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_notification_count200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetNotificationCount200Response + 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_notification_count_response.rb b/client/lib/fastcomments-client/models/get_notification_count_response.rb new file mode 100644 index 0000000..2a92f18 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_notification_count_response.rb @@ -0,0 +1,212 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class GetNotificationCountResponse < ApiModelBase + attr_accessor :status + + attr_accessor :count + + 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', + :'count' => :'count' + } + 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', + :'count' => :'Float' + } + 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::GetNotificationCountResponse` 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::GetNotificationCountResponse`. 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 + + if attributes.key?(:'count') + self.count = attributes[:'count'] + else + self.count = 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 + + if @count.nil? + invalid_properties.push('invalid value for "count", count 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? + return false if @count.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 + + # Custom attribute writer method with validation + # @param [Object] count Value to be assigned + def count=(count) + if count.nil? + fail ArgumentError, 'count cannot be nil' + end + + @count = count + 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 && + count == o.count + 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, count].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/get_notifications200_response.rb b/client/lib/fastcomments-client/models/get_notifications200_response.rb new file mode 100644 index 0000000..0095f6f --- /dev/null +++ b/client/lib/fastcomments-client/models/get_notifications200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetNotifications200Response + 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_notifications_response.rb b/client/lib/fastcomments-client/models/get_notifications_response.rb new file mode 100644 index 0000000..eacb775 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_notifications_response.rb @@ -0,0 +1,214 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class GetNotificationsResponse < ApiModelBase + attr_accessor :status + + attr_accessor :notifications + + 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', + :'notifications' => :'notifications' + } + 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', + :'notifications' => :'Array' + } + 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::GetNotificationsResponse` 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::GetNotificationsResponse`. 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 + + if attributes.key?(:'notifications') + if (value = attributes[:'notifications']).is_a?(Array) + self.notifications = value + end + else + self.notifications = 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 + + if @notifications.nil? + invalid_properties.push('invalid value for "notifications", notifications 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? + return false if @notifications.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 + + # Custom attribute writer method with validation + # @param [Object] notifications Value to be assigned + def notifications=(notifications) + if notifications.nil? + fail ArgumentError, 'notifications cannot be nil' + end + + @notifications = notifications + 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 && + notifications == o.notifications + 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, notifications].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/get_pending_webhook_event_count200_response.rb b/client/lib/fastcomments-client/models/get_pending_webhook_event_count200_response.rb new file mode 100644 index 0000000..eb0d58d --- /dev/null +++ b/client/lib/fastcomments-client/models/get_pending_webhook_event_count200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetPendingWebhookEventCount200Response + 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_event_count_response.rb b/client/lib/fastcomments-client/models/get_pending_webhook_event_count_response.rb new file mode 100644 index 0000000..437dce8 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_pending_webhook_event_count_response.rb @@ -0,0 +1,212 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class GetPendingWebhookEventCountResponse < ApiModelBase + attr_accessor :status + + attr_accessor :count + + 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', + :'count' => :'count' + } + 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', + :'count' => :'Float' + } + 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::GetPendingWebhookEventCountResponse` 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::GetPendingWebhookEventCountResponse`. 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 + + if attributes.key?(:'count') + self.count = attributes[:'count'] + else + self.count = 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 + + if @count.nil? + invalid_properties.push('invalid value for "count", count 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? + return false if @count.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 + + # Custom attribute writer method with validation + # @param [Object] count Value to be assigned + def count=(count) + if count.nil? + fail ArgumentError, 'count cannot be nil' + end + + @count = count + 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 && + count == o.count + 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, count].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/get_pending_webhook_events200_response.rb b/client/lib/fastcomments-client/models/get_pending_webhook_events200_response.rb new file mode 100644 index 0000000..1bfda68 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_pending_webhook_events200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetPendingWebhookEvents200Response + 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_pending_webhook_events_response.rb b/client/lib/fastcomments-client/models/get_pending_webhook_events_response.rb new file mode 100644 index 0000000..e933a5f --- /dev/null +++ b/client/lib/fastcomments-client/models/get_pending_webhook_events_response.rb @@ -0,0 +1,214 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class GetPendingWebhookEventsResponse < ApiModelBase + attr_accessor :status + + attr_accessor :pending_webhook_events + + 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', + :'pending_webhook_events' => :'pendingWebhookEvents' + } + 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', + :'pending_webhook_events' => :'Array' + } + 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::GetPendingWebhookEventsResponse` 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::GetPendingWebhookEventsResponse`. 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 + + if attributes.key?(:'pending_webhook_events') + if (value = attributes[:'pending_webhook_events']).is_a?(Array) + self.pending_webhook_events = value + end + else + self.pending_webhook_events = 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 + + if @pending_webhook_events.nil? + invalid_properties.push('invalid value for "pending_webhook_events", pending_webhook_events 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? + return false if @pending_webhook_events.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 + + # Custom attribute writer method with validation + # @param [Object] pending_webhook_events Value to be assigned + def pending_webhook_events=(pending_webhook_events) + if pending_webhook_events.nil? + fail ArgumentError, 'pending_webhook_events cannot be nil' + end + + @pending_webhook_events = pending_webhook_events + 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 && + pending_webhook_events == o.pending_webhook_events + 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, pending_webhook_events].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/get_question_config200_response.rb b/client/lib/fastcomments-client/models/get_question_config200_response.rb new file mode 100644 index 0000000..f74e947 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_question_config200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetQuestionConfig200Response + 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_config_response.rb b/client/lib/fastcomments-client/models/get_question_config_response.rb new file mode 100644 index 0000000..9414b9a --- /dev/null +++ b/client/lib/fastcomments-client/models/get_question_config_response.rb @@ -0,0 +1,212 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class GetQuestionConfigResponse < ApiModelBase + attr_accessor :status + + attr_accessor :question_config + + 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', + :'question_config' => :'questionConfig' + } + 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', + :'question_config' => :'QuestionConfig' + } + 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::GetQuestionConfigResponse` 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::GetQuestionConfigResponse`. 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 + + if attributes.key?(:'question_config') + self.question_config = attributes[:'question_config'] + else + self.question_config = 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 + + if @question_config.nil? + invalid_properties.push('invalid value for "question_config", question_config 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? + return false if @question_config.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 + + # Custom attribute writer method with validation + # @param [Object] question_config Value to be assigned + def question_config=(question_config) + if question_config.nil? + fail ArgumentError, 'question_config cannot be nil' + end + + @question_config = question_config + 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 && + question_config == o.question_config + 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, question_config].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/get_question_configs200_response.rb b/client/lib/fastcomments-client/models/get_question_configs200_response.rb new file mode 100644 index 0000000..36947cd --- /dev/null +++ b/client/lib/fastcomments-client/models/get_question_configs200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetQuestionConfigs200Response + 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_configs_response.rb b/client/lib/fastcomments-client/models/get_question_configs_response.rb new file mode 100644 index 0000000..a578161 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_question_configs_response.rb @@ -0,0 +1,214 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class GetQuestionConfigsResponse < ApiModelBase + attr_accessor :status + + attr_accessor :question_configs + + 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', + :'question_configs' => :'questionConfigs' + } + 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', + :'question_configs' => :'Array' + } + 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::GetQuestionConfigsResponse` 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::GetQuestionConfigsResponse`. 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 + + if attributes.key?(:'question_configs') + if (value = attributes[:'question_configs']).is_a?(Array) + self.question_configs = value + end + else + self.question_configs = 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 + + if @question_configs.nil? + invalid_properties.push('invalid value for "question_configs", question_configs 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? + return false if @question_configs.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 + + # Custom attribute writer method with validation + # @param [Object] question_configs Value to be assigned + def question_configs=(question_configs) + if question_configs.nil? + fail ArgumentError, 'question_configs cannot be nil' + end + + @question_configs = question_configs + 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 && + question_configs == o.question_configs + 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, question_configs].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/get_question_result200_response.rb b/client/lib/fastcomments-client/models/get_question_result200_response.rb new file mode 100644 index 0000000..34d9542 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_question_result200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetQuestionResult200Response + 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_result_response.rb b/client/lib/fastcomments-client/models/get_question_result_response.rb new file mode 100644 index 0000000..0a7ac4e --- /dev/null +++ b/client/lib/fastcomments-client/models/get_question_result_response.rb @@ -0,0 +1,212 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class GetQuestionResultResponse < ApiModelBase + attr_accessor :status + + attr_accessor :question_result + + 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', + :'question_result' => :'questionResult' + } + 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', + :'question_result' => :'QuestionResult' + } + 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::GetQuestionResultResponse` 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::GetQuestionResultResponse`. 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 + + if attributes.key?(:'question_result') + self.question_result = attributes[:'question_result'] + else + self.question_result = 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 + + if @question_result.nil? + invalid_properties.push('invalid value for "question_result", question_result 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? + return false if @question_result.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 + + # Custom attribute writer method with validation + # @param [Object] question_result Value to be assigned + def question_result=(question_result) + if question_result.nil? + fail ArgumentError, 'question_result cannot be nil' + end + + @question_result = question_result + 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 && + question_result == o.question_result + 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, question_result].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/get_question_results200_response.rb b/client/lib/fastcomments-client/models/get_question_results200_response.rb new file mode 100644 index 0000000..20db174 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_question_results200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetQuestionResults200Response + 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_question_results_response.rb b/client/lib/fastcomments-client/models/get_question_results_response.rb new file mode 100644 index 0000000..2f754a3 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_question_results_response.rb @@ -0,0 +1,214 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class GetQuestionResultsResponse < ApiModelBase + attr_accessor :status + + attr_accessor :question_results + + 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', + :'question_results' => :'questionResults' + } + 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', + :'question_results' => :'Array' + } + 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::GetQuestionResultsResponse` 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::GetQuestionResultsResponse`. 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 + + if attributes.key?(:'question_results') + if (value = attributes[:'question_results']).is_a?(Array) + self.question_results = value + end + else + self.question_results = 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 + + if @question_results.nil? + invalid_properties.push('invalid value for "question_results", question_results 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? + return false if @question_results.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 + + # Custom attribute writer method with validation + # @param [Object] question_results Value to be assigned + def question_results=(question_results) + if question_results.nil? + fail ArgumentError, 'question_results cannot be nil' + end + + @question_results = question_results + 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 && + question_results == o.question_results + 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, question_results].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/get_tenant200_response.rb b/client/lib/fastcomments-client/models/get_tenant200_response.rb new file mode 100644 index 0000000..d6b6a3e --- /dev/null +++ b/client/lib/fastcomments-client/models/get_tenant200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetTenant200Response + 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_daily_usages200_response.rb b/client/lib/fastcomments-client/models/get_tenant_daily_usages200_response.rb new file mode 100644 index 0000000..6fe68f2 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_tenant_daily_usages200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetTenantDailyUsages200Response + 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_daily_usages_response.rb b/client/lib/fastcomments-client/models/get_tenant_daily_usages_response.rb new file mode 100644 index 0000000..fa434ff --- /dev/null +++ b/client/lib/fastcomments-client/models/get_tenant_daily_usages_response.rb @@ -0,0 +1,214 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class GetTenantDailyUsagesResponse < ApiModelBase + attr_accessor :status + + attr_accessor :tenant_daily_usages + + 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', + :'tenant_daily_usages' => :'tenantDailyUsages' + } + 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', + :'tenant_daily_usages' => :'Array' + } + 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::GetTenantDailyUsagesResponse` 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::GetTenantDailyUsagesResponse`. 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 + + if attributes.key?(:'tenant_daily_usages') + if (value = attributes[:'tenant_daily_usages']).is_a?(Array) + self.tenant_daily_usages = value + end + else + self.tenant_daily_usages = 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 + + if @tenant_daily_usages.nil? + invalid_properties.push('invalid value for "tenant_daily_usages", tenant_daily_usages 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? + return false if @tenant_daily_usages.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 + + # Custom attribute writer method with validation + # @param [Object] tenant_daily_usages Value to be assigned + def tenant_daily_usages=(tenant_daily_usages) + if tenant_daily_usages.nil? + fail ArgumentError, 'tenant_daily_usages cannot be nil' + end + + @tenant_daily_usages = tenant_daily_usages + 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 && + tenant_daily_usages == o.tenant_daily_usages + 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, tenant_daily_usages].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/get_tenant_package200_response.rb b/client/lib/fastcomments-client/models/get_tenant_package200_response.rb new file mode 100644 index 0000000..961d1b1 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_tenant_package200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetTenantPackage200Response + 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_package_response.rb b/client/lib/fastcomments-client/models/get_tenant_package_response.rb new file mode 100644 index 0000000..66d1da9 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_tenant_package_response.rb @@ -0,0 +1,212 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class GetTenantPackageResponse < ApiModelBase + attr_accessor :status + + attr_accessor :tenant_package + + 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', + :'tenant_package' => :'tenantPackage' + } + 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', + :'tenant_package' => :'TenantPackage' + } + 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::GetTenantPackageResponse` 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::GetTenantPackageResponse`. 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 + + if attributes.key?(:'tenant_package') + self.tenant_package = attributes[:'tenant_package'] + else + self.tenant_package = 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 + + if @tenant_package.nil? + invalid_properties.push('invalid value for "tenant_package", tenant_package 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? + return false if @tenant_package.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 + + # Custom attribute writer method with validation + # @param [Object] tenant_package Value to be assigned + def tenant_package=(tenant_package) + if tenant_package.nil? + fail ArgumentError, 'tenant_package cannot be nil' + end + + @tenant_package = tenant_package + 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 && + tenant_package == o.tenant_package + 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, tenant_package].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/get_tenant_packages200_response.rb b/client/lib/fastcomments-client/models/get_tenant_packages200_response.rb new file mode 100644 index 0000000..e24fda2 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_tenant_packages200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetTenantPackages200Response + 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_packages_response.rb b/client/lib/fastcomments-client/models/get_tenant_packages_response.rb new file mode 100644 index 0000000..00de1fa --- /dev/null +++ b/client/lib/fastcomments-client/models/get_tenant_packages_response.rb @@ -0,0 +1,214 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class GetTenantPackagesResponse < ApiModelBase + attr_accessor :status + + attr_accessor :tenant_packages + + 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', + :'tenant_packages' => :'tenantPackages' + } + 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', + :'tenant_packages' => :'Array' + } + 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::GetTenantPackagesResponse` 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::GetTenantPackagesResponse`. 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 + + if attributes.key?(:'tenant_packages') + if (value = attributes[:'tenant_packages']).is_a?(Array) + self.tenant_packages = value + end + else + self.tenant_packages = 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 + + if @tenant_packages.nil? + invalid_properties.push('invalid value for "tenant_packages", tenant_packages 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? + return false if @tenant_packages.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 + + # Custom attribute writer method with validation + # @param [Object] tenant_packages Value to be assigned + def tenant_packages=(tenant_packages) + if tenant_packages.nil? + fail ArgumentError, 'tenant_packages cannot be nil' + end + + @tenant_packages = tenant_packages + 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 && + tenant_packages == o.tenant_packages + 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, tenant_packages].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/get_tenant_response.rb b/client/lib/fastcomments-client/models/get_tenant_response.rb new file mode 100644 index 0000000..413d89e --- /dev/null +++ b/client/lib/fastcomments-client/models/get_tenant_response.rb @@ -0,0 +1,212 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class GetTenantResponse < ApiModelBase + attr_accessor :status + + attr_accessor :tenant + + 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', + :'tenant' => :'tenant' + } + 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', + :'tenant' => :'APITenant' + } + 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::GetTenantResponse` 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::GetTenantResponse`. 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 + + if attributes.key?(:'tenant') + self.tenant = attributes[:'tenant'] + else + self.tenant = 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 + + if @tenant.nil? + invalid_properties.push('invalid value for "tenant", tenant 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? + return false if @tenant.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 + + # Custom attribute writer method with validation + # @param [Object] tenant Value to be assigned + def tenant=(tenant) + if tenant.nil? + fail ArgumentError, 'tenant cannot be nil' + end + + @tenant = tenant + 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 && + tenant == o.tenant + 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, tenant].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/get_tenant_user200_response.rb b/client/lib/fastcomments-client/models/get_tenant_user200_response.rb new file mode 100644 index 0000000..dcfb6b8 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_tenant_user200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetTenantUser200Response + 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_user_response.rb b/client/lib/fastcomments-client/models/get_tenant_user_response.rb new file mode 100644 index 0000000..33b23e0 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_tenant_user_response.rb @@ -0,0 +1,212 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class GetTenantUserResponse < ApiModelBase + attr_accessor :status + + attr_accessor :tenant_user + + 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', + :'tenant_user' => :'tenantUser' + } + 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', + :'tenant_user' => :'User' + } + 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::GetTenantUserResponse` 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::GetTenantUserResponse`. 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 + + if attributes.key?(:'tenant_user') + self.tenant_user = attributes[:'tenant_user'] + else + self.tenant_user = 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 + + if @tenant_user.nil? + invalid_properties.push('invalid value for "tenant_user", tenant_user 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? + return false if @tenant_user.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 + + # Custom attribute writer method with validation + # @param [Object] tenant_user Value to be assigned + def tenant_user=(tenant_user) + if tenant_user.nil? + fail ArgumentError, 'tenant_user cannot be nil' + end + + @tenant_user = tenant_user + 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 && + tenant_user == o.tenant_user + 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, tenant_user].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/get_tenant_users200_response.rb b/client/lib/fastcomments-client/models/get_tenant_users200_response.rb new file mode 100644 index 0000000..eccd7ef --- /dev/null +++ b/client/lib/fastcomments-client/models/get_tenant_users200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetTenantUsers200Response + 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_tenant_users_response.rb b/client/lib/fastcomments-client/models/get_tenant_users_response.rb new file mode 100644 index 0000000..cf722fb --- /dev/null +++ b/client/lib/fastcomments-client/models/get_tenant_users_response.rb @@ -0,0 +1,214 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class GetTenantUsersResponse < ApiModelBase + attr_accessor :status + + attr_accessor :tenant_users + + 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', + :'tenant_users' => :'tenantUsers' + } + 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', + :'tenant_users' => :'Array' + } + 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::GetTenantUsersResponse` 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::GetTenantUsersResponse`. 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 + + if attributes.key?(:'tenant_users') + if (value = attributes[:'tenant_users']).is_a?(Array) + self.tenant_users = value + end + else + self.tenant_users = 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 + + if @tenant_users.nil? + invalid_properties.push('invalid value for "tenant_users", tenant_users 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? + return false if @tenant_users.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 + + # Custom attribute writer method with validation + # @param [Object] tenant_users Value to be assigned + def tenant_users=(tenant_users) + if tenant_users.nil? + fail ArgumentError, 'tenant_users cannot be nil' + end + + @tenant_users = tenant_users + 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 && + tenant_users == o.tenant_users + 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, tenant_users].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/get_tenants200_response.rb b/client/lib/fastcomments-client/models/get_tenants200_response.rb new file mode 100644 index 0000000..dcb012d --- /dev/null +++ b/client/lib/fastcomments-client/models/get_tenants200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetTenants200Response + 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_tenants_response.rb b/client/lib/fastcomments-client/models/get_tenants_response.rb new file mode 100644 index 0000000..3a09c44 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_tenants_response.rb @@ -0,0 +1,214 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class GetTenantsResponse < ApiModelBase + attr_accessor :status + + attr_accessor :tenants + + 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', + :'tenants' => :'tenants' + } + 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', + :'tenants' => :'Array' + } + 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::GetTenantsResponse` 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::GetTenantsResponse`. 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 + + if attributes.key?(:'tenants') + if (value = attributes[:'tenants']).is_a?(Array) + self.tenants = value + end + else + self.tenants = 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 + + if @tenants.nil? + invalid_properties.push('invalid value for "tenants", tenants 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? + return false if @tenants.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 + + # Custom attribute writer method with validation + # @param [Object] tenants Value to be assigned + def tenants=(tenants) + if tenants.nil? + fail ArgumentError, 'tenants cannot be nil' + end + + @tenants = tenants + 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 && + tenants == o.tenants + 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, tenants].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/get_user200_response.rb b/client/lib/fastcomments-client/models/get_user200_response.rb new file mode 100644 index 0000000..1bca27c --- /dev/null +++ b/client/lib/fastcomments-client/models/get_user200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetUser200Response + 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_response.rb b/client/lib/fastcomments-client/models/get_user_response.rb new file mode 100644 index 0000000..754dc50 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_user_response.rb @@ -0,0 +1,212 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class GetUserResponse < ApiModelBase + attr_accessor :status + + attr_accessor :user + + 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', + :'user' => :'user' + } + 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', + :'user' => :'User' + } + 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::GetUserResponse` 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::GetUserResponse`. 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 + + if attributes.key?(:'user') + self.user = attributes[:'user'] + else + self.user = 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 + + if @user.nil? + invalid_properties.push('invalid value for "user", user 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? + return false if @user.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 + + # Custom attribute writer method with validation + # @param [Object] user Value to be assigned + def user=(user) + if user.nil? + fail ArgumentError, 'user cannot be nil' + end + + @user = user + 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 && + user == o.user + 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, user].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/get_votes200_response.rb b/client/lib/fastcomments-client/models/get_votes200_response.rb new file mode 100644 index 0000000..df0711a --- /dev/null +++ b/client/lib/fastcomments-client/models/get_votes200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetVotes200Response + 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/get_votes_for_user200_response.rb b/client/lib/fastcomments-client/models/get_votes_for_user200_response.rb new file mode 100644 index 0000000..5858d73 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_votes_for_user200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module GetVotesForUser200Response + 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_for_user_response.rb b/client/lib/fastcomments-client/models/get_votes_for_user_response.rb new file mode 100644 index 0000000..e2e40e7 --- /dev/null +++ b/client/lib/fastcomments-client/models/get_votes_for_user_response.rb @@ -0,0 +1,270 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class GetVotesForUserResponse < ApiModelBase + attr_accessor :status + + attr_accessor :applied_authorized_votes + + attr_accessor :applied_anonymous_votes + + attr_accessor :pending_votes + + 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', + :'applied_authorized_votes' => :'appliedAuthorizedVotes', + :'applied_anonymous_votes' => :'appliedAnonymousVotes', + :'pending_votes' => :'pendingVotes' + } + 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', + :'applied_authorized_votes' => :'Array', + :'applied_anonymous_votes' => :'Array', + :'pending_votes' => :'Array' + } + 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::GetVotesForUserResponse` 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::GetVotesForUserResponse`. 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 + + if attributes.key?(:'applied_authorized_votes') + if (value = attributes[:'applied_authorized_votes']).is_a?(Array) + self.applied_authorized_votes = value + end + else + self.applied_authorized_votes = nil + end + + if attributes.key?(:'applied_anonymous_votes') + if (value = attributes[:'applied_anonymous_votes']).is_a?(Array) + self.applied_anonymous_votes = value + end + else + self.applied_anonymous_votes = nil + end + + if attributes.key?(:'pending_votes') + if (value = attributes[:'pending_votes']).is_a?(Array) + self.pending_votes = value + end + else + self.pending_votes = 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 + + if @applied_authorized_votes.nil? + invalid_properties.push('invalid value for "applied_authorized_votes", applied_authorized_votes cannot be nil.') + end + + if @applied_anonymous_votes.nil? + invalid_properties.push('invalid value for "applied_anonymous_votes", applied_anonymous_votes cannot be nil.') + end + + if @pending_votes.nil? + invalid_properties.push('invalid value for "pending_votes", pending_votes 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? + return false if @applied_authorized_votes.nil? + return false if @applied_anonymous_votes.nil? + return false if @pending_votes.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 + + # Custom attribute writer method with validation + # @param [Object] applied_authorized_votes Value to be assigned + def applied_authorized_votes=(applied_authorized_votes) + if applied_authorized_votes.nil? + fail ArgumentError, 'applied_authorized_votes cannot be nil' + end + + @applied_authorized_votes = applied_authorized_votes + end + + # Custom attribute writer method with validation + # @param [Object] applied_anonymous_votes Value to be assigned + def applied_anonymous_votes=(applied_anonymous_votes) + if applied_anonymous_votes.nil? + fail ArgumentError, 'applied_anonymous_votes cannot be nil' + end + + @applied_anonymous_votes = applied_anonymous_votes + end + + # Custom attribute writer method with validation + # @param [Object] pending_votes Value to be assigned + def pending_votes=(pending_votes) + if pending_votes.nil? + fail ArgumentError, 'pending_votes cannot be nil' + end + + @pending_votes = pending_votes + 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 && + applied_authorized_votes == o.applied_authorized_votes && + applied_anonymous_votes == o.applied_anonymous_votes && + pending_votes == o.pending_votes + 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, applied_authorized_votes, applied_anonymous_votes, pending_votes].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/get_votes_response.rb b/client/lib/fastcomments-client/models/get_votes_response.rb new file mode 100644 index 0000000..b0a0bdf --- /dev/null +++ b/client/lib/fastcomments-client/models/get_votes_response.rb @@ -0,0 +1,270 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class GetVotesResponse < ApiModelBase + attr_accessor :status + + attr_accessor :applied_authorized_votes + + attr_accessor :applied_anonymous_votes + + attr_accessor :pending_votes + + 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', + :'applied_authorized_votes' => :'appliedAuthorizedVotes', + :'applied_anonymous_votes' => :'appliedAnonymousVotes', + :'pending_votes' => :'pendingVotes' + } + 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', + :'applied_authorized_votes' => :'Array', + :'applied_anonymous_votes' => :'Array', + :'pending_votes' => :'Array' + } + 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::GetVotesResponse` 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::GetVotesResponse`. 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 + + if attributes.key?(:'applied_authorized_votes') + if (value = attributes[:'applied_authorized_votes']).is_a?(Array) + self.applied_authorized_votes = value + end + else + self.applied_authorized_votes = nil + end + + if attributes.key?(:'applied_anonymous_votes') + if (value = attributes[:'applied_anonymous_votes']).is_a?(Array) + self.applied_anonymous_votes = value + end + else + self.applied_anonymous_votes = nil + end + + if attributes.key?(:'pending_votes') + if (value = attributes[:'pending_votes']).is_a?(Array) + self.pending_votes = value + end + else + self.pending_votes = 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 + + if @applied_authorized_votes.nil? + invalid_properties.push('invalid value for "applied_authorized_votes", applied_authorized_votes cannot be nil.') + end + + if @applied_anonymous_votes.nil? + invalid_properties.push('invalid value for "applied_anonymous_votes", applied_anonymous_votes cannot be nil.') + end + + if @pending_votes.nil? + invalid_properties.push('invalid value for "pending_votes", pending_votes 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? + return false if @applied_authorized_votes.nil? + return false if @applied_anonymous_votes.nil? + return false if @pending_votes.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 + + # Custom attribute writer method with validation + # @param [Object] applied_authorized_votes Value to be assigned + def applied_authorized_votes=(applied_authorized_votes) + if applied_authorized_votes.nil? + fail ArgumentError, 'applied_authorized_votes cannot be nil' + end + + @applied_authorized_votes = applied_authorized_votes + end + + # Custom attribute writer method with validation + # @param [Object] applied_anonymous_votes Value to be assigned + def applied_anonymous_votes=(applied_anonymous_votes) + if applied_anonymous_votes.nil? + fail ArgumentError, 'applied_anonymous_votes cannot be nil' + end + + @applied_anonymous_votes = applied_anonymous_votes + end + + # Custom attribute writer method with validation + # @param [Object] pending_votes Value to be assigned + def pending_votes=(pending_votes) + if pending_votes.nil? + fail ArgumentError, 'pending_votes cannot be nil' + end + + @pending_votes = pending_votes + 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 && + applied_authorized_votes == o.applied_authorized_votes && + applied_anonymous_votes == o.applied_anonymous_votes && + pending_votes == o.pending_votes + 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, applied_authorized_votes, applied_anonymous_votes, pending_votes].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/imported_site_type.rb b/client/lib/fastcomments-client/models/imported_site_type.rb new file mode 100644 index 0000000..951c9a4 --- /dev/null +++ b/client/lib/fastcomments-client/models/imported_site_type.rb @@ -0,0 +1,40 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class ImportedSiteType + N0 = 0.freeze + N1 = 1.freeze + + def self.all_vars + @all_vars ||= [N0, N1].freeze + end + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def self.build_from_hash(value) + new.build_from_hash(value) + end + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def build_from_hash(value) + return value if ImportedSiteType.all_vars.include?(value) + raise "Invalid ENUM value #{value} for class #ImportedSiteType" + end + end +end diff --git a/client/lib/fastcomments-client/models/moderator.rb b/client/lib/fastcomments-client/models/moderator.rb new file mode 100644 index 0000000..0e98131 --- /dev/null +++ b/client/lib/fastcomments-client/models/moderator.rb @@ -0,0 +1,538 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class Moderator < ApiModelBase + attr_accessor :_id + + attr_accessor :tenant_id + + attr_accessor :name + + attr_accessor :user_id + + attr_accessor :accepted_invite + + attr_accessor :email + + attr_accessor :mark_reviewed_count + + attr_accessor :deleted_count + + attr_accessor :marked_spam_count + + attr_accessor :marked_not_spam_count + + attr_accessor :approved_count + + attr_accessor :un_approved_count + + attr_accessor :edited_count + + attr_accessor :banned_count + + attr_accessor :un_flagged_count + + attr_accessor :verification_id + + attr_accessor :created_at + + attr_accessor :moderation_group_ids + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'_id' => :'_id', + :'tenant_id' => :'tenantId', + :'name' => :'name', + :'user_id' => :'userId', + :'accepted_invite' => :'acceptedInvite', + :'email' => :'email', + :'mark_reviewed_count' => :'markReviewedCount', + :'deleted_count' => :'deletedCount', + :'marked_spam_count' => :'markedSpamCount', + :'marked_not_spam_count' => :'markedNotSpamCount', + :'approved_count' => :'approvedCount', + :'un_approved_count' => :'unApprovedCount', + :'edited_count' => :'editedCount', + :'banned_count' => :'bannedCount', + :'un_flagged_count' => :'unFlaggedCount', + :'verification_id' => :'verificationId', + :'created_at' => :'createdAt', + :'moderation_group_ids' => :'moderationGroupIds' + } + 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 + { + :'_id' => :'String', + :'tenant_id' => :'String', + :'name' => :'String', + :'user_id' => :'String', + :'accepted_invite' => :'Boolean', + :'email' => :'String', + :'mark_reviewed_count' => :'Float', + :'deleted_count' => :'Float', + :'marked_spam_count' => :'Float', + :'marked_not_spam_count' => :'Float', + :'approved_count' => :'Float', + :'un_approved_count' => :'Float', + :'edited_count' => :'Float', + :'banned_count' => :'Float', + :'un_flagged_count' => :'Float', + :'verification_id' => :'String', + :'created_at' => :'Time', + :'moderation_group_ids' => :'Array' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'name', + :'user_id', + :'email', + :'verification_id', + :'moderation_group_ids' + ]) + 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::Moderator` 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::Moderator`. 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?(:'_id') + self._id = attributes[:'_id'] + else + self._id = nil + end + + if attributes.key?(:'tenant_id') + self.tenant_id = attributes[:'tenant_id'] + else + self.tenant_id = nil + end + + if attributes.key?(:'name') + self.name = attributes[:'name'] + else + self.name = nil + end + + if attributes.key?(:'user_id') + self.user_id = attributes[:'user_id'] + else + self.user_id = nil + end + + if attributes.key?(:'accepted_invite') + self.accepted_invite = attributes[:'accepted_invite'] + else + self.accepted_invite = nil + end + + if attributes.key?(:'email') + self.email = attributes[:'email'] + else + self.email = nil + end + + if attributes.key?(:'mark_reviewed_count') + self.mark_reviewed_count = attributes[:'mark_reviewed_count'] + else + self.mark_reviewed_count = nil + end + + if attributes.key?(:'deleted_count') + self.deleted_count = attributes[:'deleted_count'] + else + self.deleted_count = nil + end + + if attributes.key?(:'marked_spam_count') + self.marked_spam_count = attributes[:'marked_spam_count'] + else + self.marked_spam_count = nil + end + + if attributes.key?(:'marked_not_spam_count') + self.marked_not_spam_count = attributes[:'marked_not_spam_count'] + else + self.marked_not_spam_count = nil + end + + if attributes.key?(:'approved_count') + self.approved_count = attributes[:'approved_count'] + else + self.approved_count = nil + end + + if attributes.key?(:'un_approved_count') + self.un_approved_count = attributes[:'un_approved_count'] + else + self.un_approved_count = nil + end + + if attributes.key?(:'edited_count') + self.edited_count = attributes[:'edited_count'] + else + self.edited_count = nil + end + + if attributes.key?(:'banned_count') + self.banned_count = attributes[:'banned_count'] + else + self.banned_count = nil + end + + if attributes.key?(:'un_flagged_count') + self.un_flagged_count = attributes[:'un_flagged_count'] + else + self.un_flagged_count = nil + end + + if attributes.key?(:'verification_id') + self.verification_id = attributes[:'verification_id'] + else + self.verification_id = nil + end + + if attributes.key?(:'created_at') + self.created_at = attributes[:'created_at'] + else + self.created_at = nil + end + + if attributes.key?(:'moderation_group_ids') + if (value = attributes[:'moderation_group_ids']).is_a?(Array) + self.moderation_group_ids = value + end + else + self.moderation_group_ids = 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 @_id.nil? + invalid_properties.push('invalid value for "_id", _id cannot be nil.') + end + + if @tenant_id.nil? + invalid_properties.push('invalid value for "tenant_id", tenant_id cannot be nil.') + end + + if @accepted_invite.nil? + invalid_properties.push('invalid value for "accepted_invite", accepted_invite cannot be nil.') + end + + if @mark_reviewed_count.nil? + invalid_properties.push('invalid value for "mark_reviewed_count", mark_reviewed_count cannot be nil.') + end + + if @deleted_count.nil? + invalid_properties.push('invalid value for "deleted_count", deleted_count cannot be nil.') + end + + if @marked_spam_count.nil? + invalid_properties.push('invalid value for "marked_spam_count", marked_spam_count cannot be nil.') + end + + if @marked_not_spam_count.nil? + invalid_properties.push('invalid value for "marked_not_spam_count", marked_not_spam_count cannot be nil.') + end + + if @approved_count.nil? + invalid_properties.push('invalid value for "approved_count", approved_count cannot be nil.') + end + + if @un_approved_count.nil? + invalid_properties.push('invalid value for "un_approved_count", un_approved_count cannot be nil.') + end + + if @edited_count.nil? + invalid_properties.push('invalid value for "edited_count", edited_count cannot be nil.') + end + + if @banned_count.nil? + invalid_properties.push('invalid value for "banned_count", banned_count cannot be nil.') + end + + if @un_flagged_count.nil? + invalid_properties.push('invalid value for "un_flagged_count", un_flagged_count cannot be nil.') + end + + if @created_at.nil? + invalid_properties.push('invalid value for "created_at", created_at 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 @_id.nil? + return false if @tenant_id.nil? + return false if @accepted_invite.nil? + return false if @mark_reviewed_count.nil? + return false if @deleted_count.nil? + return false if @marked_spam_count.nil? + return false if @marked_not_spam_count.nil? + return false if @approved_count.nil? + return false if @un_approved_count.nil? + return false if @edited_count.nil? + return false if @banned_count.nil? + return false if @un_flagged_count.nil? + return false if @created_at.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] _id Value to be assigned + def _id=(_id) + if _id.nil? + fail ArgumentError, '_id cannot be nil' + end + + @_id = _id + end + + # Custom attribute writer method with validation + # @param [Object] tenant_id Value to be assigned + def tenant_id=(tenant_id) + if tenant_id.nil? + fail ArgumentError, 'tenant_id cannot be nil' + end + + @tenant_id = tenant_id + end + + # Custom attribute writer method with validation + # @param [Object] accepted_invite Value to be assigned + def accepted_invite=(accepted_invite) + if accepted_invite.nil? + fail ArgumentError, 'accepted_invite cannot be nil' + end + + @accepted_invite = accepted_invite + end + + # Custom attribute writer method with validation + # @param [Object] mark_reviewed_count Value to be assigned + def mark_reviewed_count=(mark_reviewed_count) + if mark_reviewed_count.nil? + fail ArgumentError, 'mark_reviewed_count cannot be nil' + end + + @mark_reviewed_count = mark_reviewed_count + end + + # Custom attribute writer method with validation + # @param [Object] deleted_count Value to be assigned + def deleted_count=(deleted_count) + if deleted_count.nil? + fail ArgumentError, 'deleted_count cannot be nil' + end + + @deleted_count = deleted_count + end + + # Custom attribute writer method with validation + # @param [Object] marked_spam_count Value to be assigned + def marked_spam_count=(marked_spam_count) + if marked_spam_count.nil? + fail ArgumentError, 'marked_spam_count cannot be nil' + end + + @marked_spam_count = marked_spam_count + end + + # Custom attribute writer method with validation + # @param [Object] marked_not_spam_count Value to be assigned + def marked_not_spam_count=(marked_not_spam_count) + if marked_not_spam_count.nil? + fail ArgumentError, 'marked_not_spam_count cannot be nil' + end + + @marked_not_spam_count = marked_not_spam_count + end + + # Custom attribute writer method with validation + # @param [Object] approved_count Value to be assigned + def approved_count=(approved_count) + if approved_count.nil? + fail ArgumentError, 'approved_count cannot be nil' + end + + @approved_count = approved_count + end + + # Custom attribute writer method with validation + # @param [Object] un_approved_count Value to be assigned + def un_approved_count=(un_approved_count) + if un_approved_count.nil? + fail ArgumentError, 'un_approved_count cannot be nil' + end + + @un_approved_count = un_approved_count + end + + # Custom attribute writer method with validation + # @param [Object] edited_count Value to be assigned + def edited_count=(edited_count) + if edited_count.nil? + fail ArgumentError, 'edited_count cannot be nil' + end + + @edited_count = edited_count + end + + # Custom attribute writer method with validation + # @param [Object] banned_count Value to be assigned + def banned_count=(banned_count) + if banned_count.nil? + fail ArgumentError, 'banned_count cannot be nil' + end + + @banned_count = banned_count + end + + # Custom attribute writer method with validation + # @param [Object] un_flagged_count Value to be assigned + def un_flagged_count=(un_flagged_count) + if un_flagged_count.nil? + fail ArgumentError, 'un_flagged_count cannot be nil' + end + + @un_flagged_count = un_flagged_count + end + + # Custom attribute writer method with validation + # @param [Object] created_at Value to be assigned + def created_at=(created_at) + if created_at.nil? + fail ArgumentError, 'created_at cannot be nil' + end + + @created_at = created_at + 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 && + _id == o._id && + tenant_id == o.tenant_id && + name == o.name && + user_id == o.user_id && + accepted_invite == o.accepted_invite && + email == o.email && + mark_reviewed_count == o.mark_reviewed_count && + deleted_count == o.deleted_count && + marked_spam_count == o.marked_spam_count && + marked_not_spam_count == o.marked_not_spam_count && + approved_count == o.approved_count && + un_approved_count == o.un_approved_count && + edited_count == o.edited_count && + banned_count == o.banned_count && + un_flagged_count == o.un_flagged_count && + verification_id == o.verification_id && + created_at == o.created_at && + moderation_group_ids == o.moderation_group_ids + 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 + [_id, tenant_id, name, user_id, accepted_invite, email, mark_reviewed_count, deleted_count, marked_spam_count, marked_not_spam_count, approved_count, un_approved_count, edited_count, banned_count, un_flagged_count, verification_id, created_at, moderation_group_ids].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/patch_hash_tag200_response.rb b/client/lib/fastcomments-client/models/patch_hash_tag200_response.rb new file mode 100644 index 0000000..8f5abb5 --- /dev/null +++ b/client/lib/fastcomments-client/models/patch_hash_tag200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module PatchHashTag200Response + 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/pending_comment_to_sync_outbound.rb b/client/lib/fastcomments-client/models/pending_comment_to_sync_outbound.rb new file mode 100644 index 0000000..0ab48f3 --- /dev/null +++ b/client/lib/fastcomments-client/models/pending_comment_to_sync_outbound.rb @@ -0,0 +1,428 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class PendingCommentToSyncOutbound < ApiModelBase + attr_accessor :_id + + attr_accessor :comment_id + + attr_accessor :comment + + attr_accessor :external_id + + attr_accessor :created_at + + attr_accessor :tenant_id + + attr_accessor :attempt_count + + attr_accessor :next_attempt_at + + attr_accessor :event_type + + attr_accessor :type + + attr_accessor :domain + + attr_accessor :last_error + + attr_accessor :webhook_id + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'_id' => :'_id', + :'comment_id' => :'commentId', + :'comment' => :'comment', + :'external_id' => :'externalId', + :'created_at' => :'createdAt', + :'tenant_id' => :'tenantId', + :'attempt_count' => :'attemptCount', + :'next_attempt_at' => :'nextAttemptAt', + :'event_type' => :'eventType', + :'type' => :'type', + :'domain' => :'domain', + :'last_error' => :'lastError', + :'webhook_id' => :'webhookId' + } + 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 + { + :'_id' => :'String', + :'comment_id' => :'String', + :'comment' => :'FComment', + :'external_id' => :'String', + :'created_at' => :'Time', + :'tenant_id' => :'String', + :'attempt_count' => :'Float', + :'next_attempt_at' => :'Time', + :'event_type' => :'Float', + :'type' => :'Float', + :'domain' => :'String', + :'last_error' => :'Object', + :'webhook_id' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'external_id', + ]) + 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::PendingCommentToSyncOutbound` 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::PendingCommentToSyncOutbound`. 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?(:'_id') + self._id = attributes[:'_id'] + else + self._id = nil + end + + if attributes.key?(:'comment_id') + self.comment_id = attributes[:'comment_id'] + else + self.comment_id = nil + end + + if attributes.key?(:'comment') + self.comment = attributes[:'comment'] + end + + if attributes.key?(:'external_id') + self.external_id = attributes[:'external_id'] + else + self.external_id = nil + end + + if attributes.key?(:'created_at') + self.created_at = attributes[:'created_at'] + else + self.created_at = nil + end + + if attributes.key?(:'tenant_id') + self.tenant_id = attributes[:'tenant_id'] + else + self.tenant_id = nil + end + + if attributes.key?(:'attempt_count') + self.attempt_count = attributes[:'attempt_count'] + else + self.attempt_count = nil + end + + if attributes.key?(:'next_attempt_at') + self.next_attempt_at = attributes[:'next_attempt_at'] + else + self.next_attempt_at = nil + end + + if attributes.key?(:'event_type') + self.event_type = attributes[:'event_type'] + else + self.event_type = nil + end + + if attributes.key?(:'type') + self.type = attributes[:'type'] + else + self.type = nil + end + + if attributes.key?(:'domain') + self.domain = attributes[:'domain'] + else + self.domain = nil + end + + if attributes.key?(:'last_error') + self.last_error = attributes[:'last_error'] + else + self.last_error = nil + end + + if attributes.key?(:'webhook_id') + self.webhook_id = attributes[:'webhook_id'] + 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 @_id.nil? + invalid_properties.push('invalid value for "_id", _id cannot be nil.') + end + + if @comment_id.nil? + invalid_properties.push('invalid value for "comment_id", comment_id cannot be nil.') + end + + if @created_at.nil? + invalid_properties.push('invalid value for "created_at", created_at cannot be nil.') + end + + if @tenant_id.nil? + invalid_properties.push('invalid value for "tenant_id", tenant_id cannot be nil.') + end + + if @attempt_count.nil? + invalid_properties.push('invalid value for "attempt_count", attempt_count cannot be nil.') + end + + if @next_attempt_at.nil? + invalid_properties.push('invalid value for "next_attempt_at", next_attempt_at cannot be nil.') + end + + if @event_type.nil? + invalid_properties.push('invalid value for "event_type", event_type cannot be nil.') + end + + if @type.nil? + invalid_properties.push('invalid value for "type", type cannot be nil.') + end + + if @domain.nil? + invalid_properties.push('invalid value for "domain", domain cannot be nil.') + end + + if @last_error.nil? + invalid_properties.push('invalid value for "last_error", last_error 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 @_id.nil? + return false if @comment_id.nil? + return false if @created_at.nil? + return false if @tenant_id.nil? + return false if @attempt_count.nil? + return false if @next_attempt_at.nil? + return false if @event_type.nil? + return false if @type.nil? + return false if @domain.nil? + return false if @last_error.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] _id Value to be assigned + def _id=(_id) + if _id.nil? + fail ArgumentError, '_id cannot be nil' + end + + @_id = _id + end + + # Custom attribute writer method with validation + # @param [Object] comment_id Value to be assigned + def comment_id=(comment_id) + if comment_id.nil? + fail ArgumentError, 'comment_id cannot be nil' + end + + @comment_id = comment_id + end + + # Custom attribute writer method with validation + # @param [Object] created_at Value to be assigned + def created_at=(created_at) + if created_at.nil? + fail ArgumentError, 'created_at cannot be nil' + end + + @created_at = created_at + end + + # Custom attribute writer method with validation + # @param [Object] tenant_id Value to be assigned + def tenant_id=(tenant_id) + if tenant_id.nil? + fail ArgumentError, 'tenant_id cannot be nil' + end + + @tenant_id = tenant_id + end + + # Custom attribute writer method with validation + # @param [Object] attempt_count Value to be assigned + def attempt_count=(attempt_count) + if attempt_count.nil? + fail ArgumentError, 'attempt_count cannot be nil' + end + + @attempt_count = attempt_count + end + + # Custom attribute writer method with validation + # @param [Object] next_attempt_at Value to be assigned + def next_attempt_at=(next_attempt_at) + if next_attempt_at.nil? + fail ArgumentError, 'next_attempt_at cannot be nil' + end + + @next_attempt_at = next_attempt_at + end + + # Custom attribute writer method with validation + # @param [Object] event_type Value to be assigned + def event_type=(event_type) + if event_type.nil? + fail ArgumentError, 'event_type cannot be nil' + end + + @event_type = event_type + end + + # Custom attribute writer method with validation + # @param [Object] type Value to be assigned + def type=(type) + if type.nil? + fail ArgumentError, 'type cannot be nil' + end + + @type = type + end + + # Custom attribute writer method with validation + # @param [Object] domain Value to be assigned + def domain=(domain) + if domain.nil? + fail ArgumentError, 'domain cannot be nil' + end + + @domain = domain + end + + # Custom attribute writer method with validation + # @param [Object] last_error Value to be assigned + def last_error=(last_error) + if last_error.nil? + fail ArgumentError, 'last_error cannot be nil' + end + + @last_error = last_error + 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 && + _id == o._id && + comment_id == o.comment_id && + comment == o.comment && + external_id == o.external_id && + created_at == o.created_at && + tenant_id == o.tenant_id && + attempt_count == o.attempt_count && + next_attempt_at == o.next_attempt_at && + event_type == o.event_type && + type == o.type && + domain == o.domain && + last_error == o.last_error && + webhook_id == o.webhook_id + 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 + [_id, comment_id, comment, external_id, created_at, tenant_id, attempt_count, next_attempt_at, event_type, type, domain, last_error, webhook_id].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/public_vote.rb b/client/lib/fastcomments-client/models/public_vote.rb new file mode 100644 index 0000000..31281a0 --- /dev/null +++ b/client/lib/fastcomments-client/models/public_vote.rb @@ -0,0 +1,294 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class PublicVote < ApiModelBase + attr_accessor :id + + attr_accessor :url_id + + attr_accessor :comment_id + + attr_accessor :user_id + + attr_accessor :direction + + attr_accessor :created_at + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'id' => :'id', + :'url_id' => :'urlId', + :'comment_id' => :'commentId', + :'user_id' => :'userId', + :'direction' => :'direction', + :'created_at' => :'createdAt' + } + 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 + { + :'id' => :'String', + :'url_id' => :'String', + :'comment_id' => :'String', + :'user_id' => :'String', + :'direction' => :'String', + :'created_at' => :'Time' + } + 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::PublicVote` 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::PublicVote`. 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?(:'id') + self.id = attributes[:'id'] + else + self.id = nil + end + + if attributes.key?(:'url_id') + self.url_id = attributes[:'url_id'] + else + self.url_id = nil + end + + if attributes.key?(:'comment_id') + self.comment_id = attributes[:'comment_id'] + else + self.comment_id = nil + end + + if attributes.key?(:'user_id') + self.user_id = attributes[:'user_id'] + else + self.user_id = nil + end + + if attributes.key?(:'direction') + self.direction = attributes[:'direction'] + else + self.direction = nil + end + + if attributes.key?(:'created_at') + self.created_at = attributes[:'created_at'] + else + self.created_at = 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 @id.nil? + invalid_properties.push('invalid value for "id", id cannot be nil.') + end + + if @url_id.nil? + invalid_properties.push('invalid value for "url_id", url_id cannot be nil.') + end + + if @comment_id.nil? + invalid_properties.push('invalid value for "comment_id", comment_id cannot be nil.') + end + + if @user_id.nil? + invalid_properties.push('invalid value for "user_id", user_id cannot be nil.') + end + + if @direction.nil? + invalid_properties.push('invalid value for "direction", direction cannot be nil.') + end + + if @created_at.nil? + invalid_properties.push('invalid value for "created_at", created_at 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 @id.nil? + return false if @url_id.nil? + return false if @comment_id.nil? + return false if @user_id.nil? + return false if @direction.nil? + return false if @created_at.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] id Value to be assigned + def id=(id) + if id.nil? + fail ArgumentError, 'id cannot be nil' + end + + @id = id + end + + # Custom attribute writer method with validation + # @param [Object] url_id Value to be assigned + def url_id=(url_id) + if url_id.nil? + fail ArgumentError, 'url_id cannot be nil' + end + + @url_id = url_id + end + + # Custom attribute writer method with validation + # @param [Object] comment_id Value to be assigned + def comment_id=(comment_id) + if comment_id.nil? + fail ArgumentError, 'comment_id cannot be nil' + end + + @comment_id = comment_id + end + + # Custom attribute writer method with validation + # @param [Object] user_id Value to be assigned + def user_id=(user_id) + if user_id.nil? + fail ArgumentError, 'user_id cannot be nil' + end + + @user_id = user_id + end + + # Custom attribute writer method with validation + # @param [Object] direction Value to be assigned + def direction=(direction) + if direction.nil? + fail ArgumentError, 'direction cannot be nil' + end + + @direction = direction + end + + # Custom attribute writer method with validation + # @param [Object] created_at Value to be assigned + def created_at=(created_at) + if created_at.nil? + fail ArgumentError, 'created_at cannot be nil' + end + + @created_at = created_at + 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 && + id == o.id && + url_id == o.url_id && + comment_id == o.comment_id && + user_id == o.user_id && + direction == o.direction && + created_at == o.created_at + 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 + [id, url_id, comment_id, user_id, direction, created_at].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/question_config.rb b/client/lib/fastcomments-client/models/question_config.rb new file mode 100644 index 0000000..bbfc99b --- /dev/null +++ b/client/lib/fastcomments-client/models/question_config.rb @@ -0,0 +1,671 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class QuestionConfig < ApiModelBase + attr_accessor :_id + + attr_accessor :tenant_id + + attr_accessor :name + + attr_accessor :question + + attr_accessor :summary_label + + attr_accessor :help_text + + attr_accessor :created_at + + attr_accessor :created_by + + attr_accessor :used_count + + attr_accessor :last_used + + attr_accessor :type + + attr_accessor :num_stars + + attr_accessor :min + + attr_accessor :max + + attr_accessor :default_value + + attr_accessor :label_negative + + attr_accessor :label_positive + + attr_accessor :custom_options + + attr_accessor :sub_question_ids + + attr_accessor :always_show_sub_questions + + attr_accessor :reporting_order + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'_id' => :'_id', + :'tenant_id' => :'tenantId', + :'name' => :'name', + :'question' => :'question', + :'summary_label' => :'summaryLabel', + :'help_text' => :'helpText', + :'created_at' => :'createdAt', + :'created_by' => :'createdBy', + :'used_count' => :'usedCount', + :'last_used' => :'lastUsed', + :'type' => :'type', + :'num_stars' => :'numStars', + :'min' => :'min', + :'max' => :'max', + :'default_value' => :'defaultValue', + :'label_negative' => :'labelNegative', + :'label_positive' => :'labelPositive', + :'custom_options' => :'customOptions', + :'sub_question_ids' => :'subQuestionIds', + :'always_show_sub_questions' => :'alwaysShowSubQuestions', + :'reporting_order' => :'reportingOrder' + } + 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 + { + :'_id' => :'String', + :'tenant_id' => :'String', + :'name' => :'String', + :'question' => :'String', + :'summary_label' => :'String', + :'help_text' => :'String', + :'created_at' => :'Time', + :'created_by' => :'String', + :'used_count' => :'Float', + :'last_used' => :'Time', + :'type' => :'String', + :'num_stars' => :'Float', + :'min' => :'Float', + :'max' => :'Float', + :'default_value' => :'Float', + :'label_negative' => :'String', + :'label_positive' => :'String', + :'custom_options' => :'Array', + :'sub_question_ids' => :'Array', + :'always_show_sub_questions' => :'Boolean', + :'reporting_order' => :'Float' + } + 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::QuestionConfig` 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::QuestionConfig`. 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?(:'_id') + self._id = attributes[:'_id'] + else + self._id = nil + end + + if attributes.key?(:'tenant_id') + self.tenant_id = attributes[:'tenant_id'] + else + self.tenant_id = nil + end + + if attributes.key?(:'name') + self.name = attributes[:'name'] + else + self.name = nil + end + + if attributes.key?(:'question') + self.question = attributes[:'question'] + else + self.question = nil + end + + if attributes.key?(:'summary_label') + self.summary_label = attributes[:'summary_label'] + end + + if attributes.key?(:'help_text') + self.help_text = attributes[:'help_text'] + else + self.help_text = nil + end + + if attributes.key?(:'created_at') + self.created_at = attributes[:'created_at'] + else + self.created_at = nil + end + + if attributes.key?(:'created_by') + self.created_by = attributes[:'created_by'] + else + self.created_by = nil + end + + if attributes.key?(:'used_count') + self.used_count = attributes[:'used_count'] + else + self.used_count = nil + end + + if attributes.key?(:'last_used') + self.last_used = attributes[:'last_used'] + else + self.last_used = nil + end + + if attributes.key?(:'type') + self.type = attributes[:'type'] + else + self.type = nil + end + + if attributes.key?(:'num_stars') + self.num_stars = attributes[:'num_stars'] + else + self.num_stars = nil + end + + if attributes.key?(:'min') + self.min = attributes[:'min'] + else + self.min = nil + end + + if attributes.key?(:'max') + self.max = attributes[:'max'] + else + self.max = nil + end + + if attributes.key?(:'default_value') + self.default_value = attributes[:'default_value'] + else + self.default_value = nil + end + + if attributes.key?(:'label_negative') + self.label_negative = attributes[:'label_negative'] + else + self.label_negative = nil + end + + if attributes.key?(:'label_positive') + self.label_positive = attributes[:'label_positive'] + else + self.label_positive = nil + end + + if attributes.key?(:'custom_options') + if (value = attributes[:'custom_options']).is_a?(Array) + self.custom_options = value + end + else + self.custom_options = nil + end + + if attributes.key?(:'sub_question_ids') + if (value = attributes[:'sub_question_ids']).is_a?(Array) + self.sub_question_ids = value + end + else + self.sub_question_ids = nil + end + + if attributes.key?(:'always_show_sub_questions') + self.always_show_sub_questions = attributes[:'always_show_sub_questions'] + else + self.always_show_sub_questions = nil + end + + if attributes.key?(:'reporting_order') + self.reporting_order = attributes[:'reporting_order'] + else + self.reporting_order = 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 @_id.nil? + invalid_properties.push('invalid value for "_id", _id cannot be nil.') + end + + if @tenant_id.nil? + invalid_properties.push('invalid value for "tenant_id", tenant_id cannot be nil.') + end + + if @name.nil? + invalid_properties.push('invalid value for "name", name cannot be nil.') + end + + if @question.nil? + invalid_properties.push('invalid value for "question", question cannot be nil.') + end + + if @help_text.nil? + invalid_properties.push('invalid value for "help_text", help_text cannot be nil.') + end + + if @created_at.nil? + invalid_properties.push('invalid value for "created_at", created_at cannot be nil.') + end + + if @created_by.nil? + invalid_properties.push('invalid value for "created_by", created_by cannot be nil.') + end + + if @used_count.nil? + invalid_properties.push('invalid value for "used_count", used_count cannot be nil.') + end + + if @last_used.nil? + invalid_properties.push('invalid value for "last_used", last_used cannot be nil.') + end + + if @type.nil? + invalid_properties.push('invalid value for "type", type cannot be nil.') + end + + if @num_stars.nil? + invalid_properties.push('invalid value for "num_stars", num_stars cannot be nil.') + end + + if @min.nil? + invalid_properties.push('invalid value for "min", min cannot be nil.') + end + + if @max.nil? + invalid_properties.push('invalid value for "max", max cannot be nil.') + end + + if @default_value.nil? + invalid_properties.push('invalid value for "default_value", default_value cannot be nil.') + end + + if @label_negative.nil? + invalid_properties.push('invalid value for "label_negative", label_negative cannot be nil.') + end + + if @label_positive.nil? + invalid_properties.push('invalid value for "label_positive", label_positive cannot be nil.') + end + + if @custom_options.nil? + invalid_properties.push('invalid value for "custom_options", custom_options cannot be nil.') + end + + if @sub_question_ids.nil? + invalid_properties.push('invalid value for "sub_question_ids", sub_question_ids cannot be nil.') + end + + if @always_show_sub_questions.nil? + invalid_properties.push('invalid value for "always_show_sub_questions", always_show_sub_questions cannot be nil.') + end + + if @reporting_order.nil? + invalid_properties.push('invalid value for "reporting_order", reporting_order 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 @_id.nil? + return false if @tenant_id.nil? + return false if @name.nil? + return false if @question.nil? + return false if @help_text.nil? + return false if @created_at.nil? + return false if @created_by.nil? + return false if @used_count.nil? + return false if @last_used.nil? + return false if @type.nil? + return false if @num_stars.nil? + return false if @min.nil? + return false if @max.nil? + return false if @default_value.nil? + return false if @label_negative.nil? + return false if @label_positive.nil? + return false if @custom_options.nil? + return false if @sub_question_ids.nil? + return false if @always_show_sub_questions.nil? + return false if @reporting_order.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] _id Value to be assigned + def _id=(_id) + if _id.nil? + fail ArgumentError, '_id cannot be nil' + end + + @_id = _id + end + + # Custom attribute writer method with validation + # @param [Object] tenant_id Value to be assigned + def tenant_id=(tenant_id) + if tenant_id.nil? + fail ArgumentError, 'tenant_id cannot be nil' + end + + @tenant_id = tenant_id + end + + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + + # Custom attribute writer method with validation + # @param [Object] question Value to be assigned + def question=(question) + if question.nil? + fail ArgumentError, 'question cannot be nil' + end + + @question = question + end + + # Custom attribute writer method with validation + # @param [Object] help_text Value to be assigned + def help_text=(help_text) + if help_text.nil? + fail ArgumentError, 'help_text cannot be nil' + end + + @help_text = help_text + end + + # Custom attribute writer method with validation + # @param [Object] created_at Value to be assigned + def created_at=(created_at) + if created_at.nil? + fail ArgumentError, 'created_at cannot be nil' + end + + @created_at = created_at + end + + # Custom attribute writer method with validation + # @param [Object] created_by Value to be assigned + def created_by=(created_by) + if created_by.nil? + fail ArgumentError, 'created_by cannot be nil' + end + + @created_by = created_by + end + + # Custom attribute writer method with validation + # @param [Object] used_count Value to be assigned + def used_count=(used_count) + if used_count.nil? + fail ArgumentError, 'used_count cannot be nil' + end + + @used_count = used_count + end + + # Custom attribute writer method with validation + # @param [Object] last_used Value to be assigned + def last_used=(last_used) + if last_used.nil? + fail ArgumentError, 'last_used cannot be nil' + end + + @last_used = last_used + end + + # Custom attribute writer method with validation + # @param [Object] type Value to be assigned + def type=(type) + if type.nil? + fail ArgumentError, 'type cannot be nil' + end + + @type = type + end + + # Custom attribute writer method with validation + # @param [Object] num_stars Value to be assigned + def num_stars=(num_stars) + if num_stars.nil? + fail ArgumentError, 'num_stars cannot be nil' + end + + @num_stars = num_stars + end + + # Custom attribute writer method with validation + # @param [Object] min Value to be assigned + def min=(min) + if min.nil? + fail ArgumentError, 'min cannot be nil' + end + + @min = min + end + + # Custom attribute writer method with validation + # @param [Object] max Value to be assigned + def max=(max) + if max.nil? + fail ArgumentError, 'max cannot be nil' + end + + @max = max + end + + # Custom attribute writer method with validation + # @param [Object] default_value Value to be assigned + def default_value=(default_value) + if default_value.nil? + fail ArgumentError, 'default_value cannot be nil' + end + + @default_value = default_value + end + + # Custom attribute writer method with validation + # @param [Object] label_negative Value to be assigned + def label_negative=(label_negative) + if label_negative.nil? + fail ArgumentError, 'label_negative cannot be nil' + end + + @label_negative = label_negative + end + + # Custom attribute writer method with validation + # @param [Object] label_positive Value to be assigned + def label_positive=(label_positive) + if label_positive.nil? + fail ArgumentError, 'label_positive cannot be nil' + end + + @label_positive = label_positive + end + + # Custom attribute writer method with validation + # @param [Object] custom_options Value to be assigned + def custom_options=(custom_options) + if custom_options.nil? + fail ArgumentError, 'custom_options cannot be nil' + end + + @custom_options = custom_options + end + + # Custom attribute writer method with validation + # @param [Object] sub_question_ids Value to be assigned + def sub_question_ids=(sub_question_ids) + if sub_question_ids.nil? + fail ArgumentError, 'sub_question_ids cannot be nil' + end + + @sub_question_ids = sub_question_ids + end + + # Custom attribute writer method with validation + # @param [Object] always_show_sub_questions Value to be assigned + def always_show_sub_questions=(always_show_sub_questions) + if always_show_sub_questions.nil? + fail ArgumentError, 'always_show_sub_questions cannot be nil' + end + + @always_show_sub_questions = always_show_sub_questions + end + + # Custom attribute writer method with validation + # @param [Object] reporting_order Value to be assigned + def reporting_order=(reporting_order) + if reporting_order.nil? + fail ArgumentError, 'reporting_order cannot be nil' + end + + @reporting_order = reporting_order + 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 && + _id == o._id && + tenant_id == o.tenant_id && + name == o.name && + question == o.question && + summary_label == o.summary_label && + help_text == o.help_text && + created_at == o.created_at && + created_by == o.created_by && + used_count == o.used_count && + last_used == o.last_used && + type == o.type && + num_stars == o.num_stars && + min == o.min && + max == o.max && + default_value == o.default_value && + label_negative == o.label_negative && + label_positive == o.label_positive && + custom_options == o.custom_options && + sub_question_ids == o.sub_question_ids && + always_show_sub_questions == o.always_show_sub_questions && + reporting_order == o.reporting_order + 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 + [_id, tenant_id, name, question, summary_label, help_text, created_at, created_by, used_count, last_used, type, num_stars, min, max, default_value, label_negative, label_positive, custom_options, sub_question_ids, always_show_sub_questions, reporting_order].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/question_config_custom_options_inner.rb b/client/lib/fastcomments-client/models/question_config_custom_options_inner.rb new file mode 100644 index 0000000..44ed7ca --- /dev/null +++ b/client/lib/fastcomments-client/models/question_config_custom_options_inner.rb @@ -0,0 +1,190 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class QuestionConfigCustomOptionsInner < ApiModelBase + attr_accessor :image_src + + attr_accessor :name + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'image_src' => :'imageSrc', + :'name' => :'name' + } + 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 + { + :'image_src' => :'String', + :'name' => :'String' + } + 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::QuestionConfigCustomOptionsInner` 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::QuestionConfigCustomOptionsInner`. 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?(:'image_src') + self.image_src = attributes[:'image_src'] + else + self.image_src = nil + end + + if attributes.key?(:'name') + self.name = attributes[:'name'] + else + self.name = 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 @image_src.nil? + invalid_properties.push('invalid value for "image_src", image_src cannot be nil.') + end + + if @name.nil? + invalid_properties.push('invalid value for "name", name 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 @image_src.nil? + return false if @name.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] image_src Value to be assigned + def image_src=(image_src) + if image_src.nil? + fail ArgumentError, 'image_src cannot be nil' + end + + @image_src = image_src + end + + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + 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 && + image_src == o.image_src && + name == o.name + 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 + [image_src, name].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/render_email_template200_response.rb b/client/lib/fastcomments-client/models/render_email_template200_response.rb new file mode 100644 index 0000000..f1bdaf8 --- /dev/null +++ b/client/lib/fastcomments-client/models/render_email_template200_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.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + module RenderEmailTemplate200Response + 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/render_email_template_body.rb b/client/lib/fastcomments-client/models/render_email_template_body.rb new file mode 100644 index 0000000..1eeca9b --- /dev/null +++ b/client/lib/fastcomments-client/models/render_email_template_body.rb @@ -0,0 +1,214 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class RenderEmailTemplateBody < ApiModelBase + attr_accessor :email_template_id + + attr_accessor :ejs + + # Construct a type with a set of properties K of type T + attr_accessor :test_data + + # Construct a type with a set of properties K of type T + attr_accessor :translation_overrides_by_locale + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'email_template_id' => :'emailTemplateId', + :'ejs' => :'ejs', + :'test_data' => :'testData', + :'translation_overrides_by_locale' => :'translationOverridesByLocale' + } + 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 + { + :'email_template_id' => :'String', + :'ejs' => :'String', + :'test_data' => :'Hash', + :'translation_overrides_by_locale' => :'Hash' + } + 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::RenderEmailTemplateBody` 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::RenderEmailTemplateBody`. 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?(:'email_template_id') + self.email_template_id = attributes[:'email_template_id'] + else + self.email_template_id = nil + end + + if attributes.key?(:'ejs') + self.ejs = attributes[:'ejs'] + else + self.ejs = nil + end + + if attributes.key?(:'test_data') + if (value = attributes[:'test_data']).is_a?(Hash) + self.test_data = value + end + end + + if attributes.key?(:'translation_overrides_by_locale') + if (value = attributes[:'translation_overrides_by_locale']).is_a?(Hash) + self.translation_overrides_by_locale = value + end + 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 @email_template_id.nil? + invalid_properties.push('invalid value for "email_template_id", email_template_id cannot be nil.') + end + + if @ejs.nil? + invalid_properties.push('invalid value for "ejs", ejs 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 @email_template_id.nil? + return false if @ejs.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] email_template_id Value to be assigned + def email_template_id=(email_template_id) + if email_template_id.nil? + fail ArgumentError, 'email_template_id cannot be nil' + end + + @email_template_id = email_template_id + end + + # Custom attribute writer method with validation + # @param [Object] ejs Value to be assigned + def ejs=(ejs) + if ejs.nil? + fail ArgumentError, 'ejs cannot be nil' + end + + @ejs = ejs + 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 && + email_template_id == o.email_template_id && + ejs == o.ejs && + test_data == o.test_data && + translation_overrides_by_locale == o.translation_overrides_by_locale + 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 + [email_template_id, ejs, test_data, translation_overrides_by_locale].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/render_email_template_response.rb b/client/lib/fastcomments-client/models/render_email_template_response.rb new file mode 100644 index 0000000..5349a97 --- /dev/null +++ b/client/lib/fastcomments-client/models/render_email_template_response.rb @@ -0,0 +1,212 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class RenderEmailTemplateResponse < ApiModelBase + attr_accessor :status + + attr_accessor :html + + 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', + :'html' => :'html' + } + 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', + :'html' => :'String' + } + 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::RenderEmailTemplateResponse` 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::RenderEmailTemplateResponse`. 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 + + if attributes.key?(:'html') + self.html = attributes[:'html'] + else + self.html = 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 + + if @html.nil? + invalid_properties.push('invalid value for "html", html 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? + return false if @html.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 + + # Custom attribute writer method with validation + # @param [Object] html Value to be assigned + def html=(html) + if html.nil? + fail ArgumentError, 'html cannot be nil' + end + + @html = html + 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 && + html == o.html + 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, html].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/replace_tenant_package_body.rb b/client/lib/fastcomments-client/models/replace_tenant_package_body.rb new file mode 100644 index 0000000..dd57b12 --- /dev/null +++ b/client/lib/fastcomments-client/models/replace_tenant_package_body.rb @@ -0,0 +1,665 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class ReplaceTenantPackageBody < ApiModelBase + attr_accessor :name + + attr_accessor :monthly_cost_usd + + attr_accessor :yearly_cost_usd + + attr_accessor :max_monthly_page_loads + + attr_accessor :max_monthly_api_credits + + attr_accessor :max_monthly_comments + + attr_accessor :max_concurrent_users + + attr_accessor :max_tenant_users + + attr_accessor :max_sso_users + + attr_accessor :max_moderators + + attr_accessor :max_domains + + attr_accessor :has_debranding + + attr_accessor :for_who_text + + attr_accessor :feature_taglines + + attr_accessor :has_flex_pricing + + attr_accessor :flex_page_load_cost_cents + + attr_accessor :flex_page_load_unit + + attr_accessor :flex_comment_cost_cents + + attr_accessor :flex_comment_unit + + attr_accessor :flex_sso_user_cost_cents + + attr_accessor :flex_sso_user_unit + + attr_accessor :flex_api_credit_cost_cents + + attr_accessor :flex_api_credit_unit + + attr_accessor :flex_moderator_cost_cents + + attr_accessor :flex_moderator_unit + + attr_accessor :flex_admin_cost_cents + + attr_accessor :flex_admin_unit + + attr_accessor :flex_domain_cost_cents + + attr_accessor :flex_domain_unit + + attr_accessor :flex_minimum_cost_cents + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'name' => :'name', + :'monthly_cost_usd' => :'monthlyCostUSD', + :'yearly_cost_usd' => :'yearlyCostUSD', + :'max_monthly_page_loads' => :'maxMonthlyPageLoads', + :'max_monthly_api_credits' => :'maxMonthlyAPICredits', + :'max_monthly_comments' => :'maxMonthlyComments', + :'max_concurrent_users' => :'maxConcurrentUsers', + :'max_tenant_users' => :'maxTenantUsers', + :'max_sso_users' => :'maxSSOUsers', + :'max_moderators' => :'maxModerators', + :'max_domains' => :'maxDomains', + :'has_debranding' => :'hasDebranding', + :'for_who_text' => :'forWhoText', + :'feature_taglines' => :'featureTaglines', + :'has_flex_pricing' => :'hasFlexPricing', + :'flex_page_load_cost_cents' => :'flexPageLoadCostCents', + :'flex_page_load_unit' => :'flexPageLoadUnit', + :'flex_comment_cost_cents' => :'flexCommentCostCents', + :'flex_comment_unit' => :'flexCommentUnit', + :'flex_sso_user_cost_cents' => :'flexSSOUserCostCents', + :'flex_sso_user_unit' => :'flexSSOUserUnit', + :'flex_api_credit_cost_cents' => :'flexAPICreditCostCents', + :'flex_api_credit_unit' => :'flexAPICreditUnit', + :'flex_moderator_cost_cents' => :'flexModeratorCostCents', + :'flex_moderator_unit' => :'flexModeratorUnit', + :'flex_admin_cost_cents' => :'flexAdminCostCents', + :'flex_admin_unit' => :'flexAdminUnit', + :'flex_domain_cost_cents' => :'flexDomainCostCents', + :'flex_domain_unit' => :'flexDomainUnit', + :'flex_minimum_cost_cents' => :'flexMinimumCostCents' + } + 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 + { + :'name' => :'String', + :'monthly_cost_usd' => :'Float', + :'yearly_cost_usd' => :'Float', + :'max_monthly_page_loads' => :'Float', + :'max_monthly_api_credits' => :'Float', + :'max_monthly_comments' => :'Float', + :'max_concurrent_users' => :'Float', + :'max_tenant_users' => :'Float', + :'max_sso_users' => :'Float', + :'max_moderators' => :'Float', + :'max_domains' => :'Float', + :'has_debranding' => :'Boolean', + :'for_who_text' => :'String', + :'feature_taglines' => :'Array', + :'has_flex_pricing' => :'Boolean', + :'flex_page_load_cost_cents' => :'Float', + :'flex_page_load_unit' => :'Float', + :'flex_comment_cost_cents' => :'Float', + :'flex_comment_unit' => :'Float', + :'flex_sso_user_cost_cents' => :'Float', + :'flex_sso_user_unit' => :'Float', + :'flex_api_credit_cost_cents' => :'Float', + :'flex_api_credit_unit' => :'Float', + :'flex_moderator_cost_cents' => :'Float', + :'flex_moderator_unit' => :'Float', + :'flex_admin_cost_cents' => :'Float', + :'flex_admin_unit' => :'Float', + :'flex_domain_cost_cents' => :'Float', + :'flex_domain_unit' => :'Float', + :'flex_minimum_cost_cents' => :'Float' + } + 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::ReplaceTenantPackageBody` 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::ReplaceTenantPackageBody`. 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?(:'name') + self.name = attributes[:'name'] + else + self.name = nil + end + + if attributes.key?(:'monthly_cost_usd') + self.monthly_cost_usd = attributes[:'monthly_cost_usd'] + else + self.monthly_cost_usd = nil + end + + if attributes.key?(:'yearly_cost_usd') + self.yearly_cost_usd = attributes[:'yearly_cost_usd'] + else + self.yearly_cost_usd = nil + end + + if attributes.key?(:'max_monthly_page_loads') + self.max_monthly_page_loads = attributes[:'max_monthly_page_loads'] + else + self.max_monthly_page_loads = nil + end + + if attributes.key?(:'max_monthly_api_credits') + self.max_monthly_api_credits = attributes[:'max_monthly_api_credits'] + else + self.max_monthly_api_credits = nil + end + + if attributes.key?(:'max_monthly_comments') + self.max_monthly_comments = attributes[:'max_monthly_comments'] + else + self.max_monthly_comments = nil + end + + if attributes.key?(:'max_concurrent_users') + self.max_concurrent_users = attributes[:'max_concurrent_users'] + else + self.max_concurrent_users = nil + end + + if attributes.key?(:'max_tenant_users') + self.max_tenant_users = attributes[:'max_tenant_users'] + else + self.max_tenant_users = nil + end + + if attributes.key?(:'max_sso_users') + self.max_sso_users = attributes[:'max_sso_users'] + else + self.max_sso_users = nil + end + + if attributes.key?(:'max_moderators') + self.max_moderators = attributes[:'max_moderators'] + else + self.max_moderators = nil + end + + if attributes.key?(:'max_domains') + self.max_domains = attributes[:'max_domains'] + else + self.max_domains = nil + end + + if attributes.key?(:'has_debranding') + self.has_debranding = attributes[:'has_debranding'] + else + self.has_debranding = nil + end + + if attributes.key?(:'for_who_text') + self.for_who_text = attributes[:'for_who_text'] + else + self.for_who_text = nil + end + + if attributes.key?(:'feature_taglines') + if (value = attributes[:'feature_taglines']).is_a?(Array) + self.feature_taglines = value + end + else + self.feature_taglines = nil + end + + if attributes.key?(:'has_flex_pricing') + self.has_flex_pricing = attributes[:'has_flex_pricing'] + else + self.has_flex_pricing = nil + end + + if attributes.key?(:'flex_page_load_cost_cents') + self.flex_page_load_cost_cents = attributes[:'flex_page_load_cost_cents'] + end + + if attributes.key?(:'flex_page_load_unit') + self.flex_page_load_unit = attributes[:'flex_page_load_unit'] + end + + if attributes.key?(:'flex_comment_cost_cents') + self.flex_comment_cost_cents = attributes[:'flex_comment_cost_cents'] + end + + if attributes.key?(:'flex_comment_unit') + self.flex_comment_unit = attributes[:'flex_comment_unit'] + end + + if attributes.key?(:'flex_sso_user_cost_cents') + self.flex_sso_user_cost_cents = attributes[:'flex_sso_user_cost_cents'] + end + + if attributes.key?(:'flex_sso_user_unit') + self.flex_sso_user_unit = attributes[:'flex_sso_user_unit'] + end + + if attributes.key?(:'flex_api_credit_cost_cents') + self.flex_api_credit_cost_cents = attributes[:'flex_api_credit_cost_cents'] + end + + if attributes.key?(:'flex_api_credit_unit') + self.flex_api_credit_unit = attributes[:'flex_api_credit_unit'] + end + + if attributes.key?(:'flex_moderator_cost_cents') + self.flex_moderator_cost_cents = attributes[:'flex_moderator_cost_cents'] + end + + if attributes.key?(:'flex_moderator_unit') + self.flex_moderator_unit = attributes[:'flex_moderator_unit'] + end + + if attributes.key?(:'flex_admin_cost_cents') + self.flex_admin_cost_cents = attributes[:'flex_admin_cost_cents'] + end + + if attributes.key?(:'flex_admin_unit') + self.flex_admin_unit = attributes[:'flex_admin_unit'] + end + + if attributes.key?(:'flex_domain_cost_cents') + self.flex_domain_cost_cents = attributes[:'flex_domain_cost_cents'] + end + + if attributes.key?(:'flex_domain_unit') + self.flex_domain_unit = attributes[:'flex_domain_unit'] + end + + if attributes.key?(:'flex_minimum_cost_cents') + self.flex_minimum_cost_cents = attributes[:'flex_minimum_cost_cents'] + 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 @name.nil? + invalid_properties.push('invalid value for "name", name cannot be nil.') + end + + if @monthly_cost_usd.nil? + invalid_properties.push('invalid value for "monthly_cost_usd", monthly_cost_usd cannot be nil.') + end + + if @yearly_cost_usd.nil? + invalid_properties.push('invalid value for "yearly_cost_usd", yearly_cost_usd cannot be nil.') + end + + if @max_monthly_page_loads.nil? + invalid_properties.push('invalid value for "max_monthly_page_loads", max_monthly_page_loads cannot be nil.') + end + + if @max_monthly_api_credits.nil? + invalid_properties.push('invalid value for "max_monthly_api_credits", max_monthly_api_credits cannot be nil.') + end + + if @max_monthly_comments.nil? + invalid_properties.push('invalid value for "max_monthly_comments", max_monthly_comments cannot be nil.') + end + + if @max_concurrent_users.nil? + invalid_properties.push('invalid value for "max_concurrent_users", max_concurrent_users cannot be nil.') + end + + if @max_tenant_users.nil? + invalid_properties.push('invalid value for "max_tenant_users", max_tenant_users cannot be nil.') + end + + if @max_sso_users.nil? + invalid_properties.push('invalid value for "max_sso_users", max_sso_users cannot be nil.') + end + + if @max_moderators.nil? + invalid_properties.push('invalid value for "max_moderators", max_moderators cannot be nil.') + end + + if @max_domains.nil? + invalid_properties.push('invalid value for "max_domains", max_domains cannot be nil.') + end + + if @has_debranding.nil? + invalid_properties.push('invalid value for "has_debranding", has_debranding cannot be nil.') + end + + if @for_who_text.nil? + invalid_properties.push('invalid value for "for_who_text", for_who_text cannot be nil.') + end + + if @feature_taglines.nil? + invalid_properties.push('invalid value for "feature_taglines", feature_taglines cannot be nil.') + end + + if @has_flex_pricing.nil? + invalid_properties.push('invalid value for "has_flex_pricing", has_flex_pricing 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 @name.nil? + return false if @monthly_cost_usd.nil? + return false if @yearly_cost_usd.nil? + return false if @max_monthly_page_loads.nil? + return false if @max_monthly_api_credits.nil? + return false if @max_monthly_comments.nil? + return false if @max_concurrent_users.nil? + return false if @max_tenant_users.nil? + return false if @max_sso_users.nil? + return false if @max_moderators.nil? + return false if @max_domains.nil? + return false if @has_debranding.nil? + return false if @for_who_text.nil? + return false if @feature_taglines.nil? + return false if @has_flex_pricing.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + + # Custom attribute writer method with validation + # @param [Object] monthly_cost_usd Value to be assigned + def monthly_cost_usd=(monthly_cost_usd) + if monthly_cost_usd.nil? + fail ArgumentError, 'monthly_cost_usd cannot be nil' + end + + @monthly_cost_usd = monthly_cost_usd + end + + # Custom attribute writer method with validation + # @param [Object] yearly_cost_usd Value to be assigned + def yearly_cost_usd=(yearly_cost_usd) + if yearly_cost_usd.nil? + fail ArgumentError, 'yearly_cost_usd cannot be nil' + end + + @yearly_cost_usd = yearly_cost_usd + end + + # Custom attribute writer method with validation + # @param [Object] max_monthly_page_loads Value to be assigned + def max_monthly_page_loads=(max_monthly_page_loads) + if max_monthly_page_loads.nil? + fail ArgumentError, 'max_monthly_page_loads cannot be nil' + end + + @max_monthly_page_loads = max_monthly_page_loads + end + + # Custom attribute writer method with validation + # @param [Object] max_monthly_api_credits Value to be assigned + def max_monthly_api_credits=(max_monthly_api_credits) + if max_monthly_api_credits.nil? + fail ArgumentError, 'max_monthly_api_credits cannot be nil' + end + + @max_monthly_api_credits = max_monthly_api_credits + end + + # Custom attribute writer method with validation + # @param [Object] max_monthly_comments Value to be assigned + def max_monthly_comments=(max_monthly_comments) + if max_monthly_comments.nil? + fail ArgumentError, 'max_monthly_comments cannot be nil' + end + + @max_monthly_comments = max_monthly_comments + end + + # Custom attribute writer method with validation + # @param [Object] max_concurrent_users Value to be assigned + def max_concurrent_users=(max_concurrent_users) + if max_concurrent_users.nil? + fail ArgumentError, 'max_concurrent_users cannot be nil' + end + + @max_concurrent_users = max_concurrent_users + end + + # Custom attribute writer method with validation + # @param [Object] max_tenant_users Value to be assigned + def max_tenant_users=(max_tenant_users) + if max_tenant_users.nil? + fail ArgumentError, 'max_tenant_users cannot be nil' + end + + @max_tenant_users = max_tenant_users + end + + # Custom attribute writer method with validation + # @param [Object] max_sso_users Value to be assigned + def max_sso_users=(max_sso_users) + if max_sso_users.nil? + fail ArgumentError, 'max_sso_users cannot be nil' + end + + @max_sso_users = max_sso_users + end + + # Custom attribute writer method with validation + # @param [Object] max_moderators Value to be assigned + def max_moderators=(max_moderators) + if max_moderators.nil? + fail ArgumentError, 'max_moderators cannot be nil' + end + + @max_moderators = max_moderators + end + + # Custom attribute writer method with validation + # @param [Object] max_domains Value to be assigned + def max_domains=(max_domains) + if max_domains.nil? + fail ArgumentError, 'max_domains cannot be nil' + end + + @max_domains = max_domains + end + + # Custom attribute writer method with validation + # @param [Object] has_debranding Value to be assigned + def has_debranding=(has_debranding) + if has_debranding.nil? + fail ArgumentError, 'has_debranding cannot be nil' + end + + @has_debranding = has_debranding + end + + # Custom attribute writer method with validation + # @param [Object] for_who_text Value to be assigned + def for_who_text=(for_who_text) + if for_who_text.nil? + fail ArgumentError, 'for_who_text cannot be nil' + end + + @for_who_text = for_who_text + end + + # Custom attribute writer method with validation + # @param [Object] feature_taglines Value to be assigned + def feature_taglines=(feature_taglines) + if feature_taglines.nil? + fail ArgumentError, 'feature_taglines cannot be nil' + end + + @feature_taglines = feature_taglines + end + + # Custom attribute writer method with validation + # @param [Object] has_flex_pricing Value to be assigned + def has_flex_pricing=(has_flex_pricing) + if has_flex_pricing.nil? + fail ArgumentError, 'has_flex_pricing cannot be nil' + end + + @has_flex_pricing = has_flex_pricing + 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 && + name == o.name && + monthly_cost_usd == o.monthly_cost_usd && + yearly_cost_usd == o.yearly_cost_usd && + max_monthly_page_loads == o.max_monthly_page_loads && + max_monthly_api_credits == o.max_monthly_api_credits && + max_monthly_comments == o.max_monthly_comments && + max_concurrent_users == o.max_concurrent_users && + max_tenant_users == o.max_tenant_users && + max_sso_users == o.max_sso_users && + max_moderators == o.max_moderators && + max_domains == o.max_domains && + has_debranding == o.has_debranding && + for_who_text == o.for_who_text && + feature_taglines == o.feature_taglines && + has_flex_pricing == o.has_flex_pricing && + flex_page_load_cost_cents == o.flex_page_load_cost_cents && + flex_page_load_unit == o.flex_page_load_unit && + flex_comment_cost_cents == o.flex_comment_cost_cents && + flex_comment_unit == o.flex_comment_unit && + flex_sso_user_cost_cents == o.flex_sso_user_cost_cents && + flex_sso_user_unit == o.flex_sso_user_unit && + flex_api_credit_cost_cents == o.flex_api_credit_cost_cents && + flex_api_credit_unit == o.flex_api_credit_unit && + flex_moderator_cost_cents == o.flex_moderator_cost_cents && + flex_moderator_unit == o.flex_moderator_unit && + flex_admin_cost_cents == o.flex_admin_cost_cents && + flex_admin_unit == o.flex_admin_unit && + flex_domain_cost_cents == o.flex_domain_cost_cents && + flex_domain_unit == o.flex_domain_unit && + flex_minimum_cost_cents == o.flex_minimum_cost_cents + 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 + [name, monthly_cost_usd, yearly_cost_usd, max_monthly_page_loads, max_monthly_api_credits, max_monthly_comments, max_concurrent_users, max_tenant_users, max_sso_users, max_moderators, max_domains, has_debranding, for_who_text, feature_taglines, has_flex_pricing, flex_page_load_cost_cents, flex_page_load_unit, flex_comment_cost_cents, flex_comment_unit, flex_sso_user_cost_cents, flex_sso_user_unit, flex_api_credit_cost_cents, flex_api_credit_unit, flex_moderator_cost_cents, flex_moderator_unit, flex_admin_cost_cents, flex_admin_unit, flex_domain_cost_cents, flex_domain_unit, flex_minimum_cost_cents].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/replace_tenant_user_body.rb b/client/lib/fastcomments-client/models/replace_tenant_user_body.rb new file mode 100644 index 0000000..c237824 --- /dev/null +++ b/client/lib/fastcomments-client/models/replace_tenant_user_body.rb @@ -0,0 +1,426 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class ReplaceTenantUserBody < ApiModelBase + attr_accessor :username + + attr_accessor :email + + attr_accessor :display_name + + attr_accessor :website_url + + attr_accessor :sign_up_date + + attr_accessor :locale + + attr_accessor :verified + + attr_accessor :login_count + + attr_accessor :opted_in_notifications + + attr_accessor :opted_in_tenant_notifications + + attr_accessor :hide_account_code + + attr_accessor :avatar_src + + attr_accessor :is_help_request_admin + + attr_accessor :is_account_owner + + attr_accessor :is_admin_admin + + attr_accessor :is_billing_admin + + attr_accessor :is_analytics_admin + + attr_accessor :is_customization_admin + + attr_accessor :is_manage_data_admin + + attr_accessor :is_comment_moderator_admin + + attr_accessor :is_api_admin + + attr_accessor :moderator_ids + + attr_accessor :digest_email_frequency + + attr_accessor :display_label + + attr_accessor :created_from_url_id + + attr_accessor :created_from_tenant_id + + attr_accessor :last_login_date + + attr_accessor :karma + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'username' => :'username', + :'email' => :'email', + :'display_name' => :'displayName', + :'website_url' => :'websiteUrl', + :'sign_up_date' => :'signUpDate', + :'locale' => :'locale', + :'verified' => :'verified', + :'login_count' => :'loginCount', + :'opted_in_notifications' => :'optedInNotifications', + :'opted_in_tenant_notifications' => :'optedInTenantNotifications', + :'hide_account_code' => :'hideAccountCode', + :'avatar_src' => :'avatarSrc', + :'is_help_request_admin' => :'isHelpRequestAdmin', + :'is_account_owner' => :'isAccountOwner', + :'is_admin_admin' => :'isAdminAdmin', + :'is_billing_admin' => :'isBillingAdmin', + :'is_analytics_admin' => :'isAnalyticsAdmin', + :'is_customization_admin' => :'isCustomizationAdmin', + :'is_manage_data_admin' => :'isManageDataAdmin', + :'is_comment_moderator_admin' => :'isCommentModeratorAdmin', + :'is_api_admin' => :'isAPIAdmin', + :'moderator_ids' => :'moderatorIds', + :'digest_email_frequency' => :'digestEmailFrequency', + :'display_label' => :'displayLabel', + :'created_from_url_id' => :'createdFromUrlId', + :'created_from_tenant_id' => :'createdFromTenantId', + :'last_login_date' => :'lastLoginDate', + :'karma' => :'karma' + } + 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 + { + :'username' => :'String', + :'email' => :'String', + :'display_name' => :'String', + :'website_url' => :'String', + :'sign_up_date' => :'Float', + :'locale' => :'String', + :'verified' => :'Boolean', + :'login_count' => :'Float', + :'opted_in_notifications' => :'Boolean', + :'opted_in_tenant_notifications' => :'Boolean', + :'hide_account_code' => :'Boolean', + :'avatar_src' => :'String', + :'is_help_request_admin' => :'Boolean', + :'is_account_owner' => :'Boolean', + :'is_admin_admin' => :'Boolean', + :'is_billing_admin' => :'Boolean', + :'is_analytics_admin' => :'Boolean', + :'is_customization_admin' => :'Boolean', + :'is_manage_data_admin' => :'Boolean', + :'is_comment_moderator_admin' => :'Boolean', + :'is_api_admin' => :'Boolean', + :'moderator_ids' => :'Array', + :'digest_email_frequency' => :'Float', + :'display_label' => :'String', + :'created_from_url_id' => :'String', + :'created_from_tenant_id' => :'String', + :'last_login_date' => :'Float', + :'karma' => :'Float' + } + 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::ReplaceTenantUserBody` 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::ReplaceTenantUserBody`. 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?(:'username') + self.username = attributes[:'username'] + else + self.username = nil + end + + if attributes.key?(:'email') + self.email = attributes[:'email'] + else + self.email = nil + end + + if attributes.key?(:'display_name') + self.display_name = attributes[:'display_name'] + end + + if attributes.key?(:'website_url') + self.website_url = attributes[:'website_url'] + end + + if attributes.key?(:'sign_up_date') + self.sign_up_date = attributes[:'sign_up_date'] + end + + if attributes.key?(:'locale') + self.locale = attributes[:'locale'] + end + + if attributes.key?(:'verified') + self.verified = attributes[:'verified'] + end + + if attributes.key?(:'login_count') + self.login_count = attributes[:'login_count'] + end + + if attributes.key?(:'opted_in_notifications') + self.opted_in_notifications = attributes[:'opted_in_notifications'] + end + + if attributes.key?(:'opted_in_tenant_notifications') + self.opted_in_tenant_notifications = attributes[:'opted_in_tenant_notifications'] + end + + if attributes.key?(:'hide_account_code') + self.hide_account_code = attributes[:'hide_account_code'] + end + + if attributes.key?(:'avatar_src') + self.avatar_src = attributes[:'avatar_src'] + end + + if attributes.key?(:'is_help_request_admin') + self.is_help_request_admin = attributes[:'is_help_request_admin'] + end + + if attributes.key?(:'is_account_owner') + self.is_account_owner = attributes[:'is_account_owner'] + end + + if attributes.key?(:'is_admin_admin') + self.is_admin_admin = attributes[:'is_admin_admin'] + end + + if attributes.key?(:'is_billing_admin') + self.is_billing_admin = attributes[:'is_billing_admin'] + end + + if attributes.key?(:'is_analytics_admin') + self.is_analytics_admin = attributes[:'is_analytics_admin'] + end + + if attributes.key?(:'is_customization_admin') + self.is_customization_admin = attributes[:'is_customization_admin'] + end + + if attributes.key?(:'is_manage_data_admin') + self.is_manage_data_admin = attributes[:'is_manage_data_admin'] + end + + if attributes.key?(:'is_comment_moderator_admin') + self.is_comment_moderator_admin = attributes[:'is_comment_moderator_admin'] + end + + if attributes.key?(:'is_api_admin') + self.is_api_admin = attributes[:'is_api_admin'] + end + + if attributes.key?(:'moderator_ids') + if (value = attributes[:'moderator_ids']).is_a?(Array) + self.moderator_ids = value + end + end + + if attributes.key?(:'digest_email_frequency') + self.digest_email_frequency = attributes[:'digest_email_frequency'] + end + + if attributes.key?(:'display_label') + self.display_label = attributes[:'display_label'] + end + + if attributes.key?(:'created_from_url_id') + self.created_from_url_id = attributes[:'created_from_url_id'] + end + + if attributes.key?(:'created_from_tenant_id') + self.created_from_tenant_id = attributes[:'created_from_tenant_id'] + end + + if attributes.key?(:'last_login_date') + self.last_login_date = attributes[:'last_login_date'] + end + + if attributes.key?(:'karma') + self.karma = attributes[:'karma'] + 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 @username.nil? + invalid_properties.push('invalid value for "username", username cannot be nil.') + end + + if @email.nil? + invalid_properties.push('invalid value for "email", email 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 @username.nil? + return false if @email.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] username Value to be assigned + def username=(username) + if username.nil? + fail ArgumentError, 'username cannot be nil' + end + + @username = username + end + + # Custom attribute writer method with validation + # @param [Object] email Value to be assigned + def email=(email) + if email.nil? + fail ArgumentError, 'email cannot be nil' + end + + @email = email + 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 && + username == o.username && + email == o.email && + display_name == o.display_name && + website_url == o.website_url && + sign_up_date == o.sign_up_date && + locale == o.locale && + verified == o.verified && + login_count == o.login_count && + opted_in_notifications == o.opted_in_notifications && + opted_in_tenant_notifications == o.opted_in_tenant_notifications && + hide_account_code == o.hide_account_code && + avatar_src == o.avatar_src && + is_help_request_admin == o.is_help_request_admin && + is_account_owner == o.is_account_owner && + is_admin_admin == o.is_admin_admin && + is_billing_admin == o.is_billing_admin && + is_analytics_admin == o.is_analytics_admin && + is_customization_admin == o.is_customization_admin && + is_manage_data_admin == o.is_manage_data_admin && + is_comment_moderator_admin == o.is_comment_moderator_admin && + is_api_admin == o.is_api_admin && + moderator_ids == o.moderator_ids && + digest_email_frequency == o.digest_email_frequency && + display_label == o.display_label && + created_from_url_id == o.created_from_url_id && + created_from_tenant_id == o.created_from_tenant_id && + last_login_date == o.last_login_date && + karma == o.karma + 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 + [username, email, display_name, website_url, sign_up_date, locale, verified, login_count, opted_in_notifications, opted_in_tenant_notifications, hide_account_code, avatar_src, is_help_request_admin, is_account_owner, is_admin_admin, is_billing_admin, is_analytics_admin, is_customization_admin, is_manage_data_admin, is_comment_moderator_admin, is_api_admin, moderator_ids, digest_email_frequency, display_label, created_from_url_id, created_from_tenant_id, last_login_date, karma].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/tenant_hash_tag.rb b/client/lib/fastcomments-client/models/tenant_hash_tag.rb new file mode 100644 index 0000000..7017c77 --- /dev/null +++ b/client/lib/fastcomments-client/models/tenant_hash_tag.rb @@ -0,0 +1,251 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class TenantHashTag < ApiModelBase + attr_accessor :_id + + attr_accessor :created_at + + attr_accessor :tenant_id + + attr_accessor :tag + + attr_accessor :url + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'_id' => :'_id', + :'created_at' => :'createdAt', + :'tenant_id' => :'tenantId', + :'tag' => :'tag', + :'url' => :'url' + } + 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 + { + :'_id' => :'String', + :'created_at' => :'Time', + :'tenant_id' => :'String', + :'tag' => :'String', + :'url' => :'String' + } + 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::TenantHashTag` 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::TenantHashTag`. 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?(:'_id') + self._id = attributes[:'_id'] + else + self._id = nil + end + + if attributes.key?(:'created_at') + self.created_at = attributes[:'created_at'] + else + self.created_at = nil + end + + if attributes.key?(:'tenant_id') + self.tenant_id = attributes[:'tenant_id'] + else + self.tenant_id = nil + end + + if attributes.key?(:'tag') + self.tag = attributes[:'tag'] + else + self.tag = nil + end + + if attributes.key?(:'url') + self.url = attributes[:'url'] + 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 @_id.nil? + invalid_properties.push('invalid value for "_id", _id cannot be nil.') + end + + if @created_at.nil? + invalid_properties.push('invalid value for "created_at", created_at cannot be nil.') + end + + if @tenant_id.nil? + invalid_properties.push('invalid value for "tenant_id", tenant_id cannot be nil.') + end + + if @tag.nil? + invalid_properties.push('invalid value for "tag", tag 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 @_id.nil? + return false if @created_at.nil? + return false if @tenant_id.nil? + return false if @tag.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] _id Value to be assigned + def _id=(_id) + if _id.nil? + fail ArgumentError, '_id cannot be nil' + end + + @_id = _id + end + + # Custom attribute writer method with validation + # @param [Object] created_at Value to be assigned + def created_at=(created_at) + if created_at.nil? + fail ArgumentError, 'created_at cannot be nil' + end + + @created_at = created_at + end + + # Custom attribute writer method with validation + # @param [Object] tenant_id Value to be assigned + def tenant_id=(tenant_id) + if tenant_id.nil? + fail ArgumentError, 'tenant_id cannot be nil' + end + + @tenant_id = tenant_id + end + + # Custom attribute writer method with validation + # @param [Object] tag Value to be assigned + def tag=(tag) + if tag.nil? + fail ArgumentError, 'tag cannot be nil' + end + + @tag = tag + 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 && + _id == o._id && + created_at == o.created_at && + tenant_id == o.tenant_id && + tag == o.tag && + url == o.url + 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 + [_id, created_at, tenant_id, tag, url].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/tenant_package.rb b/client/lib/fastcomments-client/models/tenant_package.rb new file mode 100644 index 0000000..9734489 --- /dev/null +++ b/client/lib/fastcomments-client/models/tenant_package.rb @@ -0,0 +1,994 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class TenantPackage < ApiModelBase + attr_accessor :_id + + attr_accessor :name + + attr_accessor :tenant_id + + attr_accessor :created_at + + attr_accessor :monthly_cost_usd + + attr_accessor :yearly_cost_usd + + attr_accessor :monthly_stripe_plan_id + + attr_accessor :yearly_stripe_plan_id + + attr_accessor :max_monthly_page_loads + + attr_accessor :max_monthly_api_credits + + attr_accessor :max_monthly_small_widgets_credits + + attr_accessor :max_monthly_comments + + attr_accessor :max_concurrent_users + + attr_accessor :max_tenant_users + + attr_accessor :max_sso_users + + attr_accessor :max_moderators + + attr_accessor :max_domains + + attr_accessor :max_white_labeled_tenants + + attr_accessor :max_monthly_event_log_requests + + attr_accessor :has_white_labeling + + attr_accessor :has_debranding + + attr_accessor :has_llm_spam_detection + + attr_accessor :for_who_text + + attr_accessor :feature_taglines + + attr_accessor :has_auditing + + attr_accessor :has_flex_pricing + + attr_accessor :enable_saml + + attr_accessor :flex_page_load_cost_cents + + attr_accessor :flex_page_load_unit + + attr_accessor :flex_comment_cost_cents + + attr_accessor :flex_comment_unit + + attr_accessor :flex_sso_user_cost_cents + + attr_accessor :flex_sso_user_unit + + attr_accessor :flex_api_credit_cost_cents + + attr_accessor :flex_api_credit_unit + + attr_accessor :flex_small_widgets_credit_cost_cents + + attr_accessor :flex_small_widgets_credit_unit + + attr_accessor :flex_moderator_cost_cents + + attr_accessor :flex_moderator_unit + + attr_accessor :flex_admin_cost_cents + + attr_accessor :flex_admin_unit + + attr_accessor :flex_domain_cost_cents + + attr_accessor :flex_domain_unit + + attr_accessor :flex_chat_gpt_cost_cents + + attr_accessor :flex_chat_gpt_unit + + attr_accessor :flex_minimum_cost_cents + + attr_accessor :flex_managed_tenant_cost_cents + + attr_accessor :flex_sso_admin_cost_cents + + attr_accessor :flex_sso_admin_unit + + attr_accessor :flex_sso_moderator_cost_cents + + attr_accessor :flex_sso_moderator_unit + + attr_accessor :is_sso_billing_monthly_active_users + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'_id' => :'_id', + :'name' => :'name', + :'tenant_id' => :'tenantId', + :'created_at' => :'createdAt', + :'monthly_cost_usd' => :'monthlyCostUSD', + :'yearly_cost_usd' => :'yearlyCostUSD', + :'monthly_stripe_plan_id' => :'monthlyStripePlanId', + :'yearly_stripe_plan_id' => :'yearlyStripePlanId', + :'max_monthly_page_loads' => :'maxMonthlyPageLoads', + :'max_monthly_api_credits' => :'maxMonthlyAPICredits', + :'max_monthly_small_widgets_credits' => :'maxMonthlySmallWidgetsCredits', + :'max_monthly_comments' => :'maxMonthlyComments', + :'max_concurrent_users' => :'maxConcurrentUsers', + :'max_tenant_users' => :'maxTenantUsers', + :'max_sso_users' => :'maxSSOUsers', + :'max_moderators' => :'maxModerators', + :'max_domains' => :'maxDomains', + :'max_white_labeled_tenants' => :'maxWhiteLabeledTenants', + :'max_monthly_event_log_requests' => :'maxMonthlyEventLogRequests', + :'has_white_labeling' => :'hasWhiteLabeling', + :'has_debranding' => :'hasDebranding', + :'has_llm_spam_detection' => :'hasLLMSpamDetection', + :'for_who_text' => :'forWhoText', + :'feature_taglines' => :'featureTaglines', + :'has_auditing' => :'hasAuditing', + :'has_flex_pricing' => :'hasFlexPricing', + :'enable_saml' => :'enableSAML', + :'flex_page_load_cost_cents' => :'flexPageLoadCostCents', + :'flex_page_load_unit' => :'flexPageLoadUnit', + :'flex_comment_cost_cents' => :'flexCommentCostCents', + :'flex_comment_unit' => :'flexCommentUnit', + :'flex_sso_user_cost_cents' => :'flexSSOUserCostCents', + :'flex_sso_user_unit' => :'flexSSOUserUnit', + :'flex_api_credit_cost_cents' => :'flexAPICreditCostCents', + :'flex_api_credit_unit' => :'flexAPICreditUnit', + :'flex_small_widgets_credit_cost_cents' => :'flexSmallWidgetsCreditCostCents', + :'flex_small_widgets_credit_unit' => :'flexSmallWidgetsCreditUnit', + :'flex_moderator_cost_cents' => :'flexModeratorCostCents', + :'flex_moderator_unit' => :'flexModeratorUnit', + :'flex_admin_cost_cents' => :'flexAdminCostCents', + :'flex_admin_unit' => :'flexAdminUnit', + :'flex_domain_cost_cents' => :'flexDomainCostCents', + :'flex_domain_unit' => :'flexDomainUnit', + :'flex_chat_gpt_cost_cents' => :'flexChatGPTCostCents', + :'flex_chat_gpt_unit' => :'flexChatGPTUnit', + :'flex_minimum_cost_cents' => :'flexMinimumCostCents', + :'flex_managed_tenant_cost_cents' => :'flexManagedTenantCostCents', + :'flex_sso_admin_cost_cents' => :'flexSSOAdminCostCents', + :'flex_sso_admin_unit' => :'flexSSOAdminUnit', + :'flex_sso_moderator_cost_cents' => :'flexSSOModeratorCostCents', + :'flex_sso_moderator_unit' => :'flexSSOModeratorUnit', + :'is_sso_billing_monthly_active_users' => :'isSSOBillingMonthlyActiveUsers' + } + 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 + { + :'_id' => :'String', + :'name' => :'String', + :'tenant_id' => :'String', + :'created_at' => :'Time', + :'monthly_cost_usd' => :'Float', + :'yearly_cost_usd' => :'Float', + :'monthly_stripe_plan_id' => :'String', + :'yearly_stripe_plan_id' => :'String', + :'max_monthly_page_loads' => :'Float', + :'max_monthly_api_credits' => :'Float', + :'max_monthly_small_widgets_credits' => :'Float', + :'max_monthly_comments' => :'Float', + :'max_concurrent_users' => :'Float', + :'max_tenant_users' => :'Float', + :'max_sso_users' => :'Float', + :'max_moderators' => :'Float', + :'max_domains' => :'Float', + :'max_white_labeled_tenants' => :'Float', + :'max_monthly_event_log_requests' => :'Float', + :'has_white_labeling' => :'Boolean', + :'has_debranding' => :'Boolean', + :'has_llm_spam_detection' => :'Boolean', + :'for_who_text' => :'String', + :'feature_taglines' => :'Array', + :'has_auditing' => :'Boolean', + :'has_flex_pricing' => :'Boolean', + :'enable_saml' => :'Boolean', + :'flex_page_load_cost_cents' => :'Float', + :'flex_page_load_unit' => :'Float', + :'flex_comment_cost_cents' => :'Float', + :'flex_comment_unit' => :'Float', + :'flex_sso_user_cost_cents' => :'Float', + :'flex_sso_user_unit' => :'Float', + :'flex_api_credit_cost_cents' => :'Float', + :'flex_api_credit_unit' => :'Float', + :'flex_small_widgets_credit_cost_cents' => :'Float', + :'flex_small_widgets_credit_unit' => :'Float', + :'flex_moderator_cost_cents' => :'Float', + :'flex_moderator_unit' => :'Float', + :'flex_admin_cost_cents' => :'Float', + :'flex_admin_unit' => :'Float', + :'flex_domain_cost_cents' => :'Float', + :'flex_domain_unit' => :'Float', + :'flex_chat_gpt_cost_cents' => :'Float', + :'flex_chat_gpt_unit' => :'Float', + :'flex_minimum_cost_cents' => :'Float', + :'flex_managed_tenant_cost_cents' => :'Float', + :'flex_sso_admin_cost_cents' => :'Float', + :'flex_sso_admin_unit' => :'Float', + :'flex_sso_moderator_cost_cents' => :'Float', + :'flex_sso_moderator_unit' => :'Float', + :'is_sso_billing_monthly_active_users' => :'Boolean' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'monthly_cost_usd', + :'yearly_cost_usd', + :'monthly_stripe_plan_id', + :'yearly_stripe_plan_id', + ]) + 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::TenantPackage` 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::TenantPackage`. 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?(:'_id') + self._id = attributes[:'_id'] + else + self._id = nil + end + + if attributes.key?(:'name') + self.name = attributes[:'name'] + else + self.name = nil + end + + if attributes.key?(:'tenant_id') + self.tenant_id = attributes[:'tenant_id'] + else + self.tenant_id = nil + end + + if attributes.key?(:'created_at') + self.created_at = attributes[:'created_at'] + else + self.created_at = nil + end + + if attributes.key?(:'monthly_cost_usd') + self.monthly_cost_usd = attributes[:'monthly_cost_usd'] + else + self.monthly_cost_usd = nil + end + + if attributes.key?(:'yearly_cost_usd') + self.yearly_cost_usd = attributes[:'yearly_cost_usd'] + else + self.yearly_cost_usd = nil + end + + if attributes.key?(:'monthly_stripe_plan_id') + self.monthly_stripe_plan_id = attributes[:'monthly_stripe_plan_id'] + else + self.monthly_stripe_plan_id = nil + end + + if attributes.key?(:'yearly_stripe_plan_id') + self.yearly_stripe_plan_id = attributes[:'yearly_stripe_plan_id'] + else + self.yearly_stripe_plan_id = nil + end + + if attributes.key?(:'max_monthly_page_loads') + self.max_monthly_page_loads = attributes[:'max_monthly_page_loads'] + else + self.max_monthly_page_loads = nil + end + + if attributes.key?(:'max_monthly_api_credits') + self.max_monthly_api_credits = attributes[:'max_monthly_api_credits'] + else + self.max_monthly_api_credits = nil + end + + if attributes.key?(:'max_monthly_small_widgets_credits') + self.max_monthly_small_widgets_credits = attributes[:'max_monthly_small_widgets_credits'] + else + self.max_monthly_small_widgets_credits = nil + end + + if attributes.key?(:'max_monthly_comments') + self.max_monthly_comments = attributes[:'max_monthly_comments'] + else + self.max_monthly_comments = nil + end + + if attributes.key?(:'max_concurrent_users') + self.max_concurrent_users = attributes[:'max_concurrent_users'] + else + self.max_concurrent_users = nil + end + + if attributes.key?(:'max_tenant_users') + self.max_tenant_users = attributes[:'max_tenant_users'] + else + self.max_tenant_users = nil + end + + if attributes.key?(:'max_sso_users') + self.max_sso_users = attributes[:'max_sso_users'] + else + self.max_sso_users = nil + end + + if attributes.key?(:'max_moderators') + self.max_moderators = attributes[:'max_moderators'] + else + self.max_moderators = nil + end + + if attributes.key?(:'max_domains') + self.max_domains = attributes[:'max_domains'] + else + self.max_domains = nil + end + + if attributes.key?(:'max_white_labeled_tenants') + self.max_white_labeled_tenants = attributes[:'max_white_labeled_tenants'] + else + self.max_white_labeled_tenants = nil + end + + if attributes.key?(:'max_monthly_event_log_requests') + self.max_monthly_event_log_requests = attributes[:'max_monthly_event_log_requests'] + else + self.max_monthly_event_log_requests = nil + end + + if attributes.key?(:'has_white_labeling') + self.has_white_labeling = attributes[:'has_white_labeling'] + else + self.has_white_labeling = nil + end + + if attributes.key?(:'has_debranding') + self.has_debranding = attributes[:'has_debranding'] + else + self.has_debranding = nil + end + + if attributes.key?(:'has_llm_spam_detection') + self.has_llm_spam_detection = attributes[:'has_llm_spam_detection'] + else + self.has_llm_spam_detection = nil + end + + if attributes.key?(:'for_who_text') + self.for_who_text = attributes[:'for_who_text'] + else + self.for_who_text = nil + end + + if attributes.key?(:'feature_taglines') + if (value = attributes[:'feature_taglines']).is_a?(Array) + self.feature_taglines = value + end + else + self.feature_taglines = nil + end + + if attributes.key?(:'has_auditing') + self.has_auditing = attributes[:'has_auditing'] + else + self.has_auditing = nil + end + + if attributes.key?(:'has_flex_pricing') + self.has_flex_pricing = attributes[:'has_flex_pricing'] + else + self.has_flex_pricing = nil + end + + if attributes.key?(:'enable_saml') + self.enable_saml = attributes[:'enable_saml'] + end + + if attributes.key?(:'flex_page_load_cost_cents') + self.flex_page_load_cost_cents = attributes[:'flex_page_load_cost_cents'] + end + + if attributes.key?(:'flex_page_load_unit') + self.flex_page_load_unit = attributes[:'flex_page_load_unit'] + end + + if attributes.key?(:'flex_comment_cost_cents') + self.flex_comment_cost_cents = attributes[:'flex_comment_cost_cents'] + end + + if attributes.key?(:'flex_comment_unit') + self.flex_comment_unit = attributes[:'flex_comment_unit'] + end + + if attributes.key?(:'flex_sso_user_cost_cents') + self.flex_sso_user_cost_cents = attributes[:'flex_sso_user_cost_cents'] + end + + if attributes.key?(:'flex_sso_user_unit') + self.flex_sso_user_unit = attributes[:'flex_sso_user_unit'] + end + + if attributes.key?(:'flex_api_credit_cost_cents') + self.flex_api_credit_cost_cents = attributes[:'flex_api_credit_cost_cents'] + end + + if attributes.key?(:'flex_api_credit_unit') + self.flex_api_credit_unit = attributes[:'flex_api_credit_unit'] + end + + if attributes.key?(:'flex_small_widgets_credit_cost_cents') + self.flex_small_widgets_credit_cost_cents = attributes[:'flex_small_widgets_credit_cost_cents'] + end + + if attributes.key?(:'flex_small_widgets_credit_unit') + self.flex_small_widgets_credit_unit = attributes[:'flex_small_widgets_credit_unit'] + end + + if attributes.key?(:'flex_moderator_cost_cents') + self.flex_moderator_cost_cents = attributes[:'flex_moderator_cost_cents'] + end + + if attributes.key?(:'flex_moderator_unit') + self.flex_moderator_unit = attributes[:'flex_moderator_unit'] + end + + if attributes.key?(:'flex_admin_cost_cents') + self.flex_admin_cost_cents = attributes[:'flex_admin_cost_cents'] + end + + if attributes.key?(:'flex_admin_unit') + self.flex_admin_unit = attributes[:'flex_admin_unit'] + end + + if attributes.key?(:'flex_domain_cost_cents') + self.flex_domain_cost_cents = attributes[:'flex_domain_cost_cents'] + end + + if attributes.key?(:'flex_domain_unit') + self.flex_domain_unit = attributes[:'flex_domain_unit'] + end + + if attributes.key?(:'flex_chat_gpt_cost_cents') + self.flex_chat_gpt_cost_cents = attributes[:'flex_chat_gpt_cost_cents'] + end + + if attributes.key?(:'flex_chat_gpt_unit') + self.flex_chat_gpt_unit = attributes[:'flex_chat_gpt_unit'] + end + + if attributes.key?(:'flex_minimum_cost_cents') + self.flex_minimum_cost_cents = attributes[:'flex_minimum_cost_cents'] + end + + if attributes.key?(:'flex_managed_tenant_cost_cents') + self.flex_managed_tenant_cost_cents = attributes[:'flex_managed_tenant_cost_cents'] + end + + if attributes.key?(:'flex_sso_admin_cost_cents') + self.flex_sso_admin_cost_cents = attributes[:'flex_sso_admin_cost_cents'] + end + + if attributes.key?(:'flex_sso_admin_unit') + self.flex_sso_admin_unit = attributes[:'flex_sso_admin_unit'] + end + + if attributes.key?(:'flex_sso_moderator_cost_cents') + self.flex_sso_moderator_cost_cents = attributes[:'flex_sso_moderator_cost_cents'] + end + + if attributes.key?(:'flex_sso_moderator_unit') + self.flex_sso_moderator_unit = attributes[:'flex_sso_moderator_unit'] + end + + if attributes.key?(:'is_sso_billing_monthly_active_users') + self.is_sso_billing_monthly_active_users = attributes[:'is_sso_billing_monthly_active_users'] + 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 @_id.nil? + invalid_properties.push('invalid value for "_id", _id cannot be nil.') + end + + if @name.nil? + invalid_properties.push('invalid value for "name", name cannot be nil.') + end + + if @tenant_id.nil? + invalid_properties.push('invalid value for "tenant_id", tenant_id cannot be nil.') + end + + if @created_at.nil? + invalid_properties.push('invalid value for "created_at", created_at cannot be nil.') + end + + if @max_monthly_page_loads.nil? + invalid_properties.push('invalid value for "max_monthly_page_loads", max_monthly_page_loads cannot be nil.') + end + + if @max_monthly_api_credits.nil? + invalid_properties.push('invalid value for "max_monthly_api_credits", max_monthly_api_credits cannot be nil.') + end + + if @max_monthly_small_widgets_credits.nil? + invalid_properties.push('invalid value for "max_monthly_small_widgets_credits", max_monthly_small_widgets_credits cannot be nil.') + end + + if @max_monthly_comments.nil? + invalid_properties.push('invalid value for "max_monthly_comments", max_monthly_comments cannot be nil.') + end + + if @max_concurrent_users.nil? + invalid_properties.push('invalid value for "max_concurrent_users", max_concurrent_users cannot be nil.') + end + + if @max_tenant_users.nil? + invalid_properties.push('invalid value for "max_tenant_users", max_tenant_users cannot be nil.') + end + + if @max_sso_users.nil? + invalid_properties.push('invalid value for "max_sso_users", max_sso_users cannot be nil.') + end + + if @max_moderators.nil? + invalid_properties.push('invalid value for "max_moderators", max_moderators cannot be nil.') + end + + if @max_domains.nil? + invalid_properties.push('invalid value for "max_domains", max_domains cannot be nil.') + end + + if @max_white_labeled_tenants.nil? + invalid_properties.push('invalid value for "max_white_labeled_tenants", max_white_labeled_tenants cannot be nil.') + end + + if @max_monthly_event_log_requests.nil? + invalid_properties.push('invalid value for "max_monthly_event_log_requests", max_monthly_event_log_requests cannot be nil.') + end + + if @has_white_labeling.nil? + invalid_properties.push('invalid value for "has_white_labeling", has_white_labeling cannot be nil.') + end + + if @has_debranding.nil? + invalid_properties.push('invalid value for "has_debranding", has_debranding cannot be nil.') + end + + if @has_llm_spam_detection.nil? + invalid_properties.push('invalid value for "has_llm_spam_detection", has_llm_spam_detection cannot be nil.') + end + + if @for_who_text.nil? + invalid_properties.push('invalid value for "for_who_text", for_who_text cannot be nil.') + end + + if @feature_taglines.nil? + invalid_properties.push('invalid value for "feature_taglines", feature_taglines cannot be nil.') + end + + if @has_auditing.nil? + invalid_properties.push('invalid value for "has_auditing", has_auditing cannot be nil.') + end + + if @has_flex_pricing.nil? + invalid_properties.push('invalid value for "has_flex_pricing", has_flex_pricing 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 @_id.nil? + return false if @name.nil? + return false if @tenant_id.nil? + return false if @created_at.nil? + return false if @max_monthly_page_loads.nil? + return false if @max_monthly_api_credits.nil? + return false if @max_monthly_small_widgets_credits.nil? + return false if @max_monthly_comments.nil? + return false if @max_concurrent_users.nil? + return false if @max_tenant_users.nil? + return false if @max_sso_users.nil? + return false if @max_moderators.nil? + return false if @max_domains.nil? + return false if @max_white_labeled_tenants.nil? + return false if @max_monthly_event_log_requests.nil? + return false if @has_white_labeling.nil? + return false if @has_debranding.nil? + return false if @has_llm_spam_detection.nil? + return false if @for_who_text.nil? + return false if @feature_taglines.nil? + return false if @has_auditing.nil? + return false if @has_flex_pricing.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] _id Value to be assigned + def _id=(_id) + if _id.nil? + fail ArgumentError, '_id cannot be nil' + end + + @_id = _id + end + + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + + # Custom attribute writer method with validation + # @param [Object] tenant_id Value to be assigned + def tenant_id=(tenant_id) + if tenant_id.nil? + fail ArgumentError, 'tenant_id cannot be nil' + end + + @tenant_id = tenant_id + end + + # Custom attribute writer method with validation + # @param [Object] created_at Value to be assigned + def created_at=(created_at) + if created_at.nil? + fail ArgumentError, 'created_at cannot be nil' + end + + @created_at = created_at + end + + # Custom attribute writer method with validation + # @param [Object] max_monthly_page_loads Value to be assigned + def max_monthly_page_loads=(max_monthly_page_loads) + if max_monthly_page_loads.nil? + fail ArgumentError, 'max_monthly_page_loads cannot be nil' + end + + @max_monthly_page_loads = max_monthly_page_loads + end + + # Custom attribute writer method with validation + # @param [Object] max_monthly_api_credits Value to be assigned + def max_monthly_api_credits=(max_monthly_api_credits) + if max_monthly_api_credits.nil? + fail ArgumentError, 'max_monthly_api_credits cannot be nil' + end + + @max_monthly_api_credits = max_monthly_api_credits + end + + # Custom attribute writer method with validation + # @param [Object] max_monthly_small_widgets_credits Value to be assigned + def max_monthly_small_widgets_credits=(max_monthly_small_widgets_credits) + if max_monthly_small_widgets_credits.nil? + fail ArgumentError, 'max_monthly_small_widgets_credits cannot be nil' + end + + @max_monthly_small_widgets_credits = max_monthly_small_widgets_credits + end + + # Custom attribute writer method with validation + # @param [Object] max_monthly_comments Value to be assigned + def max_monthly_comments=(max_monthly_comments) + if max_monthly_comments.nil? + fail ArgumentError, 'max_monthly_comments cannot be nil' + end + + @max_monthly_comments = max_monthly_comments + end + + # Custom attribute writer method with validation + # @param [Object] max_concurrent_users Value to be assigned + def max_concurrent_users=(max_concurrent_users) + if max_concurrent_users.nil? + fail ArgumentError, 'max_concurrent_users cannot be nil' + end + + @max_concurrent_users = max_concurrent_users + end + + # Custom attribute writer method with validation + # @param [Object] max_tenant_users Value to be assigned + def max_tenant_users=(max_tenant_users) + if max_tenant_users.nil? + fail ArgumentError, 'max_tenant_users cannot be nil' + end + + @max_tenant_users = max_tenant_users + end + + # Custom attribute writer method with validation + # @param [Object] max_sso_users Value to be assigned + def max_sso_users=(max_sso_users) + if max_sso_users.nil? + fail ArgumentError, 'max_sso_users cannot be nil' + end + + @max_sso_users = max_sso_users + end + + # Custom attribute writer method with validation + # @param [Object] max_moderators Value to be assigned + def max_moderators=(max_moderators) + if max_moderators.nil? + fail ArgumentError, 'max_moderators cannot be nil' + end + + @max_moderators = max_moderators + end + + # Custom attribute writer method with validation + # @param [Object] max_domains Value to be assigned + def max_domains=(max_domains) + if max_domains.nil? + fail ArgumentError, 'max_domains cannot be nil' + end + + @max_domains = max_domains + end + + # Custom attribute writer method with validation + # @param [Object] max_white_labeled_tenants Value to be assigned + def max_white_labeled_tenants=(max_white_labeled_tenants) + if max_white_labeled_tenants.nil? + fail ArgumentError, 'max_white_labeled_tenants cannot be nil' + end + + @max_white_labeled_tenants = max_white_labeled_tenants + end + + # Custom attribute writer method with validation + # @param [Object] max_monthly_event_log_requests Value to be assigned + def max_monthly_event_log_requests=(max_monthly_event_log_requests) + if max_monthly_event_log_requests.nil? + fail ArgumentError, 'max_monthly_event_log_requests cannot be nil' + end + + @max_monthly_event_log_requests = max_monthly_event_log_requests + end + + # Custom attribute writer method with validation + # @param [Object] has_white_labeling Value to be assigned + def has_white_labeling=(has_white_labeling) + if has_white_labeling.nil? + fail ArgumentError, 'has_white_labeling cannot be nil' + end + + @has_white_labeling = has_white_labeling + end + + # Custom attribute writer method with validation + # @param [Object] has_debranding Value to be assigned + def has_debranding=(has_debranding) + if has_debranding.nil? + fail ArgumentError, 'has_debranding cannot be nil' + end + + @has_debranding = has_debranding + end + + # Custom attribute writer method with validation + # @param [Object] has_llm_spam_detection Value to be assigned + def has_llm_spam_detection=(has_llm_spam_detection) + if has_llm_spam_detection.nil? + fail ArgumentError, 'has_llm_spam_detection cannot be nil' + end + + @has_llm_spam_detection = has_llm_spam_detection + end + + # Custom attribute writer method with validation + # @param [Object] for_who_text Value to be assigned + def for_who_text=(for_who_text) + if for_who_text.nil? + fail ArgumentError, 'for_who_text cannot be nil' + end + + @for_who_text = for_who_text + end + + # Custom attribute writer method with validation + # @param [Object] feature_taglines Value to be assigned + def feature_taglines=(feature_taglines) + if feature_taglines.nil? + fail ArgumentError, 'feature_taglines cannot be nil' + end + + @feature_taglines = feature_taglines + end + + # Custom attribute writer method with validation + # @param [Object] has_auditing Value to be assigned + def has_auditing=(has_auditing) + if has_auditing.nil? + fail ArgumentError, 'has_auditing cannot be nil' + end + + @has_auditing = has_auditing + end + + # Custom attribute writer method with validation + # @param [Object] has_flex_pricing Value to be assigned + def has_flex_pricing=(has_flex_pricing) + if has_flex_pricing.nil? + fail ArgumentError, 'has_flex_pricing cannot be nil' + end + + @has_flex_pricing = has_flex_pricing + 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 && + _id == o._id && + name == o.name && + tenant_id == o.tenant_id && + created_at == o.created_at && + monthly_cost_usd == o.monthly_cost_usd && + yearly_cost_usd == o.yearly_cost_usd && + monthly_stripe_plan_id == o.monthly_stripe_plan_id && + yearly_stripe_plan_id == o.yearly_stripe_plan_id && + max_monthly_page_loads == o.max_monthly_page_loads && + max_monthly_api_credits == o.max_monthly_api_credits && + max_monthly_small_widgets_credits == o.max_monthly_small_widgets_credits && + max_monthly_comments == o.max_monthly_comments && + max_concurrent_users == o.max_concurrent_users && + max_tenant_users == o.max_tenant_users && + max_sso_users == o.max_sso_users && + max_moderators == o.max_moderators && + max_domains == o.max_domains && + max_white_labeled_tenants == o.max_white_labeled_tenants && + max_monthly_event_log_requests == o.max_monthly_event_log_requests && + has_white_labeling == o.has_white_labeling && + has_debranding == o.has_debranding && + has_llm_spam_detection == o.has_llm_spam_detection && + for_who_text == o.for_who_text && + feature_taglines == o.feature_taglines && + has_auditing == o.has_auditing && + has_flex_pricing == o.has_flex_pricing && + enable_saml == o.enable_saml && + flex_page_load_cost_cents == o.flex_page_load_cost_cents && + flex_page_load_unit == o.flex_page_load_unit && + flex_comment_cost_cents == o.flex_comment_cost_cents && + flex_comment_unit == o.flex_comment_unit && + flex_sso_user_cost_cents == o.flex_sso_user_cost_cents && + flex_sso_user_unit == o.flex_sso_user_unit && + flex_api_credit_cost_cents == o.flex_api_credit_cost_cents && + flex_api_credit_unit == o.flex_api_credit_unit && + flex_small_widgets_credit_cost_cents == o.flex_small_widgets_credit_cost_cents && + flex_small_widgets_credit_unit == o.flex_small_widgets_credit_unit && + flex_moderator_cost_cents == o.flex_moderator_cost_cents && + flex_moderator_unit == o.flex_moderator_unit && + flex_admin_cost_cents == o.flex_admin_cost_cents && + flex_admin_unit == o.flex_admin_unit && + flex_domain_cost_cents == o.flex_domain_cost_cents && + flex_domain_unit == o.flex_domain_unit && + flex_chat_gpt_cost_cents == o.flex_chat_gpt_cost_cents && + flex_chat_gpt_unit == o.flex_chat_gpt_unit && + flex_minimum_cost_cents == o.flex_minimum_cost_cents && + flex_managed_tenant_cost_cents == o.flex_managed_tenant_cost_cents && + flex_sso_admin_cost_cents == o.flex_sso_admin_cost_cents && + flex_sso_admin_unit == o.flex_sso_admin_unit && + flex_sso_moderator_cost_cents == o.flex_sso_moderator_cost_cents && + flex_sso_moderator_unit == o.flex_sso_moderator_unit && + is_sso_billing_monthly_active_users == o.is_sso_billing_monthly_active_users + 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 + [_id, name, tenant_id, created_at, monthly_cost_usd, yearly_cost_usd, monthly_stripe_plan_id, yearly_stripe_plan_id, max_monthly_page_loads, max_monthly_api_credits, max_monthly_small_widgets_credits, max_monthly_comments, max_concurrent_users, max_tenant_users, max_sso_users, max_moderators, max_domains, max_white_labeled_tenants, max_monthly_event_log_requests, has_white_labeling, has_debranding, has_llm_spam_detection, for_who_text, feature_taglines, has_auditing, has_flex_pricing, enable_saml, flex_page_load_cost_cents, flex_page_load_unit, flex_comment_cost_cents, flex_comment_unit, flex_sso_user_cost_cents, flex_sso_user_unit, flex_api_credit_cost_cents, flex_api_credit_unit, flex_small_widgets_credit_cost_cents, flex_small_widgets_credit_unit, flex_moderator_cost_cents, flex_moderator_unit, flex_admin_cost_cents, flex_admin_unit, flex_domain_cost_cents, flex_domain_unit, flex_chat_gpt_cost_cents, flex_chat_gpt_unit, flex_minimum_cost_cents, flex_managed_tenant_cost_cents, flex_sso_admin_cost_cents, flex_sso_admin_unit, flex_sso_moderator_cost_cents, flex_sso_moderator_unit, is_sso_billing_monthly_active_users].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/update_email_template_body.rb b/client/lib/fastcomments-client/models/update_email_template_body.rb new file mode 100644 index 0000000..c08f09c --- /dev/null +++ b/client/lib/fastcomments-client/models/update_email_template_body.rb @@ -0,0 +1,198 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class UpdateEmailTemplateBody < ApiModelBase + attr_accessor :email_template_id + + attr_accessor :display_name + + attr_accessor :ejs + + attr_accessor :domain + + # Construct a type with a set of properties K of type T + attr_accessor :translation_overrides_by_locale + + # Construct a type with a set of properties K of type T + attr_accessor :test_data + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'email_template_id' => :'emailTemplateId', + :'display_name' => :'displayName', + :'ejs' => :'ejs', + :'domain' => :'domain', + :'translation_overrides_by_locale' => :'translationOverridesByLocale', + :'test_data' => :'testData' + } + 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 + { + :'email_template_id' => :'String', + :'display_name' => :'String', + :'ejs' => :'String', + :'domain' => :'String', + :'translation_overrides_by_locale' => :'Hash', + :'test_data' => :'Hash' + } + 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::UpdateEmailTemplateBody` 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::UpdateEmailTemplateBody`. 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?(:'email_template_id') + self.email_template_id = attributes[:'email_template_id'] + end + + if attributes.key?(:'display_name') + self.display_name = attributes[:'display_name'] + end + + if attributes.key?(:'ejs') + self.ejs = attributes[:'ejs'] + end + + if attributes.key?(:'domain') + self.domain = attributes[:'domain'] + end + + if attributes.key?(:'translation_overrides_by_locale') + if (value = attributes[:'translation_overrides_by_locale']).is_a?(Hash) + self.translation_overrides_by_locale = value + end + end + + if attributes.key?(:'test_data') + if (value = attributes[:'test_data']).is_a?(Hash) + self.test_data = value + end + 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 + 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' + true + 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 && + email_template_id == o.email_template_id && + display_name == o.display_name && + ejs == o.ejs && + domain == o.domain && + translation_overrides_by_locale == o.translation_overrides_by_locale && + test_data == o.test_data + 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 + [email_template_id, display_name, ejs, domain, translation_overrides_by_locale, test_data].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/update_hash_tag_body.rb b/client/lib/fastcomments-client/models/update_hash_tag_body.rb new file mode 100644 index 0000000..42fc603 --- /dev/null +++ b/client/lib/fastcomments-client/models/update_hash_tag_body.rb @@ -0,0 +1,165 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class UpdateHashTagBody < ApiModelBase + attr_accessor :tenant_id + + attr_accessor :url + + attr_accessor :tag + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'tenant_id' => :'tenantId', + :'url' => :'url', + :'tag' => :'tag' + } + 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 + { + :'tenant_id' => :'String', + :'url' => :'String', + :'tag' => :'String' + } + 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::UpdateHashTagBody` 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::UpdateHashTagBody`. 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?(:'tenant_id') + self.tenant_id = attributes[:'tenant_id'] + end + + if attributes.key?(:'url') + self.url = attributes[:'url'] + end + + if attributes.key?(:'tag') + self.tag = attributes[:'tag'] + 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 + 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' + true + 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 && + tenant_id == o.tenant_id && + url == o.url && + tag == o.tag + 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 + [tenant_id, url, tag].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/update_hash_tag_response.rb b/client/lib/fastcomments-client/models/update_hash_tag_response.rb new file mode 100644 index 0000000..0fb13f9 --- /dev/null +++ b/client/lib/fastcomments-client/models/update_hash_tag_response.rb @@ -0,0 +1,212 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class UpdateHashTagResponse < ApiModelBase + attr_accessor :status + + attr_accessor :hash_tag + + 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', + :'hash_tag' => :'hashTag' + } + 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', + :'hash_tag' => :'TenantHashTag' + } + 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::UpdateHashTagResponse` 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::UpdateHashTagResponse`. 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 + + if attributes.key?(:'hash_tag') + self.hash_tag = attributes[:'hash_tag'] + else + self.hash_tag = 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 + + if @hash_tag.nil? + invalid_properties.push('invalid value for "hash_tag", hash_tag 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? + return false if @hash_tag.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 + + # Custom attribute writer method with validation + # @param [Object] hash_tag Value to be assigned + def hash_tag=(hash_tag) + if hash_tag.nil? + fail ArgumentError, 'hash_tag cannot be nil' + end + + @hash_tag = hash_tag + 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 && + hash_tag == o.hash_tag + 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_tag].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/update_moderator_body.rb b/client/lib/fastcomments-client/models/update_moderator_body.rb new file mode 100644 index 0000000..8f82e4d --- /dev/null +++ b/client/lib/fastcomments-client/models/update_moderator_body.rb @@ -0,0 +1,176 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class UpdateModeratorBody < ApiModelBase + attr_accessor :name + + attr_accessor :email + + attr_accessor :user_id + + attr_accessor :moderation_group_ids + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'name' => :'name', + :'email' => :'email', + :'user_id' => :'userId', + :'moderation_group_ids' => :'moderationGroupIds' + } + 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 + { + :'name' => :'String', + :'email' => :'String', + :'user_id' => :'String', + :'moderation_group_ids' => :'Array' + } + 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::UpdateModeratorBody` 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::UpdateModeratorBody`. 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?(:'name') + self.name = attributes[:'name'] + end + + if attributes.key?(:'email') + self.email = attributes[:'email'] + end + + if attributes.key?(:'user_id') + self.user_id = attributes[:'user_id'] + end + + if attributes.key?(:'moderation_group_ids') + if (value = attributes[:'moderation_group_ids']).is_a?(Array) + self.moderation_group_ids = value + end + 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 + 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' + true + 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 && + name == o.name && + email == o.email && + user_id == o.user_id && + moderation_group_ids == o.moderation_group_ids + 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 + [name, email, user_id, moderation_group_ids].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/update_notification_body.rb b/client/lib/fastcomments-client/models/update_notification_body.rb new file mode 100644 index 0000000..8d5c56d --- /dev/null +++ b/client/lib/fastcomments-client/models/update_notification_body.rb @@ -0,0 +1,156 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class UpdateNotificationBody < ApiModelBase + attr_accessor :viewed + + attr_accessor :opted_out + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'viewed' => :'viewed', + :'opted_out' => :'optedOut' + } + 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 + { + :'viewed' => :'Boolean', + :'opted_out' => :'Boolean' + } + 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::UpdateNotificationBody` 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::UpdateNotificationBody`. 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?(:'viewed') + self.viewed = attributes[:'viewed'] + end + + if attributes.key?(:'opted_out') + self.opted_out = attributes[:'opted_out'] + 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 + 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' + true + 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 && + viewed == o.viewed && + opted_out == o.opted_out + 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 + [viewed, opted_out].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/update_question_config_body.rb b/client/lib/fastcomments-client/models/update_question_config_body.rb new file mode 100644 index 0000000..a0ad2e6 --- /dev/null +++ b/client/lib/fastcomments-client/models/update_question_config_body.rb @@ -0,0 +1,268 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class UpdateQuestionConfigBody < ApiModelBase + attr_accessor :name + + attr_accessor :question + + attr_accessor :help_text + + attr_accessor :type + + attr_accessor :num_stars + + attr_accessor :min + + attr_accessor :max + + attr_accessor :default_value + + attr_accessor :label_negative + + attr_accessor :label_positive + + attr_accessor :custom_options + + attr_accessor :sub_question_ids + + attr_accessor :always_show_sub_questions + + attr_accessor :reporting_order + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'name' => :'name', + :'question' => :'question', + :'help_text' => :'helpText', + :'type' => :'type', + :'num_stars' => :'numStars', + :'min' => :'min', + :'max' => :'max', + :'default_value' => :'defaultValue', + :'label_negative' => :'labelNegative', + :'label_positive' => :'labelPositive', + :'custom_options' => :'customOptions', + :'sub_question_ids' => :'subQuestionIds', + :'always_show_sub_questions' => :'alwaysShowSubQuestions', + :'reporting_order' => :'reportingOrder' + } + 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 + { + :'name' => :'String', + :'question' => :'String', + :'help_text' => :'String', + :'type' => :'String', + :'num_stars' => :'Float', + :'min' => :'Float', + :'max' => :'Float', + :'default_value' => :'Float', + :'label_negative' => :'String', + :'label_positive' => :'String', + :'custom_options' => :'Array', + :'sub_question_ids' => :'Array', + :'always_show_sub_questions' => :'Boolean', + :'reporting_order' => :'Float' + } + 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::UpdateQuestionConfigBody` 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::UpdateQuestionConfigBody`. 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?(:'name') + self.name = attributes[:'name'] + end + + if attributes.key?(:'question') + self.question = attributes[:'question'] + end + + if attributes.key?(:'help_text') + self.help_text = attributes[:'help_text'] + end + + if attributes.key?(:'type') + self.type = attributes[:'type'] + end + + if attributes.key?(:'num_stars') + self.num_stars = attributes[:'num_stars'] + end + + if attributes.key?(:'min') + self.min = attributes[:'min'] + end + + if attributes.key?(:'max') + self.max = attributes[:'max'] + end + + if attributes.key?(:'default_value') + self.default_value = attributes[:'default_value'] + end + + if attributes.key?(:'label_negative') + self.label_negative = attributes[:'label_negative'] + end + + if attributes.key?(:'label_positive') + self.label_positive = attributes[:'label_positive'] + end + + if attributes.key?(:'custom_options') + if (value = attributes[:'custom_options']).is_a?(Array) + self.custom_options = value + end + end + + if attributes.key?(:'sub_question_ids') + if (value = attributes[:'sub_question_ids']).is_a?(Array) + self.sub_question_ids = value + end + end + + if attributes.key?(:'always_show_sub_questions') + self.always_show_sub_questions = attributes[:'always_show_sub_questions'] + end + + if attributes.key?(:'reporting_order') + self.reporting_order = attributes[:'reporting_order'] + 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 + 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' + true + 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 && + name == o.name && + question == o.question && + help_text == o.help_text && + type == o.type && + num_stars == o.num_stars && + min == o.min && + max == o.max && + default_value == o.default_value && + label_negative == o.label_negative && + label_positive == o.label_positive && + custom_options == o.custom_options && + sub_question_ids == o.sub_question_ids && + always_show_sub_questions == o.always_show_sub_questions && + reporting_order == o.reporting_order + 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 + [name, question, help_text, type, num_stars, min, max, default_value, label_negative, label_positive, custom_options, sub_question_ids, always_show_sub_questions, reporting_order].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/update_question_result_body.rb b/client/lib/fastcomments-client/models/update_question_result_body.rb new file mode 100644 index 0000000..03a051d --- /dev/null +++ b/client/lib/fastcomments-client/models/update_question_result_body.rb @@ -0,0 +1,204 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class UpdateQuestionResultBody < ApiModelBase + attr_accessor :url_id + + attr_accessor :anon_user_id + + attr_accessor :user_id + + attr_accessor :value + + attr_accessor :comment_id + + attr_accessor :question_id + + attr_accessor :meta + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'url_id' => :'urlId', + :'anon_user_id' => :'anonUserId', + :'user_id' => :'userId', + :'value' => :'value', + :'comment_id' => :'commentId', + :'question_id' => :'questionId', + :'meta' => :'meta' + } + 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 + { + :'url_id' => :'String', + :'anon_user_id' => :'String', + :'user_id' => :'String', + :'value' => :'Float', + :'comment_id' => :'String', + :'question_id' => :'String', + :'meta' => :'Array' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'meta' + ]) + 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::UpdateQuestionResultBody` 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::UpdateQuestionResultBody`. 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?(:'url_id') + self.url_id = attributes[:'url_id'] + end + + if attributes.key?(:'anon_user_id') + self.anon_user_id = attributes[:'anon_user_id'] + end + + if attributes.key?(:'user_id') + self.user_id = attributes[:'user_id'] + end + + if attributes.key?(:'value') + self.value = attributes[:'value'] + end + + if attributes.key?(:'comment_id') + self.comment_id = attributes[:'comment_id'] + end + + if attributes.key?(:'question_id') + self.question_id = attributes[:'question_id'] + end + + if attributes.key?(:'meta') + if (value = attributes[:'meta']).is_a?(Array) + self.meta = value + end + 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 + 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' + true + 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 && + url_id == o.url_id && + anon_user_id == o.anon_user_id && + user_id == o.user_id && + value == o.value && + comment_id == o.comment_id && + question_id == o.question_id && + meta == o.meta + 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 + [url_id, anon_user_id, user_id, value, comment_id, question_id, meta].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/update_tenant_body.rb b/client/lib/fastcomments-client/models/update_tenant_body.rb new file mode 100644 index 0000000..a54bec6 --- /dev/null +++ b/client/lib/fastcomments-client/models/update_tenant_body.rb @@ -0,0 +1,359 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class UpdateTenantBody < ApiModelBase + attr_accessor :name + + attr_accessor :email + + attr_accessor :sign_up_date + + attr_accessor :package_id + + attr_accessor :payment_frequency + + attr_accessor :billing_info_valid + + attr_accessor :billing_handled_externally + + attr_accessor :created_by + + attr_accessor :is_setup + + attr_accessor :domain_configuration + + attr_accessor :billing_info + + attr_accessor :stripe_customer_id + + attr_accessor :stripe_subscription_id + + attr_accessor :stripe_plan_id + + attr_accessor :enable_profanity_filter + + attr_accessor :enable_spam_filter + + attr_accessor :remove_unverified_comments + + attr_accessor :unverified_comments_tt_lms + + attr_accessor :comments_require_approval + + attr_accessor :auto_approve_comment_on_verification + + attr_accessor :send_profane_to_spam + + attr_accessor :de_anon_ip_addr + + # Construct a type with a set of properties K of type T + attr_accessor :meta + + attr_accessor :managed_by_tenant_id + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'name' => :'name', + :'email' => :'email', + :'sign_up_date' => :'signUpDate', + :'package_id' => :'packageId', + :'payment_frequency' => :'paymentFrequency', + :'billing_info_valid' => :'billingInfoValid', + :'billing_handled_externally' => :'billingHandledExternally', + :'created_by' => :'createdBy', + :'is_setup' => :'isSetup', + :'domain_configuration' => :'domainConfiguration', + :'billing_info' => :'billingInfo', + :'stripe_customer_id' => :'stripeCustomerId', + :'stripe_subscription_id' => :'stripeSubscriptionId', + :'stripe_plan_id' => :'stripePlanId', + :'enable_profanity_filter' => :'enableProfanityFilter', + :'enable_spam_filter' => :'enableSpamFilter', + :'remove_unverified_comments' => :'removeUnverifiedComments', + :'unverified_comments_tt_lms' => :'unverifiedCommentsTTLms', + :'comments_require_approval' => :'commentsRequireApproval', + :'auto_approve_comment_on_verification' => :'autoApproveCommentOnVerification', + :'send_profane_to_spam' => :'sendProfaneToSpam', + :'de_anon_ip_addr' => :'deAnonIpAddr', + :'meta' => :'meta', + :'managed_by_tenant_id' => :'managedByTenantId' + } + 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 + { + :'name' => :'String', + :'email' => :'String', + :'sign_up_date' => :'Float', + :'package_id' => :'String', + :'payment_frequency' => :'Float', + :'billing_info_valid' => :'Boolean', + :'billing_handled_externally' => :'Boolean', + :'created_by' => :'String', + :'is_setup' => :'Boolean', + :'domain_configuration' => :'Array', + :'billing_info' => :'BillingInfo', + :'stripe_customer_id' => :'String', + :'stripe_subscription_id' => :'String', + :'stripe_plan_id' => :'String', + :'enable_profanity_filter' => :'Boolean', + :'enable_spam_filter' => :'Boolean', + :'remove_unverified_comments' => :'Boolean', + :'unverified_comments_tt_lms' => :'Float', + :'comments_require_approval' => :'Boolean', + :'auto_approve_comment_on_verification' => :'Boolean', + :'send_profane_to_spam' => :'Boolean', + :'de_anon_ip_addr' => :'Float', + :'meta' => :'Hash', + :'managed_by_tenant_id' => :'String' + } + 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::UpdateTenantBody` 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::UpdateTenantBody`. 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?(:'name') + self.name = attributes[:'name'] + end + + if attributes.key?(:'email') + self.email = attributes[:'email'] + end + + if attributes.key?(:'sign_up_date') + self.sign_up_date = attributes[:'sign_up_date'] + end + + if attributes.key?(:'package_id') + self.package_id = attributes[:'package_id'] + end + + if attributes.key?(:'payment_frequency') + self.payment_frequency = attributes[:'payment_frequency'] + end + + if attributes.key?(:'billing_info_valid') + self.billing_info_valid = attributes[:'billing_info_valid'] + end + + if attributes.key?(:'billing_handled_externally') + self.billing_handled_externally = attributes[:'billing_handled_externally'] + end + + if attributes.key?(:'created_by') + self.created_by = attributes[:'created_by'] + end + + if attributes.key?(:'is_setup') + self.is_setup = attributes[:'is_setup'] + end + + if attributes.key?(:'domain_configuration') + if (value = attributes[:'domain_configuration']).is_a?(Array) + self.domain_configuration = value + end + end + + if attributes.key?(:'billing_info') + self.billing_info = attributes[:'billing_info'] + end + + if attributes.key?(:'stripe_customer_id') + self.stripe_customer_id = attributes[:'stripe_customer_id'] + end + + if attributes.key?(:'stripe_subscription_id') + self.stripe_subscription_id = attributes[:'stripe_subscription_id'] + end + + if attributes.key?(:'stripe_plan_id') + self.stripe_plan_id = attributes[:'stripe_plan_id'] + end + + if attributes.key?(:'enable_profanity_filter') + self.enable_profanity_filter = attributes[:'enable_profanity_filter'] + end + + if attributes.key?(:'enable_spam_filter') + self.enable_spam_filter = attributes[:'enable_spam_filter'] + end + + if attributes.key?(:'remove_unverified_comments') + self.remove_unverified_comments = attributes[:'remove_unverified_comments'] + end + + if attributes.key?(:'unverified_comments_tt_lms') + self.unverified_comments_tt_lms = attributes[:'unverified_comments_tt_lms'] + end + + if attributes.key?(:'comments_require_approval') + self.comments_require_approval = attributes[:'comments_require_approval'] + end + + if attributes.key?(:'auto_approve_comment_on_verification') + self.auto_approve_comment_on_verification = attributes[:'auto_approve_comment_on_verification'] + end + + if attributes.key?(:'send_profane_to_spam') + self.send_profane_to_spam = attributes[:'send_profane_to_spam'] + end + + if attributes.key?(:'de_anon_ip_addr') + self.de_anon_ip_addr = attributes[:'de_anon_ip_addr'] + end + + if attributes.key?(:'meta') + if (value = attributes[:'meta']).is_a?(Hash) + self.meta = value + end + end + + if attributes.key?(:'managed_by_tenant_id') + self.managed_by_tenant_id = attributes[:'managed_by_tenant_id'] + 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 + 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' + true + 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 && + name == o.name && + email == o.email && + sign_up_date == o.sign_up_date && + package_id == o.package_id && + payment_frequency == o.payment_frequency && + billing_info_valid == o.billing_info_valid && + billing_handled_externally == o.billing_handled_externally && + created_by == o.created_by && + is_setup == o.is_setup && + domain_configuration == o.domain_configuration && + billing_info == o.billing_info && + stripe_customer_id == o.stripe_customer_id && + stripe_subscription_id == o.stripe_subscription_id && + stripe_plan_id == o.stripe_plan_id && + enable_profanity_filter == o.enable_profanity_filter && + enable_spam_filter == o.enable_spam_filter && + remove_unverified_comments == o.remove_unverified_comments && + unverified_comments_tt_lms == o.unverified_comments_tt_lms && + comments_require_approval == o.comments_require_approval && + auto_approve_comment_on_verification == o.auto_approve_comment_on_verification && + send_profane_to_spam == o.send_profane_to_spam && + de_anon_ip_addr == o.de_anon_ip_addr && + meta == o.meta && + managed_by_tenant_id == o.managed_by_tenant_id + 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 + [name, email, sign_up_date, package_id, payment_frequency, billing_info_valid, billing_handled_externally, created_by, is_setup, domain_configuration, billing_info, stripe_customer_id, stripe_subscription_id, stripe_plan_id, enable_profanity_filter, enable_spam_filter, remove_unverified_comments, unverified_comments_tt_lms, comments_require_approval, auto_approve_comment_on_verification, send_profane_to_spam, de_anon_ip_addr, meta, managed_by_tenant_id].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/update_tenant_package_body.rb b/client/lib/fastcomments-client/models/update_tenant_package_body.rb new file mode 100644 index 0000000..3eba6f7 --- /dev/null +++ b/client/lib/fastcomments-client/models/update_tenant_package_body.rb @@ -0,0 +1,419 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class UpdateTenantPackageBody < ApiModelBase + attr_accessor :name + + attr_accessor :monthly_cost_usd + + attr_accessor :yearly_cost_usd + + attr_accessor :max_monthly_page_loads + + attr_accessor :max_monthly_api_credits + + attr_accessor :max_monthly_comments + + attr_accessor :max_concurrent_users + + attr_accessor :max_tenant_users + + attr_accessor :max_sso_users + + attr_accessor :max_moderators + + attr_accessor :max_domains + + attr_accessor :has_debranding + + attr_accessor :has_white_labeling + + attr_accessor :for_who_text + + attr_accessor :feature_taglines + + attr_accessor :has_flex_pricing + + attr_accessor :flex_page_load_cost_cents + + attr_accessor :flex_page_load_unit + + attr_accessor :flex_comment_cost_cents + + attr_accessor :flex_comment_unit + + attr_accessor :flex_sso_user_cost_cents + + attr_accessor :flex_sso_user_unit + + attr_accessor :flex_api_credit_cost_cents + + attr_accessor :flex_api_credit_unit + + attr_accessor :flex_moderator_cost_cents + + attr_accessor :flex_moderator_unit + + attr_accessor :flex_admin_cost_cents + + attr_accessor :flex_admin_unit + + attr_accessor :flex_domain_cost_cents + + attr_accessor :flex_domain_unit + + attr_accessor :flex_minimum_cost_cents + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'name' => :'name', + :'monthly_cost_usd' => :'monthlyCostUSD', + :'yearly_cost_usd' => :'yearlyCostUSD', + :'max_monthly_page_loads' => :'maxMonthlyPageLoads', + :'max_monthly_api_credits' => :'maxMonthlyAPICredits', + :'max_monthly_comments' => :'maxMonthlyComments', + :'max_concurrent_users' => :'maxConcurrentUsers', + :'max_tenant_users' => :'maxTenantUsers', + :'max_sso_users' => :'maxSSOUsers', + :'max_moderators' => :'maxModerators', + :'max_domains' => :'maxDomains', + :'has_debranding' => :'hasDebranding', + :'has_white_labeling' => :'hasWhiteLabeling', + :'for_who_text' => :'forWhoText', + :'feature_taglines' => :'featureTaglines', + :'has_flex_pricing' => :'hasFlexPricing', + :'flex_page_load_cost_cents' => :'flexPageLoadCostCents', + :'flex_page_load_unit' => :'flexPageLoadUnit', + :'flex_comment_cost_cents' => :'flexCommentCostCents', + :'flex_comment_unit' => :'flexCommentUnit', + :'flex_sso_user_cost_cents' => :'flexSSOUserCostCents', + :'flex_sso_user_unit' => :'flexSSOUserUnit', + :'flex_api_credit_cost_cents' => :'flexAPICreditCostCents', + :'flex_api_credit_unit' => :'flexAPICreditUnit', + :'flex_moderator_cost_cents' => :'flexModeratorCostCents', + :'flex_moderator_unit' => :'flexModeratorUnit', + :'flex_admin_cost_cents' => :'flexAdminCostCents', + :'flex_admin_unit' => :'flexAdminUnit', + :'flex_domain_cost_cents' => :'flexDomainCostCents', + :'flex_domain_unit' => :'flexDomainUnit', + :'flex_minimum_cost_cents' => :'flexMinimumCostCents' + } + 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 + { + :'name' => :'String', + :'monthly_cost_usd' => :'Float', + :'yearly_cost_usd' => :'Float', + :'max_monthly_page_loads' => :'Float', + :'max_monthly_api_credits' => :'Float', + :'max_monthly_comments' => :'Float', + :'max_concurrent_users' => :'Float', + :'max_tenant_users' => :'Float', + :'max_sso_users' => :'Float', + :'max_moderators' => :'Float', + :'max_domains' => :'Float', + :'has_debranding' => :'Boolean', + :'has_white_labeling' => :'Boolean', + :'for_who_text' => :'String', + :'feature_taglines' => :'Array', + :'has_flex_pricing' => :'Boolean', + :'flex_page_load_cost_cents' => :'Float', + :'flex_page_load_unit' => :'Float', + :'flex_comment_cost_cents' => :'Float', + :'flex_comment_unit' => :'Float', + :'flex_sso_user_cost_cents' => :'Float', + :'flex_sso_user_unit' => :'Float', + :'flex_api_credit_cost_cents' => :'Float', + :'flex_api_credit_unit' => :'Float', + :'flex_moderator_cost_cents' => :'Float', + :'flex_moderator_unit' => :'Float', + :'flex_admin_cost_cents' => :'Float', + :'flex_admin_unit' => :'Float', + :'flex_domain_cost_cents' => :'Float', + :'flex_domain_unit' => :'Float', + :'flex_minimum_cost_cents' => :'Float' + } + 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::UpdateTenantPackageBody` 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::UpdateTenantPackageBody`. 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?(:'name') + self.name = attributes[:'name'] + end + + if attributes.key?(:'monthly_cost_usd') + self.monthly_cost_usd = attributes[:'monthly_cost_usd'] + end + + if attributes.key?(:'yearly_cost_usd') + self.yearly_cost_usd = attributes[:'yearly_cost_usd'] + end + + if attributes.key?(:'max_monthly_page_loads') + self.max_monthly_page_loads = attributes[:'max_monthly_page_loads'] + end + + if attributes.key?(:'max_monthly_api_credits') + self.max_monthly_api_credits = attributes[:'max_monthly_api_credits'] + end + + if attributes.key?(:'max_monthly_comments') + self.max_monthly_comments = attributes[:'max_monthly_comments'] + end + + if attributes.key?(:'max_concurrent_users') + self.max_concurrent_users = attributes[:'max_concurrent_users'] + end + + if attributes.key?(:'max_tenant_users') + self.max_tenant_users = attributes[:'max_tenant_users'] + end + + if attributes.key?(:'max_sso_users') + self.max_sso_users = attributes[:'max_sso_users'] + end + + if attributes.key?(:'max_moderators') + self.max_moderators = attributes[:'max_moderators'] + end + + if attributes.key?(:'max_domains') + self.max_domains = attributes[:'max_domains'] + end + + if attributes.key?(:'has_debranding') + self.has_debranding = attributes[:'has_debranding'] + end + + if attributes.key?(:'has_white_labeling') + self.has_white_labeling = attributes[:'has_white_labeling'] + end + + if attributes.key?(:'for_who_text') + self.for_who_text = attributes[:'for_who_text'] + end + + if attributes.key?(:'feature_taglines') + if (value = attributes[:'feature_taglines']).is_a?(Array) + self.feature_taglines = value + end + end + + if attributes.key?(:'has_flex_pricing') + self.has_flex_pricing = attributes[:'has_flex_pricing'] + end + + if attributes.key?(:'flex_page_load_cost_cents') + self.flex_page_load_cost_cents = attributes[:'flex_page_load_cost_cents'] + end + + if attributes.key?(:'flex_page_load_unit') + self.flex_page_load_unit = attributes[:'flex_page_load_unit'] + end + + if attributes.key?(:'flex_comment_cost_cents') + self.flex_comment_cost_cents = attributes[:'flex_comment_cost_cents'] + end + + if attributes.key?(:'flex_comment_unit') + self.flex_comment_unit = attributes[:'flex_comment_unit'] + end + + if attributes.key?(:'flex_sso_user_cost_cents') + self.flex_sso_user_cost_cents = attributes[:'flex_sso_user_cost_cents'] + end + + if attributes.key?(:'flex_sso_user_unit') + self.flex_sso_user_unit = attributes[:'flex_sso_user_unit'] + end + + if attributes.key?(:'flex_api_credit_cost_cents') + self.flex_api_credit_cost_cents = attributes[:'flex_api_credit_cost_cents'] + end + + if attributes.key?(:'flex_api_credit_unit') + self.flex_api_credit_unit = attributes[:'flex_api_credit_unit'] + end + + if attributes.key?(:'flex_moderator_cost_cents') + self.flex_moderator_cost_cents = attributes[:'flex_moderator_cost_cents'] + end + + if attributes.key?(:'flex_moderator_unit') + self.flex_moderator_unit = attributes[:'flex_moderator_unit'] + end + + if attributes.key?(:'flex_admin_cost_cents') + self.flex_admin_cost_cents = attributes[:'flex_admin_cost_cents'] + end + + if attributes.key?(:'flex_admin_unit') + self.flex_admin_unit = attributes[:'flex_admin_unit'] + end + + if attributes.key?(:'flex_domain_cost_cents') + self.flex_domain_cost_cents = attributes[:'flex_domain_cost_cents'] + end + + if attributes.key?(:'flex_domain_unit') + self.flex_domain_unit = attributes[:'flex_domain_unit'] + end + + if attributes.key?(:'flex_minimum_cost_cents') + self.flex_minimum_cost_cents = attributes[:'flex_minimum_cost_cents'] + 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 + 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' + true + 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 && + name == o.name && + monthly_cost_usd == o.monthly_cost_usd && + yearly_cost_usd == o.yearly_cost_usd && + max_monthly_page_loads == o.max_monthly_page_loads && + max_monthly_api_credits == o.max_monthly_api_credits && + max_monthly_comments == o.max_monthly_comments && + max_concurrent_users == o.max_concurrent_users && + max_tenant_users == o.max_tenant_users && + max_sso_users == o.max_sso_users && + max_moderators == o.max_moderators && + max_domains == o.max_domains && + has_debranding == o.has_debranding && + has_white_labeling == o.has_white_labeling && + for_who_text == o.for_who_text && + feature_taglines == o.feature_taglines && + has_flex_pricing == o.has_flex_pricing && + flex_page_load_cost_cents == o.flex_page_load_cost_cents && + flex_page_load_unit == o.flex_page_load_unit && + flex_comment_cost_cents == o.flex_comment_cost_cents && + flex_comment_unit == o.flex_comment_unit && + flex_sso_user_cost_cents == o.flex_sso_user_cost_cents && + flex_sso_user_unit == o.flex_sso_user_unit && + flex_api_credit_cost_cents == o.flex_api_credit_cost_cents && + flex_api_credit_unit == o.flex_api_credit_unit && + flex_moderator_cost_cents == o.flex_moderator_cost_cents && + flex_moderator_unit == o.flex_moderator_unit && + flex_admin_cost_cents == o.flex_admin_cost_cents && + flex_admin_unit == o.flex_admin_unit && + flex_domain_cost_cents == o.flex_domain_cost_cents && + flex_domain_unit == o.flex_domain_unit && + flex_minimum_cost_cents == o.flex_minimum_cost_cents + 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 + [name, monthly_cost_usd, yearly_cost_usd, max_monthly_page_loads, max_monthly_api_credits, max_monthly_comments, max_concurrent_users, max_tenant_users, max_sso_users, max_moderators, max_domains, has_debranding, has_white_labeling, for_who_text, feature_taglines, has_flex_pricing, flex_page_load_cost_cents, flex_page_load_unit, flex_comment_cost_cents, flex_comment_unit, flex_sso_user_cost_cents, flex_sso_user_unit, flex_api_credit_cost_cents, flex_api_credit_unit, flex_moderator_cost_cents, flex_moderator_unit, flex_admin_cost_cents, flex_admin_unit, flex_domain_cost_cents, flex_domain_unit, flex_minimum_cost_cents].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/update_tenant_user_body.rb b/client/lib/fastcomments-client/models/update_tenant_user_body.rb new file mode 100644 index 0000000..dd3240a --- /dev/null +++ b/client/lib/fastcomments-client/models/update_tenant_user_body.rb @@ -0,0 +1,356 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class UpdateTenantUserBody < ApiModelBase + attr_accessor :username + + attr_accessor :display_name + + attr_accessor :website_url + + attr_accessor :email + + attr_accessor :sign_up_date + + attr_accessor :verified + + attr_accessor :login_count + + attr_accessor :opted_in_notifications + + attr_accessor :opted_in_tenant_notifications + + attr_accessor :hide_account_code + + attr_accessor :avatar_src + + attr_accessor :is_help_request_admin + + attr_accessor :is_account_owner + + attr_accessor :is_admin_admin + + attr_accessor :is_billing_admin + + attr_accessor :is_analytics_admin + + attr_accessor :is_customization_admin + + attr_accessor :is_manage_data_admin + + attr_accessor :is_comment_moderator_admin + + attr_accessor :is_api_admin + + attr_accessor :moderator_ids + + attr_accessor :locale + + attr_accessor :digest_email_frequency + + attr_accessor :display_label + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'username' => :'username', + :'display_name' => :'displayName', + :'website_url' => :'websiteUrl', + :'email' => :'email', + :'sign_up_date' => :'signUpDate', + :'verified' => :'verified', + :'login_count' => :'loginCount', + :'opted_in_notifications' => :'optedInNotifications', + :'opted_in_tenant_notifications' => :'optedInTenantNotifications', + :'hide_account_code' => :'hideAccountCode', + :'avatar_src' => :'avatarSrc', + :'is_help_request_admin' => :'isHelpRequestAdmin', + :'is_account_owner' => :'isAccountOwner', + :'is_admin_admin' => :'isAdminAdmin', + :'is_billing_admin' => :'isBillingAdmin', + :'is_analytics_admin' => :'isAnalyticsAdmin', + :'is_customization_admin' => :'isCustomizationAdmin', + :'is_manage_data_admin' => :'isManageDataAdmin', + :'is_comment_moderator_admin' => :'isCommentModeratorAdmin', + :'is_api_admin' => :'isAPIAdmin', + :'moderator_ids' => :'moderatorIds', + :'locale' => :'locale', + :'digest_email_frequency' => :'digestEmailFrequency', + :'display_label' => :'displayLabel' + } + 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 + { + :'username' => :'String', + :'display_name' => :'String', + :'website_url' => :'String', + :'email' => :'String', + :'sign_up_date' => :'Float', + :'verified' => :'Boolean', + :'login_count' => :'Float', + :'opted_in_notifications' => :'Boolean', + :'opted_in_tenant_notifications' => :'Boolean', + :'hide_account_code' => :'Boolean', + :'avatar_src' => :'String', + :'is_help_request_admin' => :'Boolean', + :'is_account_owner' => :'Boolean', + :'is_admin_admin' => :'Boolean', + :'is_billing_admin' => :'Boolean', + :'is_analytics_admin' => :'Boolean', + :'is_customization_admin' => :'Boolean', + :'is_manage_data_admin' => :'Boolean', + :'is_comment_moderator_admin' => :'Boolean', + :'is_api_admin' => :'Boolean', + :'moderator_ids' => :'Array', + :'locale' => :'String', + :'digest_email_frequency' => :'Float', + :'display_label' => :'String' + } + 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::UpdateTenantUserBody` 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::UpdateTenantUserBody`. 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?(:'username') + self.username = attributes[:'username'] + end + + if attributes.key?(:'display_name') + self.display_name = attributes[:'display_name'] + end + + if attributes.key?(:'website_url') + self.website_url = attributes[:'website_url'] + end + + if attributes.key?(:'email') + self.email = attributes[:'email'] + end + + if attributes.key?(:'sign_up_date') + self.sign_up_date = attributes[:'sign_up_date'] + end + + if attributes.key?(:'verified') + self.verified = attributes[:'verified'] + end + + if attributes.key?(:'login_count') + self.login_count = attributes[:'login_count'] + end + + if attributes.key?(:'opted_in_notifications') + self.opted_in_notifications = attributes[:'opted_in_notifications'] + end + + if attributes.key?(:'opted_in_tenant_notifications') + self.opted_in_tenant_notifications = attributes[:'opted_in_tenant_notifications'] + end + + if attributes.key?(:'hide_account_code') + self.hide_account_code = attributes[:'hide_account_code'] + end + + if attributes.key?(:'avatar_src') + self.avatar_src = attributes[:'avatar_src'] + end + + if attributes.key?(:'is_help_request_admin') + self.is_help_request_admin = attributes[:'is_help_request_admin'] + end + + if attributes.key?(:'is_account_owner') + self.is_account_owner = attributes[:'is_account_owner'] + end + + if attributes.key?(:'is_admin_admin') + self.is_admin_admin = attributes[:'is_admin_admin'] + end + + if attributes.key?(:'is_billing_admin') + self.is_billing_admin = attributes[:'is_billing_admin'] + end + + if attributes.key?(:'is_analytics_admin') + self.is_analytics_admin = attributes[:'is_analytics_admin'] + end + + if attributes.key?(:'is_customization_admin') + self.is_customization_admin = attributes[:'is_customization_admin'] + end + + if attributes.key?(:'is_manage_data_admin') + self.is_manage_data_admin = attributes[:'is_manage_data_admin'] + end + + if attributes.key?(:'is_comment_moderator_admin') + self.is_comment_moderator_admin = attributes[:'is_comment_moderator_admin'] + end + + if attributes.key?(:'is_api_admin') + self.is_api_admin = attributes[:'is_api_admin'] + end + + if attributes.key?(:'moderator_ids') + if (value = attributes[:'moderator_ids']).is_a?(Array) + self.moderator_ids = value + end + end + + if attributes.key?(:'locale') + self.locale = attributes[:'locale'] + end + + if attributes.key?(:'digest_email_frequency') + self.digest_email_frequency = attributes[:'digest_email_frequency'] + end + + if attributes.key?(:'display_label') + self.display_label = attributes[:'display_label'] + 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 + 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' + true + 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 && + username == o.username && + display_name == o.display_name && + website_url == o.website_url && + email == o.email && + sign_up_date == o.sign_up_date && + verified == o.verified && + login_count == o.login_count && + opted_in_notifications == o.opted_in_notifications && + opted_in_tenant_notifications == o.opted_in_tenant_notifications && + hide_account_code == o.hide_account_code && + avatar_src == o.avatar_src && + is_help_request_admin == o.is_help_request_admin && + is_account_owner == o.is_account_owner && + is_admin_admin == o.is_admin_admin && + is_billing_admin == o.is_billing_admin && + is_analytics_admin == o.is_analytics_admin && + is_customization_admin == o.is_customization_admin && + is_manage_data_admin == o.is_manage_data_admin && + is_comment_moderator_admin == o.is_comment_moderator_admin && + is_api_admin == o.is_api_admin && + moderator_ids == o.moderator_ids && + locale == o.locale && + digest_email_frequency == o.digest_email_frequency && + display_label == o.display_label + 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 + [username, display_name, website_url, email, sign_up_date, verified, login_count, opted_in_notifications, opted_in_tenant_notifications, hide_account_code, avatar_src, is_help_request_admin, is_account_owner, is_admin_admin, is_billing_admin, is_analytics_admin, is_customization_admin, is_manage_data_admin, is_comment_moderator_admin, is_api_admin, moderator_ids, locale, digest_email_frequency, display_label].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/user.rb b/client/lib/fastcomments-client/models/user.rb new file mode 100644 index 0000000..5d37fc7 --- /dev/null +++ b/client/lib/fastcomments-client/models/user.rb @@ -0,0 +1,753 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class User < ApiModelBase + attr_accessor :_id + + attr_accessor :tenant_id + + attr_accessor :username + + attr_accessor :display_name + + attr_accessor :website_url + + attr_accessor :email + + attr_accessor :pending_email + + attr_accessor :sign_up_date + + attr_accessor :created_from_url_id + + attr_accessor :created_from_tenant_id + + attr_accessor :created_from_ip_hashed + + attr_accessor :verified + + attr_accessor :login_id + + attr_accessor :login_id_date + + attr_accessor :login_count + + attr_accessor :opted_in_notifications + + attr_accessor :opted_in_tenant_notifications + + attr_accessor :hide_account_code + + attr_accessor :avatar_src + + attr_accessor :is_fast_comments_help_request_admin + + attr_accessor :is_help_request_admin + + attr_accessor :is_account_owner + + attr_accessor :is_admin_admin + + attr_accessor :is_billing_admin + + attr_accessor :is_analytics_admin + + attr_accessor :is_customization_admin + + attr_accessor :is_manage_data_admin + + attr_accessor :is_comment_moderator_admin + + attr_accessor :is_api_admin + + attr_accessor :moderator_ids + + attr_accessor :is_impersonator + + attr_accessor :is_coupon_manager + + attr_accessor :locale + + attr_accessor :digest_email_frequency + + attr_accessor :ignored_add_to_my_site_messages + + attr_accessor :last_login_date + + attr_accessor :display_label + + attr_accessor :is_profile_activity_private + + attr_accessor :is_profile_comments_private + + attr_accessor :is_profile_dm_disabled + + attr_accessor :profile_comment_approval_mode + + attr_accessor :karma + + attr_accessor :password_hash + + attr_accessor :average_ticket_ack_time_ms + + attr_accessor :has_blocked_users + + attr_accessor :bio + + attr_accessor :header_background_src + + attr_accessor :country_code + + attr_accessor :country_flag + + attr_accessor :social_links + + attr_accessor :has_two_factor + + 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 + { + :'_id' => :'_id', + :'tenant_id' => :'tenantId', + :'username' => :'username', + :'display_name' => :'displayName', + :'website_url' => :'websiteUrl', + :'email' => :'email', + :'pending_email' => :'pendingEmail', + :'sign_up_date' => :'signUpDate', + :'created_from_url_id' => :'createdFromUrlId', + :'created_from_tenant_id' => :'createdFromTenantId', + :'created_from_ip_hashed' => :'createdFromIpHashed', + :'verified' => :'verified', + :'login_id' => :'loginId', + :'login_id_date' => :'loginIdDate', + :'login_count' => :'loginCount', + :'opted_in_notifications' => :'optedInNotifications', + :'opted_in_tenant_notifications' => :'optedInTenantNotifications', + :'hide_account_code' => :'hideAccountCode', + :'avatar_src' => :'avatarSrc', + :'is_fast_comments_help_request_admin' => :'isFastCommentsHelpRequestAdmin', + :'is_help_request_admin' => :'isHelpRequestAdmin', + :'is_account_owner' => :'isAccountOwner', + :'is_admin_admin' => :'isAdminAdmin', + :'is_billing_admin' => :'isBillingAdmin', + :'is_analytics_admin' => :'isAnalyticsAdmin', + :'is_customization_admin' => :'isCustomizationAdmin', + :'is_manage_data_admin' => :'isManageDataAdmin', + :'is_comment_moderator_admin' => :'isCommentModeratorAdmin', + :'is_api_admin' => :'isAPIAdmin', + :'moderator_ids' => :'moderatorIds', + :'is_impersonator' => :'isImpersonator', + :'is_coupon_manager' => :'isCouponManager', + :'locale' => :'locale', + :'digest_email_frequency' => :'digestEmailFrequency', + :'ignored_add_to_my_site_messages' => :'ignoredAddToMySiteMessages', + :'last_login_date' => :'lastLoginDate', + :'display_label' => :'displayLabel', + :'is_profile_activity_private' => :'isProfileActivityPrivate', + :'is_profile_comments_private' => :'isProfileCommentsPrivate', + :'is_profile_dm_disabled' => :'isProfileDMDisabled', + :'profile_comment_approval_mode' => :'profileCommentApprovalMode', + :'karma' => :'karma', + :'password_hash' => :'passwordHash', + :'average_ticket_ack_time_ms' => :'averageTicketAckTimeMS', + :'has_blocked_users' => :'hasBlockedUsers', + :'bio' => :'bio', + :'header_background_src' => :'headerBackgroundSrc', + :'country_code' => :'countryCode', + :'country_flag' => :'countryFlag', + :'social_links' => :'socialLinks', + :'has_two_factor' => :'hasTwoFactor' + } + 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 + { + :'_id' => :'String', + :'tenant_id' => :'String', + :'username' => :'String', + :'display_name' => :'String', + :'website_url' => :'String', + :'email' => :'String', + :'pending_email' => :'String', + :'sign_up_date' => :'Integer', + :'created_from_url_id' => :'String', + :'created_from_tenant_id' => :'String', + :'created_from_ip_hashed' => :'String', + :'verified' => :'Boolean', + :'login_id' => :'String', + :'login_id_date' => :'Integer', + :'login_count' => :'Integer', + :'opted_in_notifications' => :'Boolean', + :'opted_in_tenant_notifications' => :'Boolean', + :'hide_account_code' => :'Boolean', + :'avatar_src' => :'String', + :'is_fast_comments_help_request_admin' => :'Boolean', + :'is_help_request_admin' => :'Boolean', + :'is_account_owner' => :'Boolean', + :'is_admin_admin' => :'Boolean', + :'is_billing_admin' => :'Boolean', + :'is_analytics_admin' => :'Boolean', + :'is_customization_admin' => :'Boolean', + :'is_manage_data_admin' => :'Boolean', + :'is_comment_moderator_admin' => :'Boolean', + :'is_api_admin' => :'Boolean', + :'moderator_ids' => :'Array', + :'is_impersonator' => :'Boolean', + :'is_coupon_manager' => :'Boolean', + :'locale' => :'String', + :'digest_email_frequency' => :'DigestEmailFrequency', + :'ignored_add_to_my_site_messages' => :'Boolean', + :'last_login_date' => :'Time', + :'display_label' => :'String', + :'is_profile_activity_private' => :'Boolean', + :'is_profile_comments_private' => :'Boolean', + :'is_profile_dm_disabled' => :'Boolean', + :'profile_comment_approval_mode' => :'Float', + :'karma' => :'Float', + :'password_hash' => :'String', + :'average_ticket_ack_time_ms' => :'Float', + :'has_blocked_users' => :'Boolean', + :'bio' => :'String', + :'header_background_src' => :'String', + :'country_code' => :'String', + :'country_flag' => :'String', + :'social_links' => :'Array', + :'has_two_factor' => :'Boolean' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'tenant_id', + :'website_url', + :'email', + :'created_from_url_id', + :'created_from_tenant_id', + :'avatar_src', + :'average_ticket_ack_time_ms', + ]) + 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::User` 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::User`. 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?(:'_id') + self._id = attributes[:'_id'] + else + self._id = nil + end + + if attributes.key?(:'tenant_id') + self.tenant_id = attributes[:'tenant_id'] + end + + if attributes.key?(:'username') + self.username = attributes[:'username'] + else + self.username = nil + end + + if attributes.key?(:'display_name') + self.display_name = attributes[:'display_name'] + end + + if attributes.key?(:'website_url') + self.website_url = attributes[:'website_url'] + end + + if attributes.key?(:'email') + self.email = attributes[:'email'] + else + self.email = nil + end + + if attributes.key?(:'pending_email') + self.pending_email = attributes[:'pending_email'] + end + + if attributes.key?(:'sign_up_date') + self.sign_up_date = attributes[:'sign_up_date'] + else + self.sign_up_date = nil + end + + if attributes.key?(:'created_from_url_id') + self.created_from_url_id = attributes[:'created_from_url_id'] + end + + if attributes.key?(:'created_from_tenant_id') + self.created_from_tenant_id = attributes[:'created_from_tenant_id'] + else + self.created_from_tenant_id = nil + end + + if attributes.key?(:'created_from_ip_hashed') + self.created_from_ip_hashed = attributes[:'created_from_ip_hashed'] + else + self.created_from_ip_hashed = nil + end + + if attributes.key?(:'verified') + self.verified = attributes[:'verified'] + else + self.verified = nil + end + + if attributes.key?(:'login_id') + self.login_id = attributes[:'login_id'] + else + self.login_id = nil + end + + if attributes.key?(:'login_id_date') + self.login_id_date = attributes[:'login_id_date'] + else + self.login_id_date = nil + end + + if attributes.key?(:'login_count') + self.login_count = attributes[:'login_count'] + end + + if attributes.key?(:'opted_in_notifications') + self.opted_in_notifications = attributes[:'opted_in_notifications'] + end + + if attributes.key?(:'opted_in_tenant_notifications') + self.opted_in_tenant_notifications = attributes[:'opted_in_tenant_notifications'] + end + + if attributes.key?(:'hide_account_code') + self.hide_account_code = attributes[:'hide_account_code'] + end + + if attributes.key?(:'avatar_src') + self.avatar_src = attributes[:'avatar_src'] + end + + if attributes.key?(:'is_fast_comments_help_request_admin') + self.is_fast_comments_help_request_admin = attributes[:'is_fast_comments_help_request_admin'] + end + + if attributes.key?(:'is_help_request_admin') + self.is_help_request_admin = attributes[:'is_help_request_admin'] + end + + if attributes.key?(:'is_account_owner') + self.is_account_owner = attributes[:'is_account_owner'] + end + + if attributes.key?(:'is_admin_admin') + self.is_admin_admin = attributes[:'is_admin_admin'] + end + + if attributes.key?(:'is_billing_admin') + self.is_billing_admin = attributes[:'is_billing_admin'] + end + + if attributes.key?(:'is_analytics_admin') + self.is_analytics_admin = attributes[:'is_analytics_admin'] + end + + if attributes.key?(:'is_customization_admin') + self.is_customization_admin = attributes[:'is_customization_admin'] + end + + if attributes.key?(:'is_manage_data_admin') + self.is_manage_data_admin = attributes[:'is_manage_data_admin'] + end + + if attributes.key?(:'is_comment_moderator_admin') + self.is_comment_moderator_admin = attributes[:'is_comment_moderator_admin'] + end + + if attributes.key?(:'is_api_admin') + self.is_api_admin = attributes[:'is_api_admin'] + end + + if attributes.key?(:'moderator_ids') + if (value = attributes[:'moderator_ids']).is_a?(Array) + self.moderator_ids = value + end + end + + if attributes.key?(:'is_impersonator') + self.is_impersonator = attributes[:'is_impersonator'] + end + + if attributes.key?(:'is_coupon_manager') + self.is_coupon_manager = attributes[:'is_coupon_manager'] + end + + if attributes.key?(:'locale') + self.locale = attributes[:'locale'] + end + + if attributes.key?(:'digest_email_frequency') + self.digest_email_frequency = attributes[:'digest_email_frequency'] + end + + if attributes.key?(:'ignored_add_to_my_site_messages') + self.ignored_add_to_my_site_messages = attributes[:'ignored_add_to_my_site_messages'] + end + + if attributes.key?(:'last_login_date') + self.last_login_date = attributes[:'last_login_date'] + end + + if attributes.key?(:'display_label') + self.display_label = attributes[:'display_label'] + end + + if attributes.key?(:'is_profile_activity_private') + self.is_profile_activity_private = attributes[:'is_profile_activity_private'] + end + + if attributes.key?(:'is_profile_comments_private') + self.is_profile_comments_private = attributes[:'is_profile_comments_private'] + end + + if attributes.key?(:'is_profile_dm_disabled') + self.is_profile_dm_disabled = attributes[:'is_profile_dm_disabled'] + end + + if attributes.key?(:'profile_comment_approval_mode') + self.profile_comment_approval_mode = attributes[:'profile_comment_approval_mode'] + end + + if attributes.key?(:'karma') + self.karma = attributes[:'karma'] + end + + if attributes.key?(:'password_hash') + self.password_hash = attributes[:'password_hash'] + end + + if attributes.key?(:'average_ticket_ack_time_ms') + self.average_ticket_ack_time_ms = attributes[:'average_ticket_ack_time_ms'] + end + + if attributes.key?(:'has_blocked_users') + self.has_blocked_users = attributes[:'has_blocked_users'] + end + + if attributes.key?(:'bio') + self.bio = attributes[:'bio'] + end + + if attributes.key?(:'header_background_src') + self.header_background_src = attributes[:'header_background_src'] + end + + if attributes.key?(:'country_code') + self.country_code = attributes[:'country_code'] + end + + if attributes.key?(:'country_flag') + self.country_flag = attributes[:'country_flag'] + end + + if attributes.key?(:'social_links') + if (value = attributes[:'social_links']).is_a?(Array) + self.social_links = value + end + end + + if attributes.key?(:'has_two_factor') + self.has_two_factor = attributes[:'has_two_factor'] + 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 @_id.nil? + invalid_properties.push('invalid value for "_id", _id cannot be nil.') + end + + if @username.nil? + invalid_properties.push('invalid value for "username", username cannot be nil.') + end + + if @sign_up_date.nil? + invalid_properties.push('invalid value for "sign_up_date", sign_up_date cannot be nil.') + end + + if @created_from_ip_hashed.nil? + invalid_properties.push('invalid value for "created_from_ip_hashed", created_from_ip_hashed cannot be nil.') + end + + if @verified.nil? + invalid_properties.push('invalid value for "verified", verified cannot be nil.') + end + + if @login_id.nil? + invalid_properties.push('invalid value for "login_id", login_id cannot be nil.') + end + + if @login_id_date.nil? + invalid_properties.push('invalid value for "login_id_date", login_id_date 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 @_id.nil? + return false if @username.nil? + return false if @sign_up_date.nil? + return false if @created_from_ip_hashed.nil? + return false if @verified.nil? + return false if @login_id.nil? + return false if @login_id_date.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] _id Value to be assigned + def _id=(_id) + if _id.nil? + fail ArgumentError, '_id cannot be nil' + end + + @_id = _id + end + + # Custom attribute writer method with validation + # @param [Object] username Value to be assigned + def username=(username) + if username.nil? + fail ArgumentError, 'username cannot be nil' + end + + @username = username + end + + # Custom attribute writer method with validation + # @param [Object] sign_up_date Value to be assigned + def sign_up_date=(sign_up_date) + if sign_up_date.nil? + fail ArgumentError, 'sign_up_date cannot be nil' + end + + @sign_up_date = sign_up_date + end + + # Custom attribute writer method with validation + # @param [Object] created_from_ip_hashed Value to be assigned + def created_from_ip_hashed=(created_from_ip_hashed) + if created_from_ip_hashed.nil? + fail ArgumentError, 'created_from_ip_hashed cannot be nil' + end + + @created_from_ip_hashed = created_from_ip_hashed + end + + # Custom attribute writer method with validation + # @param [Object] verified Value to be assigned + def verified=(verified) + if verified.nil? + fail ArgumentError, 'verified cannot be nil' + end + + @verified = verified + end + + # Custom attribute writer method with validation + # @param [Object] login_id Value to be assigned + def login_id=(login_id) + if login_id.nil? + fail ArgumentError, 'login_id cannot be nil' + end + + @login_id = login_id + end + + # Custom attribute writer method with validation + # @param [Object] login_id_date Value to be assigned + def login_id_date=(login_id_date) + if login_id_date.nil? + fail ArgumentError, 'login_id_date cannot be nil' + end + + @login_id_date = login_id_date + 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 && + _id == o._id && + tenant_id == o.tenant_id && + username == o.username && + display_name == o.display_name && + website_url == o.website_url && + email == o.email && + pending_email == o.pending_email && + sign_up_date == o.sign_up_date && + created_from_url_id == o.created_from_url_id && + created_from_tenant_id == o.created_from_tenant_id && + created_from_ip_hashed == o.created_from_ip_hashed && + verified == o.verified && + login_id == o.login_id && + login_id_date == o.login_id_date && + login_count == o.login_count && + opted_in_notifications == o.opted_in_notifications && + opted_in_tenant_notifications == o.opted_in_tenant_notifications && + hide_account_code == o.hide_account_code && + avatar_src == o.avatar_src && + is_fast_comments_help_request_admin == o.is_fast_comments_help_request_admin && + is_help_request_admin == o.is_help_request_admin && + is_account_owner == o.is_account_owner && + is_admin_admin == o.is_admin_admin && + is_billing_admin == o.is_billing_admin && + is_analytics_admin == o.is_analytics_admin && + is_customization_admin == o.is_customization_admin && + is_manage_data_admin == o.is_manage_data_admin && + is_comment_moderator_admin == o.is_comment_moderator_admin && + is_api_admin == o.is_api_admin && + moderator_ids == o.moderator_ids && + is_impersonator == o.is_impersonator && + is_coupon_manager == o.is_coupon_manager && + locale == o.locale && + digest_email_frequency == o.digest_email_frequency && + ignored_add_to_my_site_messages == o.ignored_add_to_my_site_messages && + last_login_date == o.last_login_date && + display_label == o.display_label && + is_profile_activity_private == o.is_profile_activity_private && + is_profile_comments_private == o.is_profile_comments_private && + is_profile_dm_disabled == o.is_profile_dm_disabled && + profile_comment_approval_mode == o.profile_comment_approval_mode && + karma == o.karma && + password_hash == o.password_hash && + average_ticket_ack_time_ms == o.average_ticket_ack_time_ms && + has_blocked_users == o.has_blocked_users && + bio == o.bio && + header_background_src == o.header_background_src && + country_code == o.country_code && + country_flag == o.country_flag && + social_links == o.social_links && + has_two_factor == o.has_two_factor + 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 + [_id, tenant_id, username, display_name, website_url, email, pending_email, sign_up_date, created_from_url_id, created_from_tenant_id, created_from_ip_hashed, verified, login_id, login_id_date, login_count, opted_in_notifications, opted_in_tenant_notifications, hide_account_code, avatar_src, is_fast_comments_help_request_admin, is_help_request_admin, is_account_owner, is_admin_admin, is_billing_admin, is_analytics_admin, is_customization_admin, is_manage_data_admin, is_comment_moderator_admin, is_api_admin, moderator_ids, is_impersonator, is_coupon_manager, locale, digest_email_frequency, ignored_add_to_my_site_messages, last_login_date, display_label, is_profile_activity_private, is_profile_comments_private, is_profile_dm_disabled, profile_comment_approval_mode, karma, password_hash, average_ticket_ack_time_ms, has_blocked_users, bio, header_background_src, country_code, country_flag, social_links, has_two_factor].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/user_notification_count.rb b/client/lib/fastcomments-client/models/user_notification_count.rb new file mode 100644 index 0000000..9a0ced4 --- /dev/null +++ b/client/lib/fastcomments-client/models/user_notification_count.rb @@ -0,0 +1,242 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'date' +require 'time' + +module FastCommentsClient + class UserNotificationCount < ApiModelBase + attr_accessor :_id + + attr_accessor :count + + attr_accessor :created_at + + attr_accessor :expire_at + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'_id' => :'_id', + :'count' => :'count', + :'created_at' => :'createdAt', + :'expire_at' => :'expireAt' + } + 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 + { + :'_id' => :'String', + :'count' => :'Float', + :'created_at' => :'Time', + :'expire_at' => :'Time' + } + 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::UserNotificationCount` 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::UserNotificationCount`. 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?(:'_id') + self._id = attributes[:'_id'] + else + self._id = nil + end + + if attributes.key?(:'count') + self.count = attributes[:'count'] + else + self.count = nil + end + + if attributes.key?(:'created_at') + self.created_at = attributes[:'created_at'] + else + self.created_at = nil + end + + if attributes.key?(:'expire_at') + self.expire_at = attributes[:'expire_at'] + else + self.expire_at = 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 @_id.nil? + invalid_properties.push('invalid value for "_id", _id cannot be nil.') + end + + if @count.nil? + invalid_properties.push('invalid value for "count", count cannot be nil.') + end + + if @created_at.nil? + invalid_properties.push('invalid value for "created_at", created_at cannot be nil.') + end + + if @expire_at.nil? + invalid_properties.push('invalid value for "expire_at", expire_at 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 @_id.nil? + return false if @count.nil? + return false if @created_at.nil? + return false if @expire_at.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] _id Value to be assigned + def _id=(_id) + if _id.nil? + fail ArgumentError, '_id cannot be nil' + end + + @_id = _id + end + + # Custom attribute writer method with validation + # @param [Object] count Value to be assigned + def count=(count) + if count.nil? + fail ArgumentError, 'count cannot be nil' + end + + @count = count + end + + # Custom attribute writer method with validation + # @param [Object] created_at Value to be assigned + def created_at=(created_at) + if created_at.nil? + fail ArgumentError, 'created_at cannot be nil' + end + + @created_at = created_at + end + + # Custom attribute writer method with validation + # @param [Object] expire_at Value to be assigned + def expire_at=(expire_at) + if expire_at.nil? + fail ArgumentError, 'expire_at cannot be nil' + end + + @expire_at = expire_at + 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 && + _id == o._id && + count == o.count && + created_at == o.created_at && + expire_at == o.expire_at + 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 + [_id, count, created_at, expire_at].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/version.rb b/client/lib/fastcomments-client/version.rb index 972ff47..3346ef3 100644 --- a/client/lib/fastcomments-client/version.rb +++ b/client/lib/fastcomments-client/version.rb @@ -11,5 +11,5 @@ =end module FastCommentsClient - VERSION = '0.2.0' + VERSION = '1.0.0' end diff --git a/client/spec/api/default_api_spec.rb b/client/spec/api/default_api_spec.rb index efd7e05..21ad193 100644 --- a/client/spec/api/default_api_spec.rb +++ b/client/spec/api/default_api_spec.rb @@ -43,6 +43,28 @@ end end + # unit tests for add_hash_tag + # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id + # @option opts [CreateHashTagBody] :create_hash_tag_body + # @return [AddHashTag200Response] + describe 'add_hash_tag test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for add_hash_tags_bulk + # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id + # @option opts [BulkCreateHashTagsBody] :bulk_create_hash_tags_body + # @return [AddHashTagsBulk200Response] + 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/ + end + end + # unit tests for add_page # @param tenant_id # @param create_api_page_data @@ -139,6 +161,17 @@ end end + # unit tests for create_email_template + # @param tenant_id + # @param create_email_template_body + # @param [Hash] opts the optional parameters + # @return [CreateEmailTemplate200Response] + describe 'create_email_template test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for create_feed_post # @param tenant_id # @param create_feed_post_params @@ -154,6 +187,39 @@ end end + # unit tests for create_moderator + # @param tenant_id + # @param create_moderator_body + # @param [Hash] opts the optional parameters + # @return [CreateModerator200Response] + describe 'create_moderator test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for create_question_config + # @param tenant_id + # @param create_question_config_body + # @param [Hash] opts the optional parameters + # @return [CreateQuestionConfig200Response] + describe 'create_question_config test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for create_question_result + # @param tenant_id + # @param create_question_result_body + # @param [Hash] opts the optional parameters + # @return [CreateQuestionResult200Response] + describe 'create_question_result test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for create_subscription # @param tenant_id # @param create_api_user_subscription_data @@ -165,6 +231,39 @@ end end + # unit tests for create_tenant + # @param tenant_id + # @param create_tenant_body + # @param [Hash] opts the optional parameters + # @return [CreateTenant200Response] + describe 'create_tenant test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for create_tenant_package + # @param tenant_id + # @param create_tenant_package_body + # @param [Hash] opts the optional parameters + # @return [CreateTenantPackage200Response] + describe 'create_tenant_package test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for create_tenant_user + # @param tenant_id + # @param create_tenant_user_body + # @param [Hash] opts the optional parameters + # @return [CreateTenantUser200Response] + describe 'create_tenant_user test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for create_user_badge # @param tenant_id # @param create_user_badge_params @@ -176,6 +275,20 @@ end end + # unit tests for create_vote + # @param tenant_id + # @param comment_id + # @param direction + # @param [Hash] opts the optional parameters + # @option opts [String] :user_id + # @option opts [String] :anon_user_id + # @return [CreateVote200Response] + describe 'create_vote test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for delete_comment # @param tenant_id # @param id @@ -200,6 +313,64 @@ end end + # unit tests for delete_email_template + # @param tenant_id + # @param id + # @param [Hash] opts the optional parameters + # @return [FlagCommentPublic200Response] + describe 'delete_email_template test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for delete_email_template_render_error + # @param tenant_id + # @param id + # @param error_id + # @param [Hash] opts the optional parameters + # @return [FlagCommentPublic200Response] + 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/ + end + end + + # unit tests for delete_hash_tag + # @param tag + # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id + # @option opts [DeleteHashTagRequest] :delete_hash_tag_request + # @return [FlagCommentPublic200Response] + describe 'delete_hash_tag test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for delete_moderator + # @param tenant_id + # @param id + # @param [Hash] opts the optional parameters + # @option opts [String] :send_email + # @return [FlagCommentPublic200Response] + describe 'delete_moderator test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for delete_notification_count + # @param tenant_id + # @param id + # @param [Hash] opts the optional parameters + # @return [FlagCommentPublic200Response] + describe 'delete_notification_count test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for delete_page # @param tenant_id # @param id @@ -211,6 +382,39 @@ end end + # unit tests for delete_pending_webhook_event + # @param tenant_id + # @param id + # @param [Hash] opts the optional parameters + # @return [FlagCommentPublic200Response] + 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/ + end + end + + # unit tests for delete_question_config + # @param tenant_id + # @param id + # @param [Hash] opts the optional parameters + # @return [FlagCommentPublic200Response] + describe 'delete_question_config test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for delete_question_result + # @param tenant_id + # @param id + # @param [Hash] opts the optional parameters + # @return [FlagCommentPublic200Response] + describe 'delete_question_result test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for delete_sso_user # @param tenant_id # @param id @@ -236,6 +440,42 @@ end end + # unit tests for delete_tenant + # @param tenant_id + # @param id + # @param [Hash] opts the optional parameters + # @option opts [String] :sure + # @return [FlagCommentPublic200Response] + describe 'delete_tenant test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for delete_tenant_package + # @param tenant_id + # @param id + # @param [Hash] opts the optional parameters + # @return [FlagCommentPublic200Response] + describe 'delete_tenant_package test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for delete_tenant_user + # @param tenant_id + # @param id + # @param [Hash] opts the optional parameters + # @option opts [String] :delete_comments + # @option opts [String] :comment_delete_mode + # @return [FlagCommentPublic200Response] + describe 'delete_tenant_user test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for delete_user_badge # @param tenant_id # @param id @@ -247,6 +487,18 @@ end end + # unit tests for delete_vote + # @param tenant_id + # @param id + # @param [Hash] opts the optional parameters + # @option opts [String] :edit_key + # @return [DeleteVote200Response] + describe 'delete_vote test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for flag_comment # @param tenant_id # @param id @@ -275,6 +527,17 @@ end end + # unit tests for get_cached_notification_count + # @param tenant_id + # @param id + # @param [Hash] opts the optional parameters + # @return [GetCachedNotificationCount200Response] + 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/ + end + end + # unit tests for get_comment # @param tenant_id # @param id @@ -331,6 +594,50 @@ end end + # unit tests for get_email_template + # @param tenant_id + # @param id + # @param [Hash] opts the optional parameters + # @return [GetEmailTemplate200Response] + describe 'get_email_template test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for get_email_template_definitions + # @param tenant_id + # @param [Hash] opts the optional parameters + # @return [GetEmailTemplateDefinitions200Response] + 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/ + end + end + + # unit tests for get_email_template_render_errors + # @param tenant_id + # @param id + # @param [Hash] opts the optional parameters + # @option opts [Float] :skip + # @return [GetEmailTemplateRenderErrors200Response] + 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/ + end + end + + # unit tests for get_email_templates + # @param tenant_id + # @param [Hash] opts the optional parameters + # @option opts [Float] :skip + # @return [GetEmailTemplates200Response] + describe 'get_email_templates test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for get_feed_posts # req tenantId afterId # @param tenant_id @@ -345,6 +652,70 @@ end end + # unit tests for get_hash_tags + # @param tenant_id + # @param [Hash] opts the optional parameters + # @option opts [Float] :page + # @return [GetHashTags200Response] + describe 'get_hash_tags test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for get_moderator + # @param tenant_id + # @param id + # @param [Hash] opts the optional parameters + # @return [GetModerator200Response] + describe 'get_moderator test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for get_moderators + # @param tenant_id + # @param [Hash] opts the optional parameters + # @option opts [Float] :skip + # @return [GetModerators200Response] + describe 'get_moderators test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for get_notification_count + # @param tenant_id + # @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 [GetNotificationCount200Response] + describe 'get_notification_count test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for get_notifications + # @param tenant_id + # @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 + # @option opts [Float] :skip + # @return [GetNotifications200Response] + describe 'get_notifications test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for get_page_by_urlid # @param tenant_id # @param url_id @@ -366,6 +737,88 @@ end end + # unit tests for get_pending_webhook_event_count + # @param tenant_id + # @param [Hash] opts the optional parameters + # @option opts [String] :comment_id + # @option opts [String] :external_id + # @option opts [String] :event_type + # @option opts [String] :type + # @option opts [String] :domain + # @option opts [Float] :attempt_count_gt + # @return [GetPendingWebhookEventCount200Response] + 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/ + end + end + + # unit tests for get_pending_webhook_events + # @param tenant_id + # @param [Hash] opts the optional parameters + # @option opts [String] :comment_id + # @option opts [String] :external_id + # @option opts [String] :event_type + # @option opts [String] :type + # @option opts [String] :domain + # @option opts [Float] :attempt_count_gt + # @option opts [Float] :skip + # @return [GetPendingWebhookEvents200Response] + 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/ + end + end + + # unit tests for get_question_config + # @param tenant_id + # @param id + # @param [Hash] opts the optional parameters + # @return [GetQuestionConfig200Response] + describe 'get_question_config test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for get_question_configs + # @param tenant_id + # @param [Hash] opts the optional parameters + # @option opts [Float] :skip + # @return [GetQuestionConfigs200Response] + describe 'get_question_configs test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for get_question_result + # @param tenant_id + # @param id + # @param [Hash] opts the optional parameters + # @return [GetQuestionResult200Response] + describe 'get_question_result test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for get_question_results + # @param tenant_id + # @param [Hash] opts the optional parameters + # @option opts [String] :url_id + # @option opts [String] :user_id + # @option opts [String] :start_date + # @option opts [String] :question_id + # @option opts [String] :question_ids + # @option opts [Float] :skip + # @return [GetQuestionResults200Response] + describe 'get_question_results test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for get_sso_user_by_email # @param tenant_id # @param email @@ -410,6 +863,98 @@ end end + # unit tests for get_tenant + # @param tenant_id + # @param id + # @param [Hash] opts the optional parameters + # @return [GetTenant200Response] + describe 'get_tenant test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for get_tenant_daily_usages + # @param tenant_id + # @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 [GetTenantDailyUsages200Response] + 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/ + end + end + + # unit tests for get_tenant_package + # @param tenant_id + # @param id + # @param [Hash] opts the optional parameters + # @return [GetTenantPackage200Response] + describe 'get_tenant_package test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for get_tenant_packages + # @param tenant_id + # @param [Hash] opts the optional parameters + # @option opts [Float] :skip + # @return [GetTenantPackages200Response] + describe 'get_tenant_packages test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for get_tenant_user + # @param tenant_id + # @param id + # @param [Hash] opts the optional parameters + # @return [GetTenantUser200Response] + describe 'get_tenant_user test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for get_tenant_users + # @param tenant_id + # @param [Hash] opts the optional parameters + # @option opts [Float] :skip + # @return [GetTenantUsers200Response] + describe 'get_tenant_users test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for get_tenants + # @param tenant_id + # @param [Hash] opts the optional parameters + # @option opts [String] :meta + # @option opts [Float] :skip + # @return [GetTenants200Response] + describe 'get_tenants test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for get_user + # @param tenant_id + # @param id + # @param [Hash] opts the optional parameters + # @return [GetUser200Response] + describe 'get_user test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for get_user_badge # @param tenant_id # @param id @@ -472,6 +1017,30 @@ end end + # unit tests for get_votes + # @param tenant_id + # @param url_id + # @param [Hash] opts the optional parameters + # @return [GetVotes200Response] + describe 'get_votes test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for get_votes_for_user + # @param tenant_id + # @param url_id + # @param [Hash] opts the optional parameters + # @option opts [String] :user_id + # @option opts [String] :anon_user_id + # @return [GetVotesForUser200Response] + 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/ + end + end + # unit tests for patch_domain_config # @param tenant_id # @param domain_to_update @@ -484,6 +1053,18 @@ end end + # unit tests for patch_hash_tag + # @param tag + # @param [Hash] opts the optional parameters + # @option opts [String] :tenant_id + # @option opts [UpdateHashTagBody] :update_hash_tag_body + # @return [PatchHashTag200Response] + describe 'patch_hash_tag test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for patch_page # @param tenant_id # @param id @@ -534,6 +1115,43 @@ end end + # unit tests for render_email_template + # @param tenant_id + # @param render_email_template_body + # @param [Hash] opts the optional parameters + # @option opts [String] :locale + # @return [RenderEmailTemplate200Response] + describe 'render_email_template test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for replace_tenant_package + # @param tenant_id + # @param id + # @param replace_tenant_package_body + # @param [Hash] opts the optional parameters + # @return [FlagCommentPublic200Response] + describe 'replace_tenant_package test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for replace_tenant_user + # @param tenant_id + # @param id + # @param replace_tenant_user_body + # @param [Hash] opts the optional parameters + # @option opts [String] :update_comments + # @return [FlagCommentPublic200Response] + describe 'replace_tenant_user test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for save_comment # @param tenant_id # @param create_comment_params @@ -564,6 +1182,30 @@ end end + # unit tests for send_invite + # @param tenant_id + # @param id + # @param from_name + # @param [Hash] opts the optional parameters + # @return [FlagCommentPublic200Response] + describe 'send_invite test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for send_login_link + # @param tenant_id + # @param id + # @param [Hash] opts the optional parameters + # @option opts [String] :redirect_url + # @return [FlagCommentPublic200Response] + describe 'send_login_link test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for un_block_user_from_comment # @param tenant_id # @param id @@ -606,6 +1248,18 @@ end end + # unit tests for update_email_template + # @param tenant_id + # @param id + # @param update_email_template_body + # @param [Hash] opts the optional parameters + # @return [FlagCommentPublic200Response] + describe 'update_email_template test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for update_feed_post # @param tenant_id # @param id @@ -618,6 +1272,92 @@ end end + # unit tests for update_moderator + # @param tenant_id + # @param id + # @param update_moderator_body + # @param [Hash] opts the optional parameters + # @return [FlagCommentPublic200Response] + describe 'update_moderator test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for update_notification + # @param tenant_id + # @param id + # @param update_notification_body + # @param [Hash] opts the optional parameters + # @option opts [String] :user_id + # @return [FlagCommentPublic200Response] + describe 'update_notification test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for update_question_config + # @param tenant_id + # @param id + # @param update_question_config_body + # @param [Hash] opts the optional parameters + # @return [FlagCommentPublic200Response] + describe 'update_question_config test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for update_question_result + # @param tenant_id + # @param id + # @param update_question_result_body + # @param [Hash] opts the optional parameters + # @return [FlagCommentPublic200Response] + describe 'update_question_result test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for update_tenant + # @param tenant_id + # @param id + # @param update_tenant_body + # @param [Hash] opts the optional parameters + # @return [FlagCommentPublic200Response] + describe 'update_tenant test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for update_tenant_package + # @param tenant_id + # @param id + # @param update_tenant_package_body + # @param [Hash] opts the optional parameters + # @return [FlagCommentPublic200Response] + describe 'update_tenant_package test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for update_tenant_user + # @param tenant_id + # @param id + # @param update_tenant_user_body + # @param [Hash] opts the optional parameters + # @option opts [String] :update_comments + # @return [FlagCommentPublic200Response] + describe 'update_tenant_user test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for update_user_badge # @param tenant_id # @param id diff --git a/client/spec/api/public_api_spec.rb b/client/spec/api/public_api_spec.rb index a100fbc..fa52b4c 100644 --- a/client/spec/api/public_api_spec.rb +++ b/client/spec/api/public_api_spec.rb @@ -389,8 +389,8 @@ # unit tests for search_users # @param tenant_id # @param url_id - # @param username_starts_with # @param [Hash] opts the optional parameters + # @option opts [String] :username_starts_with # @option opts [Array] :mention_group_ids # @option opts [String] :sso # @return [SearchUsers200Response] diff --git a/client/spec/models/add_hash_tag200_response_spec.rb b/client/spec/models/add_hash_tag200_response_spec.rb new file mode 100644 index 0000000..8b41c35 --- /dev/null +++ b/client/spec/models/add_hash_tag200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::AddHashTag200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::AddHashTag200Response do +end diff --git a/client/spec/models/add_hash_tags_bulk200_response_spec.rb b/client/spec/models/add_hash_tags_bulk200_response_spec.rb new file mode 100644 index 0000000..fd95b42 --- /dev/null +++ b/client/spec/models/add_hash_tags_bulk200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::AddHashTagsBulk200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::AddHashTagsBulk200Response do +end diff --git a/client/spec/models/api_domain_configuration_spec.rb b/client/spec/models/api_domain_configuration_spec.rb new file mode 100644 index 0000000..9be7ade --- /dev/null +++ b/client/spec/models/api_domain_configuration_spec.rb @@ -0,0 +1,120 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::APIDomainConfiguration +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::APIDomainConfiguration do + #let(:instance) { FastCommentsClient::APIDomainConfiguration.new } + + describe 'test an instance of APIDomainConfiguration' do + it 'should create an instance of APIDomainConfiguration' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::APIDomainConfiguration) + end + end + + describe 'test attribute "id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "domain"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "email_from_name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "email_from_email"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "email_headers"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "wp_sync_token"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "wp_synced"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "wp_url"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "created_at"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "auto_added_date"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "site_type"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "logo_src"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "logo_src100px"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "footer_unsubscribe_url"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "disable_unsubscribe_links"' 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/api_tenant_daily_usage_spec.rb b/client/spec/models/api_tenant_daily_usage_spec.rb new file mode 100644 index 0000000..82ab3cd --- /dev/null +++ b/client/spec/models/api_tenant_daily_usage_spec.rb @@ -0,0 +1,144 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::APITenantDailyUsage +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::APITenantDailyUsage do + #let(:instance) { FastCommentsClient::APITenantDailyUsage.new } + + describe 'test an instance of APITenantDailyUsage' do + it 'should create an instance of APITenantDailyUsage' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::APITenantDailyUsage) + end + end + + describe 'test attribute "id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "tenant_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "year_number"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "month_number"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "day_number"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "comment_fetch_count"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "comment_create_count"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "conversation_create_count"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "vote_count"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "account_created_count"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "user_mention_search"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "hash_tag_search"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "gif_search_trending"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "gif_search"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "api_credits_used"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "created_at"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "billed"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "ignored"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "api_error_count"' 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/api_tenant_spec.rb b/client/spec/models/api_tenant_spec.rb new file mode 100644 index 0000000..a416486 --- /dev/null +++ b/client/spec/models/api_tenant_spec.rb @@ -0,0 +1,198 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::APITenant +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::APITenant do + #let(:instance) { FastCommentsClient::APITenant.new } + + describe 'test an instance of APITenant' do + it 'should create an instance of APITenant' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::APITenant) + end + end + + describe 'test attribute "id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "email"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "sign_up_date"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "package_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "payment_frequency"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "billing_info_valid"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "billing_handled_externally"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "created_by"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_setup"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "domain_configuration"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "billing_info"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "stripe_customer_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "stripe_subscription_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "stripe_plan_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "enable_profanity_filter"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "enable_spam_filter"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "last_billing_issue_reminder_date"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "remove_unverified_comments"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "unverified_comments_tt_lms"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "comments_require_approval"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "auto_approve_comment_on_verification"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "send_profane_to_spam"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "has_flex_pricing"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "has_auditing"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_last_billed_amount"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "de_anon_ip_addr"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "meta"' 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/billing_info_spec.rb b/client/spec/models/billing_info_spec.rb new file mode 100644 index 0000000..8529de6 --- /dev/null +++ b/client/spec/models/billing_info_spec.rb @@ -0,0 +1,78 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::BillingInfo +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::BillingInfo do + #let(:instance) { FastCommentsClient::BillingInfo.new } + + describe 'test an instance of BillingInfo' do + it 'should create an instance of BillingInfo' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::BillingInfo) + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "address"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "city"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "state"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "zip"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "country"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "currency"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "email"' 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/bulk_create_hash_tags_body_spec.rb b/client/spec/models/bulk_create_hash_tags_body_spec.rb new file mode 100644 index 0000000..2b061a9 --- /dev/null +++ b/client/spec/models/bulk_create_hash_tags_body_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::BulkCreateHashTagsBody +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::BulkCreateHashTagsBody do + #let(:instance) { FastCommentsClient::BulkCreateHashTagsBody.new } + + describe 'test an instance of BulkCreateHashTagsBody' do + it 'should create an instance of BulkCreateHashTagsBody' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::BulkCreateHashTagsBody) + end + end + + describe 'test attribute "tenant_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "tags"' 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/bulk_create_hash_tags_body_tags_inner_spec.rb b/client/spec/models/bulk_create_hash_tags_body_tags_inner_spec.rb new file mode 100644 index 0000000..f46866d --- /dev/null +++ b/client/spec/models/bulk_create_hash_tags_body_tags_inner_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::BulkCreateHashTagsBodyTagsInner +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::BulkCreateHashTagsBodyTagsInner do + #let(:instance) { FastCommentsClient::BulkCreateHashTagsBodyTagsInner.new } + + describe 'test an instance of BulkCreateHashTagsBodyTagsInner' do + it 'should create an instance of BulkCreateHashTagsBodyTagsInner' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::BulkCreateHashTagsBodyTagsInner) + end + end + + describe 'test attribute "url"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "tag"' 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/bulk_create_hash_tags_response_spec.rb b/client/spec/models/bulk_create_hash_tags_response_spec.rb new file mode 100644 index 0000000..ea57a49 --- /dev/null +++ b/client/spec/models/bulk_create_hash_tags_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::BulkCreateHashTagsResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::BulkCreateHashTagsResponse do + #let(:instance) { FastCommentsClient::BulkCreateHashTagsResponse.new } + + describe 'test an instance of BulkCreateHashTagsResponse' do + it 'should create an instance of BulkCreateHashTagsResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::BulkCreateHashTagsResponse) + 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 + + describe 'test attribute "results"' 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/comment_log_data_spec.rb b/client/spec/models/comment_log_data_spec.rb index 777764c..81107b9 100644 --- a/client/spec/models/comment_log_data_spec.rb +++ b/client/spec/models/comment_log_data_spec.rb @@ -289,4 +289,22 @@ end end + describe 'test attribute "invalid_locale"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "detected_locale"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "detected_language"' 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/create_email_template200_response_spec.rb b/client/spec/models/create_email_template200_response_spec.rb new file mode 100644 index 0000000..9541096 --- /dev/null +++ b/client/spec/models/create_email_template200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateEmailTemplate200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateEmailTemplate200Response do +end diff --git a/client/spec/models/create_email_template_body_spec.rb b/client/spec/models/create_email_template_body_spec.rb new file mode 100644 index 0000000..742aab6 --- /dev/null +++ b/client/spec/models/create_email_template_body_spec.rb @@ -0,0 +1,66 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateEmailTemplateBody +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateEmailTemplateBody do + #let(:instance) { FastCommentsClient::CreateEmailTemplateBody.new } + + describe 'test an instance of CreateEmailTemplateBody' do + it 'should create an instance of CreateEmailTemplateBody' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::CreateEmailTemplateBody) + end + end + + describe 'test attribute "email_template_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "display_name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "ejs"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "domain"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "translation_overrides_by_locale"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "test_data"' 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/create_email_template_response_spec.rb b/client/spec/models/create_email_template_response_spec.rb new file mode 100644 index 0000000..6756c29 --- /dev/null +++ b/client/spec/models/create_email_template_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateEmailTemplateResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateEmailTemplateResponse do + #let(:instance) { FastCommentsClient::CreateEmailTemplateResponse.new } + + describe 'test an instance of CreateEmailTemplateResponse' do + it 'should create an instance of CreateEmailTemplateResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::CreateEmailTemplateResponse) + 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 + + describe 'test attribute "email_template"' 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/create_hash_tag_body_spec.rb b/client/spec/models/create_hash_tag_body_spec.rb new file mode 100644 index 0000000..6329f1b --- /dev/null +++ b/client/spec/models/create_hash_tag_body_spec.rb @@ -0,0 +1,48 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateHashTagBody +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateHashTagBody do + #let(:instance) { FastCommentsClient::CreateHashTagBody.new } + + describe 'test an instance of CreateHashTagBody' do + it 'should create an instance of CreateHashTagBody' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::CreateHashTagBody) + end + end + + describe 'test attribute "tenant_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "tag"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "url"' 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/create_hash_tag_response_spec.rb b/client/spec/models/create_hash_tag_response_spec.rb new file mode 100644 index 0000000..4ce0c06 --- /dev/null +++ b/client/spec/models/create_hash_tag_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateHashTagResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateHashTagResponse do + #let(:instance) { FastCommentsClient::CreateHashTagResponse.new } + + describe 'test an instance of CreateHashTagResponse' do + it 'should create an instance of CreateHashTagResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::CreateHashTagResponse) + 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 + + describe 'test attribute "hash_tag"' 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/create_moderator200_response_spec.rb b/client/spec/models/create_moderator200_response_spec.rb new file mode 100644 index 0000000..1cfc362 --- /dev/null +++ b/client/spec/models/create_moderator200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateModerator200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateModerator200Response do +end diff --git a/client/spec/models/create_moderator_body_spec.rb b/client/spec/models/create_moderator_body_spec.rb new file mode 100644 index 0000000..96b5e82 --- /dev/null +++ b/client/spec/models/create_moderator_body_spec.rb @@ -0,0 +1,54 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateModeratorBody +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateModeratorBody do + #let(:instance) { FastCommentsClient::CreateModeratorBody.new } + + describe 'test an instance of CreateModeratorBody' do + it 'should create an instance of CreateModeratorBody' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::CreateModeratorBody) + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "email"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "user_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "moderation_group_ids"' 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/create_moderator_response_spec.rb b/client/spec/models/create_moderator_response_spec.rb new file mode 100644 index 0000000..fbd6f30 --- /dev/null +++ b/client/spec/models/create_moderator_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateModeratorResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateModeratorResponse do + #let(:instance) { FastCommentsClient::CreateModeratorResponse.new } + + describe 'test an instance of CreateModeratorResponse' do + it 'should create an instance of CreateModeratorResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::CreateModeratorResponse) + 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 + + describe 'test attribute "moderator"' 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/create_question_config200_response_spec.rb b/client/spec/models/create_question_config200_response_spec.rb new file mode 100644 index 0000000..db508ad --- /dev/null +++ b/client/spec/models/create_question_config200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateQuestionConfig200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateQuestionConfig200Response do +end diff --git a/client/spec/models/create_question_config_body_spec.rb b/client/spec/models/create_question_config_body_spec.rb new file mode 100644 index 0000000..d316ec8 --- /dev/null +++ b/client/spec/models/create_question_config_body_spec.rb @@ -0,0 +1,114 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateQuestionConfigBody +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateQuestionConfigBody do + #let(:instance) { FastCommentsClient::CreateQuestionConfigBody.new } + + describe 'test an instance of CreateQuestionConfigBody' do + it 'should create an instance of CreateQuestionConfigBody' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::CreateQuestionConfigBody) + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "question"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "help_text"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "type"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "num_stars"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "min"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "default_value"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "label_negative"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "label_positive"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "custom_options"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "sub_question_ids"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "always_show_sub_questions"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "reporting_order"' 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/create_question_config_response_spec.rb b/client/spec/models/create_question_config_response_spec.rb new file mode 100644 index 0000000..f431559 --- /dev/null +++ b/client/spec/models/create_question_config_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateQuestionConfigResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateQuestionConfigResponse do + #let(:instance) { FastCommentsClient::CreateQuestionConfigResponse.new } + + describe 'test an instance of CreateQuestionConfigResponse' do + it 'should create an instance of CreateQuestionConfigResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::CreateQuestionConfigResponse) + 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 + + describe 'test attribute "question_config"' 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/create_question_result200_response_spec.rb b/client/spec/models/create_question_result200_response_spec.rb new file mode 100644 index 0000000..0971bb7 --- /dev/null +++ b/client/spec/models/create_question_result200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateQuestionResult200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateQuestionResult200Response do +end diff --git a/client/spec/models/create_question_result_body_spec.rb b/client/spec/models/create_question_result_body_spec.rb new file mode 100644 index 0000000..d0c3bad --- /dev/null +++ b/client/spec/models/create_question_result_body_spec.rb @@ -0,0 +1,72 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateQuestionResultBody +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateQuestionResultBody do + #let(:instance) { FastCommentsClient::CreateQuestionResultBody.new } + + describe 'test an instance of CreateQuestionResultBody' do + it 'should create an instance of CreateQuestionResultBody' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::CreateQuestionResultBody) + end + end + + describe 'test attribute "url_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "value"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "question_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "anon_user_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "user_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "comment_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "meta"' 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/create_question_result_response_spec.rb b/client/spec/models/create_question_result_response_spec.rb new file mode 100644 index 0000000..9911c8e --- /dev/null +++ b/client/spec/models/create_question_result_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateQuestionResultResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateQuestionResultResponse do + #let(:instance) { FastCommentsClient::CreateQuestionResultResponse.new } + + describe 'test an instance of CreateQuestionResultResponse' do + it 'should create an instance of CreateQuestionResultResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::CreateQuestionResultResponse) + 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 + + describe 'test attribute "question_result"' 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/create_tenant200_response_spec.rb b/client/spec/models/create_tenant200_response_spec.rb new file mode 100644 index 0000000..55bc226 --- /dev/null +++ b/client/spec/models/create_tenant200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateTenant200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateTenant200Response do +end diff --git a/client/spec/models/create_tenant_body_spec.rb b/client/spec/models/create_tenant_body_spec.rb new file mode 100644 index 0000000..53c99d4 --- /dev/null +++ b/client/spec/models/create_tenant_body_spec.rb @@ -0,0 +1,168 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateTenantBody +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateTenantBody do + #let(:instance) { FastCommentsClient::CreateTenantBody.new } + + describe 'test an instance of CreateTenantBody' do + it 'should create an instance of CreateTenantBody' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::CreateTenantBody) + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "domain_configuration"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "email"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "sign_up_date"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "package_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "payment_frequency"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "billing_info_valid"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "billing_handled_externally"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "created_by"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_setup"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "billing_info"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "stripe_customer_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "stripe_subscription_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "stripe_plan_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "enable_profanity_filter"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "enable_spam_filter"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "remove_unverified_comments"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "unverified_comments_tt_lms"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "comments_require_approval"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "auto_approve_comment_on_verification"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "send_profane_to_spam"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "de_anon_ip_addr"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "meta"' 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/create_tenant_package200_response_spec.rb b/client/spec/models/create_tenant_package200_response_spec.rb new file mode 100644 index 0000000..5bb89f1 --- /dev/null +++ b/client/spec/models/create_tenant_package200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateTenantPackage200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateTenantPackage200Response do +end diff --git a/client/spec/models/create_tenant_package_body_spec.rb b/client/spec/models/create_tenant_package_body_spec.rb new file mode 100644 index 0000000..ead1c17 --- /dev/null +++ b/client/spec/models/create_tenant_package_body_spec.rb @@ -0,0 +1,318 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateTenantPackageBody +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateTenantPackageBody do + #let(:instance) { FastCommentsClient::CreateTenantPackageBody.new } + + describe 'test an instance of CreateTenantPackageBody' do + it 'should create an instance of CreateTenantPackageBody' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::CreateTenantPackageBody) + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "monthly_cost_usd"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "yearly_cost_usd"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "monthly_stripe_plan_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "yearly_stripe_plan_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_monthly_page_loads"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_monthly_api_credits"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_monthly_small_widgets_credits"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_monthly_comments"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_concurrent_users"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_tenant_users"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_sso_users"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_moderators"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_domains"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_white_labeled_tenants"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_monthly_event_log_requests"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "has_white_labeling"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "has_debranding"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "has_llm_spam_detection"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "for_who_text"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "feature_taglines"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "has_auditing"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "has_flex_pricing"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "enable_saml"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_page_load_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_page_load_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_comment_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_comment_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_sso_user_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_sso_user_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_api_credit_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_api_credit_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_small_widgets_credit_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_small_widgets_credit_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_moderator_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_moderator_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_admin_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_admin_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_domain_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_domain_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_chat_gpt_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_chat_gpt_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_minimum_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_managed_tenant_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_sso_admin_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_sso_admin_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_sso_moderator_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_sso_moderator_unit"' 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/create_tenant_package_response_spec.rb b/client/spec/models/create_tenant_package_response_spec.rb new file mode 100644 index 0000000..8314791 --- /dev/null +++ b/client/spec/models/create_tenant_package_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateTenantPackageResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateTenantPackageResponse do + #let(:instance) { FastCommentsClient::CreateTenantPackageResponse.new } + + describe 'test an instance of CreateTenantPackageResponse' do + it 'should create an instance of CreateTenantPackageResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::CreateTenantPackageResponse) + 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 + + describe 'test attribute "tenant_package"' 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/create_tenant_response_spec.rb b/client/spec/models/create_tenant_response_spec.rb new file mode 100644 index 0000000..99fa7f1 --- /dev/null +++ b/client/spec/models/create_tenant_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateTenantResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateTenantResponse do + #let(:instance) { FastCommentsClient::CreateTenantResponse.new } + + describe 'test an instance of CreateTenantResponse' do + it 'should create an instance of CreateTenantResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::CreateTenantResponse) + 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 + + describe 'test attribute "tenant"' 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/create_tenant_user200_response_spec.rb b/client/spec/models/create_tenant_user200_response_spec.rb new file mode 100644 index 0000000..8a434fc --- /dev/null +++ b/client/spec/models/create_tenant_user200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateTenantUser200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateTenantUser200Response do +end diff --git a/client/spec/models/create_tenant_user_body_spec.rb b/client/spec/models/create_tenant_user_body_spec.rb new file mode 100644 index 0000000..aa47d3c --- /dev/null +++ b/client/spec/models/create_tenant_user_body_spec.rb @@ -0,0 +1,174 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateTenantUserBody +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateTenantUserBody do + #let(:instance) { FastCommentsClient::CreateTenantUserBody.new } + + describe 'test an instance of CreateTenantUserBody' do + it 'should create an instance of CreateTenantUserBody' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::CreateTenantUserBody) + end + end + + describe 'test attribute "username"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "email"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "display_name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "website_url"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "sign_up_date"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "locale"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "verified"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "login_count"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "opted_in_notifications"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "opted_in_tenant_notifications"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "hide_account_code"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "avatar_src"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_help_request_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_account_owner"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_admin_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_billing_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_analytics_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_customization_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_manage_data_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_comment_moderator_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_api_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "moderator_ids"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "digest_email_frequency"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "display_label"' 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/create_tenant_user_response_spec.rb b/client/spec/models/create_tenant_user_response_spec.rb new file mode 100644 index 0000000..a626de7 --- /dev/null +++ b/client/spec/models/create_tenant_user_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateTenantUserResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateTenantUserResponse do + #let(:instance) { FastCommentsClient::CreateTenantUserResponse.new } + + describe 'test an instance of CreateTenantUserResponse' do + it 'should create an instance of CreateTenantUserResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::CreateTenantUserResponse) + 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 + + describe 'test attribute "tenant_user"' 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/create_vote200_response_spec.rb b/client/spec/models/create_vote200_response_spec.rb new file mode 100644 index 0000000..19c21e5 --- /dev/null +++ b/client/spec/models/create_vote200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CreateVote200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CreateVote200Response 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..961257b --- /dev/null +++ b/client/spec/models/create_vote_response_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.18.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 + #let(:instance) { FastCommentsClient::CreateVoteResponse.new } + + describe 'test an instance of CreateVoteResponse' do + it 'should create an instance of CreateVoteResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::CreateVoteResponse) + 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/custom_email_template_spec.rb b/client/spec/models/custom_email_template_spec.rb new file mode 100644 index 0000000..7c31b1b --- /dev/null +++ b/client/spec/models/custom_email_template_spec.rb @@ -0,0 +1,96 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::CustomEmailTemplate +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::CustomEmailTemplate do + #let(:instance) { FastCommentsClient::CustomEmailTemplate.new } + + describe 'test an instance of CustomEmailTemplate' do + it 'should create an instance of CustomEmailTemplate' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::CustomEmailTemplate) + end + end + + describe 'test attribute "_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "tenant_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "email_template_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "display_name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "created_at"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "updated_at"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "updated_by_user_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "domain"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "ejs"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "translation_overrides_by_locale"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "test_data"' 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_spec.rb b/client/spec/models/delete_hash_tag_request_spec.rb new file mode 100644 index 0000000..3984466 --- /dev/null +++ b/client/spec/models/delete_hash_tag_request_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::DeleteHashTagRequest +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::DeleteHashTagRequest do + #let(:instance) { FastCommentsClient::DeleteHashTagRequest.new } + + describe 'test an instance of DeleteHashTagRequest' do + it 'should create an instance of DeleteHashTagRequest' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::DeleteHashTagRequest) + end + end + + describe 'test attribute "tenant_id"' 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_vote200_response_spec.rb b/client/spec/models/delete_vote200_response_spec.rb new file mode 100644 index 0000000..3509100 --- /dev/null +++ b/client/spec/models/delete_vote200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::DeleteVote200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::DeleteVote200Response 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..bcd1644 --- /dev/null +++ b/client/spec/models/delete_vote_response_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.18.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 + #let(:instance) { FastCommentsClient::DeleteVoteResponse.new } + + describe 'test an instance of DeleteVoteResponse' do + it 'should create an instance of DeleteVoteResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::DeleteVoteResponse) + 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/digest_email_frequency_spec.rb b/client/spec/models/digest_email_frequency_spec.rb new file mode 100644 index 0000000..2ea3f80 --- /dev/null +++ b/client/spec/models/digest_email_frequency_spec.rb @@ -0,0 +1,30 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::DigestEmailFrequency +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::DigestEmailFrequency do + #let(:instance) { FastCommentsClient::DigestEmailFrequency.new } + + describe 'test an instance of DigestEmailFrequency' do + it 'should create an instance of DigestEmailFrequency' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::DigestEmailFrequency) + end + end + +end diff --git a/client/spec/models/email_template_definition_spec.rb b/client/spec/models/email_template_definition_spec.rb new file mode 100644 index 0000000..416c6c6 --- /dev/null +++ b/client/spec/models/email_template_definition_spec.rb @@ -0,0 +1,54 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::EmailTemplateDefinition +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::EmailTemplateDefinition do + #let(:instance) { FastCommentsClient::EmailTemplateDefinition.new } + + describe 'test an instance of EmailTemplateDefinition' do + it 'should create an instance of EmailTemplateDefinition' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::EmailTemplateDefinition) + end + end + + describe 'test attribute "email_template_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "default_test_data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "default_translations_by_locale"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "default_ejs"' 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/email_template_render_error_response_spec.rb b/client/spec/models/email_template_render_error_response_spec.rb new file mode 100644 index 0000000..6cc375a --- /dev/null +++ b/client/spec/models/email_template_render_error_response_spec.rb @@ -0,0 +1,72 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::EmailTemplateRenderErrorResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::EmailTemplateRenderErrorResponse do + #let(:instance) { FastCommentsClient::EmailTemplateRenderErrorResponse.new } + + describe 'test an instance of EmailTemplateRenderErrorResponse' do + it 'should create an instance of EmailTemplateRenderErrorResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::EmailTemplateRenderErrorResponse) + end + end + + describe 'test attribute "id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "tenant_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "custom_template_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "error"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "count"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "created_at"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "last_occurred_at"' 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/get_cached_notification_count200_response_spec.rb b/client/spec/models/get_cached_notification_count200_response_spec.rb new file mode 100644 index 0000000..03b3a45 --- /dev/null +++ b/client/spec/models/get_cached_notification_count200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetCachedNotificationCount200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetCachedNotificationCount200Response 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 new file mode 100644 index 0000000..90d8887 --- /dev/null +++ b/client/spec/models/get_cached_notification_count_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetCachedNotificationCountResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetCachedNotificationCountResponse do + #let(:instance) { FastCommentsClient::GetCachedNotificationCountResponse.new } + + describe 'test an instance of GetCachedNotificationCountResponse' do + it 'should create an instance of GetCachedNotificationCountResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::GetCachedNotificationCountResponse) + 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 + + describe 'test attribute "data"' 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/get_email_template200_response_spec.rb b/client/spec/models/get_email_template200_response_spec.rb new file mode 100644 index 0000000..81738b0 --- /dev/null +++ b/client/spec/models/get_email_template200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetEmailTemplate200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetEmailTemplate200Response do +end diff --git a/client/spec/models/get_email_template_definitions200_response_spec.rb b/client/spec/models/get_email_template_definitions200_response_spec.rb new file mode 100644 index 0000000..96763ba --- /dev/null +++ b/client/spec/models/get_email_template_definitions200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetEmailTemplateDefinitions200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetEmailTemplateDefinitions200Response 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 new file mode 100644 index 0000000..2760cf7 --- /dev/null +++ b/client/spec/models/get_email_template_definitions_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetEmailTemplateDefinitionsResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetEmailTemplateDefinitionsResponse do + #let(:instance) { FastCommentsClient::GetEmailTemplateDefinitionsResponse.new } + + describe 'test an instance of GetEmailTemplateDefinitionsResponse' do + it 'should create an instance of GetEmailTemplateDefinitionsResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::GetEmailTemplateDefinitionsResponse) + 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 + + describe 'test attribute "definitions"' 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/get_email_template_render_errors200_response_spec.rb b/client/spec/models/get_email_template_render_errors200_response_spec.rb new file mode 100644 index 0000000..1026d9c --- /dev/null +++ b/client/spec/models/get_email_template_render_errors200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetEmailTemplateRenderErrors200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetEmailTemplateRenderErrors200Response 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 new file mode 100644 index 0000000..fbda734 --- /dev/null +++ b/client/spec/models/get_email_template_render_errors_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetEmailTemplateRenderErrorsResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetEmailTemplateRenderErrorsResponse do + #let(:instance) { FastCommentsClient::GetEmailTemplateRenderErrorsResponse.new } + + describe 'test an instance of GetEmailTemplateRenderErrorsResponse' do + it 'should create an instance of GetEmailTemplateRenderErrorsResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::GetEmailTemplateRenderErrorsResponse) + 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 + + describe 'test attribute "render_errors"' 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/get_email_template_response_spec.rb b/client/spec/models/get_email_template_response_spec.rb new file mode 100644 index 0000000..dd4848d --- /dev/null +++ b/client/spec/models/get_email_template_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetEmailTemplateResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetEmailTemplateResponse do + #let(:instance) { FastCommentsClient::GetEmailTemplateResponse.new } + + describe 'test an instance of GetEmailTemplateResponse' do + it 'should create an instance of GetEmailTemplateResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::GetEmailTemplateResponse) + 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 + + describe 'test attribute "email_template"' 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/get_email_templates200_response_spec.rb b/client/spec/models/get_email_templates200_response_spec.rb new file mode 100644 index 0000000..7db2e09 --- /dev/null +++ b/client/spec/models/get_email_templates200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetEmailTemplates200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetEmailTemplates200Response do +end diff --git a/client/spec/models/get_email_templates_response_spec.rb b/client/spec/models/get_email_templates_response_spec.rb new file mode 100644 index 0000000..e52d4aa --- /dev/null +++ b/client/spec/models/get_email_templates_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetEmailTemplatesResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetEmailTemplatesResponse do + #let(:instance) { FastCommentsClient::GetEmailTemplatesResponse.new } + + describe 'test an instance of GetEmailTemplatesResponse' do + it 'should create an instance of GetEmailTemplatesResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::GetEmailTemplatesResponse) + 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 + + describe 'test attribute "email_templates"' 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/get_hash_tags200_response_spec.rb b/client/spec/models/get_hash_tags200_response_spec.rb new file mode 100644 index 0000000..07249e6 --- /dev/null +++ b/client/spec/models/get_hash_tags200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetHashTags200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetHashTags200Response do +end diff --git a/client/spec/models/get_hash_tags_response_spec.rb b/client/spec/models/get_hash_tags_response_spec.rb new file mode 100644 index 0000000..95d8cf7 --- /dev/null +++ b/client/spec/models/get_hash_tags_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetHashTagsResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetHashTagsResponse do + #let(:instance) { FastCommentsClient::GetHashTagsResponse.new } + + describe 'test an instance of GetHashTagsResponse' do + it 'should create an instance of GetHashTagsResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::GetHashTagsResponse) + 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 + + describe 'test attribute "hash_tags"' 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/get_moderator200_response_spec.rb b/client/spec/models/get_moderator200_response_spec.rb new file mode 100644 index 0000000..95e0f9d --- /dev/null +++ b/client/spec/models/get_moderator200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetModerator200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetModerator200Response do +end diff --git a/client/spec/models/get_moderator_response_spec.rb b/client/spec/models/get_moderator_response_spec.rb new file mode 100644 index 0000000..df65c6b --- /dev/null +++ b/client/spec/models/get_moderator_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetModeratorResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetModeratorResponse do + #let(:instance) { FastCommentsClient::GetModeratorResponse.new } + + describe 'test an instance of GetModeratorResponse' do + it 'should create an instance of GetModeratorResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::GetModeratorResponse) + 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 + + describe 'test attribute "moderator"' 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/get_moderators200_response_spec.rb b/client/spec/models/get_moderators200_response_spec.rb new file mode 100644 index 0000000..4689432 --- /dev/null +++ b/client/spec/models/get_moderators200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetModerators200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetModerators200Response do +end diff --git a/client/spec/models/get_moderators_response_spec.rb b/client/spec/models/get_moderators_response_spec.rb new file mode 100644 index 0000000..22a76b6 --- /dev/null +++ b/client/spec/models/get_moderators_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetModeratorsResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetModeratorsResponse do + #let(:instance) { FastCommentsClient::GetModeratorsResponse.new } + + describe 'test an instance of GetModeratorsResponse' do + it 'should create an instance of GetModeratorsResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::GetModeratorsResponse) + 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 + + describe 'test attribute "moderators"' 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/get_notification_count200_response_spec.rb b/client/spec/models/get_notification_count200_response_spec.rb new file mode 100644 index 0000000..ecc9343 --- /dev/null +++ b/client/spec/models/get_notification_count200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetNotificationCount200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetNotificationCount200Response do +end diff --git a/client/spec/models/get_notification_count_response_spec.rb b/client/spec/models/get_notification_count_response_spec.rb new file mode 100644 index 0000000..c4ef3fc --- /dev/null +++ b/client/spec/models/get_notification_count_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetNotificationCountResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetNotificationCountResponse do + #let(:instance) { FastCommentsClient::GetNotificationCountResponse.new } + + describe 'test an instance of GetNotificationCountResponse' do + it 'should create an instance of GetNotificationCountResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::GetNotificationCountResponse) + 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 + + describe 'test attribute "count"' 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/get_notifications200_response_spec.rb b/client/spec/models/get_notifications200_response_spec.rb new file mode 100644 index 0000000..ba6d6e7 --- /dev/null +++ b/client/spec/models/get_notifications200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetNotifications200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetNotifications200Response do +end diff --git a/client/spec/models/get_notifications_response_spec.rb b/client/spec/models/get_notifications_response_spec.rb new file mode 100644 index 0000000..97fd59d --- /dev/null +++ b/client/spec/models/get_notifications_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetNotificationsResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetNotificationsResponse do + #let(:instance) { FastCommentsClient::GetNotificationsResponse.new } + + describe 'test an instance of GetNotificationsResponse' do + it 'should create an instance of GetNotificationsResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::GetNotificationsResponse) + 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 + + describe 'test attribute "notifications"' 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/get_pending_webhook_event_count200_response_spec.rb b/client/spec/models/get_pending_webhook_event_count200_response_spec.rb new file mode 100644 index 0000000..adf2bc1 --- /dev/null +++ b/client/spec/models/get_pending_webhook_event_count200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetPendingWebhookEventCount200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetPendingWebhookEventCount200Response 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 new file mode 100644 index 0000000..94262de --- /dev/null +++ b/client/spec/models/get_pending_webhook_event_count_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetPendingWebhookEventCountResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetPendingWebhookEventCountResponse do + #let(:instance) { FastCommentsClient::GetPendingWebhookEventCountResponse.new } + + describe 'test an instance of GetPendingWebhookEventCountResponse' do + it 'should create an instance of GetPendingWebhookEventCountResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::GetPendingWebhookEventCountResponse) + 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 + + describe 'test attribute "count"' 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/get_pending_webhook_events200_response_spec.rb b/client/spec/models/get_pending_webhook_events200_response_spec.rb new file mode 100644 index 0000000..0fa7fa5 --- /dev/null +++ b/client/spec/models/get_pending_webhook_events200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetPendingWebhookEvents200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetPendingWebhookEvents200Response 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 new file mode 100644 index 0000000..6328298 --- /dev/null +++ b/client/spec/models/get_pending_webhook_events_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetPendingWebhookEventsResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetPendingWebhookEventsResponse do + #let(:instance) { FastCommentsClient::GetPendingWebhookEventsResponse.new } + + describe 'test an instance of GetPendingWebhookEventsResponse' do + it 'should create an instance of GetPendingWebhookEventsResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::GetPendingWebhookEventsResponse) + 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 + + describe 'test attribute "pending_webhook_events"' 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/get_question_config200_response_spec.rb b/client/spec/models/get_question_config200_response_spec.rb new file mode 100644 index 0000000..cd01a3a --- /dev/null +++ b/client/spec/models/get_question_config200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetQuestionConfig200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetQuestionConfig200Response do +end diff --git a/client/spec/models/get_question_config_response_spec.rb b/client/spec/models/get_question_config_response_spec.rb new file mode 100644 index 0000000..dd97cd0 --- /dev/null +++ b/client/spec/models/get_question_config_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetQuestionConfigResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetQuestionConfigResponse do + #let(:instance) { FastCommentsClient::GetQuestionConfigResponse.new } + + describe 'test an instance of GetQuestionConfigResponse' do + it 'should create an instance of GetQuestionConfigResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::GetQuestionConfigResponse) + 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 + + describe 'test attribute "question_config"' 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/get_question_configs200_response_spec.rb b/client/spec/models/get_question_configs200_response_spec.rb new file mode 100644 index 0000000..2ba738c --- /dev/null +++ b/client/spec/models/get_question_configs200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetQuestionConfigs200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetQuestionConfigs200Response do +end diff --git a/client/spec/models/get_question_configs_response_spec.rb b/client/spec/models/get_question_configs_response_spec.rb new file mode 100644 index 0000000..a251d61 --- /dev/null +++ b/client/spec/models/get_question_configs_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetQuestionConfigsResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetQuestionConfigsResponse do + #let(:instance) { FastCommentsClient::GetQuestionConfigsResponse.new } + + describe 'test an instance of GetQuestionConfigsResponse' do + it 'should create an instance of GetQuestionConfigsResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::GetQuestionConfigsResponse) + 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 + + describe 'test attribute "question_configs"' 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/get_question_result200_response_spec.rb b/client/spec/models/get_question_result200_response_spec.rb new file mode 100644 index 0000000..4404544 --- /dev/null +++ b/client/spec/models/get_question_result200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetQuestionResult200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetQuestionResult200Response do +end diff --git a/client/spec/models/get_question_result_response_spec.rb b/client/spec/models/get_question_result_response_spec.rb new file mode 100644 index 0000000..90a686c --- /dev/null +++ b/client/spec/models/get_question_result_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetQuestionResultResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetQuestionResultResponse do + #let(:instance) { FastCommentsClient::GetQuestionResultResponse.new } + + describe 'test an instance of GetQuestionResultResponse' do + it 'should create an instance of GetQuestionResultResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::GetQuestionResultResponse) + 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 + + describe 'test attribute "question_result"' 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/get_question_results200_response_spec.rb b/client/spec/models/get_question_results200_response_spec.rb new file mode 100644 index 0000000..2322312 --- /dev/null +++ b/client/spec/models/get_question_results200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetQuestionResults200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetQuestionResults200Response do +end diff --git a/client/spec/models/get_question_results_response_spec.rb b/client/spec/models/get_question_results_response_spec.rb new file mode 100644 index 0000000..a982c3d --- /dev/null +++ b/client/spec/models/get_question_results_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetQuestionResultsResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetQuestionResultsResponse do + #let(:instance) { FastCommentsClient::GetQuestionResultsResponse.new } + + describe 'test an instance of GetQuestionResultsResponse' do + it 'should create an instance of GetQuestionResultsResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::GetQuestionResultsResponse) + 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 + + describe 'test attribute "question_results"' 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/get_tenant200_response_spec.rb b/client/spec/models/get_tenant200_response_spec.rb new file mode 100644 index 0000000..ee09961 --- /dev/null +++ b/client/spec/models/get_tenant200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetTenant200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetTenant200Response do +end diff --git a/client/spec/models/get_tenant_daily_usages200_response_spec.rb b/client/spec/models/get_tenant_daily_usages200_response_spec.rb new file mode 100644 index 0000000..f2115e3 --- /dev/null +++ b/client/spec/models/get_tenant_daily_usages200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetTenantDailyUsages200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetTenantDailyUsages200Response 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 new file mode 100644 index 0000000..533505a --- /dev/null +++ b/client/spec/models/get_tenant_daily_usages_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetTenantDailyUsagesResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetTenantDailyUsagesResponse do + #let(:instance) { FastCommentsClient::GetTenantDailyUsagesResponse.new } + + describe 'test an instance of GetTenantDailyUsagesResponse' do + it 'should create an instance of GetTenantDailyUsagesResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::GetTenantDailyUsagesResponse) + 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 + + describe 'test attribute "tenant_daily_usages"' 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/get_tenant_package200_response_spec.rb b/client/spec/models/get_tenant_package200_response_spec.rb new file mode 100644 index 0000000..28f6c04 --- /dev/null +++ b/client/spec/models/get_tenant_package200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetTenantPackage200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetTenantPackage200Response do +end diff --git a/client/spec/models/get_tenant_package_response_spec.rb b/client/spec/models/get_tenant_package_response_spec.rb new file mode 100644 index 0000000..aae3d76 --- /dev/null +++ b/client/spec/models/get_tenant_package_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetTenantPackageResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetTenantPackageResponse do + #let(:instance) { FastCommentsClient::GetTenantPackageResponse.new } + + describe 'test an instance of GetTenantPackageResponse' do + it 'should create an instance of GetTenantPackageResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::GetTenantPackageResponse) + 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 + + describe 'test attribute "tenant_package"' 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/get_tenant_packages200_response_spec.rb b/client/spec/models/get_tenant_packages200_response_spec.rb new file mode 100644 index 0000000..4ea2e4c --- /dev/null +++ b/client/spec/models/get_tenant_packages200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetTenantPackages200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetTenantPackages200Response do +end diff --git a/client/spec/models/get_tenant_packages_response_spec.rb b/client/spec/models/get_tenant_packages_response_spec.rb new file mode 100644 index 0000000..9f16ef6 --- /dev/null +++ b/client/spec/models/get_tenant_packages_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetTenantPackagesResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetTenantPackagesResponse do + #let(:instance) { FastCommentsClient::GetTenantPackagesResponse.new } + + describe 'test an instance of GetTenantPackagesResponse' do + it 'should create an instance of GetTenantPackagesResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::GetTenantPackagesResponse) + 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 + + describe 'test attribute "tenant_packages"' 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/get_tenant_response_spec.rb b/client/spec/models/get_tenant_response_spec.rb new file mode 100644 index 0000000..9a8278f --- /dev/null +++ b/client/spec/models/get_tenant_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetTenantResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetTenantResponse do + #let(:instance) { FastCommentsClient::GetTenantResponse.new } + + describe 'test an instance of GetTenantResponse' do + it 'should create an instance of GetTenantResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::GetTenantResponse) + 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 + + describe 'test attribute "tenant"' 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/get_tenant_user200_response_spec.rb b/client/spec/models/get_tenant_user200_response_spec.rb new file mode 100644 index 0000000..639ada5 --- /dev/null +++ b/client/spec/models/get_tenant_user200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetTenantUser200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetTenantUser200Response do +end diff --git a/client/spec/models/get_tenant_user_response_spec.rb b/client/spec/models/get_tenant_user_response_spec.rb new file mode 100644 index 0000000..023e72a --- /dev/null +++ b/client/spec/models/get_tenant_user_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetTenantUserResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetTenantUserResponse do + #let(:instance) { FastCommentsClient::GetTenantUserResponse.new } + + describe 'test an instance of GetTenantUserResponse' do + it 'should create an instance of GetTenantUserResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::GetTenantUserResponse) + 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 + + describe 'test attribute "tenant_user"' 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/get_tenant_users200_response_spec.rb b/client/spec/models/get_tenant_users200_response_spec.rb new file mode 100644 index 0000000..ca537ff --- /dev/null +++ b/client/spec/models/get_tenant_users200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetTenantUsers200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetTenantUsers200Response do +end diff --git a/client/spec/models/get_tenant_users_response_spec.rb b/client/spec/models/get_tenant_users_response_spec.rb new file mode 100644 index 0000000..1fe6eb9 --- /dev/null +++ b/client/spec/models/get_tenant_users_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetTenantUsersResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetTenantUsersResponse do + #let(:instance) { FastCommentsClient::GetTenantUsersResponse.new } + + describe 'test an instance of GetTenantUsersResponse' do + it 'should create an instance of GetTenantUsersResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::GetTenantUsersResponse) + 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 + + describe 'test attribute "tenant_users"' 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/get_tenants200_response_spec.rb b/client/spec/models/get_tenants200_response_spec.rb new file mode 100644 index 0000000..6e89273 --- /dev/null +++ b/client/spec/models/get_tenants200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetTenants200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetTenants200Response do +end diff --git a/client/spec/models/get_tenants_response_spec.rb b/client/spec/models/get_tenants_response_spec.rb new file mode 100644 index 0000000..08d96dd --- /dev/null +++ b/client/spec/models/get_tenants_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetTenantsResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetTenantsResponse do + #let(:instance) { FastCommentsClient::GetTenantsResponse.new } + + describe 'test an instance of GetTenantsResponse' do + it 'should create an instance of GetTenantsResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::GetTenantsResponse) + 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 + + describe 'test attribute "tenants"' 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/get_user200_response_spec.rb b/client/spec/models/get_user200_response_spec.rb new file mode 100644 index 0000000..ca9211c --- /dev/null +++ b/client/spec/models/get_user200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetUser200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetUser200Response do +end diff --git a/client/spec/models/get_user_response_spec.rb b/client/spec/models/get_user_response_spec.rb new file mode 100644 index 0000000..beeeb3a --- /dev/null +++ b/client/spec/models/get_user_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetUserResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetUserResponse do + #let(:instance) { FastCommentsClient::GetUserResponse.new } + + describe 'test an instance of GetUserResponse' do + it 'should create an instance of GetUserResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::GetUserResponse) + 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 + + describe 'test attribute "user"' 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/get_votes200_response_spec.rb b/client/spec/models/get_votes200_response_spec.rb new file mode 100644 index 0000000..f3a50be --- /dev/null +++ b/client/spec/models/get_votes200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetVotes200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetVotes200Response do +end diff --git a/client/spec/models/get_votes_for_user200_response_spec.rb b/client/spec/models/get_votes_for_user200_response_spec.rb new file mode 100644 index 0000000..f83d609 --- /dev/null +++ b/client/spec/models/get_votes_for_user200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetVotesForUser200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetVotesForUser200Response 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 new file mode 100644 index 0000000..91e9801 --- /dev/null +++ b/client/spec/models/get_votes_for_user_response_spec.rb @@ -0,0 +1,54 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetVotesForUserResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetVotesForUserResponse do + #let(:instance) { FastCommentsClient::GetVotesForUserResponse.new } + + describe 'test an instance of GetVotesForUserResponse' do + it 'should create an instance of GetVotesForUserResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::GetVotesForUserResponse) + 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 + + describe 'test attribute "applied_authorized_votes"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "applied_anonymous_votes"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "pending_votes"' 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/get_votes_response_spec.rb b/client/spec/models/get_votes_response_spec.rb new file mode 100644 index 0000000..65d7087 --- /dev/null +++ b/client/spec/models/get_votes_response_spec.rb @@ -0,0 +1,54 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::GetVotesResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::GetVotesResponse do + #let(:instance) { FastCommentsClient::GetVotesResponse.new } + + describe 'test an instance of GetVotesResponse' do + it 'should create an instance of GetVotesResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::GetVotesResponse) + 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 + + describe 'test attribute "applied_authorized_votes"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "applied_anonymous_votes"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "pending_votes"' 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/imported_site_type_spec.rb b/client/spec/models/imported_site_type_spec.rb new file mode 100644 index 0000000..64bfe7a --- /dev/null +++ b/client/spec/models/imported_site_type_spec.rb @@ -0,0 +1,30 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::ImportedSiteType +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::ImportedSiteType do + #let(:instance) { FastCommentsClient::ImportedSiteType.new } + + describe 'test an instance of ImportedSiteType' do + it 'should create an instance of ImportedSiteType' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::ImportedSiteType) + end + end + +end diff --git a/client/spec/models/moderator_spec.rb b/client/spec/models/moderator_spec.rb new file mode 100644 index 0000000..d17abe4 --- /dev/null +++ b/client/spec/models/moderator_spec.rb @@ -0,0 +1,138 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::Moderator +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::Moderator do + #let(:instance) { FastCommentsClient::Moderator.new } + + describe 'test an instance of Moderator' do + it 'should create an instance of Moderator' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::Moderator) + end + end + + describe 'test attribute "_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "tenant_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "user_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "accepted_invite"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "email"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "mark_reviewed_count"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "deleted_count"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "marked_spam_count"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "marked_not_spam_count"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "approved_count"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "un_approved_count"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "edited_count"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "banned_count"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "un_flagged_count"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "verification_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "created_at"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "moderation_group_ids"' 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/patch_hash_tag200_response_spec.rb b/client/spec/models/patch_hash_tag200_response_spec.rb new file mode 100644 index 0000000..663525a --- /dev/null +++ b/client/spec/models/patch_hash_tag200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::PatchHashTag200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::PatchHashTag200Response do +end diff --git a/client/spec/models/pending_comment_to_sync_outbound_spec.rb b/client/spec/models/pending_comment_to_sync_outbound_spec.rb new file mode 100644 index 0000000..1e7b60e --- /dev/null +++ b/client/spec/models/pending_comment_to_sync_outbound_spec.rb @@ -0,0 +1,108 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::PendingCommentToSyncOutbound +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::PendingCommentToSyncOutbound do + #let(:instance) { FastCommentsClient::PendingCommentToSyncOutbound.new } + + describe 'test an instance of PendingCommentToSyncOutbound' do + it 'should create an instance of PendingCommentToSyncOutbound' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::PendingCommentToSyncOutbound) + end + end + + describe 'test attribute "_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "comment_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "comment"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "external_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "created_at"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "tenant_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "attempt_count"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "next_attempt_at"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "event_type"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "type"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "domain"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "last_error"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "webhook_id"' 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/public_vote_spec.rb b/client/spec/models/public_vote_spec.rb new file mode 100644 index 0000000..499a336 --- /dev/null +++ b/client/spec/models/public_vote_spec.rb @@ -0,0 +1,66 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::PublicVote +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::PublicVote do + #let(:instance) { FastCommentsClient::PublicVote.new } + + describe 'test an instance of PublicVote' do + it 'should create an instance of PublicVote' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::PublicVote) + end + end + + describe 'test attribute "id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "url_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "comment_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "user_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "direction"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "created_at"' 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/question_config_custom_options_inner_spec.rb b/client/spec/models/question_config_custom_options_inner_spec.rb new file mode 100644 index 0000000..c9f765e --- /dev/null +++ b/client/spec/models/question_config_custom_options_inner_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::QuestionConfigCustomOptionsInner +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::QuestionConfigCustomOptionsInner do + #let(:instance) { FastCommentsClient::QuestionConfigCustomOptionsInner.new } + + describe 'test an instance of QuestionConfigCustomOptionsInner' do + it 'should create an instance of QuestionConfigCustomOptionsInner' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::QuestionConfigCustomOptionsInner) + end + end + + describe 'test attribute "image_src"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "name"' 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/question_config_spec.rb b/client/spec/models/question_config_spec.rb new file mode 100644 index 0000000..fe5597f --- /dev/null +++ b/client/spec/models/question_config_spec.rb @@ -0,0 +1,156 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::QuestionConfig +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::QuestionConfig do + #let(:instance) { FastCommentsClient::QuestionConfig.new } + + describe 'test an instance of QuestionConfig' do + it 'should create an instance of QuestionConfig' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::QuestionConfig) + end + end + + describe 'test attribute "_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "tenant_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "question"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "summary_label"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "help_text"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "created_at"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "created_by"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "used_count"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "last_used"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "type"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "num_stars"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "min"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "default_value"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "label_negative"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "label_positive"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "custom_options"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "sub_question_ids"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "always_show_sub_questions"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "reporting_order"' 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/render_email_template200_response_spec.rb b/client/spec/models/render_email_template200_response_spec.rb new file mode 100644 index 0000000..28f8f73 --- /dev/null +++ b/client/spec/models/render_email_template200_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.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::RenderEmailTemplate200Response +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::RenderEmailTemplate200Response do +end diff --git a/client/spec/models/render_email_template_body_spec.rb b/client/spec/models/render_email_template_body_spec.rb new file mode 100644 index 0000000..7412261 --- /dev/null +++ b/client/spec/models/render_email_template_body_spec.rb @@ -0,0 +1,54 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::RenderEmailTemplateBody +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::RenderEmailTemplateBody do + #let(:instance) { FastCommentsClient::RenderEmailTemplateBody.new } + + describe 'test an instance of RenderEmailTemplateBody' do + it 'should create an instance of RenderEmailTemplateBody' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::RenderEmailTemplateBody) + end + end + + describe 'test attribute "email_template_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "ejs"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "test_data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "translation_overrides_by_locale"' 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/render_email_template_response_spec.rb b/client/spec/models/render_email_template_response_spec.rb new file mode 100644 index 0000000..a727ae9 --- /dev/null +++ b/client/spec/models/render_email_template_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::RenderEmailTemplateResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::RenderEmailTemplateResponse do + #let(:instance) { FastCommentsClient::RenderEmailTemplateResponse.new } + + describe 'test an instance of RenderEmailTemplateResponse' do + it 'should create an instance of RenderEmailTemplateResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::RenderEmailTemplateResponse) + 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 + + describe 'test attribute "html"' 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/replace_tenant_package_body_spec.rb b/client/spec/models/replace_tenant_package_body_spec.rb new file mode 100644 index 0000000..57d11e4 --- /dev/null +++ b/client/spec/models/replace_tenant_package_body_spec.rb @@ -0,0 +1,210 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::ReplaceTenantPackageBody +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::ReplaceTenantPackageBody do + #let(:instance) { FastCommentsClient::ReplaceTenantPackageBody.new } + + describe 'test an instance of ReplaceTenantPackageBody' do + it 'should create an instance of ReplaceTenantPackageBody' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::ReplaceTenantPackageBody) + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "monthly_cost_usd"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "yearly_cost_usd"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_monthly_page_loads"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_monthly_api_credits"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_monthly_comments"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_concurrent_users"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_tenant_users"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_sso_users"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_moderators"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_domains"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "has_debranding"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "for_who_text"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "feature_taglines"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "has_flex_pricing"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_page_load_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_page_load_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_comment_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_comment_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_sso_user_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_sso_user_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_api_credit_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_api_credit_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_moderator_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_moderator_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_admin_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_admin_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_domain_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_domain_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_minimum_cost_cents"' 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/replace_tenant_user_body_spec.rb b/client/spec/models/replace_tenant_user_body_spec.rb new file mode 100644 index 0000000..1f92138 --- /dev/null +++ b/client/spec/models/replace_tenant_user_body_spec.rb @@ -0,0 +1,198 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::ReplaceTenantUserBody +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::ReplaceTenantUserBody do + #let(:instance) { FastCommentsClient::ReplaceTenantUserBody.new } + + describe 'test an instance of ReplaceTenantUserBody' do + it 'should create an instance of ReplaceTenantUserBody' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::ReplaceTenantUserBody) + end + end + + describe 'test attribute "username"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "email"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "display_name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "website_url"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "sign_up_date"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "locale"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "verified"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "login_count"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "opted_in_notifications"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "opted_in_tenant_notifications"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "hide_account_code"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "avatar_src"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_help_request_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_account_owner"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_admin_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_billing_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_analytics_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_customization_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_manage_data_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_comment_moderator_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_api_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "moderator_ids"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "digest_email_frequency"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "display_label"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "created_from_url_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "created_from_tenant_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "last_login_date"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "karma"' 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/tenant_hash_tag_spec.rb b/client/spec/models/tenant_hash_tag_spec.rb new file mode 100644 index 0000000..d4fcb87 --- /dev/null +++ b/client/spec/models/tenant_hash_tag_spec.rb @@ -0,0 +1,60 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::TenantHashTag +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::TenantHashTag do + #let(:instance) { FastCommentsClient::TenantHashTag.new } + + describe 'test an instance of TenantHashTag' do + it 'should create an instance of TenantHashTag' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::TenantHashTag) + end + end + + describe 'test attribute "_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "created_at"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "tenant_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "tag"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "url"' 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/tenant_package_spec.rb b/client/spec/models/tenant_package_spec.rb new file mode 100644 index 0000000..b6596a4 --- /dev/null +++ b/client/spec/models/tenant_package_spec.rb @@ -0,0 +1,342 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::TenantPackage +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::TenantPackage do + #let(:instance) { FastCommentsClient::TenantPackage.new } + + describe 'test an instance of TenantPackage' do + it 'should create an instance of TenantPackage' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::TenantPackage) + end + end + + describe 'test attribute "_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "tenant_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "created_at"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "monthly_cost_usd"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "yearly_cost_usd"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "monthly_stripe_plan_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "yearly_stripe_plan_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_monthly_page_loads"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_monthly_api_credits"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_monthly_small_widgets_credits"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_monthly_comments"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_concurrent_users"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_tenant_users"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_sso_users"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_moderators"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_domains"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_white_labeled_tenants"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_monthly_event_log_requests"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "has_white_labeling"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "has_debranding"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "has_llm_spam_detection"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "for_who_text"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "feature_taglines"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "has_auditing"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "has_flex_pricing"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "enable_saml"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_page_load_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_page_load_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_comment_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_comment_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_sso_user_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_sso_user_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_api_credit_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_api_credit_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_small_widgets_credit_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_small_widgets_credit_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_moderator_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_moderator_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_admin_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_admin_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_domain_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_domain_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_chat_gpt_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_chat_gpt_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_minimum_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_managed_tenant_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_sso_admin_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_sso_admin_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_sso_moderator_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_sso_moderator_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_sso_billing_monthly_active_users"' 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/update_email_template_body_spec.rb b/client/spec/models/update_email_template_body_spec.rb new file mode 100644 index 0000000..671eb60 --- /dev/null +++ b/client/spec/models/update_email_template_body_spec.rb @@ -0,0 +1,66 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UpdateEmailTemplateBody +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UpdateEmailTemplateBody do + #let(:instance) { FastCommentsClient::UpdateEmailTemplateBody.new } + + describe 'test an instance of UpdateEmailTemplateBody' do + it 'should create an instance of UpdateEmailTemplateBody' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::UpdateEmailTemplateBody) + end + end + + describe 'test attribute "email_template_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "display_name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "ejs"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "domain"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "translation_overrides_by_locale"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "test_data"' 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/update_hash_tag_body_spec.rb b/client/spec/models/update_hash_tag_body_spec.rb new file mode 100644 index 0000000..2d82b6a --- /dev/null +++ b/client/spec/models/update_hash_tag_body_spec.rb @@ -0,0 +1,48 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UpdateHashTagBody +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UpdateHashTagBody do + #let(:instance) { FastCommentsClient::UpdateHashTagBody.new } + + describe 'test an instance of UpdateHashTagBody' do + it 'should create an instance of UpdateHashTagBody' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::UpdateHashTagBody) + end + end + + describe 'test attribute "tenant_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "url"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "tag"' 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/update_hash_tag_response_spec.rb b/client/spec/models/update_hash_tag_response_spec.rb new file mode 100644 index 0000000..a8f3414 --- /dev/null +++ b/client/spec/models/update_hash_tag_response_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UpdateHashTagResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UpdateHashTagResponse do + #let(:instance) { FastCommentsClient::UpdateHashTagResponse.new } + + describe 'test an instance of UpdateHashTagResponse' do + it 'should create an instance of UpdateHashTagResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::UpdateHashTagResponse) + 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 + + describe 'test attribute "hash_tag"' 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/update_moderator_body_spec.rb b/client/spec/models/update_moderator_body_spec.rb new file mode 100644 index 0000000..8523042 --- /dev/null +++ b/client/spec/models/update_moderator_body_spec.rb @@ -0,0 +1,54 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UpdateModeratorBody +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UpdateModeratorBody do + #let(:instance) { FastCommentsClient::UpdateModeratorBody.new } + + describe 'test an instance of UpdateModeratorBody' do + it 'should create an instance of UpdateModeratorBody' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::UpdateModeratorBody) + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "email"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "user_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "moderation_group_ids"' 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/update_notification_body_spec.rb b/client/spec/models/update_notification_body_spec.rb new file mode 100644 index 0000000..a27d1c1 --- /dev/null +++ b/client/spec/models/update_notification_body_spec.rb @@ -0,0 +1,42 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UpdateNotificationBody +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UpdateNotificationBody do + #let(:instance) { FastCommentsClient::UpdateNotificationBody.new } + + describe 'test an instance of UpdateNotificationBody' do + it 'should create an instance of UpdateNotificationBody' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::UpdateNotificationBody) + end + end + + describe 'test attribute "viewed"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "opted_out"' 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/update_question_config_body_spec.rb b/client/spec/models/update_question_config_body_spec.rb new file mode 100644 index 0000000..4c8830e --- /dev/null +++ b/client/spec/models/update_question_config_body_spec.rb @@ -0,0 +1,114 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UpdateQuestionConfigBody +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UpdateQuestionConfigBody do + #let(:instance) { FastCommentsClient::UpdateQuestionConfigBody.new } + + describe 'test an instance of UpdateQuestionConfigBody' do + it 'should create an instance of UpdateQuestionConfigBody' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::UpdateQuestionConfigBody) + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "question"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "help_text"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "type"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "num_stars"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "min"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "default_value"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "label_negative"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "label_positive"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "custom_options"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "sub_question_ids"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "always_show_sub_questions"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "reporting_order"' 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/update_question_result_body_spec.rb b/client/spec/models/update_question_result_body_spec.rb new file mode 100644 index 0000000..c8b7b5c --- /dev/null +++ b/client/spec/models/update_question_result_body_spec.rb @@ -0,0 +1,72 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UpdateQuestionResultBody +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UpdateQuestionResultBody do + #let(:instance) { FastCommentsClient::UpdateQuestionResultBody.new } + + describe 'test an instance of UpdateQuestionResultBody' do + it 'should create an instance of UpdateQuestionResultBody' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::UpdateQuestionResultBody) + end + end + + describe 'test attribute "url_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "anon_user_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "user_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "value"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "comment_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "question_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "meta"' 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/update_tenant_body_spec.rb b/client/spec/models/update_tenant_body_spec.rb new file mode 100644 index 0000000..6606971 --- /dev/null +++ b/client/spec/models/update_tenant_body_spec.rb @@ -0,0 +1,174 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UpdateTenantBody +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UpdateTenantBody do + #let(:instance) { FastCommentsClient::UpdateTenantBody.new } + + describe 'test an instance of UpdateTenantBody' do + it 'should create an instance of UpdateTenantBody' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::UpdateTenantBody) + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "email"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "sign_up_date"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "package_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "payment_frequency"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "billing_info_valid"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "billing_handled_externally"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "created_by"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_setup"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "domain_configuration"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "billing_info"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "stripe_customer_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "stripe_subscription_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "stripe_plan_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "enable_profanity_filter"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "enable_spam_filter"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "remove_unverified_comments"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "unverified_comments_tt_lms"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "comments_require_approval"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "auto_approve_comment_on_verification"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "send_profane_to_spam"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "de_anon_ip_addr"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "meta"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "managed_by_tenant_id"' 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/update_tenant_package_body_spec.rb b/client/spec/models/update_tenant_package_body_spec.rb new file mode 100644 index 0000000..ac27522 --- /dev/null +++ b/client/spec/models/update_tenant_package_body_spec.rb @@ -0,0 +1,216 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UpdateTenantPackageBody +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UpdateTenantPackageBody do + #let(:instance) { FastCommentsClient::UpdateTenantPackageBody.new } + + describe 'test an instance of UpdateTenantPackageBody' do + it 'should create an instance of UpdateTenantPackageBody' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::UpdateTenantPackageBody) + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "monthly_cost_usd"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "yearly_cost_usd"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_monthly_page_loads"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_monthly_api_credits"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_monthly_comments"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_concurrent_users"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_tenant_users"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_sso_users"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_moderators"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "max_domains"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "has_debranding"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "has_white_labeling"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "for_who_text"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "feature_taglines"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "has_flex_pricing"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_page_load_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_page_load_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_comment_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_comment_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_sso_user_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_sso_user_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_api_credit_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_api_credit_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_moderator_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_moderator_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_admin_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_admin_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_domain_cost_cents"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_domain_unit"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "flex_minimum_cost_cents"' 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/update_tenant_user_body_spec.rb b/client/spec/models/update_tenant_user_body_spec.rb new file mode 100644 index 0000000..aecef34 --- /dev/null +++ b/client/spec/models/update_tenant_user_body_spec.rb @@ -0,0 +1,174 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UpdateTenantUserBody +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UpdateTenantUserBody do + #let(:instance) { FastCommentsClient::UpdateTenantUserBody.new } + + describe 'test an instance of UpdateTenantUserBody' do + it 'should create an instance of UpdateTenantUserBody' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::UpdateTenantUserBody) + end + end + + describe 'test attribute "username"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "display_name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "website_url"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "email"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "sign_up_date"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "verified"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "login_count"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "opted_in_notifications"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "opted_in_tenant_notifications"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "hide_account_code"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "avatar_src"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_help_request_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_account_owner"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_admin_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_billing_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_analytics_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_customization_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_manage_data_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_comment_moderator_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_api_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "moderator_ids"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "locale"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "digest_email_frequency"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "display_label"' 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/user_notification_count_spec.rb b/client/spec/models/user_notification_count_spec.rb new file mode 100644 index 0000000..105ef8d --- /dev/null +++ b/client/spec/models/user_notification_count_spec.rb @@ -0,0 +1,54 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::UserNotificationCount +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::UserNotificationCount do + #let(:instance) { FastCommentsClient::UserNotificationCount.new } + + describe 'test an instance of UserNotificationCount' do + it 'should create an instance of UserNotificationCount' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::UserNotificationCount) + end + end + + describe 'test attribute "_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "count"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "created_at"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "expire_at"' 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/user_spec.rb b/client/spec/models/user_spec.rb new file mode 100644 index 0000000..ea38884 --- /dev/null +++ b/client/spec/models/user_spec.rb @@ -0,0 +1,336 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.18.0-SNAPSHOT + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FastCommentsClient::User +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FastCommentsClient::User do + #let(:instance) { FastCommentsClient::User.new } + + describe 'test an instance of User' do + it 'should create an instance of User' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(FastCommentsClient::User) + end + end + + describe 'test attribute "_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "tenant_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "username"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "display_name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "website_url"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "email"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "pending_email"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "sign_up_date"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "created_from_url_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "created_from_tenant_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "created_from_ip_hashed"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "verified"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "login_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "login_id_date"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "login_count"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "opted_in_notifications"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "opted_in_tenant_notifications"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "hide_account_code"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "avatar_src"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_fast_comments_help_request_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_help_request_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_account_owner"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_admin_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_billing_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_analytics_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_customization_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_manage_data_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_comment_moderator_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_api_admin"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "moderator_ids"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_impersonator"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_coupon_manager"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "locale"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "digest_email_frequency"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "ignored_add_to_my_site_messages"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "last_login_date"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "display_label"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_profile_activity_private"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_profile_comments_private"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "is_profile_dm_disabled"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "profile_comment_approval_mode"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "karma"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "password_hash"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "average_ticket_ack_time_ms"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "has_blocked_users"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "bio"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "header_background_src"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "country_code"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "country_flag"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "social_links"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "has_two_factor"' 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/config.json b/config.json index 2877713..cf3edad 100644 --- a/config.json +++ b/config.json @@ -1,5 +1,5 @@ { "gemName": "fastcomments-client", "moduleName": "FastCommentsClient", - "gemVersion": "0.3.0" + "gemVersion": "1.0.0" } diff --git a/fastcomments.gemspec b/fastcomments.gemspec index c6d2b4e..2b97f77 100644 --- a/fastcomments.gemspec +++ b/fastcomments.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |spec| spec.name = "fastcomments" - spec.version = "0.3.0" + spec.version = "1.0.0" spec.authors = ["FastComments"] spec.email = ["support@fastcomments.com"] diff --git a/lib/fastcomments.rb b/lib/fastcomments.rb index 1f77890..46bcbac 100644 --- a/lib/fastcomments.rb +++ b/lib/fastcomments.rb @@ -6,5 +6,5 @@ require 'fastcomments-client' module FastComments - VERSION = '0.3.0' + VERSION = '1.0.0' end diff --git a/openapi.json b/openapi.json index e789bcf..16d5bf6 100644 --- a/openapi.json +++ b/openapi.json @@ -3422,168 +3422,118 @@ ], "type": "object" }, - "UserBadge": { + "PublicVote": { "properties": { - "_id": { - "type": "string" - }, - "userId": { + "id": { "type": "string" }, - "badgeId": { + "urlId": { "type": "string" }, - "fromTenantId": { + "commentId": { "type": "string" }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "type": { - "type": "integer", - "format": "int32" - }, - "threshold": { - "type": "integer", - "format": "int64" - }, - "description": { + "userId": { "type": "string" }, - "displayLabel": { + "direction": { "type": "string" }, - "displaySrc": { - "type": "string", - "nullable": true - }, - "backgroundColor": { - "type": "string", - "nullable": true - }, - "borderColor": { - "type": "string", - "nullable": true - }, - "textColor": { - "type": "string", - "nullable": true - }, - "cssClass": { - "type": "string", - "nullable": true - }, - "veteranUserThresholdMillis": { - "type": "integer", - "format": "int64" - }, - "displayedOnComments": { - "type": "boolean" - }, - "receivedAt": { + "createdAt": { "type": "string", "format": "date-time" - }, - "order": { - "type": "integer", - "format": "int32" } }, "required": [ - "_id", + "id", + "urlId", + "commentId", "userId", - "badgeId", - "fromTenantId", - "createdAt", - "type", - "threshold", - "description", - "displayLabel", - "veteranUserThresholdMillis", - "displayedOnComments", - "receivedAt" + "direction", + "createdAt" ], "type": "object", "additionalProperties": false }, - "APIGetUserBadgeResponse": { + "GetVotesResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "userBadge": { - "$ref": "#/components/schemas/UserBadge" - } - }, - "required": [ - "status", - "userBadge" - ], - "type": "object", - "additionalProperties": false - }, - "APIGetUserBadgesResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "appliedAuthorizedVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" }, - "userBadges": { + "appliedAnonymousVotes": { "items": { - "$ref": "#/components/schemas/UserBadge" + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" + }, + "pendingVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" }, "type": "array" } }, "required": [ "status", - "userBadges" + "appliedAuthorizedVotes", + "appliedAnonymousVotes", + "pendingVotes" ], "type": "object", "additionalProperties": false }, - "APICreateUserBadgeResponse": { + "GetVotesForUserResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "userBadge": { - "$ref": "#/components/schemas/UserBadge" + "appliedAuthorizedVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" }, - "notes": { + "appliedAnonymousVotes": { "items": { - "type": "string" + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" + }, + "pendingVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" }, "type": "array" } }, "required": [ "status", - "userBadge" + "appliedAuthorizedVotes", + "appliedAnonymousVotes", + "pendingVotes" ], "type": "object", "additionalProperties": false }, - "CreateUserBadgeParams": { + "CreateVoteResponse": { "properties": { - "userId": { - "type": "string" - }, - "badgeId": { - "type": "string" - }, - "displayedOnComments": { - "type": "boolean" + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "userId", - "badgeId" + "status" ], "type": "object", - "additionalProperties": false + "additionalProperties": {} }, - "APIEmptySuccessResponse": { + "DeleteVoteResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" @@ -3593,2137 +3543,9094 @@ "status" ], "type": "object", - "additionalProperties": false - }, - "UpdateUserBadgeParams": { - "properties": { - "displayedOnComments": { - "type": "boolean" - } - }, - "type": "object", - "additionalProperties": false + "additionalProperties": {} }, - "Record_string.number_": { - "properties": {}, - "additionalProperties": { - "type": "number", - "format": "double" - }, - "type": "object", - "description": "Construct a type with a set of properties K of type T" + "DigestEmailFrequency": { + "enum": [ + -1, + 0, + 1, + 2 + ], + "type": "number" }, - "UserBadgeProgress": { + "User": { "properties": { "_id": { "type": "string" }, "tenantId": { - "type": "string" + "type": "string", + "nullable": true }, - "userId": { + "username": { "type": "string" }, - "firstCommentId": { + "displayName": { "type": "string" }, - "firstCommentDate": { + "websiteUrl": { "type": "string", - "format": "date-time" + "nullable": true }, - "autoTrustFactor": { - "type": "number", - "format": "double" + "email": { + "type": "string", + "nullable": true }, - "manualTrustFactor": { - "type": "number", - "format": "double" + "pendingEmail": { + "type": "string" }, - "progress": { - "$ref": "#/components/schemas/Record_string.number_" - } - }, - "required": [ - "_id", - "tenantId", - "userId", - "firstCommentId", - "firstCommentDate", - "progress" - ], - "type": "object", - "additionalProperties": false - }, - "APIGetUserBadgeProgressResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "signUpDate": { + "type": "integer", + "format": "int64" }, - "userBadgeProgress": { - "$ref": "#/components/schemas/UserBadgeProgress" - } - }, - "required": [ - "status", - "userBadgeProgress" - ], - "type": "object", - "additionalProperties": false - }, - "APIGetUserBadgeProgressListResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "createdFromUrlId": { + "type": "string", + "nullable": true }, - "userBadgeProgresses": { - "items": { - "$ref": "#/components/schemas/UserBadgeProgress" - }, - "type": "array" - } - }, - "required": [ - "status", - "userBadgeProgresses" - ], - "type": "object", - "additionalProperties": false - }, - "Record_number.number_": { - "properties": {}, - "additionalProperties": { - "type": "number", - "format": "double" - }, - "type": "object", - "description": "Construct a type with a set of properties K of type T" - }, - "QuestionDatum": { - "properties": { - "v": { - "$ref": "#/components/schemas/Record_number.number_" + "createdFromTenantId": { + "type": "string", + "nullable": true }, - "total": { + "createdFromIpHashed": { + "type": "string" + }, + "verified": { + "type": "boolean" + }, + "loginId": { + "type": "string" + }, + "loginIdDate": { "type": "integer", "format": "int64" - } - }, - "required": [ - "v", - "total" + }, + "loginCount": { + "type": "integer", + "format": "int32" + }, + "optedInNotifications": { + "type": "boolean" + }, + "optedInTenantNotifications": { + "type": "boolean" + }, + "hideAccountCode": { + "type": "boolean" + }, + "avatarSrc": { + "type": "string", + "nullable": true + }, + "isFastCommentsHelpRequestAdmin": { + "type": "boolean" + }, + "isHelpRequestAdmin": { + "type": "boolean" + }, + "isAccountOwner": { + "type": "boolean" + }, + "isAdminAdmin": { + "type": "boolean" + }, + "isBillingAdmin": { + "type": "boolean" + }, + "isAnalyticsAdmin": { + "type": "boolean" + }, + "isCustomizationAdmin": { + "type": "boolean" + }, + "isManageDataAdmin": { + "type": "boolean" + }, + "isCommentModeratorAdmin": { + "type": "boolean" + }, + "isAPIAdmin": { + "type": "boolean" + }, + "moderatorIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "isImpersonator": { + "type": "boolean" + }, + "isCouponManager": { + "type": "boolean" + }, + "locale": { + "type": "string" + }, + "digestEmailFrequency": { + "$ref": "#/components/schemas/DigestEmailFrequency" + }, + "ignoredAddToMySiteMessages": { + "type": "boolean" + }, + "lastLoginDate": { + "type": "string", + "format": "date-time" + }, + "displayLabel": { + "type": "string" + }, + "isProfileActivityPrivate": { + "type": "boolean" + }, + "isProfileCommentsPrivate": { + "type": "boolean" + }, + "isProfileDMDisabled": { + "type": "boolean" + }, + "profileCommentApprovalMode": { + "type": "number", + "format": "double" + }, + "karma": { + "type": "number", + "format": "double" + }, + "passwordHash": { + "type": "string" + }, + "averageTicketAckTimeMS": { + "type": "number", + "format": "double", + "nullable": true + }, + "hasBlockedUsers": { + "type": "boolean" + }, + "bio": { + "type": "string" + }, + "headerBackgroundSrc": { + "type": "string" + }, + "countryCode": { + "type": "string" + }, + "countryFlag": { + "type": "string" + }, + "socialLinks": { + "items": { + "type": "string" + }, + "type": "array" + }, + "hasTwoFactor": { + "type": "boolean" + } + }, + "required": [ + "_id", + "username", + "email", + "signUpDate", + "createdFromTenantId", + "createdFromIpHashed", + "verified", + "loginId", + "loginIdDate" ], "type": "object", "additionalProperties": false }, - "Record_string.QuestionDatum_": { - "properties": {}, - "additionalProperties": { - "$ref": "#/components/schemas/QuestionDatum" + "GetUserResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "user": { + "$ref": "#/components/schemas/User" + } }, + "required": [ + "status", + "user" + ], "type": "object", - "description": "Construct a type with a set of properties K of type T" + "additionalProperties": false }, - "QuestionResultAggregationOverall": { + "UserBadge": { "properties": { - "dataByDateBucket": { - "$ref": "#/components/schemas/Record_string.QuestionDatum_" + "_id": { + "type": "string" }, - "dataByUrlId": { - "$ref": "#/components/schemas/Record_string.QuestionDatum_" + "userId": { + "type": "string" }, - "countsByValue": { - "$ref": "#/components/schemas/Int32Map" + "badgeId": { + "type": "string" }, - "total": { + "fromTenantId": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "type": { + "type": "integer", + "format": "int32" + }, + "threshold": { "type": "integer", "format": "int64" }, - "average": { - "type": "number", - "format": "double" + "description": { + "type": "string" }, - "createdAt": { + "displayLabel": { + "type": "string" + }, + "displaySrc": { + "type": "string", + "nullable": true + }, + "backgroundColor": { + "type": "string", + "nullable": true + }, + "borderColor": { + "type": "string", + "nullable": true + }, + "textColor": { + "type": "string", + "nullable": true + }, + "cssClass": { + "type": "string", + "nullable": true + }, + "veteranUserThresholdMillis": { + "type": "integer", + "format": "int64" + }, + "displayedOnComments": { + "type": "boolean" + }, + "receivedAt": { "type": "string", "format": "date-time" + }, + "order": { + "type": "integer", + "format": "int32" } }, "required": [ - "total", - "createdAt" + "_id", + "userId", + "badgeId", + "fromTenantId", + "createdAt", + "type", + "threshold", + "description", + "displayLabel", + "veteranUserThresholdMillis", + "displayedOnComments", + "receivedAt" ], "type": "object", "additionalProperties": false }, - "AggregateQuestionResultsResponse": { + "APIGetUserBadgeResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "data": { - "$ref": "#/components/schemas/QuestionResultAggregationOverall" + "userBadge": { + "$ref": "#/components/schemas/UserBadge" } }, "required": [ "status", - "data" + "userBadge" ], "type": "object", "additionalProperties": false }, - "AggregateTimeBucket": { - "type": "string", - "enum": [ - "day", - "month", - "year" - ] - }, - "Record_string.QuestionResultAggregationOverall_": { - "properties": {}, - "additionalProperties": { - "$ref": "#/components/schemas/QuestionResultAggregationOverall" - }, - "type": "object", - "description": "Construct a type with a set of properties K of type T" - }, - "BulkAggregateQuestionResultsResponse": { + "APIGetUserBadgesResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "data": { - "$ref": "#/components/schemas/Record_string.QuestionResultAggregationOverall_" + "userBadges": { + "items": { + "$ref": "#/components/schemas/UserBadge" + }, + "type": "array" } }, "required": [ "status", - "data" + "userBadges" ], "type": "object", "additionalProperties": false }, - "BulkAggregateQuestionItem": { + "APICreateUserBadgeResponse": { "properties": { - "aggId": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "questionId": { - "type": "string" + "userBadge": { + "$ref": "#/components/schemas/UserBadge" }, - "questionIds": { + "notes": { "items": { "type": "string" }, "type": "array" + } + }, + "required": [ + "status", + "userBadge" + ], + "type": "object", + "additionalProperties": false + }, + "CreateUserBadgeParams": { + "properties": { + "userId": { + "type": "string" }, - "urlId": { - "type": "string" - }, - "timeBucket": { - "$ref": "#/components/schemas/AggregateTimeBucket" + "badgeId": { + "type": "string" }, - "startDate": { + "displayedOnComments": { + "type": "boolean" + } + }, + "required": [ + "userId", + "badgeId" + ], + "type": "object", + "additionalProperties": false + }, + "APIEmptySuccessResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "status" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateUserBadgeParams": { + "properties": { + "displayedOnComments": { + "type": "boolean" + } + }, + "type": "object", + "additionalProperties": false + }, + "Record_string.number_": { + "properties": {}, + "additionalProperties": { + "type": "number", + "format": "double" + }, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "UserBadgeProgress": { + "properties": { + "_id": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "firstCommentId": { + "type": "string" + }, + "firstCommentDate": { "type": "string", "format": "date-time" + }, + "autoTrustFactor": { + "type": "number", + "format": "double" + }, + "manualTrustFactor": { + "type": "number", + "format": "double" + }, + "progress": { + "$ref": "#/components/schemas/Record_string.number_" } }, "required": [ - "aggId" + "_id", + "tenantId", + "userId", + "firstCommentId", + "firstCommentDate", + "progress" ], "type": "object", "additionalProperties": false }, - "BulkAggregateQuestionResultsRequest": { + "APIGetUserBadgeProgressResponse": { "properties": { - "aggregations": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "userBadgeProgress": { + "$ref": "#/components/schemas/UserBadgeProgress" + } + }, + "required": [ + "status", + "userBadgeProgress" + ], + "type": "object", + "additionalProperties": false + }, + "APIGetUserBadgeProgressListResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "userBadgeProgresses": { "items": { - "$ref": "#/components/schemas/BulkAggregateQuestionItem" + "$ref": "#/components/schemas/UserBadgeProgress" }, "type": "array" } }, "required": [ - "aggregations" + "status", + "userBadgeProgresses" ], "type": "object", "additionalProperties": false }, - "CommentLogType": { - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 24, - 25, - 26, - 27, - 28, - 29, - 30, - 31, - 32, - 33, - 34, - 35, - 36, - 37, - 38, - 39, - 40, - 41, - 42, - 43, - 44, - 45, - 46, - 47, - 48, - 49, - 50, - 51, - 52, - 53, - 54 - ], - "type": "number" - }, - "RepeatCommentHandlingAction": { + "ImportedSiteType": { "enum": [ 0, - 1, - 2 + 1 ], "type": "number" }, - "RepeatCommentCheckIgnoredReason": { - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "number" + "SiteType": { + "$ref": "#/components/schemas/ImportedSiteType" }, - "CommentLogData": { + "APIDomainConfiguration": { "properties": { - "clearContent": { - "type": "boolean" - }, - "isDeletedUser": { - "type": "boolean" - }, - "phrase": { - "type": "string" - }, - "badWord": { + "id": { "type": "string" }, - "word": { + "domain": { "type": "string" }, - "locale": { - "type": "string" + "emailFromName": { + "type": "string", + "nullable": true }, - "tenantBadgeId": { - "type": "string" + "emailFromEmail": { + "type": "string", + "nullable": true }, - "badgeId": { - "type": "string" + "emailHeaders": { + "$ref": "#/components/schemas/Record_string.string_" }, - "wasLoggedIn": { - "type": "boolean" + "wpSyncToken": { + "type": "string", + "nullable": true }, - "foundUser": { + "wpSynced": { "type": "boolean" }, - "verified": { - "type": "boolean" + "wpURL": { + "type": "string", + "nullable": true }, - "engine": { - "type": "string" + "createdAt": { + "type": "string", + "format": "date-time" }, - "engineResponse": { - "type": "string" + "autoAddedDate": { + "type": "string", + "format": "date-time" }, - "engineTokens": { - "type": "number", - "format": "double" + "siteType": { + "$ref": "#/components/schemas/SiteType" }, - "trustFactor": { - "type": "number", - "format": "double" + "logoSrc": { + "type": "string", + "nullable": true }, - "rule": { - "$ref": "#/components/schemas/SpamRule" + "logoSrc100px": { + "type": "string", + "nullable": true }, - "userId": { + "footerUnsubscribeURL": { "type": "string" }, - "subscribers": { - "type": "number", - "format": "double" + "disableUnsubscribeLinks": { + "type": "boolean" + } + }, + "required": [ + "id", + "domain", + "createdAt" + ], + "type": "object", + "additionalProperties": false + }, + "BillingInfo": { + "properties": { + "name": { + "type": "string" }, - "notificationCount": { - "type": "number", - "format": "double" + "address": { + "type": "string" }, - "votesBefore": { - "type": "number", - "format": "double", - "nullable": true + "city": { + "type": "string" }, - "votesUpBefore": { - "type": "number", - "format": "double", - "nullable": true + "state": { + "type": "string" }, - "votesDownBefore": { - "type": "number", - "format": "double", - "nullable": true + "zip": { + "type": "string" }, - "votesAfter": { - "type": "number", - "format": "double", - "nullable": true + "country": { + "type": "string" }, - "votesUpAfter": { - "type": "number", - "format": "double", - "nullable": true + "currency": { + "type": "string", + "nullable": true, + "description": "Currency for invoices." }, - "votesDownAfter": { + "email": { + "type": "string", + "description": "Email for invoices." + } + }, + "required": [ + "name", + "address", + "city", + "state", + "zip", + "country" + ], + "type": "object", + "additionalProperties": false + }, + "APITenant": { + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "email": { + "type": "string" + }, + "signUpDate": { "type": "number", - "format": "double", - "nullable": true + "format": "double" }, - "repeatAction": { - "$ref": "#/components/schemas/RepeatCommentHandlingAction" + "packageId": { + "type": "string" }, - "reason": { - "$ref": "#/components/schemas/RepeatCommentCheckIgnoredReason" + "paymentFrequency": { + "type": "number", + "format": "double" }, - "otherData": {}, - "spamBefore": { + "billingInfoValid": { "type": "boolean" }, - "spamAfter": { + "billingHandledExternally": { "type": "boolean" }, - "permanentFlag": { - "type": "string", - "enum": [ - "permanent" - ], - "nullable": false + "createdBy": { + "type": "string" }, - "approvedBefore": { + "isSetup": { "type": "boolean" }, - "approvedAfter": { - "type": "boolean" + "domainConfiguration": { + "items": { + "$ref": "#/components/schemas/APIDomainConfiguration" + }, + "type": "array" }, - "reviewedBefore": { - "type": "boolean" + "billingInfo": { + "$ref": "#/components/schemas/BillingInfo" }, - "reviewedAfter": { - "type": "boolean" + "stripeCustomerId": { + "type": "string" }, - "textBefore": { + "stripeSubscriptionId": { "type": "string" }, - "textAfter": { + "stripePlanId": { "type": "string" }, - "expireBefore": { - "type": "string", - "format": "date-time", - "nullable": true + "enableProfanityFilter": { + "type": "boolean" }, - "expireAfter": { + "enableSpamFilter": { + "type": "boolean" + }, + "lastBillingIssueReminderDate": { "type": "string", - "format": "date-time", - "nullable": true + "format": "date-time" }, - "flagCountBefore": { + "removeUnverifiedComments": { + "type": "boolean" + }, + "unverifiedCommentsTTLms": { "type": "number", "format": "double", "nullable": true }, - "trustFactorBefore": { + "commentsRequireApproval": { + "type": "boolean" + }, + "autoApproveCommentOnVerification": { + "type": "boolean" + }, + "sendProfaneToSpam": { + "type": "boolean" + }, + "hasFlexPricing": { + "type": "boolean" + }, + "hasAuditing": { + "type": "boolean" + }, + "flexLastBilledAmount": { "type": "number", "format": "double" }, - "trustFactorAfter": { + "deAnonIpAddr": { "type": "number", "format": "double" }, - "referencedCommentId": { - "type": "string" + "meta": { + "$ref": "#/components/schemas/Record_string.string_" } }, + "required": [ + "id", + "name", + "signUpDate", + "packageId", + "paymentFrequency", + "billingInfoValid", + "createdBy", + "isSetup", + "domainConfiguration", + "enableProfanityFilter", + "enableSpamFilter" + ], "type": "object", "additionalProperties": false }, - "CommentLogEntry": { + "GetTenantResponse": { "properties": { - "d": { - "type": "string", - "format": "date-time" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "t": { - "$ref": "#/components/schemas/CommentLogType" + "tenant": { + "$ref": "#/components/schemas/APITenant" + } + }, + "required": [ + "status", + "tenant" + ], + "type": "object", + "additionalProperties": false + }, + "GetTenantsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "da": { - "$ref": "#/components/schemas/CommentLogData" + "tenants": { + "items": { + "$ref": "#/components/schemas/APITenant" + }, + "type": "array" } }, "required": [ - "d", - "t" + "status", + "tenants" ], "type": "object", "additionalProperties": false }, - "FComment": { + "CreateTenantResponse": { "properties": { - "_id": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "tenantId": { + "tenant": { + "$ref": "#/components/schemas/APITenant" + } + }, + "required": [ + "status", + "tenant" + ], + "type": "object", + "additionalProperties": false + }, + "CreateTenantBody": { + "properties": { + "name": { "type": "string" }, - "urlId": { - "type": "string" + "domainConfiguration": { + "items": { + "$ref": "#/components/schemas/APIDomainConfiguration" + }, + "type": "array" }, - "urlIdRaw": { + "email": { "type": "string" }, - "url": { - "type": "string" + "signUpDate": { + "type": "number", + "format": "double" }, - "pageTitle": { - "type": "string", - "nullable": true + "packageId": { + "type": "string" }, - "userId": { - "allOf": [ - { - "$ref": "#/components/schemas/UserId" - } - ], - "nullable": true + "paymentFrequency": { + "type": "number", + "format": "double" }, - "anonUserId": { - "type": "string", - "nullable": true + "billingInfoValid": { + "type": "boolean" }, - "commenterEmail": { - "type": "string", - "nullable": true + "billingHandledExternally": { + "type": "boolean" }, - "commenterName": { + "createdBy": { "type": "string" }, - "commenterLink": { - "type": "string", - "nullable": true + "isSetup": { + "type": "boolean" }, - "comment": { + "billingInfo": { + "$ref": "#/components/schemas/BillingInfo" + }, + "stripeCustomerId": { "type": "string" }, - "commentHTML": { + "stripeSubscriptionId": { "type": "string" }, - "parentId": { - "type": "string", - "nullable": true + "stripePlanId": { + "type": "string" }, - "date": { - "type": "string", - "format": "date-time", - "nullable": true + "enableProfanityFilter": { + "type": "boolean" }, - "localDateString": { - "type": "string", - "nullable": true + "enableSpamFilter": { + "type": "boolean" }, - "localDateHours": { - "type": "integer", - "format": "int32", - "nullable": true + "removeUnverifiedComments": { + "type": "boolean" }, - "votes": { - "type": "integer", - "format": "int32", - "nullable": true + "unverifiedCommentsTTLms": { + "type": "number", + "format": "double" }, - "votesUp": { - "type": "integer", - "format": "int32", - "nullable": true + "commentsRequireApproval": { + "type": "boolean" }, - "votesDown": { - "type": "integer", - "format": "int32", - "nullable": true + "autoApproveCommentOnVerification": { + "type": "boolean" }, - "expireAt": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "verified": { + "sendProfaneToSpam": { "type": "boolean" }, - "verifiedDate": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "verificationId": { - "type": "string", - "nullable": true - }, - "notificationSentForParent": { - "type": "boolean" + "deAnonIpAddr": { + "type": "number", + "format": "double" }, - "notificationSentForParentTenant": { - "type": "boolean" + "meta": { + "$ref": "#/components/schemas/Record_string.string_" + } + }, + "required": [ + "name", + "domainConfiguration" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateTenantBody": { + "properties": { + "name": { + "type": "string" }, - "reviewed": { - "type": "boolean" + "email": { + "type": "string" }, - "imported": { - "type": "boolean" + "signUpDate": { + "type": "number", + "format": "double" }, - "externalId": { + "packageId": { "type": "string" }, - "externalParentId": { - "type": "string", - "nullable": true - }, - "avatarSrc": { - "type": "string", - "nullable": true + "paymentFrequency": { + "type": "number", + "format": "double" }, - "isSpam": { + "billingInfoValid": { "type": "boolean" }, - "permNotSpam": { + "billingHandledExternally": { "type": "boolean" }, - "aiDeterminedSpam": { - "type": "boolean" + "createdBy": { + "type": "string" }, - "hasImages": { + "isSetup": { "type": "boolean" }, - "pageNumber": { - "type": "integer", - "format": "int32", - "nullable": true + "domainConfiguration": { + "items": { + "$ref": "#/components/schemas/APIDomainConfiguration" + }, + "type": "array" }, - "pageNumberOF": { - "type": "integer", - "format": "int32", - "nullable": true + "billingInfo": { + "$ref": "#/components/schemas/BillingInfo" }, - "pageNumberNF": { - "type": "integer", - "format": "int32", - "nullable": true + "stripeCustomerId": { + "type": "string" }, - "hasLinks": { - "type": "boolean" + "stripeSubscriptionId": { + "type": "string" }, - "hasCode": { - "type": "boolean" + "stripePlanId": { + "type": "string" }, - "approved": { + "enableProfanityFilter": { "type": "boolean" }, - "locale": { - "type": "string", - "nullable": true - }, - "isDeleted": { + "enableSpamFilter": { "type": "boolean" }, - "isDeletedUser": { + "removeUnverifiedComments": { "type": "boolean" }, - "isBannedUser": { - "type": "boolean" + "unverifiedCommentsTTLms": { + "type": "number", + "format": "double" }, - "isByAdmin": { + "commentsRequireApproval": { "type": "boolean" }, - "isByModerator": { + "autoApproveCommentOnVerification": { "type": "boolean" }, - "isPinned": { - "type": "boolean", - "nullable": true - }, - "isLocked": { - "type": "boolean", - "nullable": true - }, - "flagCount": { - "type": "integer", - "format": "int32", - "nullable": true + "sendProfaneToSpam": { + "type": "boolean" }, - "rating": { + "deAnonIpAddr": { "type": "number", - "format": "double", - "nullable": true - }, - "displayLabel": { - "type": "string", - "nullable": true - }, - "fromProductId": { - "type": "integer", - "format": "int32" + "format": "double" }, "meta": { - "properties": { - "wpUserId": { - "type": "string" - }, - "wpPostId": { - "type": "string" - } - }, - "additionalProperties": {}, - "type": "object", - "nullable": true - }, - "ipHash": { - "type": "string" - }, - "mentions": { - "items": { - "$ref": "#/components/schemas/CommentUserMentionInfo" - }, - "type": "array" - }, - "hashTags": { - "items": { - "$ref": "#/components/schemas/CommentUserHashTagInfo" - }, - "type": "array" - }, - "badges": { - "items": { - "$ref": "#/components/schemas/CommentUserBadgeInfo" - }, - "type": "array", - "nullable": true - }, - "domain": { - "allOf": [ - { - "$ref": "#/components/schemas/FDomain" - } - ], - "nullable": true - }, - "veteranBadgeProcessed": { - "type": "string" - }, - "moderationGroupIds": { - "items": { - "type": "string" - }, - "type": "array", - "nullable": true - }, - "didProcessBadges": { - "type": "boolean" - }, - "fromOfflineRestore": { - "type": "boolean" + "$ref": "#/components/schemas/Record_string.string_" }, - "autoplayJobId": { + "managedByTenantId": { "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "GetTenantUserResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "autoplayDelayMS": { - "type": "integer", - "format": "int64" + "tenantUser": { + "$ref": "#/components/schemas/User" + } + }, + "required": [ + "status", + "tenantUser" + ], + "type": "object", + "additionalProperties": false + }, + "GetTenantUsersResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "feedbackIds": { + "tenantUsers": { "items": { - "type": "string" + "$ref": "#/components/schemas/User" }, "type": "array" - }, - "logs": { - "items": { - "$ref": "#/components/schemas/CommentLogEntry" - }, - "type": "array", - "nullable": true - }, - "groupIds": { - "items": { - "type": "string" - }, - "type": "array", - "nullable": true - }, - "viewCount": { - "type": "integer", - "format": "int64", - "nullable": true - }, - "requiresVerification": { - "type": "boolean" - }, - "editKey": { - "type": "string" } }, "required": [ - "_id", - "tenantId", - "urlId", - "url", - "commenterName", - "comment", - "commentHTML", - "date", - "verified", - "approved", - "locale" + "status", + "tenantUsers" ], "type": "object", "additionalProperties": false }, - "MetaItem": { + "CreateTenantUserResponse": { "properties": { - "name": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "values": { - "items": { - "type": "string" - }, - "type": "array" + "tenantUser": { + "$ref": "#/components/schemas/User" } }, "required": [ - "name", - "values" + "status", + "tenantUser" ], "type": "object", "additionalProperties": false }, - "QuestionResult": { + "CreateTenantUserBody": { "properties": { - "_id": { + "username": { "type": "string" }, - "tenantId": { + "email": { "type": "string" }, - "urlId": { + "displayName": { "type": "string" }, - "anonUserId": { + "websiteUrl": { "type": "string" }, - "userId": { + "signUpDate": { + "type": "number", + "format": "double" + }, + "locale": { "type": "string" }, - "createdAt": { - "type": "string", - "format": "date-time" + "verified": { + "type": "boolean" }, - "value": { - "type": "integer", - "format": "int32" + "loginCount": { + "type": "number", + "format": "double" }, - "commentId": { - "type": "string", - "nullable": true + "optedInNotifications": { + "type": "boolean" }, - "questionId": { - "type": "string" + "optedInTenantNotifications": { + "type": "boolean" }, - "meta": { - "items": { - "$ref": "#/components/schemas/MetaItem" - }, - "type": "array", - "nullable": true + "hideAccountCode": { + "type": "boolean" }, - "ipHash": { + "avatarSrc": { "type": "string" - } - }, - "required": [ - "_id", - "tenantId", - "urlId", - "anonUserId", - "userId", - "createdAt", - "value", - "questionId", - "ipHash" - ], - "type": "object", - "additionalProperties": false - }, - "FindCommentsByRangeItem": { - "properties": { - "comment": { - "allOf": [ - { - "$ref": "#/components/schemas/FComment" - } - ], - "nullable": true }, - "result": { - "$ref": "#/components/schemas/QuestionResult" - } - }, - "required": [ - "comment", - "result" - ], - "type": "object", - "additionalProperties": false - }, - "FindCommentsByRangeResponse": { - "properties": { - "results": { - "items": { - "$ref": "#/components/schemas/FindCommentsByRangeItem" - }, - "type": "array" + "isHelpRequestAdmin": { + "type": "boolean" }, - "createdAt": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "results", - "createdAt" - ], - "type": "object", - "additionalProperties": false - }, - "CombineQuestionResultsWithCommentsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "isAccountOwner": { + "type": "boolean" }, - "data": { - "$ref": "#/components/schemas/FindCommentsByRangeResponse" - } - }, - "required": [ - "status", - "data" - ], - "type": "object", - "additionalProperties": false - }, - "GetFeedPostsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "isAdminAdmin": { + "type": "boolean" }, - "feedPosts": { + "isBillingAdmin": { + "type": "boolean" + }, + "isAnalyticsAdmin": { + "type": "boolean" + }, + "isCustomizationAdmin": { + "type": "boolean" + }, + "isManageDataAdmin": { + "type": "boolean" + }, + "isCommentModeratorAdmin": { + "type": "boolean" + }, + "isAPIAdmin": { + "type": "boolean" + }, + "moderatorIds": { "items": { - "$ref": "#/components/schemas/FeedPost" + "type": "string" }, "type": "array" - } - }, - "required": [ - "status", - "feedPosts" - ], - "type": "object", - "additionalProperties": false - }, - "CreateFeedPostsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" }, - "feedPost": { - "$ref": "#/components/schemas/FeedPost" + "digestEmailFrequency": { + "type": "number", + "format": "double" + }, + "displayLabel": { + "type": "string" } }, "required": [ - "status", - "feedPost" + "username", + "email" ], "type": "object", "additionalProperties": false }, - "AddDomainConfigParams": { + "ReplaceTenantUserBody": { "properties": { - "domain": { + "username": { "type": "string" }, - "emailFromName": { + "email": { "type": "string" }, - "emailFromEmail": { + "displayName": { "type": "string" }, - "logoSrc": { + "websiteUrl": { "type": "string" }, - "logoSrc100px": { - "type": "string" + "signUpDate": { + "type": "number", + "format": "double" }, - "footerUnsubscribeURL": { + "locale": { "type": "string" }, - "emailHeaders": { - "$ref": "#/components/schemas/Record_string.string_" - } - }, - "required": [ - "domain" - ], - "type": "object", - "additionalProperties": false - }, - "UpdateDomainConfigParams": { - "properties": { - "domain": { - "type": "string" + "verified": { + "type": "boolean" }, - "emailFromName": { - "type": "string" + "loginCount": { + "type": "number", + "format": "double" }, - "emailFromEmail": { + "optedInNotifications": { + "type": "boolean" + }, + "optedInTenantNotifications": { + "type": "boolean" + }, + "hideAccountCode": { + "type": "boolean" + }, + "avatarSrc": { "type": "string" }, - "logoSrc": { + "isHelpRequestAdmin": { + "type": "boolean" + }, + "isAccountOwner": { + "type": "boolean" + }, + "isAdminAdmin": { + "type": "boolean" + }, + "isBillingAdmin": { + "type": "boolean" + }, + "isAnalyticsAdmin": { + "type": "boolean" + }, + "isCustomizationAdmin": { + "type": "boolean" + }, + "isManageDataAdmin": { + "type": "boolean" + }, + "isCommentModeratorAdmin": { + "type": "boolean" + }, + "isAPIAdmin": { + "type": "boolean" + }, + "moderatorIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "digestEmailFrequency": { + "type": "number", + "format": "double" + }, + "displayLabel": { "type": "string" }, - "logoSrc100px": { + "createdFromUrlId": { "type": "string" }, - "footerUnsubscribeURL": { + "createdFromTenantId": { "type": "string" }, - "emailHeaders": { - "$ref": "#/components/schemas/Record_string.string_" + "lastLoginDate": { + "type": "number", + "format": "double" + }, + "karma": { + "type": "number", + "format": "double" } }, "required": [ - "domain" + "username", + "email" ], "type": "object", "additionalProperties": false }, - "PatchDomainConfigParams": { + "UpdateTenantUserBody": { "properties": { - "domain": { - "type": "string" - }, - "emailFromName": { + "username": { "type": "string" }, - "emailFromEmail": { + "displayName": { "type": "string" }, - "logoSrc": { + "websiteUrl": { "type": "string" }, - "logoSrc100px": { + "email": { "type": "string" }, - "footerUnsubscribeURL": { - "type": "string" + "signUpDate": { + "type": "number", + "format": "double" }, - "emailHeaders": { - "$ref": "#/components/schemas/Record_string.string_" - } - }, - "type": "object", - "additionalProperties": false - }, - "APICommentBase": { - "properties": { - "_id": { - "type": "string" + "verified": { + "type": "boolean" }, - "aiDeterminedSpam": { + "loginCount": { + "type": "number", + "format": "double" + }, + "optedInNotifications": { "type": "boolean" }, - "anonUserId": { - "type": "string", - "nullable": true + "optedInTenantNotifications": { + "type": "boolean" }, - "approved": { + "hideAccountCode": { "type": "boolean" }, "avatarSrc": { - "type": "string", - "nullable": true + "type": "string" }, - "badges": { + "isHelpRequestAdmin": { + "type": "boolean" + }, + "isAccountOwner": { + "type": "boolean" + }, + "isAdminAdmin": { + "type": "boolean" + }, + "isBillingAdmin": { + "type": "boolean" + }, + "isAnalyticsAdmin": { + "type": "boolean" + }, + "isCustomizationAdmin": { + "type": "boolean" + }, + "isManageDataAdmin": { + "type": "boolean" + }, + "isCommentModeratorAdmin": { + "type": "boolean" + }, + "isAPIAdmin": { + "type": "boolean" + }, + "moderatorIds": { "items": { - "$ref": "#/components/schemas/CommentUserBadgeInfo" + "type": "string" }, - "type": "array", - "nullable": true + "type": "array" }, - "comment": { + "locale": { "type": "string" }, - "commentHTML": { - "type": "string" + "digestEmailFrequency": { + "type": "number", + "format": "double" }, - "commenterEmail": { - "type": "string", - "nullable": true + "displayLabel": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "TenantPackage": { + "properties": { + "_id": { + "type": "string" }, - "commenterLink": { - "type": "string", - "nullable": true + "name": { + "type": "string" }, - "commenterName": { + "tenantId": { "type": "string" }, - "date": { + "createdAt": { "type": "string", - "format": "date-time", - "nullable": true + "format": "date-time" }, - "displayLabel": { - "type": "string", + "monthlyCostUSD": { + "type": "number", + "format": "double", "nullable": true }, - "domain": { - "allOf": [ - { - "$ref": "#/components/schemas/FDomain" - } - ], + "yearlyCostUSD": { + "type": "number", + "format": "double", "nullable": true }, - "externalId": { - "type": "string" - }, - "externalParentId": { + "monthlyStripePlanId": { "type": "string", "nullable": true }, - "expireAt": { + "yearlyStripePlanId": { "type": "string", - "format": "date-time", "nullable": true }, - "feedbackIds": { - "items": { - "type": "string" - }, - "type": "array" + "maxMonthlyPageLoads": { + "type": "number", + "format": "double" }, - "flagCount": { - "type": "integer", - "format": "int32", - "nullable": true + "maxMonthlyAPICredits": { + "type": "number", + "format": "double" }, - "fromProductId": { - "type": "integer", - "format": "int32" + "maxMonthlySmallWidgetsCredits": { + "type": "number", + "format": "double" }, - "hasCode": { + "maxMonthlyComments": { + "type": "number", + "format": "double" + }, + "maxConcurrentUsers": { + "type": "number", + "format": "double" + }, + "maxTenantUsers": { + "type": "number", + "format": "double" + }, + "maxSSOUsers": { + "type": "number", + "format": "double" + }, + "maxModerators": { + "type": "number", + "format": "double" + }, + "maxDomains": { + "type": "number", + "format": "double" + }, + "maxWhiteLabeledTenants": { + "type": "number", + "format": "double" + }, + "maxMonthlyEventLogRequests": { + "type": "number", + "format": "double" + }, + "hasWhiteLabeling": { "type": "boolean" }, - "hasImages": { + "hasDebranding": { "type": "boolean" }, - "hasLinks": { + "hasLLMSpamDetection": { "type": "boolean" }, - "hashTags": { + "forWhoText": { + "type": "string" + }, + "featureTaglines": { "items": { - "$ref": "#/components/schemas/CommentUserHashTagInfo" + "type": "string" }, "type": "array" }, - "isByAdmin": { + "hasAuditing": { "type": "boolean" }, - "isByModerator": { + "hasFlexPricing": { "type": "boolean" }, - "isDeleted": { + "enableSAML": { "type": "boolean" }, - "isDeletedUser": { - "type": "boolean" + "flexPageLoadCostCents": { + "type": "number", + "format": "double" }, - "isPinned": { - "type": "boolean", - "nullable": true + "flexPageLoadUnit": { + "type": "number", + "format": "double" }, - "isLocked": { - "type": "boolean", - "nullable": true + "flexCommentCostCents": { + "type": "number", + "format": "double" }, - "isSpam": { - "type": "boolean" + "flexCommentUnit": { + "type": "number", + "format": "double" }, - "localDateHours": { - "type": "integer", - "format": "int32", - "nullable": true + "flexSSOUserCostCents": { + "type": "number", + "format": "double" }, - "localDateString": { - "type": "string", - "nullable": true + "flexSSOUserUnit": { + "type": "number", + "format": "double" }, - "locale": { - "type": "string", - "nullable": true + "flexAPICreditCostCents": { + "type": "number", + "format": "double" }, - "mentions": { - "items": { - "$ref": "#/components/schemas/CommentUserMentionInfo" - }, - "type": "array" + "flexAPICreditUnit": { + "type": "number", + "format": "double" }, - "meta": { - "properties": { - "wpUserId": { - "type": "string" - }, - "wpPostId": { - "type": "string" - } - }, - "additionalProperties": {}, - "type": "object", - "nullable": true + "flexSmallWidgetsCreditCostCents": { + "type": "number", + "format": "double" }, - "moderationGroupIds": { - "items": { - "type": "string" - }, - "type": "array", - "nullable": true + "flexSmallWidgetsCreditUnit": { + "type": "number", + "format": "double" }, - "notificationSentForParent": { - "type": "boolean" + "flexModeratorCostCents": { + "type": "number", + "format": "double" }, - "notificationSentForParentTenant": { - "type": "boolean" + "flexModeratorUnit": { + "type": "number", + "format": "double" }, - "pageTitle": { - "type": "string", - "nullable": true + "flexAdminCostCents": { + "type": "number", + "format": "double" }, - "parentId": { - "type": "string", - "nullable": true + "flexAdminUnit": { + "type": "number", + "format": "double" }, - "rating": { + "flexDomainCostCents": { "type": "number", - "format": "double", - "nullable": true + "format": "double" }, - "reviewed": { - "type": "boolean" + "flexDomainUnit": { + "type": "number", + "format": "double" }, - "tenantId": { - "type": "string" + "flexChatGPTCostCents": { + "type": "number", + "format": "double" }, - "url": { - "type": "string" - }, - "urlId": { - "type": "string" + "flexChatGPTUnit": { + "type": "number", + "format": "double" }, - "urlIdRaw": { - "type": "string" + "flexMinimumCostCents": { + "type": "number", + "format": "double" }, - "userId": { - "allOf": [ - { - "$ref": "#/components/schemas/UserId" - } - ], - "nullable": true + "flexManagedTenantCostCents": { + "type": "number", + "format": "double" }, - "verified": { - "type": "boolean" + "flexSSOAdminCostCents": { + "type": "number", + "format": "double" }, - "verifiedDate": { - "type": "string", - "format": "date-time", - "nullable": true + "flexSSOAdminUnit": { + "type": "number", + "format": "double" }, - "votes": { - "type": "integer", - "format": "int32", - "nullable": true + "flexSSOModeratorCostCents": { + "type": "number", + "format": "double" }, - "votesDown": { - "type": "integer", - "format": "int32", - "nullable": true + "flexSSOModeratorUnit": { + "type": "number", + "format": "double" }, - "votesUp": { - "type": "integer", - "format": "int32", - "nullable": true + "isSSOBillingMonthlyActiveUsers": { + "type": "boolean" } }, "required": [ "_id", - "approved", - "comment", - "commentHTML", - "commenterName", - "date", - "locale", + "name", "tenantId", - "url", - "urlId", - "verified" + "createdAt", + "monthlyCostUSD", + "yearlyCostUSD", + "monthlyStripePlanId", + "yearlyStripePlanId", + "maxMonthlyPageLoads", + "maxMonthlyAPICredits", + "maxMonthlySmallWidgetsCredits", + "maxMonthlyComments", + "maxConcurrentUsers", + "maxTenantUsers", + "maxSSOUsers", + "maxModerators", + "maxDomains", + "maxWhiteLabeledTenants", + "maxMonthlyEventLogRequests", + "hasWhiteLabeling", + "hasDebranding", + "hasLLMSpamDetection", + "forWhoText", + "featureTaglines", + "hasAuditing", + "hasFlexPricing" ], "type": "object", "additionalProperties": false }, - "APIComment": { - "allOf": [ - { - "$ref": "#/components/schemas/APICommentBase" - }, - { - "properties": { - "date": { - "type": "number", - "format": "double", - "nullable": true - } - }, - "required": [ - "date" - ], - "type": "object" - } - ] - }, - "APIGetCommentResponse": { + "GetTenantPackageResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "comment": { - "$ref": "#/components/schemas/APIComment" + "tenantPackage": { + "$ref": "#/components/schemas/TenantPackage" } }, "required": [ "status", - "comment" + "tenantPackage" ], "type": "object", "additionalProperties": false }, - "APIGetCommentsResponse": { + "GetTenantPackagesResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "comments": { + "tenantPackages": { "items": { - "$ref": "#/components/schemas/APIComment" + "$ref": "#/components/schemas/TenantPackage" }, "type": "array" } }, "required": [ "status", - "comments" + "tenantPackages" ], "type": "object", "additionalProperties": false }, - "UpdatableCommentParams": { + "CreateTenantPackageResponse": { "properties": { - "urlId": { - "type": "string" - }, - "urlIdRaw": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "url": { + "tenantPackage": { + "$ref": "#/components/schemas/TenantPackage" + } + }, + "required": [ + "status", + "tenantPackage" + ], + "type": "object", + "additionalProperties": false + }, + "CreateTenantPackageBody": { + "properties": { + "name": { "type": "string" }, - "pageTitle": { - "type": "string", + "monthlyCostUSD": { + "type": "number", + "format": "double", "nullable": true }, - "userId": { - "allOf": [ - { - "$ref": "#/components/schemas/UserId" - } - ], + "yearlyCostUSD": { + "type": "number", + "format": "double", "nullable": true }, - "commenterEmail": { + "monthlyStripePlanId": { "type": "string", "nullable": true }, - "commenterName": { - "type": "string" - }, - "commenterLink": { + "yearlyStripePlanId": { "type": "string", "nullable": true }, - "comment": { - "type": "string" - }, - "commentHTML": { - "type": "string" + "maxMonthlyPageLoads": { + "type": "number", + "format": "double" }, - "parentId": { - "type": "string", - "nullable": true + "maxMonthlyAPICredits": { + "type": "number", + "format": "double" }, - "date": { + "maxMonthlySmallWidgetsCredits": { "type": "number", - "format": "double", - "nullable": true + "format": "double" }, - "localDateString": { - "type": "string", - "nullable": true + "maxMonthlyComments": { + "type": "number", + "format": "double" }, - "localDateHours": { - "type": "integer", - "format": "int32", - "nullable": true + "maxConcurrentUsers": { + "type": "number", + "format": "double" }, - "votes": { - "type": "integer", - "format": "int32", - "nullable": true + "maxTenantUsers": { + "type": "number", + "format": "double" }, - "votesUp": { - "type": "integer", - "format": "int32", - "nullable": true + "maxSSOUsers": { + "type": "number", + "format": "double" }, - "votesDown": { - "type": "integer", - "format": "int32", - "nullable": true + "maxModerators": { + "type": "number", + "format": "double" }, - "expireAt": { - "type": "string", - "format": "date-time", - "nullable": true + "maxDomains": { + "type": "number", + "format": "double" }, - "verified": { - "type": "boolean" + "maxWhiteLabeledTenants": { + "type": "number", + "format": "double" }, - "verifiedDate": { - "type": "string", - "format": "date-time", - "nullable": true + "maxMonthlyEventLogRequests": { + "type": "number", + "format": "double" }, - "notificationSentForParent": { + "hasWhiteLabeling": { "type": "boolean" }, - "notificationSentForParentTenant": { + "hasDebranding": { "type": "boolean" }, - "reviewed": { + "hasLLMSpamDetection": { "type": "boolean" }, - "externalId": { + "forWhoText": { "type": "string" }, - "externalParentId": { - "type": "string", - "nullable": true - }, - "avatarSrc": { - "type": "string", - "nullable": true + "featureTaglines": { + "items": { + "type": "string" + }, + "type": "array" }, - "isSpam": { + "hasAuditing": { "type": "boolean" }, - "approved": { + "hasFlexPricing": { "type": "boolean" }, - "isDeleted": { + "enableSAML": { "type": "boolean" }, - "isDeletedUser": { - "type": "boolean" + "flexPageLoadCostCents": { + "type": "number", + "format": "double" }, - "isByAdmin": { - "type": "boolean" + "flexPageLoadUnit": { + "type": "number", + "format": "double" }, - "isByModerator": { - "type": "boolean" + "flexCommentCostCents": { + "type": "number", + "format": "double" }, - "isPinned": { - "type": "boolean", - "nullable": true + "flexCommentUnit": { + "type": "number", + "format": "double" }, - "isLocked": { - "type": "boolean", - "nullable": true + "flexSSOUserCostCents": { + "type": "number", + "format": "double" }, - "flagCount": { - "type": "integer", - "format": "int32", - "nullable": true + "flexSSOUserUnit": { + "type": "number", + "format": "double" }, - "displayLabel": { - "type": "string", - "nullable": true + "flexAPICreditCostCents": { + "type": "number", + "format": "double" }, - "meta": { - "properties": { - "wpUserId": { - "type": "string" - }, - "wpPostId": { - "type": "string" - } - }, - "additionalProperties": {}, - "type": "object", - "nullable": true + "flexAPICreditUnit": { + "type": "number", + "format": "double" }, - "moderationGroupIds": { - "items": { - "type": "string" - }, - "type": "array", - "nullable": true + "flexSmallWidgetsCreditCostCents": { + "type": "number", + "format": "double" }, - "feedbackIds": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "DeleteCommentAction": { - "type": "string", - "enum": [ - "already-deleted", - "hard-removed", - "anonymized" - ] - }, - "DeleteCommentResult": { - "properties": { - "action": { - "$ref": "#/components/schemas/DeleteCommentAction" + "flexSmallWidgetsCreditUnit": { + "type": "number", + "format": "double" }, - "status": { - "$ref": "#/components/schemas/APIStatus" - } - }, - "required": [ - "action", - "status" - ], - "type": "object" - }, - "SaveCommentResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "flexModeratorCostCents": { + "type": "number", + "format": "double" }, - "comment": { - "$ref": "#/components/schemas/FComment" + "flexModeratorUnit": { + "type": "number", + "format": "double" }, - "user": { - "allOf": [ - { - "$ref": "#/components/schemas/UserSessionInfo" - } - ], - "nullable": true + "flexAdminCostCents": { + "type": "number", + "format": "double" }, - "moduleData": { - "$ref": "#/components/schemas/Record_string.any_" + "flexAdminUnit": { + "type": "number", + "format": "double" + }, + "flexDomainCostCents": { + "type": "number", + "format": "double" + }, + "flexDomainUnit": { + "type": "number", + "format": "double" + }, + "flexChatGPTCostCents": { + "type": "number", + "format": "double" + }, + "flexChatGPTUnit": { + "type": "number", + "format": "double" + }, + "flexMinimumCostCents": { + "type": "number", + "format": "double" + }, + "flexManagedTenantCostCents": { + "type": "number", + "format": "double" + }, + "flexSSOAdminCostCents": { + "type": "number", + "format": "double" + }, + "flexSSOAdminUnit": { + "type": "number", + "format": "double" + }, + "flexSSOModeratorCostCents": { + "type": "number", + "format": "double" + }, + "flexSSOModeratorUnit": { + "type": "number", + "format": "double" } }, "required": [ - "status", - "comment", - "user" + "name", + "maxMonthlyPageLoads", + "maxMonthlyAPICredits", + "maxMonthlyComments", + "maxConcurrentUsers", + "maxTenantUsers", + "maxSSOUsers", + "maxModerators", + "maxDomains", + "hasDebranding", + "forWhoText", + "featureTaglines", + "hasFlexPricing" ], "type": "object", "additionalProperties": false }, - "CreateCommentParams": { + "ReplaceTenantPackageBody": { "properties": { - "date": { - "type": "integer", - "format": "int64" - }, - "localDateString": { - "type": "string" - }, - "localDateHours": { - "type": "integer", - "format": "int32" - }, - "commenterName": { + "name": { "type": "string" }, - "commenterEmail": { - "type": "string", - "nullable": true + "monthlyCostUSD": { + "type": "number", + "format": "double" }, - "commenterLink": { - "type": "string", - "nullable": true + "yearlyCostUSD": { + "type": "number", + "format": "double" }, - "comment": { - "type": "string" + "maxMonthlyPageLoads": { + "type": "number", + "format": "double" }, - "productId": { - "type": "integer", - "format": "int32" + "maxMonthlyAPICredits": { + "type": "number", + "format": "double" }, - "userId": { - "type": "string", - "nullable": true + "maxMonthlyComments": { + "type": "number", + "format": "double" }, - "avatarSrc": { - "type": "string", - "nullable": true + "maxConcurrentUsers": { + "type": "number", + "format": "double" }, - "parentId": { - "type": "string", - "nullable": true + "maxTenantUsers": { + "type": "number", + "format": "double" }, - "mentions": { - "items": { - "$ref": "#/components/schemas/CommentUserMentionInfo" - }, - "type": "array" + "maxSSOUsers": { + "type": "number", + "format": "double" }, - "hashTags": { - "items": { - "$ref": "#/components/schemas/CommentUserHashTagInfo" - }, - "type": "array" + "maxModerators": { + "type": "number", + "format": "double" }, - "pageTitle": { - "type": "string" + "maxDomains": { + "type": "number", + "format": "double" }, - "isFromMyAccountPage": { + "hasDebranding": { "type": "boolean" }, - "url": { - "type": "string" - }, - "urlId": { + "forWhoText": { "type": "string" }, - "meta": { - "additionalProperties": false, - "type": "object" - }, - "moderationGroupIds": { + "featureTaglines": { "items": { "type": "string" }, "type": "array" }, - "rating": { + "hasFlexPricing": { + "type": "boolean" + }, + "flexPageLoadCostCents": { "type": "number", "format": "double" }, - "fromOfflineRestore": { - "type": "boolean" + "flexPageLoadUnit": { + "type": "number", + "format": "double" }, - "autoplayDelayMS": { - "type": "integer", - "format": "int64" + "flexCommentCostCents": { + "type": "number", + "format": "double" }, - "feedbackIds": { - "items": { - "type": "string" - }, - "type": "array" + "flexCommentUnit": { + "type": "number", + "format": "double" }, - "questionValues": { - "$ref": "#/components/schemas/Record_string.string-or-number_" + "flexSSOUserCostCents": { + "type": "number", + "format": "double" }, - "approved": { - "type": "boolean" + "flexSSOUserUnit": { + "type": "number", + "format": "double" }, - "domain": { - "type": "string" + "flexAPICreditCostCents": { + "type": "number", + "format": "double" }, - "ip": { - "type": "string" + "flexAPICreditUnit": { + "type": "number", + "format": "double" }, - "isPinned": { - "type": "boolean" + "flexModeratorCostCents": { + "type": "number", + "format": "double" }, - "locale": { - "type": "string", - "description": "Example: en_us" + "flexModeratorUnit": { + "type": "number", + "format": "double" }, - "reviewed": { - "type": "boolean" + "flexAdminCostCents": { + "type": "number", + "format": "double" }, - "verified": { - "type": "boolean" + "flexAdminUnit": { + "type": "number", + "format": "double" }, - "votes": { - "type": "integer", - "format": "int32" + "flexDomainCostCents": { + "type": "number", + "format": "double" }, - "votesDown": { - "type": "integer", - "format": "int32" + "flexDomainUnit": { + "type": "number", + "format": "double" }, - "votesUp": { - "type": "integer", - "format": "int32" + "flexMinimumCostCents": { + "type": "number", + "format": "double" } }, "required": [ - "commenterName", - "comment", - "url", - "urlId", - "locale" + "name", + "monthlyCostUSD", + "yearlyCostUSD", + "maxMonthlyPageLoads", + "maxMonthlyAPICredits", + "maxMonthlyComments", + "maxConcurrentUsers", + "maxTenantUsers", + "maxSSOUsers", + "maxModerators", + "maxDomains", + "hasDebranding", + "forWhoText", + "featureTaglines", + "hasFlexPricing" ], "type": "object", "additionalProperties": false }, - "FlagCommentResponse": { + "UpdateTenantPackageBody": { "properties": { - "statusCode": { - "type": "integer", - "format": "int32" + "name": { + "type": "string" }, - "status": { - "$ref": "#/components/schemas/APIStatus" + "monthlyCostUSD": { + "type": "number", + "format": "double" }, - "code": { - "type": "string" + "yearlyCostUSD": { + "type": "number", + "format": "double" }, - "reason": { - "type": "string" + "maxMonthlyPageLoads": { + "type": "number", + "format": "double" }, - "wasUnapproved": { + "maxMonthlyAPICredits": { + "type": "number", + "format": "double" + }, + "maxMonthlyComments": { + "type": "number", + "format": "double" + }, + "maxConcurrentUsers": { + "type": "number", + "format": "double" + }, + "maxTenantUsers": { + "type": "number", + "format": "double" + }, + "maxSSOUsers": { + "type": "number", + "format": "double" + }, + "maxModerators": { + "type": "number", + "format": "double" + }, + "maxDomains": { + "type": "number", + "format": "double" + }, + "hasDebranding": { + "type": "boolean" + }, + "hasWhiteLabeling": { + "type": "boolean" + }, + "forWhoText": { + "type": "string" + }, + "featureTaglines": { + "items": { + "type": "string" + }, + "type": "array" + }, + "hasFlexPricing": { + "type": "boolean" + }, + "flexPageLoadCostCents": { + "type": "number", + "format": "double" + }, + "flexPageLoadUnit": { + "type": "number", + "format": "double" + }, + "flexCommentCostCents": { + "type": "number", + "format": "double" + }, + "flexCommentUnit": { + "type": "number", + "format": "double" + }, + "flexSSOUserCostCents": { + "type": "number", + "format": "double" + }, + "flexSSOUserUnit": { + "type": "number", + "format": "double" + }, + "flexAPICreditCostCents": { + "type": "number", + "format": "double" + }, + "flexAPICreditUnit": { + "type": "number", + "format": "double" + }, + "flexModeratorCostCents": { + "type": "number", + "format": "double" + }, + "flexModeratorUnit": { + "type": "number", + "format": "double" + }, + "flexAdminCostCents": { + "type": "number", + "format": "double" + }, + "flexAdminUnit": { + "type": "number", + "format": "double" + }, + "flexDomainCostCents": { + "type": "number", + "format": "double" + }, + "flexDomainUnit": { + "type": "number", + "format": "double" + }, + "flexMinimumCostCents": { + "type": "number", + "format": "double" + } + }, + "type": "object", + "additionalProperties": false + }, + "APITenantDailyUsage": { + "properties": { + "id": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, + "yearNumber": { + "type": "number", + "format": "double" + }, + "monthNumber": { + "type": "number", + "format": "double" + }, + "dayNumber": { + "type": "number", + "format": "double" + }, + "commentFetchCount": { + "type": "number", + "format": "double" + }, + "commentCreateCount": { + "type": "number", + "format": "double" + }, + "conversationCreateCount": { + "type": "number", + "format": "double" + }, + "voteCount": { + "type": "number", + "format": "double" + }, + "accountCreatedCount": { + "type": "number", + "format": "double" + }, + "userMentionSearch": { + "type": "number", + "format": "double" + }, + "hashTagSearch": { + "type": "number", + "format": "double" + }, + "gifSearchTrending": { + "type": "number", + "format": "double" + }, + "gifSearch": { + "type": "number", + "format": "double" + }, + "apiCreditsUsed": { + "type": "number", + "format": "double" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "billed": { + "type": "boolean" + }, + "ignored": { "type": "boolean" + }, + "apiErrorCount": { + "type": "number", + "format": "double" } }, "required": [ - "status" + "id", + "tenantId", + "yearNumber", + "monthNumber", + "dayNumber", + "commentFetchCount", + "commentCreateCount", + "conversationCreateCount", + "voteCount", + "accountCreatedCount", + "userMentionSearch", + "hashTagSearch", + "gifSearchTrending", + "gifSearch", + "apiCreditsUsed", + "createdAt", + "billed", + "ignored", + "apiErrorCount" ], "type": "object", "additionalProperties": false }, - "BlockFromCommentParams": { + "GetTenantDailyUsagesResponse": { "properties": { - "commentIdsToCheck": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "tenantDailyUsages": { "items": { - "type": "string" + "$ref": "#/components/schemas/APITenantDailyUsage" }, "type": "array" } }, + "required": [ + "status", + "tenantDailyUsages" + ], "type": "object", "additionalProperties": false }, - "UnBlockFromCommentParams": { + "MetaItem": { "properties": { - "commentIdsToCheck": { + "name": { + "type": "string" + }, + "values": { "items": { "type": "string" }, "type": "array" } }, + "required": [ + "name", + "values" + ], "type": "object", "additionalProperties": false }, - "APIAuditLog": { + "QuestionResult": { "properties": { "_id": { "type": "string" }, - "userId": { + "tenantId": { "type": "string" }, - "username": { + "urlId": { "type": "string" }, - "resourceName": { + "anonUserId": { "type": "string" }, - "crudType": { - "type": "string", - "enum": [ - "c", - "r", - "u", - "d", - "login" - ] + "userId": { + "type": "string" }, - "from": { + "createdAt": { "type": "string", - "enum": [ - "ui", - "api", - "cron" - ] + "format": "date-time" }, - "url": { - "type": "string", - "nullable": true + "value": { + "type": "integer", + "format": "int32" }, - "ip": { + "commentId": { "type": "string", "nullable": true }, - "when": { - "type": "string", - "format": "date-time" - }, - "description": { + "questionId": { "type": "string" }, - "serverStartDate": { - "type": "string", - "format": "date-time" - }, - "objectDetails": { - "allOf": [ - { - "$ref": "#/components/schemas/Record_string.any_" - } - ], + "meta": { + "items": { + "$ref": "#/components/schemas/MetaItem" + }, + "type": "array", "nullable": true + }, + "ipHash": { + "type": "string" } }, "required": [ "_id", - "resourceName", - "crudType" + "tenantId", + "urlId", + "anonUserId", + "userId", + "createdAt", + "value", + "questionId", + "ipHash" ], "type": "object", "additionalProperties": false }, - "GetAuditLogsResponse": { + "GetQuestionResultResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "auditLogs": { + "questionResult": { + "$ref": "#/components/schemas/QuestionResult" + } + }, + "required": [ + "status", + "questionResult" + ], + "type": "object", + "additionalProperties": false + }, + "GetQuestionResultsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "questionResults": { "items": { - "$ref": "#/components/schemas/APIAuditLog" + "$ref": "#/components/schemas/QuestionResult" }, "type": "array" } }, "required": [ "status", - "auditLogs" + "questionResults" ], "type": "object", "additionalProperties": false }, - "SORT_DIR": { - "type": "string", - "enum": [ - "ASC", - "DESC" - ] - }, - "DistinctAccumulator": { - "$ref": "#/components/schemas/Record_string.number_" + "CreateQuestionResultResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "questionResult": { + "$ref": "#/components/schemas/QuestionResult" + } + }, + "required": [ + "status", + "questionResult" + ], + "type": "object", + "additionalProperties": false }, - "GroupValues": { - "$ref": "#/components/schemas/Record_string.string_" + "CreateQuestionResultBody": { + "properties": { + "urlId": { + "type": "string" + }, + "value": { + "type": "number", + "format": "double" + }, + "questionId": { + "type": "string" + }, + "anonUserId": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "commentId": { + "type": "string" + }, + "meta": { + "items": { + "$ref": "#/components/schemas/MetaItem" + }, + "type": "array", + "nullable": true + } + }, + "required": [ + "urlId", + "value", + "questionId" + ], + "type": "object", + "additionalProperties": {} }, - "AggregationValue": { + "UpdateQuestionResultBody": { "properties": { - "groups": { - "$ref": "#/components/schemas/GroupValues" + "urlId": { + "type": "string" }, - "stringValue": { + "anonUserId": { "type": "string" }, - "numericValue": { + "userId": { + "type": "string" + }, + "value": { "type": "number", "format": "double" }, - "distinctCount": { - "type": "integer", - "format": "int64" + "commentId": { + "type": "string" }, - "distinctCounts": { - "$ref": "#/components/schemas/DistinctAccumulator" + "questionId": { + "type": "string" + }, + "meta": { + "items": { + "$ref": "#/components/schemas/MetaItem" + }, + "type": "array", + "nullable": true } }, - "type": "object" + "type": "object", + "additionalProperties": {} }, - "Record_string.AggregationValue_": { + "Record_number.number_": { "properties": {}, "additionalProperties": { - "$ref": "#/components/schemas/AggregationValue" + "type": "number", + "format": "double" }, "type": "object", "description": "Construct a type with a set of properties K of type T" }, - "AggregationItem": { - "allOf": [ - { - "$ref": "#/components/schemas/Record_string.AggregationValue_" + "QuestionDatum": { + "properties": { + "v": { + "$ref": "#/components/schemas/Record_number.number_" }, - { - "properties": { - "groups": { - "$ref": "#/components/schemas/GroupValues" - } - }, - "type": "object" + "total": { + "type": "integer", + "format": "int64" } - ] + }, + "required": [ + "v", + "total" + ], + "type": "object", + "additionalProperties": false }, - "AggregationResponse": { - "description": "The API response returns the aggregated data along with simple stats", + "Record_string.QuestionDatum_": { + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/QuestionDatum" + }, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "QuestionResultAggregationOverall": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "dataByDateBucket": { + "$ref": "#/components/schemas/Record_string.QuestionDatum_" }, - "data": { - "items": { - "$ref": "#/components/schemas/AggregationItem" - }, - "type": "array" + "dataByUrlId": { + "$ref": "#/components/schemas/Record_string.QuestionDatum_" }, - "stats": { - "properties": { - "timeMS": { - "type": "integer", - "format": "int64" - }, - "scanned": { - "type": "integer", - "format": "int64" - } - }, - "required": [ - "timeMS", - "scanned" - ], - "type": "object" + "countsByValue": { + "$ref": "#/components/schemas/Int32Map" + }, + "total": { + "type": "integer", + "format": "int64" + }, + "average": { + "type": "number", + "format": "double" + }, + "createdAt": { + "type": "string", + "format": "date-time" } }, "required": [ - "status", - "data" + "total", + "createdAt" ], "type": "object", "additionalProperties": false }, - "QueryPredicate": { + "AggregateQuestionResultsResponse": { "properties": { - "key": { - "type": "string" - }, - "value": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "number", - "format": "double" - }, - { - "type": "boolean" - } - ] + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "operator": { - "type": "string", - "enum": [ - "eq", - "not_eq", - "greater_than", - "less_than", - "contains" - ] + "data": { + "$ref": "#/components/schemas/QuestionResultAggregationOverall" } }, "required": [ - "key", - "value", - "operator" + "status", + "data" ], "type": "object", "additionalProperties": false }, - "AggregationOpType": { + "AggregateTimeBucket": { "type": "string", "enum": [ - "sum", - "countDistinct", - "distinct", - "avg", - "min", - "max", - "count" - ], - "description": "The supported aggregation operation types" + "day", + "month", + "year" + ] }, - "AggregationOperation": { - "description": "An operation that will be applied on a field", + "Record_string.QuestionResultAggregationOverall_": { + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/QuestionResultAggregationOverall" + }, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "BulkAggregateQuestionResultsResponse": { "properties": { - "field": { - "type": "string", - "description": "The field to operate on" - }, - "op": { - "$ref": "#/components/schemas/AggregationOpType", - "description": "The type of operation" - }, - "alias": { - "type": "string", - "description": "Optional alias for the output; if not provided, a default alias is computed" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "expandArray": { - "type": "boolean" + "data": { + "$ref": "#/components/schemas/Record_string.QuestionResultAggregationOverall_" } }, "required": [ - "field", - "op" + "status", + "data" ], "type": "object", "additionalProperties": false }, - "AggregationRequest": { - "description": "The aggregation request accepts a resource, optional grouping keys, an array of operations, and an optional sort", + "BulkAggregateQuestionItem": { "properties": { - "query": { - "items": { - "$ref": "#/components/schemas/QueryPredicate" - }, - "type": "array" + "aggId": { + "type": "string" }, - "resourceName": { + "questionId": { "type": "string" }, - "groupBy": { + "questionIds": { "items": { "type": "string" }, "type": "array" }, - "operations": { + "urlId": { + "type": "string" + }, + "timeBucket": { + "$ref": "#/components/schemas/AggregateTimeBucket" + }, + "startDate": { + "type": "string", + "format": "date-time" + } + }, + "required": [ + "aggId" + ], + "type": "object", + "additionalProperties": false + }, + "BulkAggregateQuestionResultsRequest": { + "properties": { + "aggregations": { "items": { - "$ref": "#/components/schemas/AggregationOperation" + "$ref": "#/components/schemas/BulkAggregateQuestionItem" }, "type": "array" - }, - "sort": { - "properties": { - "dir": { - "type": "string", - "enum": [ - "asc", - "desc" - ] - }, - "field": { - "type": "string" - } - }, - "required": [ - "dir", - "field" - ], - "type": "object" } }, "required": [ - "resourceName", - "operations" + "aggregations" ], "type": "object", "additionalProperties": false - } - }, - "securitySchemes": { - "api_key": { - "type": "apiKey", - "name": "x-api-key", - "in": "header" - } - } - }, - "info": { - "title": "fastcomments", - "version": "0.0.0", - "contact": {} - }, - "paths": { - "/user-search/{tenantId}": { + }, + "CommentLogType": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55 + ], + "type": "number" + }, + "RepeatCommentHandlingAction": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "RepeatCommentCheckIgnoredReason": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "CommentLogData": { + "properties": { + "clearContent": { + "type": "boolean" + }, + "isDeletedUser": { + "type": "boolean" + }, + "phrase": { + "type": "string" + }, + "badWord": { + "type": "string" + }, + "word": { + "type": "string" + }, + "locale": { + "type": "string" + }, + "tenantBadgeId": { + "type": "string" + }, + "badgeId": { + "type": "string" + }, + "wasLoggedIn": { + "type": "boolean" + }, + "foundUser": { + "type": "boolean" + }, + "verified": { + "type": "boolean" + }, + "engine": { + "type": "string" + }, + "engineResponse": { + "type": "string" + }, + "engineTokens": { + "type": "number", + "format": "double" + }, + "trustFactor": { + "type": "number", + "format": "double" + }, + "rule": { + "$ref": "#/components/schemas/SpamRule" + }, + "userId": { + "type": "string" + }, + "subscribers": { + "type": "number", + "format": "double" + }, + "notificationCount": { + "type": "number", + "format": "double" + }, + "votesBefore": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesUpBefore": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesDownBefore": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesAfter": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesUpAfter": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesDownAfter": { + "type": "number", + "format": "double", + "nullable": true + }, + "repeatAction": { + "$ref": "#/components/schemas/RepeatCommentHandlingAction" + }, + "reason": { + "$ref": "#/components/schemas/RepeatCommentCheckIgnoredReason" + }, + "otherData": {}, + "spamBefore": { + "type": "boolean" + }, + "spamAfter": { + "type": "boolean" + }, + "permanentFlag": { + "type": "string", + "enum": [ + "permanent" + ], + "nullable": false + }, + "approvedBefore": { + "type": "boolean" + }, + "approvedAfter": { + "type": "boolean" + }, + "reviewedBefore": { + "type": "boolean" + }, + "reviewedAfter": { + "type": "boolean" + }, + "textBefore": { + "type": "string" + }, + "textAfter": { + "type": "string" + }, + "expireBefore": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "expireAfter": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "flagCountBefore": { + "type": "number", + "format": "double", + "nullable": true + }, + "trustFactorBefore": { + "type": "number", + "format": "double" + }, + "trustFactorAfter": { + "type": "number", + "format": "double" + }, + "referencedCommentId": { + "type": "string" + }, + "invalidLocale": { + "type": "string" + }, + "detectedLocale": { + "type": "string" + }, + "detectedLanguage": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "CommentLogEntry": { + "properties": { + "d": { + "type": "string", + "format": "date-time" + }, + "t": { + "$ref": "#/components/schemas/CommentLogType" + }, + "da": { + "$ref": "#/components/schemas/CommentLogData" + } + }, + "required": [ + "d", + "t" + ], + "type": "object", + "additionalProperties": false + }, + "FComment": { + "properties": { + "_id": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, + "urlId": { + "type": "string" + }, + "urlIdRaw": { + "type": "string" + }, + "url": { + "type": "string" + }, + "pageTitle": { + "type": "string", + "nullable": true + }, + "userId": { + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true + }, + "anonUserId": { + "type": "string", + "nullable": true + }, + "commenterEmail": { + "type": "string", + "nullable": true + }, + "commenterName": { + "type": "string" + }, + "commenterLink": { + "type": "string", + "nullable": true + }, + "comment": { + "type": "string" + }, + "commentHTML": { + "type": "string" + }, + "parentId": { + "type": "string", + "nullable": true + }, + "date": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "localDateString": { + "type": "string", + "nullable": true + }, + "localDateHours": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "votes": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "votesUp": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "votesDown": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "expireAt": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "verified": { + "type": "boolean" + }, + "verifiedDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "verificationId": { + "type": "string", + "nullable": true + }, + "notificationSentForParent": { + "type": "boolean" + }, + "notificationSentForParentTenant": { + "type": "boolean" + }, + "reviewed": { + "type": "boolean" + }, + "imported": { + "type": "boolean" + }, + "externalId": { + "type": "string" + }, + "externalParentId": { + "type": "string", + "nullable": true + }, + "avatarSrc": { + "type": "string", + "nullable": true + }, + "isSpam": { + "type": "boolean" + }, + "permNotSpam": { + "type": "boolean" + }, + "aiDeterminedSpam": { + "type": "boolean" + }, + "hasImages": { + "type": "boolean" + }, + "pageNumber": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "pageNumberOF": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "pageNumberNF": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "hasLinks": { + "type": "boolean" + }, + "hasCode": { + "type": "boolean" + }, + "approved": { + "type": "boolean" + }, + "locale": { + "type": "string", + "nullable": true + }, + "isDeleted": { + "type": "boolean" + }, + "isDeletedUser": { + "type": "boolean" + }, + "isBannedUser": { + "type": "boolean" + }, + "isByAdmin": { + "type": "boolean" + }, + "isByModerator": { + "type": "boolean" + }, + "isPinned": { + "type": "boolean", + "nullable": true + }, + "isLocked": { + "type": "boolean", + "nullable": true + }, + "flagCount": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "rating": { + "type": "number", + "format": "double", + "nullable": true + }, + "displayLabel": { + "type": "string", + "nullable": true + }, + "fromProductId": { + "type": "integer", + "format": "int32" + }, + "meta": { + "properties": { + "wpUserId": { + "type": "string" + }, + "wpPostId": { + "type": "string" + } + }, + "additionalProperties": {}, + "type": "object", + "nullable": true + }, + "ipHash": { + "type": "string" + }, + "mentions": { + "items": { + "$ref": "#/components/schemas/CommentUserMentionInfo" + }, + "type": "array" + }, + "hashTags": { + "items": { + "$ref": "#/components/schemas/CommentUserHashTagInfo" + }, + "type": "array" + }, + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array", + "nullable": true + }, + "domain": { + "allOf": [ + { + "$ref": "#/components/schemas/FDomain" + } + ], + "nullable": true + }, + "veteranBadgeProcessed": { + "type": "string" + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array", + "nullable": true + }, + "didProcessBadges": { + "type": "boolean" + }, + "fromOfflineRestore": { + "type": "boolean" + }, + "autoplayJobId": { + "type": "string" + }, + "autoplayDelayMS": { + "type": "integer", + "format": "int64" + }, + "feedbackIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "logs": { + "items": { + "$ref": "#/components/schemas/CommentLogEntry" + }, + "type": "array", + "nullable": true + }, + "groupIds": { + "items": { + "type": "string" + }, + "type": "array", + "nullable": true + }, + "viewCount": { + "type": "integer", + "format": "int64", + "nullable": true + }, + "requiresVerification": { + "type": "boolean" + }, + "editKey": { + "type": "string" + } + }, + "required": [ + "_id", + "tenantId", + "urlId", + "url", + "commenterName", + "comment", + "commentHTML", + "date", + "verified", + "approved", + "locale" + ], + "type": "object", + "additionalProperties": false + }, + "FindCommentsByRangeItem": { + "properties": { + "comment": { + "allOf": [ + { + "$ref": "#/components/schemas/FComment" + } + ], + "nullable": true + }, + "result": { + "$ref": "#/components/schemas/QuestionResult" + } + }, + "required": [ + "comment", + "result" + ], + "type": "object", + "additionalProperties": false + }, + "FindCommentsByRangeResponse": { + "properties": { + "results": { + "items": { + "$ref": "#/components/schemas/FindCommentsByRangeItem" + }, + "type": "array" + }, + "createdAt": { + "type": "string", + "format": "date-time" + } + }, + "required": [ + "results", + "createdAt" + ], + "type": "object", + "additionalProperties": false + }, + "CombineQuestionResultsWithCommentsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "data": { + "$ref": "#/components/schemas/FindCommentsByRangeResponse" + } + }, + "required": [ + "status", + "data" + ], + "type": "object", + "additionalProperties": false + }, + "QuestionConfig": { + "properties": { + "_id": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, + "name": { + "type": "string" + }, + "question": { + "type": "string" + }, + "summaryLabel": { + "type": "string" + }, + "helpText": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "string" + }, + "usedCount": { + "type": "number", + "format": "double" + }, + "lastUsed": { + "type": "string", + "format": "date-time" + }, + "type": { + "type": "string" + }, + "numStars": { + "type": "number", + "format": "double" + }, + "min": { + "type": "number", + "format": "double" + }, + "max": { + "type": "number", + "format": "double" + }, + "defaultValue": { + "type": "number", + "format": "double" + }, + "labelNegative": { + "type": "string" + }, + "labelPositive": { + "type": "string" + }, + "customOptions": { + "items": { + "properties": { + "imageSrc": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": [ + "imageSrc", + "name" + ], + "type": "object" + }, + "type": "array" + }, + "subQuestionIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "alwaysShowSubQuestions": { + "type": "boolean" + }, + "reportingOrder": { + "type": "number", + "format": "double" + } + }, + "required": [ + "_id", + "tenantId", + "name", + "question", + "helpText", + "createdAt", + "createdBy", + "usedCount", + "lastUsed", + "type", + "numStars", + "min", + "max", + "defaultValue", + "labelNegative", + "labelPositive", + "customOptions", + "subQuestionIds", + "alwaysShowSubQuestions", + "reportingOrder" + ], + "type": "object", + "additionalProperties": false + }, + "GetQuestionConfigResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "questionConfig": { + "$ref": "#/components/schemas/QuestionConfig" + } + }, + "required": [ + "status", + "questionConfig" + ], + "type": "object", + "additionalProperties": false + }, + "GetQuestionConfigsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "questionConfigs": { + "items": { + "$ref": "#/components/schemas/QuestionConfig" + }, + "type": "array" + } + }, + "required": [ + "status", + "questionConfigs" + ], + "type": "object", + "additionalProperties": false + }, + "CreateQuestionConfigResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "questionConfig": { + "$ref": "#/components/schemas/QuestionConfig" + } + }, + "required": [ + "status", + "questionConfig" + ], + "type": "object", + "additionalProperties": false + }, + "CreateQuestionConfigBody": { + "properties": { + "name": { + "type": "string" + }, + "question": { + "type": "string" + }, + "helpText": { + "type": "string" + }, + "type": { + "type": "string" + }, + "numStars": { + "type": "number", + "format": "double" + }, + "min": { + "type": "number", + "format": "double" + }, + "max": { + "type": "number", + "format": "double" + }, + "defaultValue": { + "type": "number", + "format": "double" + }, + "labelNegative": { + "type": "string" + }, + "labelPositive": { + "type": "string" + }, + "customOptions": { + "items": { + "properties": { + "imageSrc": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": [ + "imageSrc", + "name" + ], + "type": "object" + }, + "type": "array" + }, + "subQuestionIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "alwaysShowSubQuestions": { + "type": "boolean" + }, + "reportingOrder": { + "type": "number", + "format": "double" + } + }, + "required": [ + "name", + "question", + "type", + "reportingOrder" + ], + "type": "object", + "additionalProperties": {} + }, + "UpdateQuestionConfigBody": { + "properties": { + "name": { + "type": "string" + }, + "question": { + "type": "string" + }, + "helpText": { + "type": "string" + }, + "type": { + "type": "string" + }, + "numStars": { + "type": "number", + "format": "double" + }, + "min": { + "type": "number", + "format": "double" + }, + "max": { + "type": "number", + "format": "double" + }, + "defaultValue": { + "type": "number", + "format": "double" + }, + "labelNegative": { + "type": "string" + }, + "labelPositive": { + "type": "string" + }, + "customOptions": { + "items": { + "properties": { + "imageSrc": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": [ + "imageSrc", + "name" + ], + "type": "object" + }, + "type": "array" + }, + "subQuestionIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "alwaysShowSubQuestions": { + "type": "boolean" + }, + "reportingOrder": { + "type": "number", + "format": "double" + } + }, + "type": "object", + "additionalProperties": {} + }, + "PendingCommentToSyncOutbound": { + "properties": { + "_id": { + "type": "string" + }, + "commentId": { + "type": "string" + }, + "comment": { + "$ref": "#/components/schemas/FComment" + }, + "externalId": { + "type": "string", + "nullable": true + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "tenantId": { + "type": "string" + }, + "attemptCount": { + "type": "number", + "format": "double" + }, + "nextAttemptAt": { + "type": "string", + "format": "date-time" + }, + "eventType": { + "type": "number", + "format": "double" + }, + "type": { + "type": "number", + "format": "double" + }, + "domain": { + "type": "string" + }, + "lastError": { + "additionalProperties": false, + "type": "object" + }, + "webhookId": { + "type": "string" + } + }, + "required": [ + "_id", + "commentId", + "externalId", + "createdAt", + "tenantId", + "attemptCount", + "nextAttemptAt", + "eventType", + "type", + "domain", + "lastError" + ], + "type": "object", + "additionalProperties": false + }, + "GetPendingWebhookEventsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "pendingWebhookEvents": { + "items": { + "$ref": "#/components/schemas/PendingCommentToSyncOutbound" + }, + "type": "array" + } + }, + "required": [ + "status", + "pendingWebhookEvents" + ], + "type": "object", + "additionalProperties": false + }, + "GetPendingWebhookEventCountResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "count": { + "type": "number", + "format": "double" + } + }, + "required": [ + "status", + "count" + ], + "type": "object", + "additionalProperties": false + }, + "GetNotificationsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "notifications": { + "items": { + "$ref": "#/components/schemas/UserNotification" + }, + "type": "array" + } + }, + "required": [ + "status", + "notifications" + ], + "type": "object", + "additionalProperties": false + }, + "GetNotificationCountResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "count": { + "type": "number", + "format": "double" + } + }, + "required": [ + "status", + "count" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateNotificationBody": { + "properties": { + "viewed": { + "type": "boolean" + }, + "optedOut": { + "type": "boolean" + } + }, + "type": "object", + "additionalProperties": {} + }, + "UserNotificationCount": { + "properties": { + "_id": { + "type": "string" + }, + "count": { + "type": "number", + "format": "double" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "expireAt": { + "type": "string", + "format": "date-time" + } + }, + "required": [ + "_id", + "count", + "createdAt", + "expireAt" + ], + "type": "object", + "additionalProperties": false + }, + "GetCachedNotificationCountResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "data": { + "$ref": "#/components/schemas/UserNotificationCount" + } + }, + "required": [ + "status", + "data" + ], + "type": "object", + "additionalProperties": false + }, + "Moderator": { + "properties": { + "_id": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, + "name": { + "type": "string", + "nullable": true + }, + "userId": { + "type": "string", + "nullable": true + }, + "acceptedInvite": { + "type": "boolean" + }, + "email": { + "type": "string", + "nullable": true + }, + "markReviewedCount": { + "type": "number", + "format": "double" + }, + "deletedCount": { + "type": "number", + "format": "double" + }, + "markedSpamCount": { + "type": "number", + "format": "double" + }, + "markedNotSpamCount": { + "type": "number", + "format": "double" + }, + "approvedCount": { + "type": "number", + "format": "double" + }, + "unApprovedCount": { + "type": "number", + "format": "double" + }, + "editedCount": { + "type": "number", + "format": "double" + }, + "bannedCount": { + "type": "number", + "format": "double" + }, + "unFlaggedCount": { + "type": "number", + "format": "double" + }, + "verificationId": { + "type": "string", + "nullable": true + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array", + "nullable": true + } + }, + "required": [ + "_id", + "tenantId", + "name", + "userId", + "acceptedInvite", + "email", + "markReviewedCount", + "deletedCount", + "markedSpamCount", + "markedNotSpamCount", + "approvedCount", + "unApprovedCount", + "editedCount", + "bannedCount", + "unFlaggedCount", + "verificationId", + "createdAt", + "moderationGroupIds" + ], + "type": "object", + "additionalProperties": false + }, + "GetModeratorResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "moderator": { + "$ref": "#/components/schemas/Moderator" + } + }, + "required": [ + "status", + "moderator" + ], + "type": "object", + "additionalProperties": false + }, + "GetModeratorsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "moderators": { + "items": { + "$ref": "#/components/schemas/Moderator" + }, + "type": "array" + } + }, + "required": [ + "status", + "moderators" + ], + "type": "object", + "additionalProperties": false + }, + "CreateModeratorResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "moderator": { + "$ref": "#/components/schemas/Moderator" + } + }, + "required": [ + "status", + "moderator" + ], + "type": "object", + "additionalProperties": false + }, + "CreateModeratorBody": { + "properties": { + "name": { + "type": "string" + }, + "email": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "name", + "email" + ], + "type": "object", + "additionalProperties": {} + }, + "UpdateModeratorBody": { + "properties": { + "name": { + "type": "string" + }, + "email": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object", + "additionalProperties": {} + }, + "TenantHashTag": { + "properties": { + "_id": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "tenantId": { + "type": "string" + }, + "tag": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "required": [ + "_id", + "createdAt", + "tenantId", + "tag" + ], + "type": "object", + "additionalProperties": false + }, + "GetHashTagsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "hashTags": { + "items": { + "$ref": "#/components/schemas/TenantHashTag" + }, + "type": "array" + } + }, + "required": [ + "status", + "hashTags" + ], + "type": "object", + "additionalProperties": false + }, + "CreateHashTagResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "hashTag": { + "$ref": "#/components/schemas/TenantHashTag" + } + }, + "required": [ + "status", + "hashTag" + ], + "type": "object", + "additionalProperties": false + }, + "CreateHashTagBody": { + "properties": { + "tenantId": { + "type": "string" + }, + "tag": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "required": [ + "tag" + ], + "type": "object", + "additionalProperties": false + }, + "BulkCreateHashTagsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "results": { + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/CreateHashTagResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + }, + "type": "array" + } + }, + "required": [ + "status", + "results" + ], + "type": "object", + "additionalProperties": false + }, + "BulkCreateHashTagsBody": { + "properties": { + "tenantId": { + "type": "string" + }, + "tags": { + "items": { + "properties": { + "url": { + "type": "string" + }, + "tag": { + "type": "string" + } + }, + "required": [ + "tag" + ], + "type": "object" + }, + "type": "array" + } + }, + "required": [ + "tags" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateHashTagResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "hashTag": { + "$ref": "#/components/schemas/TenantHashTag" + } + }, + "required": [ + "status", + "hashTag" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateHashTagBody": { + "properties": { + "tenantId": { + "type": "string" + }, + "url": { + "type": "string" + }, + "tag": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "GetFeedPostsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "feedPosts": { + "items": { + "$ref": "#/components/schemas/FeedPost" + }, + "type": "array" + } + }, + "required": [ + "status", + "feedPosts" + ], + "type": "object", + "additionalProperties": false + }, + "CreateFeedPostsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "feedPost": { + "$ref": "#/components/schemas/FeedPost" + } + }, + "required": [ + "status", + "feedPost" + ], + "type": "object", + "additionalProperties": false + }, + "Record_string.unknown_": { + "properties": {}, + "additionalProperties": {}, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "Record_string.Record_string.string__": { + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/Record_string.string_" + }, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "EmailTemplateDefinition": { + "properties": { + "emailTemplateId": { + "type": "string" + }, + "defaultTestData": { + "$ref": "#/components/schemas/Record_string.unknown_" + }, + "defaultTranslationsByLocale": { + "$ref": "#/components/schemas/Record_string.Record_string.string__" + }, + "defaultEJS": { + "type": "string" + } + }, + "required": [ + "emailTemplateId", + "defaultTestData", + "defaultTranslationsByLocale", + "defaultEJS" + ], + "type": "object", + "additionalProperties": false + }, + "GetEmailTemplateDefinitionsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "definitions": { + "items": { + "$ref": "#/components/schemas/EmailTemplateDefinition" + }, + "type": "array" + } + }, + "required": [ + "status", + "definitions" + ], + "type": "object", + "additionalProperties": false + }, + "EmailTemplateRenderErrorResponse": { + "properties": { + "id": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, + "customTemplateId": { + "type": "string" + }, + "error": { + "type": "string" + }, + "count": { + "type": "number", + "format": "double" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "lastOccurredAt": { + "type": "string", + "format": "date-time" + } + }, + "required": [ + "id", + "tenantId", + "customTemplateId", + "error", + "count", + "createdAt", + "lastOccurredAt" + ], + "type": "object", + "additionalProperties": false + }, + "GetEmailTemplateRenderErrorsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "renderErrors": { + "items": { + "$ref": "#/components/schemas/EmailTemplateRenderErrorResponse" + }, + "type": "array" + } + }, + "required": [ + "status", + "renderErrors" + ], + "type": "object", + "additionalProperties": false + }, + "CustomEmailTemplate": { + "properties": { + "_id": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, + "emailTemplateId": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "updatedByUserId": { + "type": "string", + "nullable": true + }, + "domain": { + "type": "string", + "nullable": true + }, + "ejs": { + "type": "string" + }, + "translationOverridesByLocale": { + "$ref": "#/components/schemas/Record_string.Record_string.string__" + }, + "testData": {} + }, + "required": [ + "_id", + "tenantId", + "emailTemplateId", + "displayName", + "createdAt", + "updatedAt", + "updatedByUserId", + "ejs", + "translationOverridesByLocale", + "testData" + ], + "type": "object", + "additionalProperties": false + }, + "GetEmailTemplateResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "emailTemplate": { + "$ref": "#/components/schemas/CustomEmailTemplate" + } + }, + "required": [ + "status", + "emailTemplate" + ], + "type": "object", + "additionalProperties": false + }, + "GetEmailTemplatesResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "emailTemplates": { + "items": { + "$ref": "#/components/schemas/CustomEmailTemplate" + }, + "type": "array" + } + }, + "required": [ + "status", + "emailTemplates" + ], + "type": "object", + "additionalProperties": false + }, + "CreateEmailTemplateResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "emailTemplate": { + "$ref": "#/components/schemas/CustomEmailTemplate" + } + }, + "required": [ + "status", + "emailTemplate" + ], + "type": "object", + "additionalProperties": false + }, + "CreateEmailTemplateBody": { + "properties": { + "emailTemplateId": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "ejs": { + "type": "string" + }, + "domain": { + "type": "string" + }, + "translationOverridesByLocale": { + "$ref": "#/components/schemas/Record_string.Record_string.string__" + }, + "testData": { + "$ref": "#/components/schemas/Record_string.unknown_" + } + }, + "required": [ + "emailTemplateId", + "displayName", + "ejs" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateEmailTemplateBody": { + "properties": { + "emailTemplateId": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "ejs": { + "type": "string" + }, + "domain": { + "type": "string" + }, + "translationOverridesByLocale": { + "$ref": "#/components/schemas/Record_string.Record_string.string__" + }, + "testData": { + "$ref": "#/components/schemas/Record_string.unknown_" + } + }, + "type": "object", + "additionalProperties": false + }, + "RenderEmailTemplateResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "html": { + "type": "string" + } + }, + "required": [ + "status", + "html" + ], + "type": "object", + "additionalProperties": false + }, + "RenderEmailTemplateBody": { + "properties": { + "emailTemplateId": { + "type": "string" + }, + "ejs": { + "type": "string" + }, + "testData": { + "$ref": "#/components/schemas/Record_string.unknown_" + }, + "translationOverridesByLocale": { + "$ref": "#/components/schemas/Record_string.Record_string.string__" + } + }, + "required": [ + "emailTemplateId", + "ejs" + ], + "type": "object", + "additionalProperties": false + }, + "AddDomainConfigParams": { + "properties": { + "domain": { + "type": "string" + }, + "emailFromName": { + "type": "string" + }, + "emailFromEmail": { + "type": "string" + }, + "logoSrc": { + "type": "string" + }, + "logoSrc100px": { + "type": "string" + }, + "footerUnsubscribeURL": { + "type": "string" + }, + "emailHeaders": { + "$ref": "#/components/schemas/Record_string.string_" + } + }, + "required": [ + "domain" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateDomainConfigParams": { + "properties": { + "domain": { + "type": "string" + }, + "emailFromName": { + "type": "string" + }, + "emailFromEmail": { + "type": "string" + }, + "logoSrc": { + "type": "string" + }, + "logoSrc100px": { + "type": "string" + }, + "footerUnsubscribeURL": { + "type": "string" + }, + "emailHeaders": { + "$ref": "#/components/schemas/Record_string.string_" + } + }, + "required": [ + "domain" + ], + "type": "object", + "additionalProperties": false + }, + "PatchDomainConfigParams": { + "properties": { + "domain": { + "type": "string" + }, + "emailFromName": { + "type": "string" + }, + "emailFromEmail": { + "type": "string" + }, + "logoSrc": { + "type": "string" + }, + "logoSrc100px": { + "type": "string" + }, + "footerUnsubscribeURL": { + "type": "string" + }, + "emailHeaders": { + "$ref": "#/components/schemas/Record_string.string_" + } + }, + "type": "object", + "additionalProperties": false + }, + "APICommentBase": { + "properties": { + "_id": { + "type": "string" + }, + "aiDeterminedSpam": { + "type": "boolean" + }, + "anonUserId": { + "type": "string", + "nullable": true + }, + "approved": { + "type": "boolean" + }, + "avatarSrc": { + "type": "string", + "nullable": true + }, + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array", + "nullable": true + }, + "comment": { + "type": "string" + }, + "commentHTML": { + "type": "string" + }, + "commenterEmail": { + "type": "string", + "nullable": true + }, + "commenterLink": { + "type": "string", + "nullable": true + }, + "commenterName": { + "type": "string" + }, + "date": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "displayLabel": { + "type": "string", + "nullable": true + }, + "domain": { + "allOf": [ + { + "$ref": "#/components/schemas/FDomain" + } + ], + "nullable": true + }, + "externalId": { + "type": "string" + }, + "externalParentId": { + "type": "string", + "nullable": true + }, + "expireAt": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "feedbackIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "flagCount": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "fromProductId": { + "type": "integer", + "format": "int32" + }, + "hasCode": { + "type": "boolean" + }, + "hasImages": { + "type": "boolean" + }, + "hasLinks": { + "type": "boolean" + }, + "hashTags": { + "items": { + "$ref": "#/components/schemas/CommentUserHashTagInfo" + }, + "type": "array" + }, + "isByAdmin": { + "type": "boolean" + }, + "isByModerator": { + "type": "boolean" + }, + "isDeleted": { + "type": "boolean" + }, + "isDeletedUser": { + "type": "boolean" + }, + "isPinned": { + "type": "boolean", + "nullable": true + }, + "isLocked": { + "type": "boolean", + "nullable": true + }, + "isSpam": { + "type": "boolean" + }, + "localDateHours": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "localDateString": { + "type": "string", + "nullable": true + }, + "locale": { + "type": "string", + "nullable": true + }, + "mentions": { + "items": { + "$ref": "#/components/schemas/CommentUserMentionInfo" + }, + "type": "array" + }, + "meta": { + "properties": { + "wpUserId": { + "type": "string" + }, + "wpPostId": { + "type": "string" + } + }, + "additionalProperties": {}, + "type": "object", + "nullable": true + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array", + "nullable": true + }, + "notificationSentForParent": { + "type": "boolean" + }, + "notificationSentForParentTenant": { + "type": "boolean" + }, + "pageTitle": { + "type": "string", + "nullable": true + }, + "parentId": { + "type": "string", + "nullable": true + }, + "rating": { + "type": "number", + "format": "double", + "nullable": true + }, + "reviewed": { + "type": "boolean" + }, + "tenantId": { + "type": "string" + }, + "url": { + "type": "string" + }, + "urlId": { + "type": "string" + }, + "urlIdRaw": { + "type": "string" + }, + "userId": { + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true + }, + "verified": { + "type": "boolean" + }, + "verifiedDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "votes": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "votesDown": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "votesUp": { + "type": "integer", + "format": "int32", + "nullable": true + } + }, + "required": [ + "_id", + "approved", + "comment", + "commentHTML", + "commenterName", + "date", + "locale", + "tenantId", + "url", + "urlId", + "verified" + ], + "type": "object", + "additionalProperties": false + }, + "APIComment": { + "allOf": [ + { + "$ref": "#/components/schemas/APICommentBase" + }, + { + "properties": { + "date": { + "type": "number", + "format": "double", + "nullable": true + } + }, + "required": [ + "date" + ], + "type": "object" + } + ] + }, + "APIGetCommentResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "comment": { + "$ref": "#/components/schemas/APIComment" + } + }, + "required": [ + "status", + "comment" + ], + "type": "object", + "additionalProperties": false + }, + "APIGetCommentsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "comments": { + "items": { + "$ref": "#/components/schemas/APIComment" + }, + "type": "array" + } + }, + "required": [ + "status", + "comments" + ], + "type": "object", + "additionalProperties": false + }, + "UpdatableCommentParams": { + "properties": { + "urlId": { + "type": "string" + }, + "urlIdRaw": { + "type": "string" + }, + "url": { + "type": "string" + }, + "pageTitle": { + "type": "string", + "nullable": true + }, + "userId": { + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true + }, + "commenterEmail": { + "type": "string", + "nullable": true + }, + "commenterName": { + "type": "string" + }, + "commenterLink": { + "type": "string", + "nullable": true + }, + "comment": { + "type": "string" + }, + "commentHTML": { + "type": "string" + }, + "parentId": { + "type": "string", + "nullable": true + }, + "date": { + "type": "number", + "format": "double", + "nullable": true + }, + "localDateString": { + "type": "string", + "nullable": true + }, + "localDateHours": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "votes": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "votesUp": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "votesDown": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "expireAt": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "verified": { + "type": "boolean" + }, + "verifiedDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "notificationSentForParent": { + "type": "boolean" + }, + "notificationSentForParentTenant": { + "type": "boolean" + }, + "reviewed": { + "type": "boolean" + }, + "externalId": { + "type": "string" + }, + "externalParentId": { + "type": "string", + "nullable": true + }, + "avatarSrc": { + "type": "string", + "nullable": true + }, + "isSpam": { + "type": "boolean" + }, + "approved": { + "type": "boolean" + }, + "isDeleted": { + "type": "boolean" + }, + "isDeletedUser": { + "type": "boolean" + }, + "isByAdmin": { + "type": "boolean" + }, + "isByModerator": { + "type": "boolean" + }, + "isPinned": { + "type": "boolean", + "nullable": true + }, + "isLocked": { + "type": "boolean", + "nullable": true + }, + "flagCount": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "displayLabel": { + "type": "string", + "nullable": true + }, + "meta": { + "properties": { + "wpUserId": { + "type": "string" + }, + "wpPostId": { + "type": "string" + } + }, + "additionalProperties": {}, + "type": "object", + "nullable": true + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array", + "nullable": true + }, + "feedbackIds": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object", + "additionalProperties": false + }, + "DeleteCommentAction": { + "type": "string", + "enum": [ + "already-deleted", + "hard-removed", + "anonymized" + ] + }, + "DeleteCommentResult": { + "properties": { + "action": { + "$ref": "#/components/schemas/DeleteCommentAction" + }, + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "action", + "status" + ], + "type": "object" + }, + "SaveCommentResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "comment": { + "$ref": "#/components/schemas/FComment" + }, + "user": { + "allOf": [ + { + "$ref": "#/components/schemas/UserSessionInfo" + } + ], + "nullable": true + }, + "moduleData": { + "$ref": "#/components/schemas/Record_string.any_" + } + }, + "required": [ + "status", + "comment", + "user" + ], + "type": "object", + "additionalProperties": false + }, + "CreateCommentParams": { + "properties": { + "date": { + "type": "integer", + "format": "int64" + }, + "localDateString": { + "type": "string" + }, + "localDateHours": { + "type": "integer", + "format": "int32" + }, + "commenterName": { + "type": "string" + }, + "commenterEmail": { + "type": "string", + "nullable": true + }, + "commenterLink": { + "type": "string", + "nullable": true + }, + "comment": { + "type": "string" + }, + "productId": { + "type": "integer", + "format": "int32" + }, + "userId": { + "type": "string", + "nullable": true + }, + "avatarSrc": { + "type": "string", + "nullable": true + }, + "parentId": { + "type": "string", + "nullable": true + }, + "mentions": { + "items": { + "$ref": "#/components/schemas/CommentUserMentionInfo" + }, + "type": "array" + }, + "hashTags": { + "items": { + "$ref": "#/components/schemas/CommentUserHashTagInfo" + }, + "type": "array" + }, + "pageTitle": { + "type": "string" + }, + "isFromMyAccountPage": { + "type": "boolean" + }, + "url": { + "type": "string" + }, + "urlId": { + "type": "string" + }, + "meta": { + "additionalProperties": false, + "type": "object" + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "rating": { + "type": "number", + "format": "double" + }, + "fromOfflineRestore": { + "type": "boolean" + }, + "autoplayDelayMS": { + "type": "integer", + "format": "int64" + }, + "feedbackIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "questionValues": { + "$ref": "#/components/schemas/Record_string.string-or-number_" + }, + "approved": { + "type": "boolean" + }, + "domain": { + "type": "string" + }, + "ip": { + "type": "string" + }, + "isPinned": { + "type": "boolean" + }, + "locale": { + "type": "string", + "description": "Example: en_us" + }, + "reviewed": { + "type": "boolean" + }, + "verified": { + "type": "boolean" + }, + "votes": { + "type": "integer", + "format": "int32" + }, + "votesDown": { + "type": "integer", + "format": "int32" + }, + "votesUp": { + "type": "integer", + "format": "int32" + } + }, + "required": [ + "commenterName", + "comment", + "url", + "urlId", + "locale" + ], + "type": "object", + "additionalProperties": false + }, + "FlagCommentResponse": { + "properties": { + "statusCode": { + "type": "integer", + "format": "int32" + }, + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "code": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "wasUnapproved": { + "type": "boolean" + } + }, + "required": [ + "status" + ], + "type": "object", + "additionalProperties": false + }, + "BlockFromCommentParams": { + "properties": { + "commentIdsToCheck": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object", + "additionalProperties": false + }, + "UnBlockFromCommentParams": { + "properties": { + "commentIdsToCheck": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object", + "additionalProperties": false + }, + "APIAuditLog": { + "properties": { + "_id": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "username": { + "type": "string" + }, + "resourceName": { + "type": "string" + }, + "crudType": { + "type": "string", + "enum": [ + "c", + "r", + "u", + "d", + "login" + ] + }, + "from": { + "type": "string", + "enum": [ + "ui", + "api", + "cron" + ] + }, + "url": { + "type": "string", + "nullable": true + }, + "ip": { + "type": "string", + "nullable": true + }, + "when": { + "type": "string", + "format": "date-time" + }, + "description": { + "type": "string" + }, + "serverStartDate": { + "type": "string", + "format": "date-time" + }, + "objectDetails": { + "allOf": [ + { + "$ref": "#/components/schemas/Record_string.any_" + } + ], + "nullable": true + } + }, + "required": [ + "_id", + "resourceName", + "crudType" + ], + "type": "object", + "additionalProperties": false + }, + "GetAuditLogsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "auditLogs": { + "items": { + "$ref": "#/components/schemas/APIAuditLog" + }, + "type": "array" + } + }, + "required": [ + "status", + "auditLogs" + ], + "type": "object", + "additionalProperties": false + }, + "SORT_DIR": { + "type": "string", + "enum": [ + "ASC", + "DESC" + ] + }, + "DistinctAccumulator": { + "$ref": "#/components/schemas/Record_string.number_" + }, + "GroupValues": { + "$ref": "#/components/schemas/Record_string.string_" + }, + "AggregationValue": { + "properties": { + "groups": { + "$ref": "#/components/schemas/GroupValues" + }, + "stringValue": { + "type": "string" + }, + "numericValue": { + "type": "number", + "format": "double" + }, + "distinctCount": { + "type": "integer", + "format": "int64" + }, + "distinctCounts": { + "$ref": "#/components/schemas/DistinctAccumulator" + } + }, + "type": "object" + }, + "Record_string.AggregationValue_": { + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/AggregationValue" + }, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "AggregationItem": { + "allOf": [ + { + "$ref": "#/components/schemas/Record_string.AggregationValue_" + }, + { + "properties": { + "groups": { + "$ref": "#/components/schemas/GroupValues" + } + }, + "type": "object" + } + ] + }, + "AggregationResponse": { + "description": "The API response returns the aggregated data along with simple stats", + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "data": { + "items": { + "$ref": "#/components/schemas/AggregationItem" + }, + "type": "array" + }, + "stats": { + "properties": { + "timeMS": { + "type": "integer", + "format": "int64" + }, + "scanned": { + "type": "integer", + "format": "int64" + } + }, + "required": [ + "timeMS", + "scanned" + ], + "type": "object" + } + }, + "required": [ + "status", + "data" + ], + "type": "object", + "additionalProperties": false + }, + "QueryPredicate": { + "properties": { + "key": { + "type": "string" + }, + "value": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number", + "format": "double" + }, + { + "type": "boolean" + } + ] + }, + "operator": { + "type": "string", + "enum": [ + "eq", + "not_eq", + "greater_than", + "less_than", + "contains" + ] + } + }, + "required": [ + "key", + "value", + "operator" + ], + "type": "object", + "additionalProperties": false + }, + "AggregationOpType": { + "type": "string", + "enum": [ + "sum", + "countDistinct", + "distinct", + "avg", + "min", + "max", + "count" + ], + "description": "The supported aggregation operation types" + }, + "AggregationOperation": { + "description": "An operation that will be applied on a field", + "properties": { + "field": { + "type": "string", + "description": "The field to operate on" + }, + "op": { + "$ref": "#/components/schemas/AggregationOpType", + "description": "The type of operation" + }, + "alias": { + "type": "string", + "description": "Optional alias for the output; if not provided, a default alias is computed" + }, + "expandArray": { + "type": "boolean" + } + }, + "required": [ + "field", + "op" + ], + "type": "object", + "additionalProperties": false + }, + "AggregationRequest": { + "description": "The aggregation request accepts a resource, optional grouping keys, an array of operations, and an optional sort", + "properties": { + "query": { + "items": { + "$ref": "#/components/schemas/QueryPredicate" + }, + "type": "array" + }, + "resourceName": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "operations": { + "items": { + "$ref": "#/components/schemas/AggregationOperation" + }, + "type": "array" + }, + "sort": { + "properties": { + "dir": { + "type": "string", + "enum": [ + "asc", + "desc" + ] + }, + "field": { + "type": "string" + } + }, + "required": [ + "dir", + "field" + ], + "type": "object" + } + }, + "required": [ + "resourceName", + "operations" + ], + "type": "object", + "additionalProperties": false + } + }, + "securitySchemes": { + "api_key": { + "type": "apiKey", + "name": "x-api-key", + "in": "header" + } + } + }, + "info": { + "title": "fastcomments", + "version": "0.0.0", + "contact": {} + }, + "paths": { + "/user-search/{tenantId}": { + "get": { + "operationId": "SearchUsers", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/SearchUsersResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usernameStartsWith", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "mentionGroupIds", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-presence-status": { + "get": { + "operationId": "GetUserPresenceStatuses", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/GetUserPresenceStatusesResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + }, + "422": { + "description": "Validation Failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlIdWS", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "userIds", + "required": true, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications": { + "get": { + "operationId": "GetUserNotifications", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/GetMyNotificationsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "pageSize", + "required": false, + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "in": "query", + "name": "afterId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "includeContext", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "afterCreatedAt", + "required": false, + "schema": { + "format": "int64", + "type": "integer" + } + }, + { + "in": "query", + "name": "unreadOnly", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "dmOnly", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "noDm", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "includeTranslations", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications/reset": { + "post": { + "operationId": "ResetUserNotifications", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/ResetUserNotificationsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "afterId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "afterCreatedAt", + "required": false, + "schema": { + "format": "int64", + "type": "integer" + } + }, + { + "in": "query", + "name": "unreadOnly", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "dmOnly", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "noDm", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications/get-count": { + "get": { + "operationId": "GetUserNotificationCount", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/GetUserNotificationCountResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications/reset-count": { + "post": { + "operationId": "ResetUserNotificationCount", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/ResetUserNotificationsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications/{notificationId}/mark/{newStatus}": { + "post": { + "operationId": "UpdateUserNotificationStatus", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/UserNotificationWriteResponse" + }, + { + "$ref": "#/components/schemas/IgnoredResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "notificationId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "newStatus", + "required": true, + "schema": { + "type": "string", + "enum": [ + "read", + "unread" + ] + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications/{notificationId}/mark-opted/{optedInOrOut}": { + "post": { + "operationId": "UpdateUserNotificationCommentSubscriptionStatus", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/UserNotificationWriteResponse" + }, + { + "$ref": "#/components/schemas/IgnoredResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "description": "Enable or disable notifications for a specific comment.", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "notificationId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "optedInOrOut", + "required": true, + "schema": { + "type": "string", + "enum": [ + "in", + "out" + ] + } + }, + { + "in": "query", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications/set-subscription-state/{subscribedOrUnsubscribed}": { + "post": { + "operationId": "UpdateUserNotificationPageSubscriptionStatus", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/UserNotificationWriteResponse" + }, + { + "$ref": "#/components/schemas/IgnoredResponse" + }, + { + "$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", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "url", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "pageTitle", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "subscribedOrUnsubscribed", + "required": true, + "schema": { + "type": "string", + "enum": [ + "subscribe", + "unsubscribe" + ] + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/upload-image/{tenantId}": { + "post": { + "operationId": "UploadImage", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UploadImageResponse" + } + } + } + } + }, + "description": "Upload and resize an image", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Size preset: \"Default\" (1000x1000px) or \"CrossPlatform\" (creates sizes for popular devices)", + "in": "query", + "name": "sizePreset", + "required": false, + "schema": { + "$ref": "#/components/schemas/SizePreset" + } + }, + { + "description": "Page id that upload is happening from, to configure", + "in": "query", + "name": "urlId", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "file": { + "type": "string", + "format": "binary" + } + }, + "required": [ + "file" + ] + } + } + } + } + } + }, + "/flag-comment/{commentId}": { + "post": { + "operationId": "FlagCommentPublic", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "isFlagged", + "required": true, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/feed-posts/{tenantId}": { + "get": { + "operationId": "GetFeedPostsPublic", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/PublicFeedPostsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "description": "\nreq\ntenantId\nafterId", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "afterId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "limit", + "required": false, + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "in": "query", + "name": "tags", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "isCrawler", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "includeUserInfo", + "required": false, + "schema": { + "type": "boolean" + } + } + ] + }, + "post": { + "operationId": "CreateFeedPostPublic", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/CreateFeedPostResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateFeedPostParams" + } + } + } + } + } + }, + "/feed-posts/{tenantId}/react/{postId}": { + "post": { + "operationId": "ReactFeedPostPublic", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/ReactFeedPostResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "postId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "isUndo", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReactBodyParams" + } + } + } + } + } + }, + "/feed-posts/{tenantId}/user-reacts": { + "get": { + "operationId": "GetUserReactsPublic", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/UserReactsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "postIds", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/feed-posts/{tenantId}/{postId}": { + "put": { + "operationId": "UpdateFeedPostPublic", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/CreateFeedPostResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "postId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateFeedPostParams" + } + } + } + } + }, + "delete": { + "operationId": "DeleteFeedPostPublic", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "postId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/feed-posts/{tenantId}/stats": { + "get": { + "operationId": "GetFeedPostsStats", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/FeedPostsStatsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "postIds", + "required": true, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/event-log/{tenantId}": { + "get": { + "operationId": "GetEventLog", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/GetEventLogResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "description": "\nreq\ntenantId\nurlId\nuserIdWS", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "userIdWS", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "startTime", + "required": true, + "schema": { + "format": "int64", + "type": "integer" + } + }, + { + "in": "query", + "name": "endTime", + "required": true, + "schema": { + "format": "int64", + "type": "integer" + } + } + ] + } + }, + "/event-log/global/{tenantId}": { + "get": { + "operationId": "GetGlobalEventLog", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/GetEventLogResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "description": "\nreq\ntenantId\nurlId\nuserIdWS", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "userIdWS", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "startTime", + "required": true, + "schema": { + "format": "int64", + "type": "integer" + } + }, + { + "in": "query", + "name": "endTime", + "required": true, + "schema": { + "format": "int64", + "type": "integer" + } + } + ] + } + }, + "/comments/{tenantId}/{commentId}/text": { + "get": { + "operationId": "GetCommentText", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/PublicAPIGetCommentTextResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "editKey", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/comments/{tenantId}/{commentId}/update-text": { + "post": { + "operationId": "SetCommentText", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/PublicAPISetCommentTextResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "broadcastId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "editKey", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommentTextUpdateRequest" + } + } + } + } + } + }, + "/comments/{tenantId}": { + "get": { + "operationId": "GetCommentsPublic", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/GetCommentsResponseWithPresence_PublicComment_" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "description": "\nreq\ntenantId\nurlId", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "in": "query", + "name": "direction", + "required": false, + "schema": { + "$ref": "#/components/schemas/SortDirections" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "skip", + "required": false, + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "in": "query", + "name": "skipChildren", + "required": false, + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "in": "query", + "name": "limit", + "required": false, + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "in": "query", + "name": "limitChildren", + "required": false, + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "in": "query", + "name": "countChildren", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "fetchPageForCommentId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "includeConfig", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "countAll", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "includei10n", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "modules", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "isCrawler", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "includeNotificationCount", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "asTree", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "maxTreeDepth", + "required": false, + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "in": "query", + "name": "useFullTranslationIds", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "parentId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "searchText", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "hashTags", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "userId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "customConfigStr", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "afterCommentId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "beforeCommentId", + "required": false, + "schema": { + "type": "string" + } + } + ] + }, + "post": { + "operationId": "CreateCommentPublic", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/SaveCommentsResponseWithPresence" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "broadcastId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sessionId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommentData" + } + } + } + } + } + }, + "/comments/{tenantId}/{commentId}": { + "delete": { + "operationId": "DeleteCommentPublic", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/PublicAPIDeleteCommentResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "broadcastId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "editKey", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/check-blocked-comments": { + "get": { + "operationId": "CheckedCommentsForBlocked", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/CheckBlockedCommentsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "A comma separated list of comment ids.", + "in": "query", + "name": "commentIds", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/comments/{tenantId}/{commentId}/vote": { + "post": { + "operationId": "VoteComment", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/VoteResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "broadcastId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sessionId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VoteBodyParams" + } + } + } + } + } + }, + "/comments/{tenantId}/{commentId}/vote/{voteId}": { + "delete": { + "operationId": "DeleteCommentVote", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/VoteDeleteResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "voteId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "broadcastId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "editKey", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/comments/{tenantId}/{commentId}/votes": { + "get": { + "operationId": "GetCommentVoteUserNames", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/GetCommentVoteUserNamesSuccessResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "dir", + "required": true, + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/comments/{tenantId}/{commentId}/pin": { + "post": { + "operationId": "PinComment", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "broadcastId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/comments/{tenantId}/{commentId}/unpin": { + "post": { + "operationId": "UnPinComment", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "broadcastId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/comments/{tenantId}/{commentId}/lock": { + "post": { + "operationId": "LockComment", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/APIError" + }, + { + "$ref": "#/components/schemas/APIEmptyResponse" + } + ] + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "broadcastId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/comments/{tenantId}/{commentId}/unlock": { + "post": { + "operationId": "UnLockComment", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/APIError" + }, + { + "$ref": "#/components/schemas/APIEmptyResponse" + } + ] + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "broadcastId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/block-from-comment/{commentId}": { + "post": { + "operationId": "BlockFromCommentPublic", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/BlockSuccess" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PublicBlockFromCommentParams" + } + } + } + } + }, + "delete": { + "operationId": "UnBlockCommentPublic", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/UnblockSuccess" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PublicBlockFromCommentParams" + } + } + } + } + } + }, + "/api/v1/subscriptions": { + "get": { + "operationId": "GetSubscriptions", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetSubscriptionsAPIResponse" + } + } + } + } + }, + "security": [ + { + "api_key": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "userId", + "required": false, + "schema": { + "type": "string" + } + } + ] + }, + "post": { + "operationId": "CreateSubscription", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateSubscriptionAPIResponse" + } + } + } + } + }, + "security": [ + { + "api_key": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateAPIUserSubscriptionData" + } + } + } + } + } + }, + "/api/v1/subscriptions/{id}": { + "delete": { + "operationId": "DeleteSubscription", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeleteSubscriptionAPIResponse" + } + } + } + } + }, + "security": [ + { + "api_key": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "userId", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/api/v1/sso-users": { + "get": { + "operationId": "GetSSOUsers", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "properties": { + "users": { + "items": { + "$ref": "#/components/schemas/APISSOUser" + }, + "type": "array" + }, + "status": { + "type": "string" + } + }, + "required": [ + "users", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "api_key": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "skip", + "required": false, + "schema": { + "format": "int32", + "type": "integer" + } + } + ] + }, + "post": { + "operationId": "AddSSOUser", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddSSOUserAPIResponse" + } + } + } + } + }, + "security": [ + { + "api_key": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateAPISSOUserData" + } + } + } + } + } + }, + "/api/v1/sso-users/by-id/{id}": { + "get": { + "operationId": "GetSSOUserById", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetSSOUserByIdAPIResponse" + } + } + } + } + }, + "security": [ + { + "api_key": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ] + } + }, + "/api/v1/sso-users/by-email/{email}": { + "get": { + "operationId": "GetSSOUserByEmail", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetSSOUserByEmailAPIResponse" + } + } + } + } + }, + "security": [ + { + "api_key": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "email", + "required": true, + "schema": { + "type": "string" + } + } + ] + } + }, + "/api/v1/sso-users/{id}": { + "delete": { + "operationId": "DeleteSSOUser", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeleteSSOUserAPIResponse" + } + } + } + } + }, + "security": [ + { + "api_key": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "deleteComments", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "commentDeleteMode", + "required": false, + "schema": { + "type": "string" + } + } + ] + }, + "patch": { + "operationId": "PatchSSOUser", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PatchSSOUserAPIResponse" + } + } + } + } + }, + "security": [ + { + "api_key": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "updateComments", + "required": false, + "schema": { + "type": "boolean" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateAPISSOUserData" + } + } + } + } + }, + "put": { + "operationId": "PutSSOUser", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PutSSOUserAPIResponse" + } + } + } + } + }, + "security": [ + { + "api_key": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "updateComments", + "required": false, + "schema": { + "type": "boolean" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateAPISSOUserData" + } + } + } + } + } + }, + "/api/v1/pages": { + "get": { + "operationId": "GetPages", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetPagesAPIResponse" + } + } + } + } + }, + "security": [ + { + "api_key": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "post": { + "operationId": "AddPage", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddPageAPIResponse" + } + } + } + } + }, + "security": [ + { + "api_key": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateAPIPageData" + } + } + } + } + } + }, + "/api/v1/pages/by-url-id": { + "get": { + "operationId": "GetPageByURLId", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetPageByURLIdAPIResponse" + } + } + } + } + }, + "security": [ + { + "api_key": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + } + ] + } + }, + "/api/v1/pages/{id}": { + "patch": { + "operationId": "PatchPage", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PatchPageAPIResponse" + } + } + } + } + }, + "security": [ + { + "api_key": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateAPIPageData" + } + } + } + } + }, + "delete": { + "operationId": "DeletePage", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeletePageAPIResponse" + } + } + } + } + }, + "security": [ + { + "api_key": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ] + } + }, + "/api/v1/votes": { + "get": { + "operationId": "GetVotes", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/GetVotesResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "security": [ + { + "api_key": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "post": { + "operationId": "CreateVote", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/CreateVoteResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "security": [ + { + "api_key": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "direction", + "required": true, + "schema": { + "type": "string", + "enum": [ + "up", + "down" + ] + } + }, + { + "in": "query", + "name": "userId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "anonUserId", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/api/v1/votes/for-user": { + "get": { + "operationId": "GetVotesForUser", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/GetVotesForUserResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "security": [ + { + "api_key": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "userId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "anonUserId", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/api/v1/votes/{id}": { + "delete": { + "operationId": "DeleteVote", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/DeleteVoteResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "security": [ + { + "api_key": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "editKey", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/api/v1/users/{id}": { + "get": { + "operationId": "GetUser", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/GetUserResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "security": [ + { + "api_key": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ] + } + }, + "/api/v1/user-badges/{id}": { "get": { - "operationId": "SearchUsers", + "operationId": "GetUserBadge", "responses": { "200": { "description": "Ok", @@ -5732,7 +12639,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/SearchUsersResponse" + "$ref": "#/components/schemas/APIGetUserBadgeResponse" }, { "$ref": "#/components/schemas/APIError" @@ -5743,13 +12650,14 @@ } } }, - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { - "in": "path", + "in": "query", "name": "tenantId", "required": true, "schema": { @@ -5757,46 +12665,72 @@ } }, { - "in": "query", - "name": "urlId", + "in": "path", + "name": "id", "required": true, "schema": { "type": "string" } - }, + } + ] + }, + "put": { + "operationId": "UpdateUserBadge", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptySuccessResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "security": [ + { + "api_key": [] + } + ], + "parameters": [ { "in": "query", - "name": "usernameStartsWith", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "mentionGroupIds", - "required": false, - "schema": { - "type": "array", - "items": { - "type": "string" - } - } - }, - { - "in": "query", - "name": "sso", - "required": false, + "in": "path", + "name": "id", + "required": true, "schema": { "type": "string" } } - ] - } - }, - "/user-presence-status": { - "get": { - "operationId": "GetUserPresenceStatuses", + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateUserBadgeParams" + } + } + } + } + }, + "delete": { + "operationId": "DeleteUserBadge", "responses": { "200": { "description": "Ok", @@ -5805,7 +12739,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/GetUserPresenceStatusesResponse" + "$ref": "#/components/schemas/APIEmptySuccessResponse" }, { "$ref": "#/components/schemas/APIError" @@ -5814,22 +12748,13 @@ } } } - }, - "422": { - "description": "Validation Failed", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" - } - } - } } }, - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { "in": "query", @@ -5840,16 +12765,8 @@ } }, { - "in": "query", - "name": "urlIdWS", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "userIds", + "in": "path", + "name": "id", "required": true, "schema": { "type": "string" @@ -5858,9 +12775,9 @@ ] } }, - "/user-notifications": { + "/api/v1/user-badges": { "get": { - "operationId": "GetUserNotifications", + "operationId": "GetUserBadges", "responses": { "200": { "description": "Ok", @@ -5869,7 +12786,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/GetMyNotificationsResponse" + "$ref": "#/components/schemas/APIGetUserBadgesResponse" }, { "$ref": "#/components/schemas/APIError" @@ -5880,10 +12797,11 @@ } } }, - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { "in": "query", @@ -5895,16 +12813,15 @@ }, { "in": "query", - "name": "pageSize", + "name": "userId", "required": false, "schema": { - "format": "int32", - "type": "integer" + "type": "string" } }, { "in": "query", - "name": "afterId", + "name": "badgeId", "required": false, "schema": { "type": "string" @@ -5912,67 +12829,139 @@ }, { "in": "query", - "name": "includeContext", + "name": "type", "required": false, "schema": { - "type": "boolean" + "format": "double", + "type": "number" } }, { "in": "query", - "name": "afterCreatedAt", + "name": "displayedOnComments", "required": false, "schema": { - "format": "int64", - "type": "integer" + "type": "boolean" } }, { "in": "query", - "name": "unreadOnly", + "name": "limit", "required": false, "schema": { - "type": "boolean" + "format": "double", + "type": "number" } }, { "in": "query", - "name": "dmOnly", + "name": "skip", "required": false, "schema": { - "type": "boolean" + "format": "double", + "type": "number" } - }, + } + ] + }, + "post": { + "operationId": "CreateUserBadge", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/APICreateUserBadgeResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "security": [ + { + "api_key": [] + } + ], + "parameters": [ { "in": "query", - "name": "noDm", - "required": false, + "name": "tenantId", + "required": true, "schema": { - "type": "boolean" + "type": "string" } - }, + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateUserBadgeParams" + } + } + } + } + } + }, + "/api/v1/user-badge-progress/{id}": { + "get": { + "operationId": "GetUserBadgeProgressById", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "security": [ + { + "api_key": [] + } + ], + "parameters": [ { "in": "query", - "name": "includeTranslations", - "required": false, + "name": "tenantId", + "required": true, "schema": { - "type": "boolean" + "type": "string" } }, { - "in": "query", - "name": "sso", - "required": false, + "in": "path", + "name": "id", + "required": true, "schema": { "type": "string" } } ] } - }, - "/user-notifications/reset": { - "post": { - "operationId": "ResetUserNotifications", + }, + "/api/v1/user-badge-progress": { + "get": { + "operationId": "GetUserBadgeProgressList", "responses": { "200": { "description": "Ok", @@ -5981,7 +12970,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/ResetUserNotificationsResponse" + "$ref": "#/components/schemas/APIGetUserBadgeProgressListResponse" }, { "$ref": "#/components/schemas/APIError" @@ -5992,10 +12981,11 @@ } } }, - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { "in": "query", @@ -6007,7 +12997,7 @@ }, { "in": "query", - "name": "afterId", + "name": "userId", "required": false, "schema": { "type": "string" @@ -6015,41 +13005,65 @@ }, { "in": "query", - "name": "afterCreatedAt", + "name": "limit", "required": false, "schema": { - "format": "int64", - "type": "integer" + "format": "double", + "type": "number" } }, { "in": "query", - "name": "unreadOnly", + "name": "skip", "required": false, "schema": { - "type": "boolean" + "format": "double", + "type": "number" } - }, - { - "in": "query", - "name": "dmOnly", - "required": false, - "schema": { - "type": "boolean" + } + ] + } + }, + "/api/v1/user-badge-progress/user/{userId}": { + "get": { + "operationId": "GetUserBadgeProgressByUserId", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } } - }, + } + }, + "security": [ + { + "api_key": [] + } + ], + "parameters": [ { "in": "query", - "name": "noDm", - "required": false, + "name": "tenantId", + "required": true, "schema": { - "type": "boolean" + "type": "string" } }, { - "in": "query", - "name": "sso", - "required": false, + "in": "path", + "name": "userId", + "required": true, "schema": { "type": "string" } @@ -6057,9 +13071,9 @@ ] } }, - "/user-notifications/get-count": { + "/api/v1/tenants/{id}": { "get": { - "operationId": "GetUserNotificationCount", + "operationId": "GetTenant", "responses": { "200": { "description": "Ok", @@ -6068,7 +13082,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/GetUserNotificationCountResponse" + "$ref": "#/components/schemas/GetTenantResponse" }, { "$ref": "#/components/schemas/APIError" @@ -6079,10 +13093,11 @@ } } }, - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { "in": "query", @@ -6093,19 +13108,17 @@ } }, { - "in": "query", - "name": "sso", - "required": false, + "in": "path", + "name": "id", + "required": true, "schema": { "type": "string" } } ] - } - }, - "/user-notifications/reset-count": { - "post": { - "operationId": "ResetUserNotificationCount", + }, + "patch": { + "operationId": "UpdateTenant", "responses": { "200": { "description": "Ok", @@ -6114,7 +13127,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/ResetUserNotificationsResponse" + "$ref": "#/components/schemas/APIEmptyResponse" }, { "$ref": "#/components/schemas/APIError" @@ -6125,10 +13138,11 @@ } } }, - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { "in": "query", @@ -6139,19 +13153,27 @@ } }, { - "in": "query", - "name": "sso", - "required": false, + "in": "path", + "name": "id", + "required": true, "schema": { "type": "string" } } - ] - } - }, - "/user-notifications/{notificationId}/mark/{newStatus}": { - "post": { - "operationId": "UpdateUserNotificationStatus", + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateTenantBody" + } + } + } + } + }, + "delete": { + "operationId": "DeleteTenant", "responses": { "200": { "description": "Ok", @@ -6160,10 +13182,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/UserNotificationWriteResponse" - }, - { - "$ref": "#/components/schemas/IgnoredResponse" + "$ref": "#/components/schemas/APIEmptyResponse" }, { "$ref": "#/components/schemas/APIError" @@ -6174,10 +13193,11 @@ } } }, - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { "in": "query", @@ -6189,27 +13209,15 @@ }, { "in": "path", - "name": "notificationId", + "name": "id", "required": true, "schema": { "type": "string" } }, - { - "in": "path", - "name": "newStatus", - "required": true, - "schema": { - "type": "string", - "enum": [ - "read", - "unread" - ] - } - }, { "in": "query", - "name": "sso", + "name": "sure", "required": false, "schema": { "type": "string" @@ -6218,9 +13226,9 @@ ] } }, - "/user-notifications/{notificationId}/mark-opted/{optedInOrOut}": { - "post": { - "operationId": "UpdateUserNotificationCommentSubscriptionStatus", + "/api/v1/tenants": { + "get": { + "operationId": "GetTenants", "responses": { "200": { "description": "Ok", @@ -6229,10 +13237,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/UserNotificationWriteResponse" - }, - { - "$ref": "#/components/schemas/IgnoredResponse" + "$ref": "#/components/schemas/GetTenantsResponse" }, { "$ref": "#/components/schemas/APIError" @@ -6243,11 +13248,11 @@ } } }, - "description": "Enable or disable notifications for a specific comment.", - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { "in": "query", @@ -6257,48 +13262,27 @@ "type": "string" } }, - { - "in": "path", - "name": "notificationId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "optedInOrOut", - "required": true, - "schema": { - "type": "string", - "enum": [ - "in", - "out" - ] - } - }, { "in": "query", - "name": "commentId", - "required": true, + "name": "meta", + "required": false, "schema": { "type": "string" } }, { "in": "query", - "name": "sso", + "name": "skip", "required": false, "schema": { - "type": "string" + "format": "double", + "type": "number" } } ] - } - }, - "/user-notifications/set-subscription-state/{subscribedOrUnsubscribed}": { + }, "post": { - "operationId": "UpdateUserNotificationPageSubscriptionStatus", + "operationId": "CreateTenant", "responses": { "200": { "description": "Ok", @@ -6307,10 +13291,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/UserNotificationWriteResponse" - }, - { - "$ref": "#/components/schemas/IgnoredResponse" + "$ref": "#/components/schemas/CreateTenantResponse" }, { "$ref": "#/components/schemas/APIError" @@ -6321,11 +13302,11 @@ } } }, - "description": "Enable or disable notifications for a page. When users are subscribed to a page, notifications are created\nfor new root comments, and also", - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { "in": "query", @@ -6334,26 +13315,51 @@ "schema": { "type": "string" } - }, - { - "in": "query", - "name": "urlId", - "required": true, - "schema": { - "type": "string" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateTenantBody" + } + } + } + } + } + }, + "/api/v1/tenant-users/{id}": { + "get": { + "operationId": "GetTenantUser", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/GetTenantUserResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } } - }, + } + }, + "security": [ { - "in": "query", - "name": "url", - "required": true, - "schema": { - "type": "string" - } - }, + "api_key": [] + } + ], + "parameters": [ { "in": "query", - "name": "pageTitle", + "name": "tenantId", "required": true, "schema": { "type": "string" @@ -6361,50 +13367,43 @@ }, { "in": "path", - "name": "subscribedOrUnsubscribed", + "name": "id", "required": true, - "schema": { - "type": "string", - "enum": [ - "subscribe", - "unsubscribe" - ] - } - }, - { - "in": "query", - "name": "sso", - "required": false, "schema": { "type": "string" } } ] - } - }, - "/upload-image/{tenantId}": { - "post": { - "operationId": "UploadImage", + }, + "put": { + "operationId": "ReplaceTenantUser", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UploadImageResponse" + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } } }, - "description": "Upload and resize an image", - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { - "in": "path", + "in": "query", "name": "tenantId", "required": true, "schema": { @@ -6412,18 +13411,16 @@ } }, { - "description": "Size preset: \"Default\" (1000x1000px) or \"CrossPlatform\" (creates sizes for popular devices)", - "in": "query", - "name": "sizePreset", - "required": false, + "in": "path", + "name": "id", + "required": true, "schema": { - "$ref": "#/components/schemas/SizePreset" + "type": "string" } }, { - "description": "Page id that upload is happening from, to configure", "in": "query", - "name": "urlId", + "name": "updateComments", "required": false, "schema": { "type": "string" @@ -6433,27 +13430,16 @@ "requestBody": { "required": true, "content": { - "multipart/form-data": { + "application/json": { "schema": { - "type": "object", - "properties": { - "file": { - "type": "string", - "format": "binary" - } - }, - "required": [ - "file" - ] + "$ref": "#/components/schemas/ReplaceTenantUserBody" } } } } - } - }, - "/flag-comment/{commentId}": { - "post": { - "operationId": "FlagCommentPublic", + }, + "patch": { + "operationId": "UpdateTenantUser", "responses": { "200": { "description": "Ok", @@ -6473,10 +13459,11 @@ } } }, - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { "in": "query", @@ -6488,7 +13475,7 @@ }, { "in": "path", - "name": "commentId", + "name": "id", "required": true, "schema": { "type": "string" @@ -6496,26 +13483,26 @@ }, { "in": "query", - "name": "isFlagged", - "required": true, - "schema": { - "type": "boolean" - } - }, - { - "in": "query", - "name": "sso", + "name": "updateComments", "required": false, "schema": { "type": "string" } } - ] - } - }, - "/feed-posts/{tenantId}": { - "get": { - "operationId": "GetFeedPostsPublic", + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateTenantUserBody" + } + } + } + } + }, + "delete": { + "operationId": "DeleteTenantUser", "responses": { "200": { "description": "Ok", @@ -6524,7 +13511,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/PublicFeedPostsResponse" + "$ref": "#/components/schemas/APIEmptyResponse" }, { "$ref": "#/components/schemas/APIError" @@ -6535,14 +13522,14 @@ } } }, - "description": "\nreq\ntenantId\nafterId", - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { - "in": "path", + "in": "query", "name": "tenantId", "required": true, "schema": { @@ -6550,36 +13537,16 @@ } }, { - "in": "query", - "name": "afterId", - "required": false, + "in": "path", + "name": "id", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "limit", - "required": false, - "schema": { - "format": "int32", - "type": "integer" - } - }, - { - "in": "query", - "name": "tags", - "required": false, - "schema": { - "type": "array", - "items": { - "type": "string" - } - } - }, - { - "in": "query", - "name": "sso", + "name": "deleteComments", "required": false, "schema": { "type": "string" @@ -6587,24 +13554,18 @@ }, { "in": "query", - "name": "isCrawler", - "required": false, - "schema": { - "type": "boolean" - } - }, - { - "in": "query", - "name": "includeUserInfo", + "name": "commentDeleteMode", "required": false, "schema": { - "type": "boolean" + "type": "string" } } ] - }, - "post": { - "operationId": "CreateFeedPostPublic", + } + }, + "/api/v1/tenant-users": { + "get": { + "operationId": "GetTenantUsers", "responses": { "200": { "description": "Ok", @@ -6613,7 +13574,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/CreateFeedPostResponse" + "$ref": "#/components/schemas/GetTenantUsersResponse" }, { "$ref": "#/components/schemas/APIError" @@ -6624,13 +13585,14 @@ } } }, - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { - "in": "path", + "in": "query", "name": "tenantId", "required": true, "schema": { @@ -6639,36 +13601,17 @@ }, { "in": "query", - "name": "broadcastId", - "required": false, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "sso", + "name": "skip", "required": false, "schema": { - "type": "string" - } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateFeedPostParams" - } + "format": "double", + "type": "number" } } - } - } - }, - "/feed-posts/{tenantId}/react/{postId}": { + ] + }, "post": { - "operationId": "ReactFeedPostPublic", + "operationId": "CreateTenantUser", "responses": { "200": { "description": "Ok", @@ -6677,58 +13620,27 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/ReactFeedPostResponse" + "$ref": "#/components/schemas/CreateTenantUserResponse" }, { "$ref": "#/components/schemas/APIError" } ] } - } - } - } - }, - "tags": [ - "Public" - ], - "security": [], - "parameters": [ - { - "in": "path", - "name": "tenantId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "postId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "isUndo", - "required": false, - "schema": { - "type": "boolean" + } } - }, + } + }, + "security": [ { - "in": "query", - "name": "broadcastId", - "required": false, - "schema": { - "type": "string" - } - }, + "api_key": [] + } + ], + "parameters": [ { "in": "query", - "name": "sso", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } @@ -6739,16 +13651,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ReactBodyParams" + "$ref": "#/components/schemas/CreateTenantUserBody" } } } } } }, - "/feed-posts/{tenantId}/user-reacts": { - "get": { - "operationId": "GetUserReactsPublic", + "/api/v1/tenant-users/{id}/send-login-link": { + "post": { + "operationId": "SendLoginLink", "responses": { "200": { "description": "Ok", @@ -6757,7 +13669,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/UserReactsResponse" + "$ref": "#/components/schemas/APIEmptyResponse" }, { "$ref": "#/components/schemas/APIError" @@ -6768,13 +13680,14 @@ } } }, - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { - "in": "path", + "in": "query", "name": "tenantId", "required": true, "schema": { @@ -6782,19 +13695,16 @@ } }, { - "in": "query", - "name": "postIds", - "required": false, + "in": "path", + "name": "id", + "required": true, "schema": { - "type": "array", - "items": { - "type": "string" - } + "type": "string" } }, { "in": "query", - "name": "sso", + "name": "redirectURL", "required": false, "schema": { "type": "string" @@ -6803,9 +13713,9 @@ ] } }, - "/feed-posts/{tenantId}/{postId}": { - "put": { - "operationId": "UpdateFeedPostPublic", + "/api/v1/tenant-packages/{id}": { + "get": { + "operationId": "GetTenantPackage", "responses": { "200": { "description": "Ok", @@ -6814,7 +13724,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/CreateFeedPostResponse" + "$ref": "#/components/schemas/GetTenantPackageResponse" }, { "$ref": "#/components/schemas/APIError" @@ -6825,13 +13735,14 @@ } } }, - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { - "in": "path", + "in": "query", "name": "tenantId", "required": true, "schema": { @@ -6840,24 +13751,53 @@ }, { "in": "path", - "name": "postId", + "name": "id", "required": true, "schema": { "type": "string" } - }, + } + ] + }, + "put": { + "operationId": "ReplaceTenantPackage", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "security": [ + { + "api_key": [] + } + ], + "parameters": [ { "in": "query", - "name": "broadcastId", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "sso", - "required": false, + "in": "path", + "name": "id", + "required": true, "schema": { "type": "string" } @@ -6868,14 +13808,14 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UpdateFeedPostParams" + "$ref": "#/components/schemas/ReplaceTenantPackageBody" } } } } }, - "delete": { - "operationId": "DeleteFeedPostPublic", + "patch": { + "operationId": "UpdateTenantPackage", "responses": { "200": { "description": "Ok", @@ -6884,15 +13824,7 @@ "schema": { "anyOf": [ { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - } - }, - "required": [ - "status" - ], - "type": "object" + "$ref": "#/components/schemas/APIEmptyResponse" }, { "$ref": "#/components/schemas/APIError" @@ -6903,13 +13835,14 @@ } } }, - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { - "in": "path", + "in": "query", "name": "tenantId", "required": true, "schema": { @@ -6918,34 +13851,26 @@ }, { "in": "path", - "name": "postId", + "name": "id", "required": true, "schema": { "type": "string" } - }, - { - "in": "query", - "name": "broadcastId", - "required": false, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "sso", - "required": false, - "schema": { - "type": "string" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateTenantPackageBody" + } } } - ] - } - }, - "/feed-posts/{tenantId}/stats": { - "get": { - "operationId": "GetFeedPostsStats", + } + }, + "delete": { + "operationId": "DeleteTenantPackage", "responses": { "200": { "description": "Ok", @@ -6954,7 +13879,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/FeedPostsStatsResponse" + "$ref": "#/components/schemas/APIEmptyResponse" }, { "$ref": "#/components/schemas/APIError" @@ -6965,13 +13890,14 @@ } } }, - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { - "in": "path", + "in": "query", "name": "tenantId", "required": true, "schema": { @@ -6979,20 +13905,9 @@ } }, { - "in": "query", - "name": "postIds", + "in": "path", + "name": "id", "required": true, - "schema": { - "type": "array", - "items": { - "type": "string" - } - } - }, - { - "in": "query", - "name": "sso", - "required": false, "schema": { "type": "string" } @@ -7000,9 +13915,9 @@ ] } }, - "/event-log/{tenantId}": { + "/api/v1/tenant-packages": { "get": { - "operationId": "GetEventLog", + "operationId": "GetTenantPackages", "responses": { "200": { "description": "Ok", @@ -7011,7 +13926,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/GetEventLogResponse" + "$ref": "#/components/schemas/GetTenantPackagesResponse" }, { "$ref": "#/components/schemas/APIError" @@ -7022,14 +13937,14 @@ } } }, - "description": "\nreq\ntenantId\nurlId\nuserIdWS", - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { - "in": "path", + "in": "query", "name": "tenantId", "required": true, "schema": { @@ -7038,44 +13953,66 @@ }, { "in": "query", - "name": "urlId", - "required": true, + "name": "skip", + "required": false, "schema": { - "type": "string" + "format": "double", + "type": "number" } - }, - { - "in": "query", - "name": "userIdWS", - "required": true, - "schema": { - "type": "string" + } + ] + }, + "post": { + "operationId": "CreateTenantPackage", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/CreateTenantPackageResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } } - }, + } + }, + "security": [ { - "in": "query", - "name": "startTime", - "required": true, - "schema": { - "format": "int64", - "type": "integer" - } - }, + "api_key": [] + } + ], + "parameters": [ { "in": "query", - "name": "endTime", + "name": "tenantId", "required": true, "schema": { - "format": "int64", - "type": "integer" + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateTenantPackageBody" + } } } - ] + } } }, - "/event-log/global/{tenantId}": { + "/api/v1/tenant-daily-usage": { "get": { - "operationId": "GetGlobalEventLog", + "operationId": "GetTenantDailyUsages", "responses": { "200": { "description": "Ok", @@ -7084,7 +14021,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/GetEventLogResponse" + "$ref": "#/components/schemas/GetTenantDailyUsagesResponse" }, { "$ref": "#/components/schemas/APIError" @@ -7095,14 +14032,14 @@ } } }, - "description": "\nreq\ntenantId\nurlId\nuserIdWS", - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { - "in": "path", + "in": "query", "name": "tenantId", "required": true, "schema": { @@ -7111,44 +14048,46 @@ }, { "in": "query", - "name": "urlId", - "required": true, + "name": "yearNumber", + "required": false, "schema": { - "type": "string" + "format": "double", + "type": "number" } }, { "in": "query", - "name": "userIdWS", - "required": true, + "name": "monthNumber", + "required": false, "schema": { - "type": "string" + "format": "double", + "type": "number" } }, { "in": "query", - "name": "startTime", - "required": true, + "name": "dayNumber", + "required": false, "schema": { - "format": "int64", - "type": "integer" + "format": "double", + "type": "number" } }, { "in": "query", - "name": "endTime", - "required": true, + "name": "skip", + "required": false, "schema": { - "format": "int64", - "type": "integer" + "format": "double", + "type": "number" } } ] } }, - "/comments/{tenantId}/{commentId}/text": { + "/api/v1/question-results/{id}": { "get": { - "operationId": "GetCommentText", + "operationId": "GetQuestionResult", "responses": { "200": { "description": "Ok", @@ -7157,7 +14096,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/PublicAPIGetCommentTextResponse" + "$ref": "#/components/schemas/GetQuestionResultResponse" }, { "$ref": "#/components/schemas/APIError" @@ -7168,13 +14107,14 @@ } } }, - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { - "in": "path", + "in": "query", "name": "tenantId", "required": true, "schema": { @@ -7183,34 +14123,16 @@ }, { "in": "path", - "name": "commentId", + "name": "id", "required": true, "schema": { "type": "string" } - }, - { - "in": "query", - "name": "editKey", - "required": false, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "sso", - "required": false, - "schema": { - "type": "string" - } } ] - } - }, - "/comments/{tenantId}/{commentId}/update-text": { - "post": { - "operationId": "SetCommentText", + }, + "patch": { + "operationId": "UpdateQuestionResult", "responses": { "200": { "description": "Ok", @@ -7219,7 +14141,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/PublicAPISetCommentTextResponse" + "$ref": "#/components/schemas/APIEmptyResponse" }, { "$ref": "#/components/schemas/APIError" @@ -7230,13 +14152,14 @@ } } }, - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { - "in": "path", + "in": "query", "name": "tenantId", "required": true, "schema": { @@ -7245,35 +14168,11 @@ }, { "in": "path", - "name": "commentId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "broadcastId", + "name": "id", "required": true, "schema": { "type": "string" } - }, - { - "in": "query", - "name": "editKey", - "required": false, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "sso", - "required": false, - "schema": { - "type": "string" - } } ], "requestBody": { @@ -7281,16 +14180,14 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CommentTextUpdateRequest" + "$ref": "#/components/schemas/UpdateQuestionResultBody" } } } } - } - }, - "/comments/{tenantId}": { - "get": { - "operationId": "GetCommentsPublic", + }, + "delete": { + "operationId": "DeleteQuestionResult", "responses": { "200": { "description": "Ok", @@ -7299,7 +14196,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/GetCommentsResponseWithPresence_PublicComment_" + "$ref": "#/components/schemas/APIEmptyResponse" }, { "$ref": "#/components/schemas/APIError" @@ -7310,14 +14207,14 @@ } } }, - "description": "\nreq\ntenantId\nurlId", - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { - "in": "path", + "in": "query", "name": "tenantId", "required": true, "schema": { @@ -7325,117 +14222,63 @@ } }, { - "in": "query", - "name": "urlId", + "in": "path", + "name": "id", "required": true, "schema": { "type": "string" } - }, - { - "in": "query", - "name": "page", - "required": false, - "schema": { - "format": "int32", - "type": "integer" - } - }, - { - "in": "query", - "name": "direction", - "required": false, - "schema": { - "$ref": "#/components/schemas/SortDirections" - } - }, - { - "in": "query", - "name": "sso", - "required": false, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "skip", - "required": false, - "schema": { - "format": "int32", - "type": "integer" - } - }, - { - "in": "query", - "name": "skipChildren", - "required": false, - "schema": { - "format": "int32", - "type": "integer" - } - }, - { - "in": "query", - "name": "limit", - "required": false, - "schema": { - "format": "int32", - "type": "integer" - } - }, - { - "in": "query", - "name": "limitChildren", - "required": false, - "schema": { - "format": "int32", - "type": "integer" - } - }, - { - "in": "query", - "name": "countChildren", - "required": false, - "schema": { - "type": "boolean" - } - }, - { - "in": "query", - "name": "fetchPageForCommentId", - "required": false, - "schema": { - "type": "string" + } + ] + } + }, + "/api/v1/question-results": { + "get": { + "operationId": "GetQuestionResults", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/GetQuestionResultsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } } - }, + } + }, + "security": [ { - "in": "query", - "name": "includeConfig", - "required": false, - "schema": { - "type": "boolean" - } - }, + "api_key": [] + } + ], + "parameters": [ { "in": "query", - "name": "countAll", - "required": false, + "name": "tenantId", + "required": true, "schema": { - "type": "boolean" + "type": "string" } }, { "in": "query", - "name": "includei10n", + "name": "urlId", "required": false, "schema": { - "type": "boolean" + "type": "string" } }, { "in": "query", - "name": "locale", + "name": "userId", "required": false, "schema": { "type": "string" @@ -7443,7 +14286,7 @@ }, { "in": "query", - "name": "modules", + "name": "startDate", "required": false, "schema": { "type": "string" @@ -7451,56 +14294,118 @@ }, { "in": "query", - "name": "isCrawler", + "name": "questionId", "required": false, "schema": { - "type": "boolean" + "type": "string" } }, { "in": "query", - "name": "includeNotificationCount", + "name": "questionIds", "required": false, "schema": { - "type": "boolean" + "type": "string" } }, { "in": "query", - "name": "asTree", + "name": "skip", "required": false, "schema": { - "type": "boolean" + "format": "double", + "type": "number" } - }, - { - "in": "query", - "name": "maxTreeDepth", - "required": false, - "schema": { - "format": "int32", - "type": "integer" + } + ] + }, + "post": { + "operationId": "CreateQuestionResult", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/CreateQuestionResultResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } } - }, + } + }, + "security": [ + { + "api_key": [] + } + ], + "parameters": [ { "in": "query", - "name": "useFullTranslationIds", - "required": false, + "name": "tenantId", + "required": true, "schema": { - "type": "boolean" + "type": "string" } - }, + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateQuestionResultBody" + } + } + } + } + } + }, + "/api/v1/question-results-aggregation": { + "get": { + "operationId": "AggregateQuestionResults", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/AggregateQuestionResultsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + } + } + } + } + }, + "security": [ + { + "api_key": [] + } + ], + "parameters": [ { "in": "query", - "name": "parentId", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "searchText", + "name": "questionId", "required": false, "schema": { "type": "string" @@ -7508,7 +14413,7 @@ }, { "in": "query", - "name": "hashTags", + "name": "questionIds", "required": false, "schema": { "type": "array", @@ -7519,7 +14424,7 @@ }, { "in": "query", - "name": "userId", + "name": "urlId", "required": false, "schema": { "type": "string" @@ -7527,32 +14432,35 @@ }, { "in": "query", - "name": "customConfigStr", + "name": "timeBucket", "required": false, "schema": { - "type": "string" + "$ref": "#/components/schemas/AggregateTimeBucket" } }, { "in": "query", - "name": "afterCommentId", + "name": "startDate", "required": false, "schema": { + "format": "date-time", "type": "string" } }, { "in": "query", - "name": "beforeCommentId", + "name": "forceRecalculate", "required": false, "schema": { - "type": "string" + "type": "boolean" } } ] - }, + } + }, + "/api/v1/question-results-aggregation/bulk": { "post": { - "operationId": "CreateCommentPublic", + "operationId": "BulkAggregateQuestionResults", "responses": { "200": { "description": "Ok", @@ -7561,7 +14469,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/SaveCommentsResponseWithPresence" + "$ref": "#/components/schemas/BulkAggregateQuestionResultsResponse" }, { "$ref": "#/components/schemas/APIError" @@ -7572,30 +14480,15 @@ } } }, - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ - { - "in": "path", - "name": "tenantId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "urlId", - "required": true, - "schema": { - "type": "string" - } - }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": true, "schema": { "type": "string" @@ -7603,18 +14496,10 @@ }, { "in": "query", - "name": "sessionId", - "required": false, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "sso", + "name": "forceRecalculate", "required": false, "schema": { - "type": "string" + "type": "boolean" } } ], @@ -7623,16 +14508,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CommentData" + "$ref": "#/components/schemas/BulkAggregateQuestionResultsRequest" } } } } } }, - "/comments/{tenantId}/{commentId}": { - "delete": { - "operationId": "DeleteCommentPublic", + "/api/v1/question-results-aggregation/combine/comments": { + "get": { + "operationId": "CombineCommentsWithQuestionResults", "responses": { "200": { "description": "Ok", @@ -7641,7 +14526,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/PublicAPIDeleteCommentResponse" + "$ref": "#/components/schemas/CombineQuestionResultsWithCommentsResponse" }, { "$ref": "#/components/schemas/APIError" @@ -7652,13 +14537,14 @@ } } }, - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { - "in": "path", + "in": "query", "name": "tenantId", "required": true, "schema": { @@ -7666,24 +14552,27 @@ } }, { - "in": "path", - "name": "commentId", - "required": true, + "in": "query", + "name": "questionId", + "required": false, "schema": { "type": "string" } }, { "in": "query", - "name": "broadcastId", - "required": true, + "name": "questionIds", + "required": false, "schema": { - "type": "string" + "type": "array", + "items": { + "type": "string" + } } }, { "in": "query", - "name": "editKey", + "name": "urlId", "required": false, "schema": { "type": "string" @@ -7691,18 +14580,54 @@ }, { "in": "query", - "name": "sso", + "name": "startDate", "required": false, "schema": { + "format": "date-time", "type": "string" } + }, + { + "in": "query", + "name": "forceRecalculate", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "minValue", + "required": false, + "schema": { + "format": "double", + "type": "number" + } + }, + { + "in": "query", + "name": "maxValue", + "required": false, + "schema": { + "format": "double", + "type": "number" + } + }, + { + "in": "query", + "name": "limit", + "required": false, + "schema": { + "format": "double", + "type": "number" + } } ] } }, - "/check-blocked-comments": { + "/api/v1/question-configs/{id}": { "get": { - "operationId": "CheckedCommentsForBlocked", + "operationId": "GetQuestionConfig", "responses": { "200": { "description": "Ok", @@ -7711,7 +14636,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/CheckBlockedCommentsResponse" + "$ref": "#/components/schemas/GetQuestionConfigResponse" }, { "$ref": "#/components/schemas/APIError" @@ -7722,10 +14647,11 @@ } } }, - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { "in": "query", @@ -7736,28 +14662,17 @@ } }, { - "description": "A comma separated list of comment ids.", - "in": "query", - "name": "commentIds", + "in": "path", + "name": "id", "required": true, "schema": { "type": "string" } - }, - { - "in": "query", - "name": "sso", - "required": false, - "schema": { - "type": "string" - } } ] - } - }, - "/comments/{tenantId}/{commentId}/vote": { - "post": { - "operationId": "VoteComment", + }, + "patch": { + "operationId": "UpdateQuestionConfig", "responses": { "200": { "description": "Ok", @@ -7766,7 +14681,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/VoteResponse" + "$ref": "#/components/schemas/APIEmptyResponse" }, { "$ref": "#/components/schemas/APIError" @@ -7777,13 +14692,14 @@ } } }, - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { - "in": "path", + "in": "query", "name": "tenantId", "required": true, "schema": { @@ -7792,43 +14708,11 @@ }, { "in": "path", - "name": "commentId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "urlId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "broadcastId", + "name": "id", "required": true, "schema": { "type": "string" } - }, - { - "in": "query", - "name": "sessionId", - "required": false, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "sso", - "required": false, - "schema": { - "type": "string" - } } ], "requestBody": { @@ -7836,16 +14720,14 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/VoteBodyParams" + "$ref": "#/components/schemas/UpdateQuestionConfigBody" } } } } - } - }, - "/comments/{tenantId}/{commentId}/vote/{voteId}": { + }, "delete": { - "operationId": "DeleteCommentVote", + "operationId": "DeleteQuestionConfig", "responses": { "200": { "description": "Ok", @@ -7854,7 +14736,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/VoteDeleteResponse" + "$ref": "#/components/schemas/APIEmptyResponse" }, { "$ref": "#/components/schemas/APIError" @@ -7865,13 +14747,14 @@ } } }, - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { - "in": "path", + "in": "query", "name": "tenantId", "required": true, "schema": { @@ -7880,58 +14763,18 @@ }, { "in": "path", - "name": "commentId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "voteId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "urlId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "broadcastId", + "name": "id", "required": true, "schema": { "type": "string" } - }, - { - "in": "query", - "name": "editKey", - "required": false, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "sso", - "required": false, - "schema": { - "type": "string" - } } ] } }, - "/comments/{tenantId}/{commentId}/votes": { + "/api/v1/question-configs": { "get": { - "operationId": "GetCommentVoteUserNames", + "operationId": "GetQuestionConfigs", "responses": { "200": { "description": "Ok", @@ -7940,7 +14783,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/GetCommentVoteUserNamesSuccessResponse" + "$ref": "#/components/schemas/GetQuestionConfigsResponse" }, { "$ref": "#/components/schemas/APIError" @@ -7951,50 +14794,33 @@ } } }, - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { - "in": "path", + "in": "query", "name": "tenantId", "required": true, "schema": { "type": "string" } }, - { - "in": "path", - "name": "commentId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "dir", - "required": true, - "schema": { - "format": "int32", - "type": "integer" - } - }, { "in": "query", - "name": "sso", + "name": "skip", "required": false, "schema": { - "type": "string" + "format": "double", + "type": "number" } } ] - } - }, - "/comments/{tenantId}/{commentId}/pin": { + }, "post": { - "operationId": "PinComment", + "operationId": "CreateQuestionConfig", "responses": { "200": { "description": "Ok", @@ -8003,7 +14829,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" + "$ref": "#/components/schemas/CreateQuestionConfigResponse" }, { "$ref": "#/components/schemas/APIError" @@ -8014,49 +14840,36 @@ } } }, - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ - { - "in": "path", - "name": "tenantId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "commentId", - "required": true, - "schema": { - "type": "string" - } - }, { "in": "query", - "name": "broadcastId", + "name": "tenantId", "required": true, "schema": { "type": "string" } - }, - { - "in": "query", - "name": "sso", - "required": false, - "schema": { - "type": "string" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateQuestionConfigBody" + } } } - ] + } } }, - "/comments/{tenantId}/{commentId}/unpin": { - "post": { - "operationId": "UnPinComment", + "/api/v1/pending-webhook-events": { + "get": { + "operationId": "GetPendingWebhookEvents", "responses": { "200": { "description": "Ok", @@ -8065,7 +14878,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" + "$ref": "#/components/schemas/GetPendingWebhookEventsResponse" }, { "$ref": "#/components/schemas/APIError" @@ -8076,13 +14889,14 @@ } } }, - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { - "in": "path", + "in": "query", "name": "tenantId", "required": true, "schema": { @@ -8090,35 +14904,69 @@ } }, { - "in": "path", + "in": "query", "name": "commentId", - "required": true, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "externalId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "eventType", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "type", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "domain", + "required": false, "schema": { "type": "string" } }, { "in": "query", - "name": "broadcastId", - "required": true, + "name": "attemptCountGT", + "required": false, "schema": { - "type": "string" + "format": "double", + "type": "number" } }, { "in": "query", - "name": "sso", + "name": "skip", "required": false, "schema": { - "type": "string" + "format": "double", + "type": "number" } } ] } }, - "/comments/{tenantId}/{commentId}/lock": { - "post": { - "operationId": "LockComment", + "/api/v1/pending-webhook-events/count": { + "get": { + "operationId": "GetPendingWebhookEventCount", "responses": { "200": { "description": "Ok", @@ -8127,10 +14975,10 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/APIError" + "$ref": "#/components/schemas/GetPendingWebhookEventCountResponse" }, { - "$ref": "#/components/schemas/APIEmptyResponse" + "$ref": "#/components/schemas/APIError" } ] } @@ -8138,13 +14986,14 @@ } } }, - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { - "in": "path", + "in": "query", "name": "tenantId", "required": true, "schema": { @@ -8152,97 +15001,60 @@ } }, { - "in": "path", + "in": "query", "name": "commentId", - "required": true, + "required": false, "schema": { "type": "string" } }, { "in": "query", - "name": "broadcastId", - "required": true, + "name": "externalId", + "required": false, "schema": { "type": "string" } }, { "in": "query", - "name": "sso", + "name": "eventType", "required": false, "schema": { "type": "string" } - } - ] - } - }, - "/comments/{tenantId}/{commentId}/unlock": { - "post": { - "operationId": "UnLockComment", - "responses": { - "200": { - "description": "Ok", - "content": { - "application/json": { - "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIError" - }, - { - "$ref": "#/components/schemas/APIEmptyResponse" - } - ] - } - } - } - } - }, - "tags": [ - "Public" - ], - "security": [], - "parameters": [ - { - "in": "path", - "name": "tenantId", - "required": true, - "schema": { - "type": "string" - } }, { - "in": "path", - "name": "commentId", - "required": true, + "in": "query", + "name": "type", + "required": false, "schema": { "type": "string" } }, { "in": "query", - "name": "broadcastId", - "required": true, + "name": "domain", + "required": false, "schema": { "type": "string" } }, { "in": "query", - "name": "sso", + "name": "attemptCountGT", "required": false, "schema": { - "type": "string" + "format": "double", + "type": "number" } } ] } }, - "/block-from-comment/{commentId}": { - "post": { - "operationId": "BlockFromCommentPublic", + "/api/v1/pending-webhook-events/{id}": { + "delete": { + "operationId": "DeletePendingWebhookEvent", "responses": { "200": { "description": "Ok", @@ -8251,7 +15063,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/BlockSuccess" + "$ref": "#/components/schemas/APIEmptyResponse" }, { "$ref": "#/components/schemas/APIError" @@ -8262,10 +15074,11 @@ } } }, - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { "in": "query", @@ -8277,34 +15090,18 @@ }, { "in": "path", - "name": "commentId", + "name": "id", "required": true, "schema": { "type": "string" } - }, - { - "in": "query", - "name": "sso", - "required": false, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PublicBlockFromCommentParams" - } - } } - } - }, - "delete": { - "operationId": "UnBlockCommentPublic", + ] + } + }, + "/api/v1/notifications": { + "get": { + "operationId": "GetNotifications", "responses": { "200": { "description": "Ok", @@ -8313,7 +15110,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/UnblockSuccess" + "$ref": "#/components/schemas/GetNotificationsResponse" }, { "$ref": "#/components/schemas/APIError" @@ -8324,10 +15121,11 @@ } } }, - "tags": [ - "Public" + "security": [ + { + "api_key": [] + } ], - "security": [], "parameters": [ { "in": "query", @@ -8338,44 +15136,74 @@ } }, { - "in": "path", - "name": "commentId", - "required": true, + "in": "query", + "name": "userId", + "required": false, "schema": { "type": "string" } }, { "in": "query", - "name": "sso", + "name": "urlId", "required": false, "schema": { "type": "string" } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PublicBlockFromCommentParams" - } + }, + { + "in": "query", + "name": "fromCommentId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "viewed", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "type", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "skip", + "required": false, + "schema": { + "format": "double", + "type": "number" } } - } + ] } }, - "/api/v1/subscriptions": { + "/api/v1/notifications/count": { "get": { - "operationId": "GetSubscriptions", + "operationId": "GetNotificationCount", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetSubscriptionsAPIResponse" + "anyOf": [ + { + "$ref": "#/components/schemas/GetNotificationCountResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -8402,60 +15230,59 @@ "schema": { "type": "string" } - } - ] - }, - "post": { - "operationId": "CreateSubscription", - "responses": { - "200": { - "description": "Ok", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateSubscriptionAPIResponse" - } - } - } - } - }, - "security": [ + }, { - "api_key": [] - } - ], - "parameters": [ + "in": "query", + "name": "urlId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", - "name": "tenantId", - "required": true, + "name": "fromCommentId", + "required": false, "schema": { "type": "string" } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateAPIUserSubscriptionData" - } + }, + { + "in": "query", + "name": "viewed", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "type", + "required": false, + "schema": { + "type": "string" } } - } + ] } }, - "/api/v1/subscriptions/{id}": { - "delete": { - "operationId": "DeleteSubscription", + "/api/v1/notifications/{id}": { + "patch": { + "operationId": "UpdateNotification", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/DeleteSubscriptionAPIResponse" + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -8491,34 +15318,36 @@ "type": "string" } } - ] + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateNotificationBody" + } + } + } + } } }, - "/api/v1/sso-users": { + "/api/v1/notification-count/{id}": { "get": { - "operationId": "GetSSOUsers", + "operationId": "GetCachedNotificationCount", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "properties": { - "users": { - "items": { - "$ref": "#/components/schemas/APISSOUser" - }, - "type": "array" + "anyOf": [ + { + "$ref": "#/components/schemas/GetCachedNotificationCountResponse" }, - "status": { - "type": "string" + { + "$ref": "#/components/schemas/APIError" } - }, - "required": [ - "users", - "status" - ], - "type": "object" + ] } } } @@ -8539,25 +15368,31 @@ } }, { - "in": "query", - "name": "skip", - "required": false, + "in": "path", + "name": "id", + "required": true, "schema": { - "format": "int32", - "type": "integer" + "type": "string" } } ] }, - "post": { - "operationId": "AddSSOUser", + "delete": { + "operationId": "DeleteNotificationCount", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AddSSOUserAPIResponse" + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -8576,30 +15411,35 @@ "schema": { "type": "string" } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateAPISSOUserData" - } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" } } - } + ] } }, - "/api/v1/sso-users/by-id/{id}": { + "/api/v1/moderators/{id}": { "get": { - "operationId": "GetSSOUserById", + "operationId": "GetModerator", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetSSOUserByIdAPIResponse" + "anyOf": [ + { + "$ref": "#/components/schemas/GetModeratorResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -8628,18 +15468,23 @@ } } ] - } - }, - "/api/v1/sso-users/by-email/{email}": { - "get": { - "operationId": "GetSSOUserByEmail", + }, + "patch": { + "operationId": "UpdateModerator", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetSSOUserByEmailAPIResponse" + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -8661,25 +15506,40 @@ }, { "in": "path", - "name": "email", + "name": "id", "required": true, "schema": { "type": "string" } } - ] - } - }, - "/api/v1/sso-users/{id}": { + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateModeratorBody" + } + } + } + } + }, "delete": { - "operationId": "DeleteSSOUser", + "operationId": "DeleteModerator", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/DeleteSSOUserAPIResponse" + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -8709,31 +15569,32 @@ }, { "in": "query", - "name": "deleteComments", - "required": false, - "schema": { - "type": "boolean" - } - }, - { - "in": "query", - "name": "commentDeleteMode", + "name": "sendEmail", "required": false, "schema": { "type": "string" } } ] - }, - "patch": { - "operationId": "PatchSSOUser", + } + }, + "/api/v1/moderators": { + "get": { + "operationId": "GetModerators", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PatchSSOUserAPIResponse" + "anyOf": [ + { + "$ref": "#/components/schemas/GetModeratorsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -8753,43 +15614,33 @@ "type": "string" } }, - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - } - }, { "in": "query", - "name": "updateComments", + "name": "skip", "required": false, "schema": { - "type": "boolean" - } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UpdateAPISSOUserData" - } + "format": "double", + "type": "number" } } - } + ] }, - "put": { - "operationId": "PutSSOUser", + "post": { + "operationId": "CreateModerator", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PutSSOUserAPIResponse" + "anyOf": [ + { + "$ref": "#/components/schemas/CreateModeratorResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -8808,22 +15659,6 @@ "schema": { "type": "string" } - }, - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "updateComments", - "required": false, - "schema": { - "type": "boolean" - } } ], "requestBody": { @@ -8831,23 +15666,30 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UpdateAPISSOUserData" + "$ref": "#/components/schemas/CreateModeratorBody" } } } } } }, - "/api/v1/pages": { - "get": { - "operationId": "GetPages", + "/api/v1/moderators/{id}/send-invite": { + "post": { + "operationId": "SendInvite", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetPagesAPIResponse" + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -8866,60 +15708,43 @@ "schema": { "type": "string" } - } - ] - }, - "post": { - "operationId": "AddPage", - "responses": { - "200": { - "description": "Ok", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AddPageAPIResponse" - } - } - } - } - }, - "security": [ + }, { - "api_key": [] - } - ], - "parameters": [ + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", - "name": "tenantId", + "name": "fromName", "required": true, "schema": { "type": "string" } } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateAPIPageData" - } - } - } - } + ] } }, - "/api/v1/pages/by-url-id": { + "/api/v1/hash-tags": { "get": { - "operationId": "GetPageByURLId", + "operationId": "GetHashTags", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetPageByURLIdAPIResponse" + "anyOf": [ + { + "$ref": "#/components/schemas/GetHashTagsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -8941,25 +15766,31 @@ }, { "in": "query", - "name": "urlId", - "required": true, + "name": "page", + "required": false, "schema": { - "type": "string" + "format": "double", + "type": "number" } } ] - } - }, - "/api/v1/pages/{id}": { - "patch": { - "operationId": "PatchPage", + }, + "post": { + "operationId": "AddHashTag", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PatchPageAPIResponse" + "anyOf": [ + { + "$ref": "#/components/schemas/CreateHashTagResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -8974,40 +15805,41 @@ { "in": "query", "name": "tenantId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "id", - "required": true, + "required": false, "schema": { "type": "string" } } ], "requestBody": { - "required": true, + "required": false, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UpdateAPIPageData" + "$ref": "#/components/schemas/CreateHashTagBody" } } } } - }, - "delete": { - "operationId": "DeletePage", + } + }, + "/api/v1/hash-tags/bulk": { + "post": { + "operationId": "AddHashTagsBulk", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/DeletePageAPIResponse" + "anyOf": [ + { + "$ref": "#/components/schemas/BulkCreateHashTagsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -9022,25 +15854,27 @@ { "in": "query", "name": "tenantId", - "required": true, + "required": false, "schema": { "type": "string" } - }, - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BulkCreateHashTagsBody" + } } } - ] + } } }, - "/api/v1/user-badges/{id}": { - "get": { - "operationId": "GetUserBadge", + "/api/v1/hash-tags/{tag}": { + "patch": { + "operationId": "PatchHashTag", "responses": { "200": { "description": "Ok", @@ -9049,7 +15883,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/APIGetUserBadgeResponse" + "$ref": "#/components/schemas/UpdateHashTagResponse" }, { "$ref": "#/components/schemas/APIError" @@ -9067,25 +15901,35 @@ ], "parameters": [ { - "in": "query", - "name": "tenantId", + "in": "path", + "name": "tag", "required": true, "schema": { "type": "string" } }, { - "in": "path", - "name": "id", - "required": true, + "in": "query", + "name": "tenantId", + "required": false, "schema": { "type": "string" } } - ] + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateHashTagBody" + } + } + } + } }, - "put": { - "operationId": "UpdateUserBadge", + "delete": { + "operationId": "DeleteHashTag", "responses": { "200": { "description": "Ok", @@ -9094,7 +15938,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/APIEmptySuccessResponse" + "$ref": "#/components/schemas/APIEmptyResponse" }, { "$ref": "#/components/schemas/APIError" @@ -9112,35 +15956,42 @@ ], "parameters": [ { - "in": "query", - "name": "tenantId", + "in": "path", + "name": "tag", "required": true, "schema": { "type": "string" } }, { - "in": "path", - "name": "id", - "required": true, + "in": "query", + "name": "tenantId", + "required": false, "schema": { "type": "string" } } ], "requestBody": { - "required": true, + "required": false, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UpdateUserBadgeParams" + "properties": { + "tenantId": { + "type": "string" + } + }, + "type": "object" } } } } - }, - "delete": { - "operationId": "DeleteUserBadge", + } + }, + "/api/v1/feed-posts": { + "get": { + "operationId": "GetFeedPosts", "responses": { "200": { "description": "Ok", @@ -9149,7 +16000,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/APIEmptySuccessResponse" + "$ref": "#/components/schemas/GetFeedPostsResponse" }, { "$ref": "#/components/schemas/APIError" @@ -9160,6 +16011,7 @@ } } }, + "description": "\nreq\ntenantId\nafterId", "security": [ { "api_key": [] @@ -9175,19 +16027,37 @@ } }, { - "in": "path", - "name": "id", - "required": true, + "in": "query", + "name": "afterId", + "required": false, "schema": { "type": "string" } + }, + { + "in": "query", + "name": "limit", + "required": false, + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "in": "query", + "name": "tags", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } } ] - } - }, - "/api/v1/user-badges": { - "get": { - "operationId": "GetUserBadges", + }, + "post": { + "operationId": "CreateFeedPost", "responses": { "200": { "description": "Ok", @@ -9196,7 +16066,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/APIGetUserBadgesResponse" + "$ref": "#/components/schemas/CreateFeedPostsResponse" }, { "$ref": "#/components/schemas/APIError" @@ -9223,15 +16093,7 @@ }, { "in": "query", - "name": "userId", - "required": false, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "badgeId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -9239,16 +16101,15 @@ }, { "in": "query", - "name": "type", + "name": "isLive", "required": false, "schema": { - "format": "double", - "type": "number" + "type": "boolean" } }, { "in": "query", - "name": "displayedOnComments", + "name": "doSpamCheck", "required": false, "schema": { "type": "boolean" @@ -9256,26 +16117,28 @@ }, { "in": "query", - "name": "limit", + "name": "skipDupCheck", "required": false, "schema": { - "format": "double", - "type": "number" + "type": "boolean" } - }, - { - "in": "query", - "name": "skip", - "required": false, - "schema": { - "format": "double", - "type": "number" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateFeedPostParams" + } } } - ] - }, - "post": { - "operationId": "CreateUserBadge", + } + } + }, + "/api/v1/feed-posts/{id}": { + "patch": { + "operationId": "UpdateFeedPost", "responses": { "200": { "description": "Ok", @@ -9284,7 +16147,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/APICreateUserBadgeResponse" + "$ref": "#/components/schemas/APIEmptyResponse" }, { "$ref": "#/components/schemas/APIError" @@ -9308,6 +16171,14 @@ "schema": { "type": "string" } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -9315,16 +16186,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateUserBadgeParams" + "$ref": "#/components/schemas/FeedPost" } } } } } }, - "/api/v1/user-badge-progress/{id}": { + "/api/v1/email-templates/definitions": { "get": { - "operationId": "GetUserBadgeProgressById", + "operationId": "GetEmailTemplateDefinitions", "responses": { "200": { "description": "Ok", @@ -9333,7 +16204,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" + "$ref": "#/components/schemas/GetEmailTemplateDefinitionsResponse" }, { "$ref": "#/components/schemas/APIError" @@ -9357,21 +16228,13 @@ "schema": { "type": "string" } - }, - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - } } ] } }, - "/api/v1/user-badge-progress": { + "/api/v1/email-templates/{id}/render-errors": { "get": { - "operationId": "GetUserBadgeProgressList", + "operationId": "GetEmailTemplateRenderErrors", "responses": { "200": { "description": "Ok", @@ -9380,7 +16243,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/APIGetUserBadgeProgressListResponse" + "$ref": "#/components/schemas/GetEmailTemplateRenderErrorsResponse" }, { "$ref": "#/components/schemas/APIError" @@ -9406,22 +16269,13 @@ } }, { - "in": "query", - "name": "userId", - "required": false, + "in": "path", + "name": "id", + "required": true, "schema": { "type": "string" } }, - { - "in": "query", - "name": "limit", - "required": false, - "schema": { - "format": "double", - "type": "number" - } - }, { "in": "query", "name": "skip", @@ -9434,9 +16288,9 @@ ] } }, - "/api/v1/user-badge-progress/user/{userId}": { - "get": { - "operationId": "GetUserBadgeProgressByUserId", + "/api/v1/email-templates/{id}/render-errors/{errorId}": { + "delete": { + "operationId": "DeleteEmailTemplateRenderError", "responses": { "200": { "description": "Ok", @@ -9445,7 +16299,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" + "$ref": "#/components/schemas/APIEmptyResponse" }, { "$ref": "#/components/schemas/APIError" @@ -9472,7 +16326,15 @@ }, { "in": "path", - "name": "userId", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "errorId", "required": true, "schema": { "type": "string" @@ -9481,9 +16343,9 @@ ] } }, - "/api/v1/question-results-aggregation": { + "/api/v1/email-templates/{id}": { "get": { - "operationId": "AggregateQuestionResults", + "operationId": "GetEmailTemplate", "responses": { "200": { "description": "Ok", @@ -9492,7 +16354,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/AggregateQuestionResultsResponse" + "$ref": "#/components/schemas/GetEmailTemplateResponse" }, { "$ref": "#/components/schemas/APIError" @@ -9518,63 +16380,17 @@ } }, { - "in": "query", - "name": "questionId", - "required": false, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "questionIds", - "required": false, - "schema": { - "type": "array", - "items": { - "type": "string" - } - } - }, - { - "in": "query", - "name": "urlId", - "required": false, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "timeBucket", - "required": false, - "schema": { - "$ref": "#/components/schemas/AggregateTimeBucket" - } - }, - { - "in": "query", - "name": "startDate", - "required": false, + "in": "path", + "name": "id", + "required": true, "schema": { - "format": "date-time", "type": "string" } - }, - { - "in": "query", - "name": "forceRecalculate", - "required": false, - "schema": { - "type": "boolean" - } } ] - } - }, - "/api/v1/question-results-aggregation/bulk": { - "post": { - "operationId": "BulkAggregateQuestionResults", + }, + "patch": { + "operationId": "UpdateEmailTemplate", "responses": { "200": { "description": "Ok", @@ -9583,7 +16399,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/BulkAggregateQuestionResultsResponse" + "$ref": "#/components/schemas/APIEmptyResponse" }, { "$ref": "#/components/schemas/APIError" @@ -9609,11 +16425,11 @@ } }, { - "in": "query", - "name": "forceRecalculate", - "required": false, + "in": "path", + "name": "id", + "required": true, "schema": { - "type": "boolean" + "type": "string" } } ], @@ -9622,16 +16438,14 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BulkAggregateQuestionResultsRequest" + "$ref": "#/components/schemas/UpdateEmailTemplateBody" } } } } - } - }, - "/api/v1/question-results-aggregation/combine/comments": { - "get": { - "operationId": "CombineCommentsWithQuestionResults", + }, + "delete": { + "operationId": "DeleteEmailTemplate", "responses": { "200": { "description": "Ok", @@ -9640,7 +16454,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/CombineQuestionResultsWithCommentsResponse" + "$ref": "#/components/schemas/APIEmptyResponse" }, { "$ref": "#/components/schemas/APIError" @@ -9666,82 +16480,19 @@ } }, { - "in": "query", - "name": "questionId", - "required": false, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "questionIds", - "required": false, - "schema": { - "type": "array", - "items": { - "type": "string" - } - } - }, - { - "in": "query", - "name": "urlId", - "required": false, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "startDate", - "required": false, + "in": "path", + "name": "id", + "required": true, "schema": { - "format": "date-time", "type": "string" } - }, - { - "in": "query", - "name": "forceRecalculate", - "required": false, - "schema": { - "type": "boolean" - } - }, - { - "in": "query", - "name": "minValue", - "required": false, - "schema": { - "format": "double", - "type": "number" - } - }, - { - "in": "query", - "name": "maxValue", - "required": false, - "schema": { - "format": "double", - "type": "number" - } - }, - { - "in": "query", - "name": "limit", - "required": false, - "schema": { - "format": "double", - "type": "number" - } } ] } }, - "/api/v1/feed-posts": { + "/api/v1/email-templates": { "get": { - "operationId": "GetFeedPosts", + "operationId": "GetEmailTemplates", "responses": { "200": { "description": "Ok", @@ -9750,7 +16501,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/GetFeedPostsResponse" + "$ref": "#/components/schemas/GetEmailTemplatesResponse" }, { "$ref": "#/components/schemas/APIError" @@ -9761,7 +16512,6 @@ } } }, - "description": "\nreq\ntenantId\nafterId", "security": [ { "api_key": [] @@ -9778,36 +16528,17 @@ }, { "in": "query", - "name": "afterId", - "required": false, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "limit", - "required": false, - "schema": { - "format": "int32", - "type": "integer" - } - }, - { - "in": "query", - "name": "tags", + "name": "skip", "required": false, "schema": { - "type": "array", - "items": { - "type": "string" - } + "format": "double", + "type": "number" } } ] }, "post": { - "operationId": "CreateFeedPost", + "operationId": "CreateEmailTemplate", "responses": { "200": { "description": "Ok", @@ -9816,7 +16547,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/CreateFeedPostsResponse" + "$ref": "#/components/schemas/CreateEmailTemplateResponse" }, { "$ref": "#/components/schemas/APIError" @@ -9840,38 +16571,6 @@ "schema": { "type": "string" } - }, - { - "in": "query", - "name": "broadcastId", - "required": false, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "isLive", - "required": false, - "schema": { - "type": "boolean" - } - }, - { - "in": "query", - "name": "doSpamCheck", - "required": false, - "schema": { - "type": "boolean" - } - }, - { - "in": "query", - "name": "skipDupCheck", - "required": false, - "schema": { - "type": "boolean" - } } ], "requestBody": { @@ -9879,16 +16578,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateFeedPostParams" + "$ref": "#/components/schemas/CreateEmailTemplateBody" } } } } } }, - "/api/v1/feed-posts/{id}": { - "patch": { - "operationId": "UpdateFeedPost", + "/api/v1/email-templates/render": { + "post": { + "operationId": "RenderEmailTemplate", "responses": { "200": { "description": "Ok", @@ -9897,7 +16596,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/APIEmptyResponse" + "$ref": "#/components/schemas/RenderEmailTemplateResponse" }, { "$ref": "#/components/schemas/APIError" @@ -9923,9 +16622,9 @@ } }, { - "in": "path", - "name": "id", - "required": true, + "in": "query", + "name": "locale", + "required": false, "schema": { "type": "string" } @@ -9936,7 +16635,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FeedPost" + "$ref": "#/components/schemas/RenderEmailTemplateBody" } } }