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,671 @@
|
|
|
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 QuestionConfig < ApiModelBase
|
|
18
|
+
attr_accessor :_id
|
|
19
|
+
|
|
20
|
+
attr_accessor :tenant_id
|
|
21
|
+
|
|
22
|
+
attr_accessor :name
|
|
23
|
+
|
|
24
|
+
attr_accessor :question
|
|
25
|
+
|
|
26
|
+
attr_accessor :summary_label
|
|
27
|
+
|
|
28
|
+
attr_accessor :help_text
|
|
29
|
+
|
|
30
|
+
attr_accessor :created_at
|
|
31
|
+
|
|
32
|
+
attr_accessor :created_by
|
|
33
|
+
|
|
34
|
+
attr_accessor :used_count
|
|
35
|
+
|
|
36
|
+
attr_accessor :last_used
|
|
37
|
+
|
|
38
|
+
attr_accessor :type
|
|
39
|
+
|
|
40
|
+
attr_accessor :num_stars
|
|
41
|
+
|
|
42
|
+
attr_accessor :min
|
|
43
|
+
|
|
44
|
+
attr_accessor :max
|
|
45
|
+
|
|
46
|
+
attr_accessor :default_value
|
|
47
|
+
|
|
48
|
+
attr_accessor :label_negative
|
|
49
|
+
|
|
50
|
+
attr_accessor :label_positive
|
|
51
|
+
|
|
52
|
+
attr_accessor :custom_options
|
|
53
|
+
|
|
54
|
+
attr_accessor :sub_question_ids
|
|
55
|
+
|
|
56
|
+
attr_accessor :always_show_sub_questions
|
|
57
|
+
|
|
58
|
+
attr_accessor :reporting_order
|
|
59
|
+
|
|
60
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
61
|
+
def self.attribute_map
|
|
62
|
+
{
|
|
63
|
+
:'_id' => :'_id',
|
|
64
|
+
:'tenant_id' => :'tenantId',
|
|
65
|
+
:'name' => :'name',
|
|
66
|
+
:'question' => :'question',
|
|
67
|
+
:'summary_label' => :'summaryLabel',
|
|
68
|
+
:'help_text' => :'helpText',
|
|
69
|
+
:'created_at' => :'createdAt',
|
|
70
|
+
:'created_by' => :'createdBy',
|
|
71
|
+
:'used_count' => :'usedCount',
|
|
72
|
+
:'last_used' => :'lastUsed',
|
|
73
|
+
:'type' => :'type',
|
|
74
|
+
:'num_stars' => :'numStars',
|
|
75
|
+
:'min' => :'min',
|
|
76
|
+
:'max' => :'max',
|
|
77
|
+
:'default_value' => :'defaultValue',
|
|
78
|
+
:'label_negative' => :'labelNegative',
|
|
79
|
+
:'label_positive' => :'labelPositive',
|
|
80
|
+
:'custom_options' => :'customOptions',
|
|
81
|
+
:'sub_question_ids' => :'subQuestionIds',
|
|
82
|
+
:'always_show_sub_questions' => :'alwaysShowSubQuestions',
|
|
83
|
+
:'reporting_order' => :'reportingOrder'
|
|
84
|
+
}
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Returns attribute mapping this model knows about
|
|
88
|
+
def self.acceptable_attribute_map
|
|
89
|
+
attribute_map
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Returns all the JSON keys this model knows about
|
|
93
|
+
def self.acceptable_attributes
|
|
94
|
+
acceptable_attribute_map.values
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Attribute type mapping.
|
|
98
|
+
def self.openapi_types
|
|
99
|
+
{
|
|
100
|
+
:'_id' => :'String',
|
|
101
|
+
:'tenant_id' => :'String',
|
|
102
|
+
:'name' => :'String',
|
|
103
|
+
:'question' => :'String',
|
|
104
|
+
:'summary_label' => :'String',
|
|
105
|
+
:'help_text' => :'String',
|
|
106
|
+
:'created_at' => :'Time',
|
|
107
|
+
:'created_by' => :'String',
|
|
108
|
+
:'used_count' => :'Float',
|
|
109
|
+
:'last_used' => :'Time',
|
|
110
|
+
:'type' => :'String',
|
|
111
|
+
:'num_stars' => :'Float',
|
|
112
|
+
:'min' => :'Float',
|
|
113
|
+
:'max' => :'Float',
|
|
114
|
+
:'default_value' => :'Float',
|
|
115
|
+
:'label_negative' => :'String',
|
|
116
|
+
:'label_positive' => :'String',
|
|
117
|
+
:'custom_options' => :'Array<QuestionConfigCustomOptionsInner>',
|
|
118
|
+
:'sub_question_ids' => :'Array<String>',
|
|
119
|
+
:'always_show_sub_questions' => :'Boolean',
|
|
120
|
+
:'reporting_order' => :'Float'
|
|
121
|
+
}
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# List of attributes with nullable: true
|
|
125
|
+
def self.openapi_nullable
|
|
126
|
+
Set.new([
|
|
127
|
+
])
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Initializes the object
|
|
131
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
132
|
+
def initialize(attributes = {})
|
|
133
|
+
if (!attributes.is_a?(Hash))
|
|
134
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FastCommentsClient::QuestionConfig` initialize method"
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
138
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
139
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
140
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
141
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FastCommentsClient::QuestionConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
142
|
+
end
|
|
143
|
+
h[k.to_sym] = v
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
if attributes.key?(:'_id')
|
|
147
|
+
self._id = attributes[:'_id']
|
|
148
|
+
else
|
|
149
|
+
self._id = nil
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
if attributes.key?(:'tenant_id')
|
|
153
|
+
self.tenant_id = attributes[:'tenant_id']
|
|
154
|
+
else
|
|
155
|
+
self.tenant_id = nil
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
if attributes.key?(:'name')
|
|
159
|
+
self.name = attributes[:'name']
|
|
160
|
+
else
|
|
161
|
+
self.name = nil
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
if attributes.key?(:'question')
|
|
165
|
+
self.question = attributes[:'question']
|
|
166
|
+
else
|
|
167
|
+
self.question = nil
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
if attributes.key?(:'summary_label')
|
|
171
|
+
self.summary_label = attributes[:'summary_label']
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
if attributes.key?(:'help_text')
|
|
175
|
+
self.help_text = attributes[:'help_text']
|
|
176
|
+
else
|
|
177
|
+
self.help_text = nil
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
if attributes.key?(:'created_at')
|
|
181
|
+
self.created_at = attributes[:'created_at']
|
|
182
|
+
else
|
|
183
|
+
self.created_at = nil
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
if attributes.key?(:'created_by')
|
|
187
|
+
self.created_by = attributes[:'created_by']
|
|
188
|
+
else
|
|
189
|
+
self.created_by = nil
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
if attributes.key?(:'used_count')
|
|
193
|
+
self.used_count = attributes[:'used_count']
|
|
194
|
+
else
|
|
195
|
+
self.used_count = nil
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
if attributes.key?(:'last_used')
|
|
199
|
+
self.last_used = attributes[:'last_used']
|
|
200
|
+
else
|
|
201
|
+
self.last_used = nil
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
if attributes.key?(:'type')
|
|
205
|
+
self.type = attributes[:'type']
|
|
206
|
+
else
|
|
207
|
+
self.type = nil
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
if attributes.key?(:'num_stars')
|
|
211
|
+
self.num_stars = attributes[:'num_stars']
|
|
212
|
+
else
|
|
213
|
+
self.num_stars = nil
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
if attributes.key?(:'min')
|
|
217
|
+
self.min = attributes[:'min']
|
|
218
|
+
else
|
|
219
|
+
self.min = nil
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
if attributes.key?(:'max')
|
|
223
|
+
self.max = attributes[:'max']
|
|
224
|
+
else
|
|
225
|
+
self.max = nil
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
if attributes.key?(:'default_value')
|
|
229
|
+
self.default_value = attributes[:'default_value']
|
|
230
|
+
else
|
|
231
|
+
self.default_value = nil
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
if attributes.key?(:'label_negative')
|
|
235
|
+
self.label_negative = attributes[:'label_negative']
|
|
236
|
+
else
|
|
237
|
+
self.label_negative = nil
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
if attributes.key?(:'label_positive')
|
|
241
|
+
self.label_positive = attributes[:'label_positive']
|
|
242
|
+
else
|
|
243
|
+
self.label_positive = nil
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
if attributes.key?(:'custom_options')
|
|
247
|
+
if (value = attributes[:'custom_options']).is_a?(Array)
|
|
248
|
+
self.custom_options = value
|
|
249
|
+
end
|
|
250
|
+
else
|
|
251
|
+
self.custom_options = nil
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
if attributes.key?(:'sub_question_ids')
|
|
255
|
+
if (value = attributes[:'sub_question_ids']).is_a?(Array)
|
|
256
|
+
self.sub_question_ids = value
|
|
257
|
+
end
|
|
258
|
+
else
|
|
259
|
+
self.sub_question_ids = nil
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
if attributes.key?(:'always_show_sub_questions')
|
|
263
|
+
self.always_show_sub_questions = attributes[:'always_show_sub_questions']
|
|
264
|
+
else
|
|
265
|
+
self.always_show_sub_questions = nil
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
if attributes.key?(:'reporting_order')
|
|
269
|
+
self.reporting_order = attributes[:'reporting_order']
|
|
270
|
+
else
|
|
271
|
+
self.reporting_order = nil
|
|
272
|
+
end
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
276
|
+
# @return Array for valid properties with the reasons
|
|
277
|
+
def list_invalid_properties
|
|
278
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
279
|
+
invalid_properties = Array.new
|
|
280
|
+
if @_id.nil?
|
|
281
|
+
invalid_properties.push('invalid value for "_id", _id cannot be nil.')
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
if @tenant_id.nil?
|
|
285
|
+
invalid_properties.push('invalid value for "tenant_id", tenant_id cannot be nil.')
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
if @name.nil?
|
|
289
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
if @question.nil?
|
|
293
|
+
invalid_properties.push('invalid value for "question", question cannot be nil.')
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
if @help_text.nil?
|
|
297
|
+
invalid_properties.push('invalid value for "help_text", help_text cannot be nil.')
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
if @created_at.nil?
|
|
301
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
if @created_by.nil?
|
|
305
|
+
invalid_properties.push('invalid value for "created_by", created_by cannot be nil.')
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
if @used_count.nil?
|
|
309
|
+
invalid_properties.push('invalid value for "used_count", used_count cannot be nil.')
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
if @last_used.nil?
|
|
313
|
+
invalid_properties.push('invalid value for "last_used", last_used cannot be nil.')
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
if @type.nil?
|
|
317
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
if @num_stars.nil?
|
|
321
|
+
invalid_properties.push('invalid value for "num_stars", num_stars cannot be nil.')
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
if @min.nil?
|
|
325
|
+
invalid_properties.push('invalid value for "min", min cannot be nil.')
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
if @max.nil?
|
|
329
|
+
invalid_properties.push('invalid value for "max", max cannot be nil.')
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
if @default_value.nil?
|
|
333
|
+
invalid_properties.push('invalid value for "default_value", default_value cannot be nil.')
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
if @label_negative.nil?
|
|
337
|
+
invalid_properties.push('invalid value for "label_negative", label_negative cannot be nil.')
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
if @label_positive.nil?
|
|
341
|
+
invalid_properties.push('invalid value for "label_positive", label_positive cannot be nil.')
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
if @custom_options.nil?
|
|
345
|
+
invalid_properties.push('invalid value for "custom_options", custom_options cannot be nil.')
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
if @sub_question_ids.nil?
|
|
349
|
+
invalid_properties.push('invalid value for "sub_question_ids", sub_question_ids cannot be nil.')
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
if @always_show_sub_questions.nil?
|
|
353
|
+
invalid_properties.push('invalid value for "always_show_sub_questions", always_show_sub_questions cannot be nil.')
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
if @reporting_order.nil?
|
|
357
|
+
invalid_properties.push('invalid value for "reporting_order", reporting_order cannot be nil.')
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
invalid_properties
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
# Check to see if the all the properties in the model are valid
|
|
364
|
+
# @return true if the model is valid
|
|
365
|
+
def valid?
|
|
366
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
367
|
+
return false if @_id.nil?
|
|
368
|
+
return false if @tenant_id.nil?
|
|
369
|
+
return false if @name.nil?
|
|
370
|
+
return false if @question.nil?
|
|
371
|
+
return false if @help_text.nil?
|
|
372
|
+
return false if @created_at.nil?
|
|
373
|
+
return false if @created_by.nil?
|
|
374
|
+
return false if @used_count.nil?
|
|
375
|
+
return false if @last_used.nil?
|
|
376
|
+
return false if @type.nil?
|
|
377
|
+
return false if @num_stars.nil?
|
|
378
|
+
return false if @min.nil?
|
|
379
|
+
return false if @max.nil?
|
|
380
|
+
return false if @default_value.nil?
|
|
381
|
+
return false if @label_negative.nil?
|
|
382
|
+
return false if @label_positive.nil?
|
|
383
|
+
return false if @custom_options.nil?
|
|
384
|
+
return false if @sub_question_ids.nil?
|
|
385
|
+
return false if @always_show_sub_questions.nil?
|
|
386
|
+
return false if @reporting_order.nil?
|
|
387
|
+
true
|
|
388
|
+
end
|
|
389
|
+
|
|
390
|
+
# Custom attribute writer method with validation
|
|
391
|
+
# @param [Object] _id Value to be assigned
|
|
392
|
+
def _id=(_id)
|
|
393
|
+
if _id.nil?
|
|
394
|
+
fail ArgumentError, '_id cannot be nil'
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
@_id = _id
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
# Custom attribute writer method with validation
|
|
401
|
+
# @param [Object] tenant_id Value to be assigned
|
|
402
|
+
def tenant_id=(tenant_id)
|
|
403
|
+
if tenant_id.nil?
|
|
404
|
+
fail ArgumentError, 'tenant_id cannot be nil'
|
|
405
|
+
end
|
|
406
|
+
|
|
407
|
+
@tenant_id = tenant_id
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
# Custom attribute writer method with validation
|
|
411
|
+
# @param [Object] name Value to be assigned
|
|
412
|
+
def name=(name)
|
|
413
|
+
if name.nil?
|
|
414
|
+
fail ArgumentError, 'name cannot be nil'
|
|
415
|
+
end
|
|
416
|
+
|
|
417
|
+
@name = name
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
# Custom attribute writer method with validation
|
|
421
|
+
# @param [Object] question Value to be assigned
|
|
422
|
+
def question=(question)
|
|
423
|
+
if question.nil?
|
|
424
|
+
fail ArgumentError, 'question cannot be nil'
|
|
425
|
+
end
|
|
426
|
+
|
|
427
|
+
@question = question
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
# Custom attribute writer method with validation
|
|
431
|
+
# @param [Object] help_text Value to be assigned
|
|
432
|
+
def help_text=(help_text)
|
|
433
|
+
if help_text.nil?
|
|
434
|
+
fail ArgumentError, 'help_text cannot be nil'
|
|
435
|
+
end
|
|
436
|
+
|
|
437
|
+
@help_text = help_text
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
# Custom attribute writer method with validation
|
|
441
|
+
# @param [Object] created_at Value to be assigned
|
|
442
|
+
def created_at=(created_at)
|
|
443
|
+
if created_at.nil?
|
|
444
|
+
fail ArgumentError, 'created_at cannot be nil'
|
|
445
|
+
end
|
|
446
|
+
|
|
447
|
+
@created_at = created_at
|
|
448
|
+
end
|
|
449
|
+
|
|
450
|
+
# Custom attribute writer method with validation
|
|
451
|
+
# @param [Object] created_by Value to be assigned
|
|
452
|
+
def created_by=(created_by)
|
|
453
|
+
if created_by.nil?
|
|
454
|
+
fail ArgumentError, 'created_by cannot be nil'
|
|
455
|
+
end
|
|
456
|
+
|
|
457
|
+
@created_by = created_by
|
|
458
|
+
end
|
|
459
|
+
|
|
460
|
+
# Custom attribute writer method with validation
|
|
461
|
+
# @param [Object] used_count Value to be assigned
|
|
462
|
+
def used_count=(used_count)
|
|
463
|
+
if used_count.nil?
|
|
464
|
+
fail ArgumentError, 'used_count cannot be nil'
|
|
465
|
+
end
|
|
466
|
+
|
|
467
|
+
@used_count = used_count
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
# Custom attribute writer method with validation
|
|
471
|
+
# @param [Object] last_used Value to be assigned
|
|
472
|
+
def last_used=(last_used)
|
|
473
|
+
if last_used.nil?
|
|
474
|
+
fail ArgumentError, 'last_used cannot be nil'
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
@last_used = last_used
|
|
478
|
+
end
|
|
479
|
+
|
|
480
|
+
# Custom attribute writer method with validation
|
|
481
|
+
# @param [Object] type Value to be assigned
|
|
482
|
+
def type=(type)
|
|
483
|
+
if type.nil?
|
|
484
|
+
fail ArgumentError, 'type cannot be nil'
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
@type = type
|
|
488
|
+
end
|
|
489
|
+
|
|
490
|
+
# Custom attribute writer method with validation
|
|
491
|
+
# @param [Object] num_stars Value to be assigned
|
|
492
|
+
def num_stars=(num_stars)
|
|
493
|
+
if num_stars.nil?
|
|
494
|
+
fail ArgumentError, 'num_stars cannot be nil'
|
|
495
|
+
end
|
|
496
|
+
|
|
497
|
+
@num_stars = num_stars
|
|
498
|
+
end
|
|
499
|
+
|
|
500
|
+
# Custom attribute writer method with validation
|
|
501
|
+
# @param [Object] min Value to be assigned
|
|
502
|
+
def min=(min)
|
|
503
|
+
if min.nil?
|
|
504
|
+
fail ArgumentError, 'min cannot be nil'
|
|
505
|
+
end
|
|
506
|
+
|
|
507
|
+
@min = min
|
|
508
|
+
end
|
|
509
|
+
|
|
510
|
+
# Custom attribute writer method with validation
|
|
511
|
+
# @param [Object] max Value to be assigned
|
|
512
|
+
def max=(max)
|
|
513
|
+
if max.nil?
|
|
514
|
+
fail ArgumentError, 'max cannot be nil'
|
|
515
|
+
end
|
|
516
|
+
|
|
517
|
+
@max = max
|
|
518
|
+
end
|
|
519
|
+
|
|
520
|
+
# Custom attribute writer method with validation
|
|
521
|
+
# @param [Object] default_value Value to be assigned
|
|
522
|
+
def default_value=(default_value)
|
|
523
|
+
if default_value.nil?
|
|
524
|
+
fail ArgumentError, 'default_value cannot be nil'
|
|
525
|
+
end
|
|
526
|
+
|
|
527
|
+
@default_value = default_value
|
|
528
|
+
end
|
|
529
|
+
|
|
530
|
+
# Custom attribute writer method with validation
|
|
531
|
+
# @param [Object] label_negative Value to be assigned
|
|
532
|
+
def label_negative=(label_negative)
|
|
533
|
+
if label_negative.nil?
|
|
534
|
+
fail ArgumentError, 'label_negative cannot be nil'
|
|
535
|
+
end
|
|
536
|
+
|
|
537
|
+
@label_negative = label_negative
|
|
538
|
+
end
|
|
539
|
+
|
|
540
|
+
# Custom attribute writer method with validation
|
|
541
|
+
# @param [Object] label_positive Value to be assigned
|
|
542
|
+
def label_positive=(label_positive)
|
|
543
|
+
if label_positive.nil?
|
|
544
|
+
fail ArgumentError, 'label_positive cannot be nil'
|
|
545
|
+
end
|
|
546
|
+
|
|
547
|
+
@label_positive = label_positive
|
|
548
|
+
end
|
|
549
|
+
|
|
550
|
+
# Custom attribute writer method with validation
|
|
551
|
+
# @param [Object] custom_options Value to be assigned
|
|
552
|
+
def custom_options=(custom_options)
|
|
553
|
+
if custom_options.nil?
|
|
554
|
+
fail ArgumentError, 'custom_options cannot be nil'
|
|
555
|
+
end
|
|
556
|
+
|
|
557
|
+
@custom_options = custom_options
|
|
558
|
+
end
|
|
559
|
+
|
|
560
|
+
# Custom attribute writer method with validation
|
|
561
|
+
# @param [Object] sub_question_ids Value to be assigned
|
|
562
|
+
def sub_question_ids=(sub_question_ids)
|
|
563
|
+
if sub_question_ids.nil?
|
|
564
|
+
fail ArgumentError, 'sub_question_ids cannot be nil'
|
|
565
|
+
end
|
|
566
|
+
|
|
567
|
+
@sub_question_ids = sub_question_ids
|
|
568
|
+
end
|
|
569
|
+
|
|
570
|
+
# Custom attribute writer method with validation
|
|
571
|
+
# @param [Object] always_show_sub_questions Value to be assigned
|
|
572
|
+
def always_show_sub_questions=(always_show_sub_questions)
|
|
573
|
+
if always_show_sub_questions.nil?
|
|
574
|
+
fail ArgumentError, 'always_show_sub_questions cannot be nil'
|
|
575
|
+
end
|
|
576
|
+
|
|
577
|
+
@always_show_sub_questions = always_show_sub_questions
|
|
578
|
+
end
|
|
579
|
+
|
|
580
|
+
# Custom attribute writer method with validation
|
|
581
|
+
# @param [Object] reporting_order Value to be assigned
|
|
582
|
+
def reporting_order=(reporting_order)
|
|
583
|
+
if reporting_order.nil?
|
|
584
|
+
fail ArgumentError, 'reporting_order cannot be nil'
|
|
585
|
+
end
|
|
586
|
+
|
|
587
|
+
@reporting_order = reporting_order
|
|
588
|
+
end
|
|
589
|
+
|
|
590
|
+
# Checks equality by comparing each attribute.
|
|
591
|
+
# @param [Object] Object to be compared
|
|
592
|
+
def ==(o)
|
|
593
|
+
return true if self.equal?(o)
|
|
594
|
+
self.class == o.class &&
|
|
595
|
+
_id == o._id &&
|
|
596
|
+
tenant_id == o.tenant_id &&
|
|
597
|
+
name == o.name &&
|
|
598
|
+
question == o.question &&
|
|
599
|
+
summary_label == o.summary_label &&
|
|
600
|
+
help_text == o.help_text &&
|
|
601
|
+
created_at == o.created_at &&
|
|
602
|
+
created_by == o.created_by &&
|
|
603
|
+
used_count == o.used_count &&
|
|
604
|
+
last_used == o.last_used &&
|
|
605
|
+
type == o.type &&
|
|
606
|
+
num_stars == o.num_stars &&
|
|
607
|
+
min == o.min &&
|
|
608
|
+
max == o.max &&
|
|
609
|
+
default_value == o.default_value &&
|
|
610
|
+
label_negative == o.label_negative &&
|
|
611
|
+
label_positive == o.label_positive &&
|
|
612
|
+
custom_options == o.custom_options &&
|
|
613
|
+
sub_question_ids == o.sub_question_ids &&
|
|
614
|
+
always_show_sub_questions == o.always_show_sub_questions &&
|
|
615
|
+
reporting_order == o.reporting_order
|
|
616
|
+
end
|
|
617
|
+
|
|
618
|
+
# @see the `==` method
|
|
619
|
+
# @param [Object] Object to be compared
|
|
620
|
+
def eql?(o)
|
|
621
|
+
self == o
|
|
622
|
+
end
|
|
623
|
+
|
|
624
|
+
# Calculates hash code according to all attributes.
|
|
625
|
+
# @return [Integer] Hash code
|
|
626
|
+
def hash
|
|
627
|
+
[_id, tenant_id, name, question, summary_label, help_text, created_at, created_by, used_count, last_used, type, num_stars, min, max, default_value, label_negative, label_positive, custom_options, sub_question_ids, always_show_sub_questions, reporting_order].hash
|
|
628
|
+
end
|
|
629
|
+
|
|
630
|
+
# Builds the object from hash
|
|
631
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
632
|
+
# @return [Object] Returns the model itself
|
|
633
|
+
def self.build_from_hash(attributes)
|
|
634
|
+
return nil unless attributes.is_a?(Hash)
|
|
635
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
636
|
+
transformed_hash = {}
|
|
637
|
+
openapi_types.each_pair do |key, type|
|
|
638
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
639
|
+
transformed_hash["#{key}"] = nil
|
|
640
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
641
|
+
# check to ensure the input is an array given that the attribute
|
|
642
|
+
# is documented as an array but the input is not
|
|
643
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
644
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
645
|
+
end
|
|
646
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
647
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
648
|
+
end
|
|
649
|
+
end
|
|
650
|
+
new(transformed_hash)
|
|
651
|
+
end
|
|
652
|
+
|
|
653
|
+
# Returns the object in the form of hash
|
|
654
|
+
# @return [Hash] Returns the object in the form of hash
|
|
655
|
+
def to_hash
|
|
656
|
+
hash = {}
|
|
657
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
658
|
+
value = self.send(attr)
|
|
659
|
+
if value.nil?
|
|
660
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
661
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
662
|
+
end
|
|
663
|
+
|
|
664
|
+
hash[param] = _to_hash(value)
|
|
665
|
+
end
|
|
666
|
+
hash
|
|
667
|
+
end
|
|
668
|
+
|
|
669
|
+
end
|
|
670
|
+
|
|
671
|
+
end
|