fastcomments 0.3.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -4
- data/client/README.md +185 -4
- data/client/docs/APIDomainConfiguration.md +46 -0
- data/client/docs/APITenant.md +72 -0
- data/client/docs/APITenantDailyUsage.md +54 -0
- data/client/docs/AddHashTag200Response.md +34 -0
- data/client/docs/AddHashTagsBulk200Response.md +34 -0
- data/client/docs/BillingInfo.md +32 -0
- data/client/docs/BulkCreateHashTagsBody.md +20 -0
- data/client/docs/BulkCreateHashTagsBodyTagsInner.md +20 -0
- data/client/docs/BulkCreateHashTagsResponse.md +20 -0
- data/client/docs/CommentLogData.md +7 -1
- data/client/docs/CreateEmailTemplate200Response.md +34 -0
- data/client/docs/CreateEmailTemplateBody.md +28 -0
- data/client/docs/CreateEmailTemplateResponse.md +20 -0
- data/client/docs/CreateHashTagBody.md +22 -0
- data/client/docs/CreateHashTagResponse.md +20 -0
- data/client/docs/CreateModerator200Response.md +34 -0
- data/client/docs/CreateModeratorBody.md +24 -0
- data/client/docs/CreateModeratorResponse.md +20 -0
- data/client/docs/CreateQuestionConfig200Response.md +34 -0
- data/client/docs/CreateQuestionConfigBody.md +44 -0
- data/client/docs/CreateQuestionConfigResponse.md +20 -0
- data/client/docs/CreateQuestionResult200Response.md +34 -0
- data/client/docs/CreateQuestionResultBody.md +30 -0
- data/client/docs/CreateQuestionResultResponse.md +20 -0
- data/client/docs/CreateTenant200Response.md +34 -0
- data/client/docs/CreateTenantBody.md +62 -0
- data/client/docs/CreateTenantPackage200Response.md +34 -0
- data/client/docs/CreateTenantPackageBody.md +112 -0
- data/client/docs/CreateTenantPackageResponse.md +20 -0
- data/client/docs/CreateTenantResponse.md +20 -0
- data/client/docs/CreateTenantUser200Response.md +34 -0
- data/client/docs/CreateTenantUserBody.md +64 -0
- data/client/docs/CreateTenantUserResponse.md +20 -0
- data/client/docs/CreateVote200Response.md +32 -0
- data/client/docs/CreateVoteResponse.md +18 -0
- data/client/docs/CustomEmailTemplate.md +38 -0
- data/client/docs/DefaultApi.md +5229 -591
- data/client/docs/DeleteHashTagRequest.md +18 -0
- data/client/docs/DeleteVote200Response.md +32 -0
- data/client/docs/DeleteVoteResponse.md +18 -0
- data/client/docs/DigestEmailFrequency.md +15 -0
- data/client/docs/EmailTemplateDefinition.md +24 -0
- data/client/docs/EmailTemplateRenderErrorResponse.md +30 -0
- data/client/docs/GetCachedNotificationCount200Response.md +34 -0
- data/client/docs/GetCachedNotificationCountResponse.md +20 -0
- data/client/docs/GetEmailTemplate200Response.md +34 -0
- data/client/docs/GetEmailTemplateDefinitions200Response.md +34 -0
- data/client/docs/GetEmailTemplateDefinitionsResponse.md +20 -0
- data/client/docs/GetEmailTemplateRenderErrors200Response.md +34 -0
- data/client/docs/GetEmailTemplateRenderErrorsResponse.md +20 -0
- data/client/docs/GetEmailTemplateResponse.md +20 -0
- data/client/docs/GetEmailTemplates200Response.md +34 -0
- data/client/docs/GetEmailTemplatesResponse.md +20 -0
- data/client/docs/GetHashTags200Response.md +34 -0
- data/client/docs/GetHashTagsResponse.md +20 -0
- data/client/docs/GetModerator200Response.md +34 -0
- data/client/docs/GetModeratorResponse.md +20 -0
- data/client/docs/GetModerators200Response.md +34 -0
- data/client/docs/GetModeratorsResponse.md +20 -0
- data/client/docs/GetNotificationCount200Response.md +34 -0
- data/client/docs/GetNotificationCountResponse.md +20 -0
- data/client/docs/GetNotifications200Response.md +34 -0
- data/client/docs/GetNotificationsResponse.md +20 -0
- data/client/docs/GetPendingWebhookEventCount200Response.md +34 -0
- data/client/docs/GetPendingWebhookEventCountResponse.md +20 -0
- data/client/docs/GetPendingWebhookEvents200Response.md +34 -0
- data/client/docs/GetPendingWebhookEventsResponse.md +20 -0
- data/client/docs/GetQuestionConfig200Response.md +34 -0
- data/client/docs/GetQuestionConfigResponse.md +20 -0
- data/client/docs/GetQuestionConfigs200Response.md +34 -0
- data/client/docs/GetQuestionConfigsResponse.md +20 -0
- data/client/docs/GetQuestionResult200Response.md +34 -0
- data/client/docs/GetQuestionResultResponse.md +20 -0
- data/client/docs/GetQuestionResults200Response.md +34 -0
- data/client/docs/GetQuestionResultsResponse.md +20 -0
- data/client/docs/GetTenant200Response.md +34 -0
- data/client/docs/GetTenantDailyUsages200Response.md +34 -0
- data/client/docs/GetTenantDailyUsagesResponse.md +20 -0
- data/client/docs/GetTenantPackage200Response.md +34 -0
- data/client/docs/GetTenantPackageResponse.md +20 -0
- data/client/docs/GetTenantPackages200Response.md +34 -0
- data/client/docs/GetTenantPackagesResponse.md +20 -0
- data/client/docs/GetTenantResponse.md +20 -0
- data/client/docs/GetTenantUser200Response.md +34 -0
- data/client/docs/GetTenantUserResponse.md +20 -0
- data/client/docs/GetTenantUsers200Response.md +34 -0
- data/client/docs/GetTenantUsersResponse.md +20 -0
- data/client/docs/GetTenants200Response.md +34 -0
- data/client/docs/GetTenantsResponse.md +20 -0
- data/client/docs/GetUser200Response.md +34 -0
- data/client/docs/GetUserResponse.md +20 -0
- data/client/docs/GetVotes200Response.md +38 -0
- data/client/docs/GetVotesForUser200Response.md +38 -0
- data/client/docs/GetVotesForUserResponse.md +24 -0
- data/client/docs/GetVotesResponse.md +24 -0
- data/client/docs/ImportedSiteType.md +15 -0
- data/client/docs/Moderator.md +52 -0
- data/client/docs/PatchHashTag200Response.md +34 -0
- data/client/docs/PendingCommentToSyncOutbound.md +42 -0
- data/client/docs/PublicApi.md +6 -6
- data/client/docs/PublicVote.md +28 -0
- data/client/docs/QuestionConfig.md +58 -0
- data/client/docs/QuestionConfigCustomOptionsInner.md +20 -0
- data/client/docs/RenderEmailTemplate200Response.md +34 -0
- data/client/docs/RenderEmailTemplateBody.md +24 -0
- data/client/docs/RenderEmailTemplateResponse.md +20 -0
- data/client/docs/ReplaceTenantPackageBody.md +76 -0
- data/client/docs/ReplaceTenantUserBody.md +72 -0
- data/client/docs/TenantHashTag.md +26 -0
- data/client/docs/TenantPackage.md +120 -0
- data/client/docs/UpdateEmailTemplateBody.md +28 -0
- data/client/docs/UpdateHashTagBody.md +22 -0
- data/client/docs/UpdateHashTagResponse.md +20 -0
- data/client/docs/UpdateModeratorBody.md +24 -0
- data/client/docs/UpdateNotificationBody.md +20 -0
- data/client/docs/UpdateQuestionConfigBody.md +44 -0
- data/client/docs/UpdateQuestionResultBody.md +30 -0
- data/client/docs/UpdateTenantBody.md +64 -0
- data/client/docs/UpdateTenantPackageBody.md +78 -0
- data/client/docs/UpdateTenantUserBody.md +64 -0
- data/client/docs/User.md +118 -0
- data/client/docs/UserNotificationCount.md +24 -0
- data/client/lib/fastcomments-client/api/default_api.rb +5133 -776
- data/client/lib/fastcomments-client/api/public_api.rb +6 -10
- data/client/lib/fastcomments-client/models/add_hash_tag200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/add_hash_tags_bulk200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/api_domain_configuration.rb +355 -0
- data/client/lib/fastcomments-client/models/api_tenant.rb +583 -0
- data/client/lib/fastcomments-client/models/api_tenant_daily_usage.rb +632 -0
- data/client/lib/fastcomments-client/models/billing_info.rb +315 -0
- data/client/lib/fastcomments-client/models/bulk_create_hash_tags_body.rb +175 -0
- data/client/lib/fastcomments-client/models/bulk_create_hash_tags_body_tags_inner.rb +173 -0
- data/client/lib/fastcomments-client/models/bulk_create_hash_tags_response.rb +214 -0
- data/client/lib/fastcomments-client/models/comment_log_data.rb +31 -4
- data/client/lib/fastcomments-client/models/comment_log_type.rb +2 -1
- data/client/lib/fastcomments-client/models/create_email_template200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/create_email_template_body.rb +249 -0
- data/client/lib/fastcomments-client/models/create_email_template_response.rb +212 -0
- data/client/lib/fastcomments-client/models/create_hash_tag_body.rb +182 -0
- data/client/lib/fastcomments-client/models/create_hash_tag_response.rb +212 -0
- data/client/lib/fastcomments-client/models/create_moderator200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/create_moderator_body.rb +210 -0
- data/client/lib/fastcomments-client/models/create_moderator_response.rb +212 -0
- data/client/lib/fastcomments-client/models/create_question_config200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/create_question_config_body.rb +336 -0
- data/client/lib/fastcomments-client/models/create_question_config_response.rb +212 -0
- data/client/lib/fastcomments-client/models/create_question_result200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/create_question_result_body.rb +255 -0
- data/client/lib/fastcomments-client/models/create_question_result_response.rb +212 -0
- data/client/lib/fastcomments-client/models/create_tenant200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/create_tenant_body.rb +384 -0
- data/client/lib/fastcomments-client/models/create_tenant_package200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/create_tenant_package_body.rb +797 -0
- data/client/lib/fastcomments-client/models/create_tenant_package_response.rb +212 -0
- data/client/lib/fastcomments-client/models/create_tenant_response.rb +212 -0
- data/client/lib/fastcomments-client/models/create_tenant_user200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/create_tenant_user_body.rb +390 -0
- data/client/lib/fastcomments-client/models/create_tenant_user_response.rb +212 -0
- data/client/lib/fastcomments-client/models/create_vote200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/create_vote_response.rb +186 -0
- data/client/lib/fastcomments-client/models/custom_email_template.rb +369 -0
- data/client/lib/fastcomments-client/models/delete_hash_tag_request.rb +147 -0
- data/client/lib/fastcomments-client/models/delete_vote200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/delete_vote_response.rb +186 -0
- data/client/lib/fastcomments-client/models/digest_email_frequency.rb +42 -0
- data/client/lib/fastcomments-client/models/email_template_definition.rb +248 -0
- data/client/lib/fastcomments-client/models/email_template_render_error_response.rb +320 -0
- data/client/lib/fastcomments-client/models/get_cached_notification_count200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_cached_notification_count_response.rb +212 -0
- data/client/lib/fastcomments-client/models/get_email_template200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_email_template_definitions200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_email_template_definitions_response.rb +214 -0
- data/client/lib/fastcomments-client/models/get_email_template_render_errors200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_email_template_render_errors_response.rb +214 -0
- data/client/lib/fastcomments-client/models/get_email_template_response.rb +212 -0
- data/client/lib/fastcomments-client/models/get_email_templates200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_email_templates_response.rb +214 -0
- data/client/lib/fastcomments-client/models/get_hash_tags200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_hash_tags_response.rb +214 -0
- data/client/lib/fastcomments-client/models/get_moderator200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_moderator_response.rb +212 -0
- data/client/lib/fastcomments-client/models/get_moderators200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_moderators_response.rb +214 -0
- data/client/lib/fastcomments-client/models/get_notification_count200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_notification_count_response.rb +212 -0
- data/client/lib/fastcomments-client/models/get_notifications200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_notifications_response.rb +214 -0
- data/client/lib/fastcomments-client/models/get_pending_webhook_event_count200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_pending_webhook_event_count_response.rb +212 -0
- data/client/lib/fastcomments-client/models/get_pending_webhook_events200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_pending_webhook_events_response.rb +214 -0
- data/client/lib/fastcomments-client/models/get_question_config200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_question_config_response.rb +212 -0
- data/client/lib/fastcomments-client/models/get_question_configs200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_question_configs_response.rb +214 -0
- data/client/lib/fastcomments-client/models/get_question_result200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_question_result_response.rb +212 -0
- data/client/lib/fastcomments-client/models/get_question_results200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_question_results_response.rb +214 -0
- data/client/lib/fastcomments-client/models/get_tenant200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_tenant_daily_usages200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_tenant_daily_usages_response.rb +214 -0
- data/client/lib/fastcomments-client/models/get_tenant_package200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_tenant_package_response.rb +212 -0
- data/client/lib/fastcomments-client/models/get_tenant_packages200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_tenant_packages_response.rb +214 -0
- data/client/lib/fastcomments-client/models/get_tenant_response.rb +212 -0
- data/client/lib/fastcomments-client/models/get_tenant_user200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_tenant_user_response.rb +212 -0
- data/client/lib/fastcomments-client/models/get_tenant_users200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_tenant_users_response.rb +214 -0
- data/client/lib/fastcomments-client/models/get_tenants200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_tenants_response.rb +214 -0
- data/client/lib/fastcomments-client/models/get_user200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_user_response.rb +212 -0
- data/client/lib/fastcomments-client/models/get_votes200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_votes_for_user200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_votes_for_user_response.rb +270 -0
- data/client/lib/fastcomments-client/models/get_votes_response.rb +270 -0
- data/client/lib/fastcomments-client/models/imported_site_type.rb +40 -0
- data/client/lib/fastcomments-client/models/moderator.rb +538 -0
- data/client/lib/fastcomments-client/models/patch_hash_tag200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/pending_comment_to_sync_outbound.rb +428 -0
- data/client/lib/fastcomments-client/models/public_vote.rb +294 -0
- data/client/lib/fastcomments-client/models/question_config.rb +671 -0
- data/client/lib/fastcomments-client/models/question_config_custom_options_inner.rb +190 -0
- data/client/lib/fastcomments-client/models/render_email_template200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/render_email_template_body.rb +214 -0
- data/client/lib/fastcomments-client/models/render_email_template_response.rb +212 -0
- data/client/lib/fastcomments-client/models/replace_tenant_package_body.rb +665 -0
- data/client/lib/fastcomments-client/models/replace_tenant_user_body.rb +426 -0
- data/client/lib/fastcomments-client/models/tenant_hash_tag.rb +251 -0
- data/client/lib/fastcomments-client/models/tenant_package.rb +994 -0
- data/client/lib/fastcomments-client/models/update_email_template_body.rb +198 -0
- data/client/lib/fastcomments-client/models/update_hash_tag_body.rb +165 -0
- data/client/lib/fastcomments-client/models/update_hash_tag_response.rb +212 -0
- data/client/lib/fastcomments-client/models/update_moderator_body.rb +176 -0
- data/client/lib/fastcomments-client/models/update_notification_body.rb +156 -0
- data/client/lib/fastcomments-client/models/update_question_config_body.rb +268 -0
- data/client/lib/fastcomments-client/models/update_question_result_body.rb +204 -0
- data/client/lib/fastcomments-client/models/update_tenant_body.rb +359 -0
- data/client/lib/fastcomments-client/models/update_tenant_package_body.rb +419 -0
- data/client/lib/fastcomments-client/models/update_tenant_user_body.rb +356 -0
- data/client/lib/fastcomments-client/models/user.rb +753 -0
- data/client/lib/fastcomments-client/models/user_notification_count.rb +242 -0
- data/client/lib/fastcomments-client/version.rb +1 -1
- data/client/lib/fastcomments-client.rb +119 -0
- data/client/spec/api/default_api_spec.rb +740 -0
- data/client/spec/api/public_api_spec.rb +1 -1
- data/client/spec/models/add_hash_tag200_response_spec.rb +21 -0
- data/client/spec/models/add_hash_tags_bulk200_response_spec.rb +21 -0
- data/client/spec/models/api_domain_configuration_spec.rb +120 -0
- data/client/spec/models/api_tenant_daily_usage_spec.rb +144 -0
- data/client/spec/models/api_tenant_spec.rb +198 -0
- data/client/spec/models/billing_info_spec.rb +78 -0
- data/client/spec/models/bulk_create_hash_tags_body_spec.rb +42 -0
- data/client/spec/models/bulk_create_hash_tags_body_tags_inner_spec.rb +42 -0
- data/client/spec/models/bulk_create_hash_tags_response_spec.rb +42 -0
- data/client/spec/models/comment_log_data_spec.rb +18 -0
- data/client/spec/models/create_email_template200_response_spec.rb +21 -0
- data/client/spec/models/create_email_template_body_spec.rb +66 -0
- data/client/spec/models/create_email_template_response_spec.rb +42 -0
- data/client/spec/models/create_hash_tag_body_spec.rb +48 -0
- data/client/spec/models/create_hash_tag_response_spec.rb +42 -0
- data/client/spec/models/create_moderator200_response_spec.rb +21 -0
- data/client/spec/models/create_moderator_body_spec.rb +54 -0
- data/client/spec/models/create_moderator_response_spec.rb +42 -0
- data/client/spec/models/create_question_config200_response_spec.rb +21 -0
- data/client/spec/models/create_question_config_body_spec.rb +114 -0
- data/client/spec/models/create_question_config_response_spec.rb +42 -0
- data/client/spec/models/create_question_result200_response_spec.rb +21 -0
- data/client/spec/models/create_question_result_body_spec.rb +72 -0
- data/client/spec/models/create_question_result_response_spec.rb +42 -0
- data/client/spec/models/create_tenant200_response_spec.rb +21 -0
- data/client/spec/models/create_tenant_body_spec.rb +168 -0
- data/client/spec/models/create_tenant_package200_response_spec.rb +21 -0
- data/client/spec/models/create_tenant_package_body_spec.rb +318 -0
- data/client/spec/models/create_tenant_package_response_spec.rb +42 -0
- data/client/spec/models/create_tenant_response_spec.rb +42 -0
- data/client/spec/models/create_tenant_user200_response_spec.rb +21 -0
- data/client/spec/models/create_tenant_user_body_spec.rb +174 -0
- data/client/spec/models/create_tenant_user_response_spec.rb +42 -0
- data/client/spec/models/create_vote200_response_spec.rb +21 -0
- data/client/spec/models/create_vote_response_spec.rb +36 -0
- data/client/spec/models/custom_email_template_spec.rb +96 -0
- data/client/spec/models/delete_hash_tag_request_spec.rb +36 -0
- data/client/spec/models/delete_vote200_response_spec.rb +21 -0
- data/client/spec/models/delete_vote_response_spec.rb +36 -0
- data/client/spec/models/digest_email_frequency_spec.rb +30 -0
- data/client/spec/models/email_template_definition_spec.rb +54 -0
- data/client/spec/models/email_template_render_error_response_spec.rb +72 -0
- data/client/spec/models/get_cached_notification_count200_response_spec.rb +21 -0
- data/client/spec/models/get_cached_notification_count_response_spec.rb +42 -0
- data/client/spec/models/get_email_template200_response_spec.rb +21 -0
- data/client/spec/models/get_email_template_definitions200_response_spec.rb +21 -0
- data/client/spec/models/get_email_template_definitions_response_spec.rb +42 -0
- data/client/spec/models/get_email_template_render_errors200_response_spec.rb +21 -0
- data/client/spec/models/get_email_template_render_errors_response_spec.rb +42 -0
- data/client/spec/models/get_email_template_response_spec.rb +42 -0
- data/client/spec/models/get_email_templates200_response_spec.rb +21 -0
- data/client/spec/models/get_email_templates_response_spec.rb +42 -0
- data/client/spec/models/get_hash_tags200_response_spec.rb +21 -0
- data/client/spec/models/get_hash_tags_response_spec.rb +42 -0
- data/client/spec/models/get_moderator200_response_spec.rb +21 -0
- data/client/spec/models/get_moderator_response_spec.rb +42 -0
- data/client/spec/models/get_moderators200_response_spec.rb +21 -0
- data/client/spec/models/get_moderators_response_spec.rb +42 -0
- data/client/spec/models/get_notification_count200_response_spec.rb +21 -0
- data/client/spec/models/get_notification_count_response_spec.rb +42 -0
- data/client/spec/models/get_notifications200_response_spec.rb +21 -0
- data/client/spec/models/get_notifications_response_spec.rb +42 -0
- data/client/spec/models/get_pending_webhook_event_count200_response_spec.rb +21 -0
- data/client/spec/models/get_pending_webhook_event_count_response_spec.rb +42 -0
- data/client/spec/models/get_pending_webhook_events200_response_spec.rb +21 -0
- data/client/spec/models/get_pending_webhook_events_response_spec.rb +42 -0
- data/client/spec/models/get_question_config200_response_spec.rb +21 -0
- data/client/spec/models/get_question_config_response_spec.rb +42 -0
- data/client/spec/models/get_question_configs200_response_spec.rb +21 -0
- data/client/spec/models/get_question_configs_response_spec.rb +42 -0
- data/client/spec/models/get_question_result200_response_spec.rb +21 -0
- data/client/spec/models/get_question_result_response_spec.rb +42 -0
- data/client/spec/models/get_question_results200_response_spec.rb +21 -0
- data/client/spec/models/get_question_results_response_spec.rb +42 -0
- data/client/spec/models/get_tenant200_response_spec.rb +21 -0
- data/client/spec/models/get_tenant_daily_usages200_response_spec.rb +21 -0
- data/client/spec/models/get_tenant_daily_usages_response_spec.rb +42 -0
- data/client/spec/models/get_tenant_package200_response_spec.rb +21 -0
- data/client/spec/models/get_tenant_package_response_spec.rb +42 -0
- data/client/spec/models/get_tenant_packages200_response_spec.rb +21 -0
- data/client/spec/models/get_tenant_packages_response_spec.rb +42 -0
- data/client/spec/models/get_tenant_response_spec.rb +42 -0
- data/client/spec/models/get_tenant_user200_response_spec.rb +21 -0
- data/client/spec/models/get_tenant_user_response_spec.rb +42 -0
- data/client/spec/models/get_tenant_users200_response_spec.rb +21 -0
- data/client/spec/models/get_tenant_users_response_spec.rb +42 -0
- data/client/spec/models/get_tenants200_response_spec.rb +21 -0
- data/client/spec/models/get_tenants_response_spec.rb +42 -0
- data/client/spec/models/get_user200_response_spec.rb +21 -0
- data/client/spec/models/get_user_response_spec.rb +42 -0
- data/client/spec/models/get_votes200_response_spec.rb +21 -0
- data/client/spec/models/get_votes_for_user200_response_spec.rb +21 -0
- data/client/spec/models/get_votes_for_user_response_spec.rb +54 -0
- data/client/spec/models/get_votes_response_spec.rb +54 -0
- data/client/spec/models/imported_site_type_spec.rb +30 -0
- data/client/spec/models/moderator_spec.rb +138 -0
- data/client/spec/models/patch_hash_tag200_response_spec.rb +21 -0
- data/client/spec/models/pending_comment_to_sync_outbound_spec.rb +108 -0
- data/client/spec/models/public_vote_spec.rb +66 -0
- data/client/spec/models/question_config_custom_options_inner_spec.rb +42 -0
- data/client/spec/models/question_config_spec.rb +156 -0
- data/client/spec/models/render_email_template200_response_spec.rb +21 -0
- data/client/spec/models/render_email_template_body_spec.rb +54 -0
- data/client/spec/models/render_email_template_response_spec.rb +42 -0
- data/client/spec/models/replace_tenant_package_body_spec.rb +210 -0
- data/client/spec/models/replace_tenant_user_body_spec.rb +198 -0
- data/client/spec/models/tenant_hash_tag_spec.rb +60 -0
- data/client/spec/models/tenant_package_spec.rb +342 -0
- data/client/spec/models/update_email_template_body_spec.rb +66 -0
- data/client/spec/models/update_hash_tag_body_spec.rb +48 -0
- data/client/spec/models/update_hash_tag_response_spec.rb +42 -0
- data/client/spec/models/update_moderator_body_spec.rb +54 -0
- data/client/spec/models/update_notification_body_spec.rb +42 -0
- data/client/spec/models/update_question_config_body_spec.rb +114 -0
- data/client/spec/models/update_question_result_body_spec.rb +72 -0
- data/client/spec/models/update_tenant_body_spec.rb +174 -0
- data/client/spec/models/update_tenant_package_body_spec.rb +216 -0
- data/client/spec/models/update_tenant_user_body_spec.rb +174 -0
- data/client/spec/models/user_notification_count_spec.rb +54 -0
- data/client/spec/models/user_spec.rb +336 -0
- data/lib/fastcomments.rb +2 -1
- metadata +359 -2
|
@@ -0,0 +1,632 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#fastcomments
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.18.0-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module FastCommentsClient
|
|
17
|
+
class APITenantDailyUsage < ApiModelBase
|
|
18
|
+
attr_accessor :id
|
|
19
|
+
|
|
20
|
+
attr_accessor :tenant_id
|
|
21
|
+
|
|
22
|
+
attr_accessor :year_number
|
|
23
|
+
|
|
24
|
+
attr_accessor :month_number
|
|
25
|
+
|
|
26
|
+
attr_accessor :day_number
|
|
27
|
+
|
|
28
|
+
attr_accessor :comment_fetch_count
|
|
29
|
+
|
|
30
|
+
attr_accessor :comment_create_count
|
|
31
|
+
|
|
32
|
+
attr_accessor :conversation_create_count
|
|
33
|
+
|
|
34
|
+
attr_accessor :vote_count
|
|
35
|
+
|
|
36
|
+
attr_accessor :account_created_count
|
|
37
|
+
|
|
38
|
+
attr_accessor :user_mention_search
|
|
39
|
+
|
|
40
|
+
attr_accessor :hash_tag_search
|
|
41
|
+
|
|
42
|
+
attr_accessor :gif_search_trending
|
|
43
|
+
|
|
44
|
+
attr_accessor :gif_search
|
|
45
|
+
|
|
46
|
+
attr_accessor :api_credits_used
|
|
47
|
+
|
|
48
|
+
attr_accessor :created_at
|
|
49
|
+
|
|
50
|
+
attr_accessor :billed
|
|
51
|
+
|
|
52
|
+
attr_accessor :ignored
|
|
53
|
+
|
|
54
|
+
attr_accessor :api_error_count
|
|
55
|
+
|
|
56
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
57
|
+
def self.attribute_map
|
|
58
|
+
{
|
|
59
|
+
:'id' => :'id',
|
|
60
|
+
:'tenant_id' => :'tenantId',
|
|
61
|
+
:'year_number' => :'yearNumber',
|
|
62
|
+
:'month_number' => :'monthNumber',
|
|
63
|
+
:'day_number' => :'dayNumber',
|
|
64
|
+
:'comment_fetch_count' => :'commentFetchCount',
|
|
65
|
+
:'comment_create_count' => :'commentCreateCount',
|
|
66
|
+
:'conversation_create_count' => :'conversationCreateCount',
|
|
67
|
+
:'vote_count' => :'voteCount',
|
|
68
|
+
:'account_created_count' => :'accountCreatedCount',
|
|
69
|
+
:'user_mention_search' => :'userMentionSearch',
|
|
70
|
+
:'hash_tag_search' => :'hashTagSearch',
|
|
71
|
+
:'gif_search_trending' => :'gifSearchTrending',
|
|
72
|
+
:'gif_search' => :'gifSearch',
|
|
73
|
+
:'api_credits_used' => :'apiCreditsUsed',
|
|
74
|
+
:'created_at' => :'createdAt',
|
|
75
|
+
:'billed' => :'billed',
|
|
76
|
+
:'ignored' => :'ignored',
|
|
77
|
+
:'api_error_count' => :'apiErrorCount'
|
|
78
|
+
}
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Returns attribute mapping this model knows about
|
|
82
|
+
def self.acceptable_attribute_map
|
|
83
|
+
attribute_map
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Returns all the JSON keys this model knows about
|
|
87
|
+
def self.acceptable_attributes
|
|
88
|
+
acceptable_attribute_map.values
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Attribute type mapping.
|
|
92
|
+
def self.openapi_types
|
|
93
|
+
{
|
|
94
|
+
:'id' => :'String',
|
|
95
|
+
:'tenant_id' => :'String',
|
|
96
|
+
:'year_number' => :'Float',
|
|
97
|
+
:'month_number' => :'Float',
|
|
98
|
+
:'day_number' => :'Float',
|
|
99
|
+
:'comment_fetch_count' => :'Float',
|
|
100
|
+
:'comment_create_count' => :'Float',
|
|
101
|
+
:'conversation_create_count' => :'Float',
|
|
102
|
+
:'vote_count' => :'Float',
|
|
103
|
+
:'account_created_count' => :'Float',
|
|
104
|
+
:'user_mention_search' => :'Float',
|
|
105
|
+
:'hash_tag_search' => :'Float',
|
|
106
|
+
:'gif_search_trending' => :'Float',
|
|
107
|
+
:'gif_search' => :'Float',
|
|
108
|
+
:'api_credits_used' => :'Float',
|
|
109
|
+
:'created_at' => :'Time',
|
|
110
|
+
:'billed' => :'Boolean',
|
|
111
|
+
:'ignored' => :'Boolean',
|
|
112
|
+
:'api_error_count' => :'Float'
|
|
113
|
+
}
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# List of attributes with nullable: true
|
|
117
|
+
def self.openapi_nullable
|
|
118
|
+
Set.new([
|
|
119
|
+
])
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Initializes the object
|
|
123
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
124
|
+
def initialize(attributes = {})
|
|
125
|
+
if (!attributes.is_a?(Hash))
|
|
126
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FastCommentsClient::APITenantDailyUsage` initialize method"
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
130
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
131
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
132
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
133
|
+
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
|
|
134
|
+
end
|
|
135
|
+
h[k.to_sym] = v
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
if attributes.key?(:'id')
|
|
139
|
+
self.id = attributes[:'id']
|
|
140
|
+
else
|
|
141
|
+
self.id = nil
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
if attributes.key?(:'tenant_id')
|
|
145
|
+
self.tenant_id = attributes[:'tenant_id']
|
|
146
|
+
else
|
|
147
|
+
self.tenant_id = nil
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
if attributes.key?(:'year_number')
|
|
151
|
+
self.year_number = attributes[:'year_number']
|
|
152
|
+
else
|
|
153
|
+
self.year_number = nil
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
if attributes.key?(:'month_number')
|
|
157
|
+
self.month_number = attributes[:'month_number']
|
|
158
|
+
else
|
|
159
|
+
self.month_number = nil
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
if attributes.key?(:'day_number')
|
|
163
|
+
self.day_number = attributes[:'day_number']
|
|
164
|
+
else
|
|
165
|
+
self.day_number = nil
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
if attributes.key?(:'comment_fetch_count')
|
|
169
|
+
self.comment_fetch_count = attributes[:'comment_fetch_count']
|
|
170
|
+
else
|
|
171
|
+
self.comment_fetch_count = nil
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
if attributes.key?(:'comment_create_count')
|
|
175
|
+
self.comment_create_count = attributes[:'comment_create_count']
|
|
176
|
+
else
|
|
177
|
+
self.comment_create_count = nil
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
if attributes.key?(:'conversation_create_count')
|
|
181
|
+
self.conversation_create_count = attributes[:'conversation_create_count']
|
|
182
|
+
else
|
|
183
|
+
self.conversation_create_count = nil
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
if attributes.key?(:'vote_count')
|
|
187
|
+
self.vote_count = attributes[:'vote_count']
|
|
188
|
+
else
|
|
189
|
+
self.vote_count = nil
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
if attributes.key?(:'account_created_count')
|
|
193
|
+
self.account_created_count = attributes[:'account_created_count']
|
|
194
|
+
else
|
|
195
|
+
self.account_created_count = nil
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
if attributes.key?(:'user_mention_search')
|
|
199
|
+
self.user_mention_search = attributes[:'user_mention_search']
|
|
200
|
+
else
|
|
201
|
+
self.user_mention_search = nil
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
if attributes.key?(:'hash_tag_search')
|
|
205
|
+
self.hash_tag_search = attributes[:'hash_tag_search']
|
|
206
|
+
else
|
|
207
|
+
self.hash_tag_search = nil
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
if attributes.key?(:'gif_search_trending')
|
|
211
|
+
self.gif_search_trending = attributes[:'gif_search_trending']
|
|
212
|
+
else
|
|
213
|
+
self.gif_search_trending = nil
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
if attributes.key?(:'gif_search')
|
|
217
|
+
self.gif_search = attributes[:'gif_search']
|
|
218
|
+
else
|
|
219
|
+
self.gif_search = nil
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
if attributes.key?(:'api_credits_used')
|
|
223
|
+
self.api_credits_used = attributes[:'api_credits_used']
|
|
224
|
+
else
|
|
225
|
+
self.api_credits_used = nil
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
if attributes.key?(:'created_at')
|
|
229
|
+
self.created_at = attributes[:'created_at']
|
|
230
|
+
else
|
|
231
|
+
self.created_at = nil
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
if attributes.key?(:'billed')
|
|
235
|
+
self.billed = attributes[:'billed']
|
|
236
|
+
else
|
|
237
|
+
self.billed = nil
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
if attributes.key?(:'ignored')
|
|
241
|
+
self.ignored = attributes[:'ignored']
|
|
242
|
+
else
|
|
243
|
+
self.ignored = nil
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
if attributes.key?(:'api_error_count')
|
|
247
|
+
self.api_error_count = attributes[:'api_error_count']
|
|
248
|
+
else
|
|
249
|
+
self.api_error_count = nil
|
|
250
|
+
end
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
254
|
+
# @return Array for valid properties with the reasons
|
|
255
|
+
def list_invalid_properties
|
|
256
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
257
|
+
invalid_properties = Array.new
|
|
258
|
+
if @id.nil?
|
|
259
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
if @tenant_id.nil?
|
|
263
|
+
invalid_properties.push('invalid value for "tenant_id", tenant_id cannot be nil.')
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
if @year_number.nil?
|
|
267
|
+
invalid_properties.push('invalid value for "year_number", year_number cannot be nil.')
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
if @month_number.nil?
|
|
271
|
+
invalid_properties.push('invalid value for "month_number", month_number cannot be nil.')
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
if @day_number.nil?
|
|
275
|
+
invalid_properties.push('invalid value for "day_number", day_number cannot be nil.')
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
if @comment_fetch_count.nil?
|
|
279
|
+
invalid_properties.push('invalid value for "comment_fetch_count", comment_fetch_count cannot be nil.')
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
if @comment_create_count.nil?
|
|
283
|
+
invalid_properties.push('invalid value for "comment_create_count", comment_create_count cannot be nil.')
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
if @conversation_create_count.nil?
|
|
287
|
+
invalid_properties.push('invalid value for "conversation_create_count", conversation_create_count cannot be nil.')
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
if @vote_count.nil?
|
|
291
|
+
invalid_properties.push('invalid value for "vote_count", vote_count cannot be nil.')
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
if @account_created_count.nil?
|
|
295
|
+
invalid_properties.push('invalid value for "account_created_count", account_created_count cannot be nil.')
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
if @user_mention_search.nil?
|
|
299
|
+
invalid_properties.push('invalid value for "user_mention_search", user_mention_search cannot be nil.')
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
if @hash_tag_search.nil?
|
|
303
|
+
invalid_properties.push('invalid value for "hash_tag_search", hash_tag_search cannot be nil.')
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
if @gif_search_trending.nil?
|
|
307
|
+
invalid_properties.push('invalid value for "gif_search_trending", gif_search_trending cannot be nil.')
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
if @gif_search.nil?
|
|
311
|
+
invalid_properties.push('invalid value for "gif_search", gif_search cannot be nil.')
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
if @api_credits_used.nil?
|
|
315
|
+
invalid_properties.push('invalid value for "api_credits_used", api_credits_used cannot be nil.')
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
if @created_at.nil?
|
|
319
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
if @billed.nil?
|
|
323
|
+
invalid_properties.push('invalid value for "billed", billed cannot be nil.')
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
if @ignored.nil?
|
|
327
|
+
invalid_properties.push('invalid value for "ignored", ignored cannot be nil.')
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
if @api_error_count.nil?
|
|
331
|
+
invalid_properties.push('invalid value for "api_error_count", api_error_count cannot be nil.')
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
invalid_properties
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
# Check to see if the all the properties in the model are valid
|
|
338
|
+
# @return true if the model is valid
|
|
339
|
+
def valid?
|
|
340
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
341
|
+
return false if @id.nil?
|
|
342
|
+
return false if @tenant_id.nil?
|
|
343
|
+
return false if @year_number.nil?
|
|
344
|
+
return false if @month_number.nil?
|
|
345
|
+
return false if @day_number.nil?
|
|
346
|
+
return false if @comment_fetch_count.nil?
|
|
347
|
+
return false if @comment_create_count.nil?
|
|
348
|
+
return false if @conversation_create_count.nil?
|
|
349
|
+
return false if @vote_count.nil?
|
|
350
|
+
return false if @account_created_count.nil?
|
|
351
|
+
return false if @user_mention_search.nil?
|
|
352
|
+
return false if @hash_tag_search.nil?
|
|
353
|
+
return false if @gif_search_trending.nil?
|
|
354
|
+
return false if @gif_search.nil?
|
|
355
|
+
return false if @api_credits_used.nil?
|
|
356
|
+
return false if @created_at.nil?
|
|
357
|
+
return false if @billed.nil?
|
|
358
|
+
return false if @ignored.nil?
|
|
359
|
+
return false if @api_error_count.nil?
|
|
360
|
+
true
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
# Custom attribute writer method with validation
|
|
364
|
+
# @param [Object] id Value to be assigned
|
|
365
|
+
def id=(id)
|
|
366
|
+
if id.nil?
|
|
367
|
+
fail ArgumentError, 'id cannot be nil'
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
@id = id
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
# Custom attribute writer method with validation
|
|
374
|
+
# @param [Object] tenant_id Value to be assigned
|
|
375
|
+
def tenant_id=(tenant_id)
|
|
376
|
+
if tenant_id.nil?
|
|
377
|
+
fail ArgumentError, 'tenant_id cannot be nil'
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
@tenant_id = tenant_id
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
# Custom attribute writer method with validation
|
|
384
|
+
# @param [Object] year_number Value to be assigned
|
|
385
|
+
def year_number=(year_number)
|
|
386
|
+
if year_number.nil?
|
|
387
|
+
fail ArgumentError, 'year_number cannot be nil'
|
|
388
|
+
end
|
|
389
|
+
|
|
390
|
+
@year_number = year_number
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
# Custom attribute writer method with validation
|
|
394
|
+
# @param [Object] month_number Value to be assigned
|
|
395
|
+
def month_number=(month_number)
|
|
396
|
+
if month_number.nil?
|
|
397
|
+
fail ArgumentError, 'month_number cannot be nil'
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
@month_number = month_number
|
|
401
|
+
end
|
|
402
|
+
|
|
403
|
+
# Custom attribute writer method with validation
|
|
404
|
+
# @param [Object] day_number Value to be assigned
|
|
405
|
+
def day_number=(day_number)
|
|
406
|
+
if day_number.nil?
|
|
407
|
+
fail ArgumentError, 'day_number cannot be nil'
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
@day_number = day_number
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
# Custom attribute writer method with validation
|
|
414
|
+
# @param [Object] comment_fetch_count Value to be assigned
|
|
415
|
+
def comment_fetch_count=(comment_fetch_count)
|
|
416
|
+
if comment_fetch_count.nil?
|
|
417
|
+
fail ArgumentError, 'comment_fetch_count cannot be nil'
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
@comment_fetch_count = comment_fetch_count
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
# Custom attribute writer method with validation
|
|
424
|
+
# @param [Object] comment_create_count Value to be assigned
|
|
425
|
+
def comment_create_count=(comment_create_count)
|
|
426
|
+
if comment_create_count.nil?
|
|
427
|
+
fail ArgumentError, 'comment_create_count cannot be nil'
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
@comment_create_count = comment_create_count
|
|
431
|
+
end
|
|
432
|
+
|
|
433
|
+
# Custom attribute writer method with validation
|
|
434
|
+
# @param [Object] conversation_create_count Value to be assigned
|
|
435
|
+
def conversation_create_count=(conversation_create_count)
|
|
436
|
+
if conversation_create_count.nil?
|
|
437
|
+
fail ArgumentError, 'conversation_create_count cannot be nil'
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
@conversation_create_count = conversation_create_count
|
|
441
|
+
end
|
|
442
|
+
|
|
443
|
+
# Custom attribute writer method with validation
|
|
444
|
+
# @param [Object] vote_count Value to be assigned
|
|
445
|
+
def vote_count=(vote_count)
|
|
446
|
+
if vote_count.nil?
|
|
447
|
+
fail ArgumentError, 'vote_count cannot be nil'
|
|
448
|
+
end
|
|
449
|
+
|
|
450
|
+
@vote_count = vote_count
|
|
451
|
+
end
|
|
452
|
+
|
|
453
|
+
# Custom attribute writer method with validation
|
|
454
|
+
# @param [Object] account_created_count Value to be assigned
|
|
455
|
+
def account_created_count=(account_created_count)
|
|
456
|
+
if account_created_count.nil?
|
|
457
|
+
fail ArgumentError, 'account_created_count cannot be nil'
|
|
458
|
+
end
|
|
459
|
+
|
|
460
|
+
@account_created_count = account_created_count
|
|
461
|
+
end
|
|
462
|
+
|
|
463
|
+
# Custom attribute writer method with validation
|
|
464
|
+
# @param [Object] user_mention_search Value to be assigned
|
|
465
|
+
def user_mention_search=(user_mention_search)
|
|
466
|
+
if user_mention_search.nil?
|
|
467
|
+
fail ArgumentError, 'user_mention_search cannot be nil'
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
@user_mention_search = user_mention_search
|
|
471
|
+
end
|
|
472
|
+
|
|
473
|
+
# Custom attribute writer method with validation
|
|
474
|
+
# @param [Object] hash_tag_search Value to be assigned
|
|
475
|
+
def hash_tag_search=(hash_tag_search)
|
|
476
|
+
if hash_tag_search.nil?
|
|
477
|
+
fail ArgumentError, 'hash_tag_search cannot be nil'
|
|
478
|
+
end
|
|
479
|
+
|
|
480
|
+
@hash_tag_search = hash_tag_search
|
|
481
|
+
end
|
|
482
|
+
|
|
483
|
+
# Custom attribute writer method with validation
|
|
484
|
+
# @param [Object] gif_search_trending Value to be assigned
|
|
485
|
+
def gif_search_trending=(gif_search_trending)
|
|
486
|
+
if gif_search_trending.nil?
|
|
487
|
+
fail ArgumentError, 'gif_search_trending cannot be nil'
|
|
488
|
+
end
|
|
489
|
+
|
|
490
|
+
@gif_search_trending = gif_search_trending
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
# Custom attribute writer method with validation
|
|
494
|
+
# @param [Object] gif_search Value to be assigned
|
|
495
|
+
def gif_search=(gif_search)
|
|
496
|
+
if gif_search.nil?
|
|
497
|
+
fail ArgumentError, 'gif_search cannot be nil'
|
|
498
|
+
end
|
|
499
|
+
|
|
500
|
+
@gif_search = gif_search
|
|
501
|
+
end
|
|
502
|
+
|
|
503
|
+
# Custom attribute writer method with validation
|
|
504
|
+
# @param [Object] api_credits_used Value to be assigned
|
|
505
|
+
def api_credits_used=(api_credits_used)
|
|
506
|
+
if api_credits_used.nil?
|
|
507
|
+
fail ArgumentError, 'api_credits_used cannot be nil'
|
|
508
|
+
end
|
|
509
|
+
|
|
510
|
+
@api_credits_used = api_credits_used
|
|
511
|
+
end
|
|
512
|
+
|
|
513
|
+
# Custom attribute writer method with validation
|
|
514
|
+
# @param [Object] created_at Value to be assigned
|
|
515
|
+
def created_at=(created_at)
|
|
516
|
+
if created_at.nil?
|
|
517
|
+
fail ArgumentError, 'created_at cannot be nil'
|
|
518
|
+
end
|
|
519
|
+
|
|
520
|
+
@created_at = created_at
|
|
521
|
+
end
|
|
522
|
+
|
|
523
|
+
# Custom attribute writer method with validation
|
|
524
|
+
# @param [Object] billed Value to be assigned
|
|
525
|
+
def billed=(billed)
|
|
526
|
+
if billed.nil?
|
|
527
|
+
fail ArgumentError, 'billed cannot be nil'
|
|
528
|
+
end
|
|
529
|
+
|
|
530
|
+
@billed = billed
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
# Custom attribute writer method with validation
|
|
534
|
+
# @param [Object] ignored Value to be assigned
|
|
535
|
+
def ignored=(ignored)
|
|
536
|
+
if ignored.nil?
|
|
537
|
+
fail ArgumentError, 'ignored cannot be nil'
|
|
538
|
+
end
|
|
539
|
+
|
|
540
|
+
@ignored = ignored
|
|
541
|
+
end
|
|
542
|
+
|
|
543
|
+
# Custom attribute writer method with validation
|
|
544
|
+
# @param [Object] api_error_count Value to be assigned
|
|
545
|
+
def api_error_count=(api_error_count)
|
|
546
|
+
if api_error_count.nil?
|
|
547
|
+
fail ArgumentError, 'api_error_count cannot be nil'
|
|
548
|
+
end
|
|
549
|
+
|
|
550
|
+
@api_error_count = api_error_count
|
|
551
|
+
end
|
|
552
|
+
|
|
553
|
+
# Checks equality by comparing each attribute.
|
|
554
|
+
# @param [Object] Object to be compared
|
|
555
|
+
def ==(o)
|
|
556
|
+
return true if self.equal?(o)
|
|
557
|
+
self.class == o.class &&
|
|
558
|
+
id == o.id &&
|
|
559
|
+
tenant_id == o.tenant_id &&
|
|
560
|
+
year_number == o.year_number &&
|
|
561
|
+
month_number == o.month_number &&
|
|
562
|
+
day_number == o.day_number &&
|
|
563
|
+
comment_fetch_count == o.comment_fetch_count &&
|
|
564
|
+
comment_create_count == o.comment_create_count &&
|
|
565
|
+
conversation_create_count == o.conversation_create_count &&
|
|
566
|
+
vote_count == o.vote_count &&
|
|
567
|
+
account_created_count == o.account_created_count &&
|
|
568
|
+
user_mention_search == o.user_mention_search &&
|
|
569
|
+
hash_tag_search == o.hash_tag_search &&
|
|
570
|
+
gif_search_trending == o.gif_search_trending &&
|
|
571
|
+
gif_search == o.gif_search &&
|
|
572
|
+
api_credits_used == o.api_credits_used &&
|
|
573
|
+
created_at == o.created_at &&
|
|
574
|
+
billed == o.billed &&
|
|
575
|
+
ignored == o.ignored &&
|
|
576
|
+
api_error_count == o.api_error_count
|
|
577
|
+
end
|
|
578
|
+
|
|
579
|
+
# @see the `==` method
|
|
580
|
+
# @param [Object] Object to be compared
|
|
581
|
+
def eql?(o)
|
|
582
|
+
self == o
|
|
583
|
+
end
|
|
584
|
+
|
|
585
|
+
# Calculates hash code according to all attributes.
|
|
586
|
+
# @return [Integer] Hash code
|
|
587
|
+
def hash
|
|
588
|
+
[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
|
|
589
|
+
end
|
|
590
|
+
|
|
591
|
+
# Builds the object from hash
|
|
592
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
593
|
+
# @return [Object] Returns the model itself
|
|
594
|
+
def self.build_from_hash(attributes)
|
|
595
|
+
return nil unless attributes.is_a?(Hash)
|
|
596
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
597
|
+
transformed_hash = {}
|
|
598
|
+
openapi_types.each_pair do |key, type|
|
|
599
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
600
|
+
transformed_hash["#{key}"] = nil
|
|
601
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
602
|
+
# check to ensure the input is an array given that the attribute
|
|
603
|
+
# is documented as an array but the input is not
|
|
604
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
605
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
606
|
+
end
|
|
607
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
608
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
609
|
+
end
|
|
610
|
+
end
|
|
611
|
+
new(transformed_hash)
|
|
612
|
+
end
|
|
613
|
+
|
|
614
|
+
# Returns the object in the form of hash
|
|
615
|
+
# @return [Hash] Returns the object in the form of hash
|
|
616
|
+
def to_hash
|
|
617
|
+
hash = {}
|
|
618
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
619
|
+
value = self.send(attr)
|
|
620
|
+
if value.nil?
|
|
621
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
622
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
623
|
+
end
|
|
624
|
+
|
|
625
|
+
hash[param] = _to_hash(value)
|
|
626
|
+
end
|
|
627
|
+
hash
|
|
628
|
+
end
|
|
629
|
+
|
|
630
|
+
end
|
|
631
|
+
|
|
632
|
+
end
|