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,186 @@
|
|
|
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 CreateVoteResponse < ApiModelBase
|
|
18
|
+
attr_accessor :status
|
|
19
|
+
|
|
20
|
+
class EnumAttributeValidator
|
|
21
|
+
attr_reader :datatype
|
|
22
|
+
attr_reader :allowable_values
|
|
23
|
+
|
|
24
|
+
def initialize(datatype, allowable_values)
|
|
25
|
+
@allowable_values = allowable_values.map do |value|
|
|
26
|
+
case datatype.to_s
|
|
27
|
+
when /Integer/i
|
|
28
|
+
value.to_i
|
|
29
|
+
when /Float/i
|
|
30
|
+
value.to_f
|
|
31
|
+
else
|
|
32
|
+
value
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def valid?(value)
|
|
38
|
+
!value || allowable_values.include?(value)
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
43
|
+
def self.attribute_map
|
|
44
|
+
{
|
|
45
|
+
:'status' => :'status'
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Returns attribute mapping this model knows about
|
|
50
|
+
def self.acceptable_attribute_map
|
|
51
|
+
attribute_map
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Returns all the JSON keys this model knows about
|
|
55
|
+
def self.acceptable_attributes
|
|
56
|
+
acceptable_attribute_map.values
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# Attribute type mapping.
|
|
60
|
+
def self.openapi_types
|
|
61
|
+
{
|
|
62
|
+
:'status' => :'APIStatus'
|
|
63
|
+
}
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# List of attributes with nullable: true
|
|
67
|
+
def self.openapi_nullable
|
|
68
|
+
Set.new([
|
|
69
|
+
])
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Initializes the object
|
|
73
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
74
|
+
def initialize(attributes = {})
|
|
75
|
+
if (!attributes.is_a?(Hash))
|
|
76
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FastCommentsClient::CreateVoteResponse` initialize method"
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
80
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
81
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
82
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
83
|
+
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
|
|
84
|
+
end
|
|
85
|
+
h[k.to_sym] = v
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'status')
|
|
89
|
+
self.status = attributes[:'status']
|
|
90
|
+
else
|
|
91
|
+
self.status = nil
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
96
|
+
# @return Array for valid properties with the reasons
|
|
97
|
+
def list_invalid_properties
|
|
98
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
99
|
+
invalid_properties = Array.new
|
|
100
|
+
if @status.nil?
|
|
101
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
invalid_properties
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Check to see if the all the properties in the model are valid
|
|
108
|
+
# @return true if the model is valid
|
|
109
|
+
def valid?
|
|
110
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
111
|
+
return false if @status.nil?
|
|
112
|
+
true
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Custom attribute writer method with validation
|
|
116
|
+
# @param [Object] status Value to be assigned
|
|
117
|
+
def status=(status)
|
|
118
|
+
if status.nil?
|
|
119
|
+
fail ArgumentError, 'status cannot be nil'
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
@status = status
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Checks equality by comparing each attribute.
|
|
126
|
+
# @param [Object] Object to be compared
|
|
127
|
+
def ==(o)
|
|
128
|
+
return true if self.equal?(o)
|
|
129
|
+
self.class == o.class &&
|
|
130
|
+
status == o.status
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# @see the `==` method
|
|
134
|
+
# @param [Object] Object to be compared
|
|
135
|
+
def eql?(o)
|
|
136
|
+
self == o
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Calculates hash code according to all attributes.
|
|
140
|
+
# @return [Integer] Hash code
|
|
141
|
+
def hash
|
|
142
|
+
[status].hash
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Builds the object from hash
|
|
146
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
147
|
+
# @return [Object] Returns the model itself
|
|
148
|
+
def self.build_from_hash(attributes)
|
|
149
|
+
return nil unless attributes.is_a?(Hash)
|
|
150
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
151
|
+
transformed_hash = {}
|
|
152
|
+
openapi_types.each_pair do |key, type|
|
|
153
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
154
|
+
transformed_hash["#{key}"] = nil
|
|
155
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
156
|
+
# check to ensure the input is an array given that the attribute
|
|
157
|
+
# is documented as an array but the input is not
|
|
158
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
159
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
160
|
+
end
|
|
161
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
162
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
new(transformed_hash)
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Returns the object in the form of hash
|
|
169
|
+
# @return [Hash] Returns the object in the form of hash
|
|
170
|
+
def to_hash
|
|
171
|
+
hash = {}
|
|
172
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
173
|
+
value = self.send(attr)
|
|
174
|
+
if value.nil?
|
|
175
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
176
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
hash[param] = _to_hash(value)
|
|
180
|
+
end
|
|
181
|
+
hash
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
end
|
|
@@ -0,0 +1,369 @@
|
|
|
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 CustomEmailTemplate < ApiModelBase
|
|
18
|
+
attr_accessor :_id
|
|
19
|
+
|
|
20
|
+
attr_accessor :tenant_id
|
|
21
|
+
|
|
22
|
+
attr_accessor :email_template_id
|
|
23
|
+
|
|
24
|
+
attr_accessor :display_name
|
|
25
|
+
|
|
26
|
+
attr_accessor :created_at
|
|
27
|
+
|
|
28
|
+
attr_accessor :updated_at
|
|
29
|
+
|
|
30
|
+
attr_accessor :updated_by_user_id
|
|
31
|
+
|
|
32
|
+
attr_accessor :domain
|
|
33
|
+
|
|
34
|
+
attr_accessor :ejs
|
|
35
|
+
|
|
36
|
+
# Construct a type with a set of properties K of type T
|
|
37
|
+
attr_accessor :translation_overrides_by_locale
|
|
38
|
+
|
|
39
|
+
attr_accessor :test_data
|
|
40
|
+
|
|
41
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
42
|
+
def self.attribute_map
|
|
43
|
+
{
|
|
44
|
+
:'_id' => :'_id',
|
|
45
|
+
:'tenant_id' => :'tenantId',
|
|
46
|
+
:'email_template_id' => :'emailTemplateId',
|
|
47
|
+
:'display_name' => :'displayName',
|
|
48
|
+
:'created_at' => :'createdAt',
|
|
49
|
+
:'updated_at' => :'updatedAt',
|
|
50
|
+
:'updated_by_user_id' => :'updatedByUserId',
|
|
51
|
+
:'domain' => :'domain',
|
|
52
|
+
:'ejs' => :'ejs',
|
|
53
|
+
:'translation_overrides_by_locale' => :'translationOverridesByLocale',
|
|
54
|
+
:'test_data' => :'testData'
|
|
55
|
+
}
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Returns attribute mapping this model knows about
|
|
59
|
+
def self.acceptable_attribute_map
|
|
60
|
+
attribute_map
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Returns all the JSON keys this model knows about
|
|
64
|
+
def self.acceptable_attributes
|
|
65
|
+
acceptable_attribute_map.values
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Attribute type mapping.
|
|
69
|
+
def self.openapi_types
|
|
70
|
+
{
|
|
71
|
+
:'_id' => :'String',
|
|
72
|
+
:'tenant_id' => :'String',
|
|
73
|
+
:'email_template_id' => :'String',
|
|
74
|
+
:'display_name' => :'String',
|
|
75
|
+
:'created_at' => :'Time',
|
|
76
|
+
:'updated_at' => :'Time',
|
|
77
|
+
:'updated_by_user_id' => :'String',
|
|
78
|
+
:'domain' => :'String',
|
|
79
|
+
:'ejs' => :'String',
|
|
80
|
+
:'translation_overrides_by_locale' => :'Hash<String, Hash>',
|
|
81
|
+
:'test_data' => :'Object'
|
|
82
|
+
}
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# List of attributes with nullable: true
|
|
86
|
+
def self.openapi_nullable
|
|
87
|
+
Set.new([
|
|
88
|
+
:'updated_at',
|
|
89
|
+
:'updated_by_user_id',
|
|
90
|
+
:'domain',
|
|
91
|
+
:'test_data'
|
|
92
|
+
])
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Initializes the object
|
|
96
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
97
|
+
def initialize(attributes = {})
|
|
98
|
+
if (!attributes.is_a?(Hash))
|
|
99
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FastCommentsClient::CustomEmailTemplate` initialize method"
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
103
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
104
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
105
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
106
|
+
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
|
|
107
|
+
end
|
|
108
|
+
h[k.to_sym] = v
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
if attributes.key?(:'_id')
|
|
112
|
+
self._id = attributes[:'_id']
|
|
113
|
+
else
|
|
114
|
+
self._id = nil
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
if attributes.key?(:'tenant_id')
|
|
118
|
+
self.tenant_id = attributes[:'tenant_id']
|
|
119
|
+
else
|
|
120
|
+
self.tenant_id = nil
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
if attributes.key?(:'email_template_id')
|
|
124
|
+
self.email_template_id = attributes[:'email_template_id']
|
|
125
|
+
else
|
|
126
|
+
self.email_template_id = nil
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if attributes.key?(:'display_name')
|
|
130
|
+
self.display_name = attributes[:'display_name']
|
|
131
|
+
else
|
|
132
|
+
self.display_name = nil
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
if attributes.key?(:'created_at')
|
|
136
|
+
self.created_at = attributes[:'created_at']
|
|
137
|
+
else
|
|
138
|
+
self.created_at = nil
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
if attributes.key?(:'updated_at')
|
|
142
|
+
self.updated_at = attributes[:'updated_at']
|
|
143
|
+
else
|
|
144
|
+
self.updated_at = nil
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
if attributes.key?(:'updated_by_user_id')
|
|
148
|
+
self.updated_by_user_id = attributes[:'updated_by_user_id']
|
|
149
|
+
else
|
|
150
|
+
self.updated_by_user_id = nil
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
if attributes.key?(:'domain')
|
|
154
|
+
self.domain = attributes[:'domain']
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
if attributes.key?(:'ejs')
|
|
158
|
+
self.ejs = attributes[:'ejs']
|
|
159
|
+
else
|
|
160
|
+
self.ejs = nil
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
if attributes.key?(:'translation_overrides_by_locale')
|
|
164
|
+
if (value = attributes[:'translation_overrides_by_locale']).is_a?(Hash)
|
|
165
|
+
self.translation_overrides_by_locale = value
|
|
166
|
+
end
|
|
167
|
+
else
|
|
168
|
+
self.translation_overrides_by_locale = nil
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
if attributes.key?(:'test_data')
|
|
172
|
+
self.test_data = attributes[:'test_data']
|
|
173
|
+
else
|
|
174
|
+
self.test_data = nil
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
179
|
+
# @return Array for valid properties with the reasons
|
|
180
|
+
def list_invalid_properties
|
|
181
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
182
|
+
invalid_properties = Array.new
|
|
183
|
+
if @_id.nil?
|
|
184
|
+
invalid_properties.push('invalid value for "_id", _id cannot be nil.')
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
if @tenant_id.nil?
|
|
188
|
+
invalid_properties.push('invalid value for "tenant_id", tenant_id cannot be nil.')
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
if @email_template_id.nil?
|
|
192
|
+
invalid_properties.push('invalid value for "email_template_id", email_template_id cannot be nil.')
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
if @display_name.nil?
|
|
196
|
+
invalid_properties.push('invalid value for "display_name", display_name cannot be nil.')
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
if @created_at.nil?
|
|
200
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
if @ejs.nil?
|
|
204
|
+
invalid_properties.push('invalid value for "ejs", ejs cannot be nil.')
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
if @translation_overrides_by_locale.nil?
|
|
208
|
+
invalid_properties.push('invalid value for "translation_overrides_by_locale", translation_overrides_by_locale cannot be nil.')
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
invalid_properties
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Check to see if the all the properties in the model are valid
|
|
215
|
+
# @return true if the model is valid
|
|
216
|
+
def valid?
|
|
217
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
218
|
+
return false if @_id.nil?
|
|
219
|
+
return false if @tenant_id.nil?
|
|
220
|
+
return false if @email_template_id.nil?
|
|
221
|
+
return false if @display_name.nil?
|
|
222
|
+
return false if @created_at.nil?
|
|
223
|
+
return false if @ejs.nil?
|
|
224
|
+
return false if @translation_overrides_by_locale.nil?
|
|
225
|
+
true
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
# Custom attribute writer method with validation
|
|
229
|
+
# @param [Object] _id Value to be assigned
|
|
230
|
+
def _id=(_id)
|
|
231
|
+
if _id.nil?
|
|
232
|
+
fail ArgumentError, '_id cannot be nil'
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
@_id = _id
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# Custom attribute writer method with validation
|
|
239
|
+
# @param [Object] tenant_id Value to be assigned
|
|
240
|
+
def tenant_id=(tenant_id)
|
|
241
|
+
if tenant_id.nil?
|
|
242
|
+
fail ArgumentError, 'tenant_id cannot be nil'
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
@tenant_id = tenant_id
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
# Custom attribute writer method with validation
|
|
249
|
+
# @param [Object] email_template_id Value to be assigned
|
|
250
|
+
def email_template_id=(email_template_id)
|
|
251
|
+
if email_template_id.nil?
|
|
252
|
+
fail ArgumentError, 'email_template_id cannot be nil'
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
@email_template_id = email_template_id
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
# Custom attribute writer method with validation
|
|
259
|
+
# @param [Object] display_name Value to be assigned
|
|
260
|
+
def display_name=(display_name)
|
|
261
|
+
if display_name.nil?
|
|
262
|
+
fail ArgumentError, 'display_name cannot be nil'
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
@display_name = display_name
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
# Custom attribute writer method with validation
|
|
269
|
+
# @param [Object] created_at Value to be assigned
|
|
270
|
+
def created_at=(created_at)
|
|
271
|
+
if created_at.nil?
|
|
272
|
+
fail ArgumentError, 'created_at cannot be nil'
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
@created_at = created_at
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
# Custom attribute writer method with validation
|
|
279
|
+
# @param [Object] ejs Value to be assigned
|
|
280
|
+
def ejs=(ejs)
|
|
281
|
+
if ejs.nil?
|
|
282
|
+
fail ArgumentError, 'ejs cannot be nil'
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
@ejs = ejs
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
# Custom attribute writer method with validation
|
|
289
|
+
# @param [Object] translation_overrides_by_locale Value to be assigned
|
|
290
|
+
def translation_overrides_by_locale=(translation_overrides_by_locale)
|
|
291
|
+
if translation_overrides_by_locale.nil?
|
|
292
|
+
fail ArgumentError, 'translation_overrides_by_locale cannot be nil'
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
@translation_overrides_by_locale = translation_overrides_by_locale
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
# Checks equality by comparing each attribute.
|
|
299
|
+
# @param [Object] Object to be compared
|
|
300
|
+
def ==(o)
|
|
301
|
+
return true if self.equal?(o)
|
|
302
|
+
self.class == o.class &&
|
|
303
|
+
_id == o._id &&
|
|
304
|
+
tenant_id == o.tenant_id &&
|
|
305
|
+
email_template_id == o.email_template_id &&
|
|
306
|
+
display_name == o.display_name &&
|
|
307
|
+
created_at == o.created_at &&
|
|
308
|
+
updated_at == o.updated_at &&
|
|
309
|
+
updated_by_user_id == o.updated_by_user_id &&
|
|
310
|
+
domain == o.domain &&
|
|
311
|
+
ejs == o.ejs &&
|
|
312
|
+
translation_overrides_by_locale == o.translation_overrides_by_locale &&
|
|
313
|
+
test_data == o.test_data
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
# @see the `==` method
|
|
317
|
+
# @param [Object] Object to be compared
|
|
318
|
+
def eql?(o)
|
|
319
|
+
self == o
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
# Calculates hash code according to all attributes.
|
|
323
|
+
# @return [Integer] Hash code
|
|
324
|
+
def hash
|
|
325
|
+
[_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
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
# Builds the object from hash
|
|
329
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
330
|
+
# @return [Object] Returns the model itself
|
|
331
|
+
def self.build_from_hash(attributes)
|
|
332
|
+
return nil unless attributes.is_a?(Hash)
|
|
333
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
334
|
+
transformed_hash = {}
|
|
335
|
+
openapi_types.each_pair do |key, type|
|
|
336
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
337
|
+
transformed_hash["#{key}"] = nil
|
|
338
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
339
|
+
# check to ensure the input is an array given that the attribute
|
|
340
|
+
# is documented as an array but the input is not
|
|
341
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
342
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
343
|
+
end
|
|
344
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
345
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
346
|
+
end
|
|
347
|
+
end
|
|
348
|
+
new(transformed_hash)
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
# Returns the object in the form of hash
|
|
352
|
+
# @return [Hash] Returns the object in the form of hash
|
|
353
|
+
def to_hash
|
|
354
|
+
hash = {}
|
|
355
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
356
|
+
value = self.send(attr)
|
|
357
|
+
if value.nil?
|
|
358
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
359
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
hash[param] = _to_hash(value)
|
|
363
|
+
end
|
|
364
|
+
hash
|
|
365
|
+
end
|
|
366
|
+
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
end
|
|
@@ -0,0 +1,147 @@
|
|
|
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 DeleteHashTagRequest < ApiModelBase
|
|
18
|
+
attr_accessor :tenant_id
|
|
19
|
+
|
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
|
+
def self.attribute_map
|
|
22
|
+
{
|
|
23
|
+
:'tenant_id' => :'tenantId'
|
|
24
|
+
}
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Returns attribute mapping this model knows about
|
|
28
|
+
def self.acceptable_attribute_map
|
|
29
|
+
attribute_map
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Returns all the JSON keys this model knows about
|
|
33
|
+
def self.acceptable_attributes
|
|
34
|
+
acceptable_attribute_map.values
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
def self.openapi_types
|
|
39
|
+
{
|
|
40
|
+
:'tenant_id' => :'String'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# List of attributes with nullable: true
|
|
45
|
+
def self.openapi_nullable
|
|
46
|
+
Set.new([
|
|
47
|
+
])
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Initializes the object
|
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
52
|
+
def initialize(attributes = {})
|
|
53
|
+
if (!attributes.is_a?(Hash))
|
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FastCommentsClient::DeleteHashTagRequest` initialize method"
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
58
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
60
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
61
|
+
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
|
|
62
|
+
end
|
|
63
|
+
h[k.to_sym] = v
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if attributes.key?(:'tenant_id')
|
|
67
|
+
self.tenant_id = attributes[:'tenant_id']
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
72
|
+
# @return Array for valid properties with the reasons
|
|
73
|
+
def list_invalid_properties
|
|
74
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
75
|
+
invalid_properties = Array.new
|
|
76
|
+
invalid_properties
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Check to see if the all the properties in the model are valid
|
|
80
|
+
# @return true if the model is valid
|
|
81
|
+
def valid?
|
|
82
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
83
|
+
true
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Checks equality by comparing each attribute.
|
|
87
|
+
# @param [Object] Object to be compared
|
|
88
|
+
def ==(o)
|
|
89
|
+
return true if self.equal?(o)
|
|
90
|
+
self.class == o.class &&
|
|
91
|
+
tenant_id == o.tenant_id
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# @see the `==` method
|
|
95
|
+
# @param [Object] Object to be compared
|
|
96
|
+
def eql?(o)
|
|
97
|
+
self == o
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Calculates hash code according to all attributes.
|
|
101
|
+
# @return [Integer] Hash code
|
|
102
|
+
def hash
|
|
103
|
+
[tenant_id].hash
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Builds the object from hash
|
|
107
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
108
|
+
# @return [Object] Returns the model itself
|
|
109
|
+
def self.build_from_hash(attributes)
|
|
110
|
+
return nil unless attributes.is_a?(Hash)
|
|
111
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
112
|
+
transformed_hash = {}
|
|
113
|
+
openapi_types.each_pair do |key, type|
|
|
114
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
115
|
+
transformed_hash["#{key}"] = nil
|
|
116
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
117
|
+
# check to ensure the input is an array given that the attribute
|
|
118
|
+
# is documented as an array but the input is not
|
|
119
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
120
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
121
|
+
end
|
|
122
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
123
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
new(transformed_hash)
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Returns the object in the form of hash
|
|
130
|
+
# @return [Hash] Returns the object in the form of hash
|
|
131
|
+
def to_hash
|
|
132
|
+
hash = {}
|
|
133
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
134
|
+
value = self.send(attr)
|
|
135
|
+
if value.nil?
|
|
136
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
137
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
hash[param] = _to_hash(value)
|
|
141
|
+
end
|
|
142
|
+
hash
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
end
|