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,994 @@
|
|
|
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 TenantPackage < ApiModelBase
|
|
18
|
+
attr_accessor :_id
|
|
19
|
+
|
|
20
|
+
attr_accessor :name
|
|
21
|
+
|
|
22
|
+
attr_accessor :tenant_id
|
|
23
|
+
|
|
24
|
+
attr_accessor :created_at
|
|
25
|
+
|
|
26
|
+
attr_accessor :monthly_cost_usd
|
|
27
|
+
|
|
28
|
+
attr_accessor :yearly_cost_usd
|
|
29
|
+
|
|
30
|
+
attr_accessor :monthly_stripe_plan_id
|
|
31
|
+
|
|
32
|
+
attr_accessor :yearly_stripe_plan_id
|
|
33
|
+
|
|
34
|
+
attr_accessor :max_monthly_page_loads
|
|
35
|
+
|
|
36
|
+
attr_accessor :max_monthly_api_credits
|
|
37
|
+
|
|
38
|
+
attr_accessor :max_monthly_small_widgets_credits
|
|
39
|
+
|
|
40
|
+
attr_accessor :max_monthly_comments
|
|
41
|
+
|
|
42
|
+
attr_accessor :max_concurrent_users
|
|
43
|
+
|
|
44
|
+
attr_accessor :max_tenant_users
|
|
45
|
+
|
|
46
|
+
attr_accessor :max_sso_users
|
|
47
|
+
|
|
48
|
+
attr_accessor :max_moderators
|
|
49
|
+
|
|
50
|
+
attr_accessor :max_domains
|
|
51
|
+
|
|
52
|
+
attr_accessor :max_white_labeled_tenants
|
|
53
|
+
|
|
54
|
+
attr_accessor :max_monthly_event_log_requests
|
|
55
|
+
|
|
56
|
+
attr_accessor :has_white_labeling
|
|
57
|
+
|
|
58
|
+
attr_accessor :has_debranding
|
|
59
|
+
|
|
60
|
+
attr_accessor :has_llm_spam_detection
|
|
61
|
+
|
|
62
|
+
attr_accessor :for_who_text
|
|
63
|
+
|
|
64
|
+
attr_accessor :feature_taglines
|
|
65
|
+
|
|
66
|
+
attr_accessor :has_auditing
|
|
67
|
+
|
|
68
|
+
attr_accessor :has_flex_pricing
|
|
69
|
+
|
|
70
|
+
attr_accessor :enable_saml
|
|
71
|
+
|
|
72
|
+
attr_accessor :flex_page_load_cost_cents
|
|
73
|
+
|
|
74
|
+
attr_accessor :flex_page_load_unit
|
|
75
|
+
|
|
76
|
+
attr_accessor :flex_comment_cost_cents
|
|
77
|
+
|
|
78
|
+
attr_accessor :flex_comment_unit
|
|
79
|
+
|
|
80
|
+
attr_accessor :flex_sso_user_cost_cents
|
|
81
|
+
|
|
82
|
+
attr_accessor :flex_sso_user_unit
|
|
83
|
+
|
|
84
|
+
attr_accessor :flex_api_credit_cost_cents
|
|
85
|
+
|
|
86
|
+
attr_accessor :flex_api_credit_unit
|
|
87
|
+
|
|
88
|
+
attr_accessor :flex_small_widgets_credit_cost_cents
|
|
89
|
+
|
|
90
|
+
attr_accessor :flex_small_widgets_credit_unit
|
|
91
|
+
|
|
92
|
+
attr_accessor :flex_moderator_cost_cents
|
|
93
|
+
|
|
94
|
+
attr_accessor :flex_moderator_unit
|
|
95
|
+
|
|
96
|
+
attr_accessor :flex_admin_cost_cents
|
|
97
|
+
|
|
98
|
+
attr_accessor :flex_admin_unit
|
|
99
|
+
|
|
100
|
+
attr_accessor :flex_domain_cost_cents
|
|
101
|
+
|
|
102
|
+
attr_accessor :flex_domain_unit
|
|
103
|
+
|
|
104
|
+
attr_accessor :flex_chat_gpt_cost_cents
|
|
105
|
+
|
|
106
|
+
attr_accessor :flex_chat_gpt_unit
|
|
107
|
+
|
|
108
|
+
attr_accessor :flex_minimum_cost_cents
|
|
109
|
+
|
|
110
|
+
attr_accessor :flex_managed_tenant_cost_cents
|
|
111
|
+
|
|
112
|
+
attr_accessor :flex_sso_admin_cost_cents
|
|
113
|
+
|
|
114
|
+
attr_accessor :flex_sso_admin_unit
|
|
115
|
+
|
|
116
|
+
attr_accessor :flex_sso_moderator_cost_cents
|
|
117
|
+
|
|
118
|
+
attr_accessor :flex_sso_moderator_unit
|
|
119
|
+
|
|
120
|
+
attr_accessor :is_sso_billing_monthly_active_users
|
|
121
|
+
|
|
122
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
123
|
+
def self.attribute_map
|
|
124
|
+
{
|
|
125
|
+
:'_id' => :'_id',
|
|
126
|
+
:'name' => :'name',
|
|
127
|
+
:'tenant_id' => :'tenantId',
|
|
128
|
+
:'created_at' => :'createdAt',
|
|
129
|
+
:'monthly_cost_usd' => :'monthlyCostUSD',
|
|
130
|
+
:'yearly_cost_usd' => :'yearlyCostUSD',
|
|
131
|
+
:'monthly_stripe_plan_id' => :'monthlyStripePlanId',
|
|
132
|
+
:'yearly_stripe_plan_id' => :'yearlyStripePlanId',
|
|
133
|
+
:'max_monthly_page_loads' => :'maxMonthlyPageLoads',
|
|
134
|
+
:'max_monthly_api_credits' => :'maxMonthlyAPICredits',
|
|
135
|
+
:'max_monthly_small_widgets_credits' => :'maxMonthlySmallWidgetsCredits',
|
|
136
|
+
:'max_monthly_comments' => :'maxMonthlyComments',
|
|
137
|
+
:'max_concurrent_users' => :'maxConcurrentUsers',
|
|
138
|
+
:'max_tenant_users' => :'maxTenantUsers',
|
|
139
|
+
:'max_sso_users' => :'maxSSOUsers',
|
|
140
|
+
:'max_moderators' => :'maxModerators',
|
|
141
|
+
:'max_domains' => :'maxDomains',
|
|
142
|
+
:'max_white_labeled_tenants' => :'maxWhiteLabeledTenants',
|
|
143
|
+
:'max_monthly_event_log_requests' => :'maxMonthlyEventLogRequests',
|
|
144
|
+
:'has_white_labeling' => :'hasWhiteLabeling',
|
|
145
|
+
:'has_debranding' => :'hasDebranding',
|
|
146
|
+
:'has_llm_spam_detection' => :'hasLLMSpamDetection',
|
|
147
|
+
:'for_who_text' => :'forWhoText',
|
|
148
|
+
:'feature_taglines' => :'featureTaglines',
|
|
149
|
+
:'has_auditing' => :'hasAuditing',
|
|
150
|
+
:'has_flex_pricing' => :'hasFlexPricing',
|
|
151
|
+
:'enable_saml' => :'enableSAML',
|
|
152
|
+
:'flex_page_load_cost_cents' => :'flexPageLoadCostCents',
|
|
153
|
+
:'flex_page_load_unit' => :'flexPageLoadUnit',
|
|
154
|
+
:'flex_comment_cost_cents' => :'flexCommentCostCents',
|
|
155
|
+
:'flex_comment_unit' => :'flexCommentUnit',
|
|
156
|
+
:'flex_sso_user_cost_cents' => :'flexSSOUserCostCents',
|
|
157
|
+
:'flex_sso_user_unit' => :'flexSSOUserUnit',
|
|
158
|
+
:'flex_api_credit_cost_cents' => :'flexAPICreditCostCents',
|
|
159
|
+
:'flex_api_credit_unit' => :'flexAPICreditUnit',
|
|
160
|
+
:'flex_small_widgets_credit_cost_cents' => :'flexSmallWidgetsCreditCostCents',
|
|
161
|
+
:'flex_small_widgets_credit_unit' => :'flexSmallWidgetsCreditUnit',
|
|
162
|
+
:'flex_moderator_cost_cents' => :'flexModeratorCostCents',
|
|
163
|
+
:'flex_moderator_unit' => :'flexModeratorUnit',
|
|
164
|
+
:'flex_admin_cost_cents' => :'flexAdminCostCents',
|
|
165
|
+
:'flex_admin_unit' => :'flexAdminUnit',
|
|
166
|
+
:'flex_domain_cost_cents' => :'flexDomainCostCents',
|
|
167
|
+
:'flex_domain_unit' => :'flexDomainUnit',
|
|
168
|
+
:'flex_chat_gpt_cost_cents' => :'flexChatGPTCostCents',
|
|
169
|
+
:'flex_chat_gpt_unit' => :'flexChatGPTUnit',
|
|
170
|
+
:'flex_minimum_cost_cents' => :'flexMinimumCostCents',
|
|
171
|
+
:'flex_managed_tenant_cost_cents' => :'flexManagedTenantCostCents',
|
|
172
|
+
:'flex_sso_admin_cost_cents' => :'flexSSOAdminCostCents',
|
|
173
|
+
:'flex_sso_admin_unit' => :'flexSSOAdminUnit',
|
|
174
|
+
:'flex_sso_moderator_cost_cents' => :'flexSSOModeratorCostCents',
|
|
175
|
+
:'flex_sso_moderator_unit' => :'flexSSOModeratorUnit',
|
|
176
|
+
:'is_sso_billing_monthly_active_users' => :'isSSOBillingMonthlyActiveUsers'
|
|
177
|
+
}
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# Returns attribute mapping this model knows about
|
|
181
|
+
def self.acceptable_attribute_map
|
|
182
|
+
attribute_map
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# Returns all the JSON keys this model knows about
|
|
186
|
+
def self.acceptable_attributes
|
|
187
|
+
acceptable_attribute_map.values
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Attribute type mapping.
|
|
191
|
+
def self.openapi_types
|
|
192
|
+
{
|
|
193
|
+
:'_id' => :'String',
|
|
194
|
+
:'name' => :'String',
|
|
195
|
+
:'tenant_id' => :'String',
|
|
196
|
+
:'created_at' => :'Time',
|
|
197
|
+
:'monthly_cost_usd' => :'Float',
|
|
198
|
+
:'yearly_cost_usd' => :'Float',
|
|
199
|
+
:'monthly_stripe_plan_id' => :'String',
|
|
200
|
+
:'yearly_stripe_plan_id' => :'String',
|
|
201
|
+
:'max_monthly_page_loads' => :'Float',
|
|
202
|
+
:'max_monthly_api_credits' => :'Float',
|
|
203
|
+
:'max_monthly_small_widgets_credits' => :'Float',
|
|
204
|
+
:'max_monthly_comments' => :'Float',
|
|
205
|
+
:'max_concurrent_users' => :'Float',
|
|
206
|
+
:'max_tenant_users' => :'Float',
|
|
207
|
+
:'max_sso_users' => :'Float',
|
|
208
|
+
:'max_moderators' => :'Float',
|
|
209
|
+
:'max_domains' => :'Float',
|
|
210
|
+
:'max_white_labeled_tenants' => :'Float',
|
|
211
|
+
:'max_monthly_event_log_requests' => :'Float',
|
|
212
|
+
:'has_white_labeling' => :'Boolean',
|
|
213
|
+
:'has_debranding' => :'Boolean',
|
|
214
|
+
:'has_llm_spam_detection' => :'Boolean',
|
|
215
|
+
:'for_who_text' => :'String',
|
|
216
|
+
:'feature_taglines' => :'Array<String>',
|
|
217
|
+
:'has_auditing' => :'Boolean',
|
|
218
|
+
:'has_flex_pricing' => :'Boolean',
|
|
219
|
+
:'enable_saml' => :'Boolean',
|
|
220
|
+
:'flex_page_load_cost_cents' => :'Float',
|
|
221
|
+
:'flex_page_load_unit' => :'Float',
|
|
222
|
+
:'flex_comment_cost_cents' => :'Float',
|
|
223
|
+
:'flex_comment_unit' => :'Float',
|
|
224
|
+
:'flex_sso_user_cost_cents' => :'Float',
|
|
225
|
+
:'flex_sso_user_unit' => :'Float',
|
|
226
|
+
:'flex_api_credit_cost_cents' => :'Float',
|
|
227
|
+
:'flex_api_credit_unit' => :'Float',
|
|
228
|
+
:'flex_small_widgets_credit_cost_cents' => :'Float',
|
|
229
|
+
:'flex_small_widgets_credit_unit' => :'Float',
|
|
230
|
+
:'flex_moderator_cost_cents' => :'Float',
|
|
231
|
+
:'flex_moderator_unit' => :'Float',
|
|
232
|
+
:'flex_admin_cost_cents' => :'Float',
|
|
233
|
+
:'flex_admin_unit' => :'Float',
|
|
234
|
+
:'flex_domain_cost_cents' => :'Float',
|
|
235
|
+
:'flex_domain_unit' => :'Float',
|
|
236
|
+
:'flex_chat_gpt_cost_cents' => :'Float',
|
|
237
|
+
:'flex_chat_gpt_unit' => :'Float',
|
|
238
|
+
:'flex_minimum_cost_cents' => :'Float',
|
|
239
|
+
:'flex_managed_tenant_cost_cents' => :'Float',
|
|
240
|
+
:'flex_sso_admin_cost_cents' => :'Float',
|
|
241
|
+
:'flex_sso_admin_unit' => :'Float',
|
|
242
|
+
:'flex_sso_moderator_cost_cents' => :'Float',
|
|
243
|
+
:'flex_sso_moderator_unit' => :'Float',
|
|
244
|
+
:'is_sso_billing_monthly_active_users' => :'Boolean'
|
|
245
|
+
}
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
# List of attributes with nullable: true
|
|
249
|
+
def self.openapi_nullable
|
|
250
|
+
Set.new([
|
|
251
|
+
:'monthly_cost_usd',
|
|
252
|
+
:'yearly_cost_usd',
|
|
253
|
+
:'monthly_stripe_plan_id',
|
|
254
|
+
:'yearly_stripe_plan_id',
|
|
255
|
+
])
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
# Initializes the object
|
|
259
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
260
|
+
def initialize(attributes = {})
|
|
261
|
+
if (!attributes.is_a?(Hash))
|
|
262
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FastCommentsClient::TenantPackage` initialize method"
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
266
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
267
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
268
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
269
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FastCommentsClient::TenantPackage`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
270
|
+
end
|
|
271
|
+
h[k.to_sym] = v
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
if attributes.key?(:'_id')
|
|
275
|
+
self._id = attributes[:'_id']
|
|
276
|
+
else
|
|
277
|
+
self._id = nil
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
if attributes.key?(:'name')
|
|
281
|
+
self.name = attributes[:'name']
|
|
282
|
+
else
|
|
283
|
+
self.name = nil
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
if attributes.key?(:'tenant_id')
|
|
287
|
+
self.tenant_id = attributes[:'tenant_id']
|
|
288
|
+
else
|
|
289
|
+
self.tenant_id = nil
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
if attributes.key?(:'created_at')
|
|
293
|
+
self.created_at = attributes[:'created_at']
|
|
294
|
+
else
|
|
295
|
+
self.created_at = nil
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
if attributes.key?(:'monthly_cost_usd')
|
|
299
|
+
self.monthly_cost_usd = attributes[:'monthly_cost_usd']
|
|
300
|
+
else
|
|
301
|
+
self.monthly_cost_usd = nil
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
if attributes.key?(:'yearly_cost_usd')
|
|
305
|
+
self.yearly_cost_usd = attributes[:'yearly_cost_usd']
|
|
306
|
+
else
|
|
307
|
+
self.yearly_cost_usd = nil
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
if attributes.key?(:'monthly_stripe_plan_id')
|
|
311
|
+
self.monthly_stripe_plan_id = attributes[:'monthly_stripe_plan_id']
|
|
312
|
+
else
|
|
313
|
+
self.monthly_stripe_plan_id = nil
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
if attributes.key?(:'yearly_stripe_plan_id')
|
|
317
|
+
self.yearly_stripe_plan_id = attributes[:'yearly_stripe_plan_id']
|
|
318
|
+
else
|
|
319
|
+
self.yearly_stripe_plan_id = nil
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
if attributes.key?(:'max_monthly_page_loads')
|
|
323
|
+
self.max_monthly_page_loads = attributes[:'max_monthly_page_loads']
|
|
324
|
+
else
|
|
325
|
+
self.max_monthly_page_loads = nil
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
if attributes.key?(:'max_monthly_api_credits')
|
|
329
|
+
self.max_monthly_api_credits = attributes[:'max_monthly_api_credits']
|
|
330
|
+
else
|
|
331
|
+
self.max_monthly_api_credits = nil
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
if attributes.key?(:'max_monthly_small_widgets_credits')
|
|
335
|
+
self.max_monthly_small_widgets_credits = attributes[:'max_monthly_small_widgets_credits']
|
|
336
|
+
else
|
|
337
|
+
self.max_monthly_small_widgets_credits = nil
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
if attributes.key?(:'max_monthly_comments')
|
|
341
|
+
self.max_monthly_comments = attributes[:'max_monthly_comments']
|
|
342
|
+
else
|
|
343
|
+
self.max_monthly_comments = nil
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
if attributes.key?(:'max_concurrent_users')
|
|
347
|
+
self.max_concurrent_users = attributes[:'max_concurrent_users']
|
|
348
|
+
else
|
|
349
|
+
self.max_concurrent_users = nil
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
if attributes.key?(:'max_tenant_users')
|
|
353
|
+
self.max_tenant_users = attributes[:'max_tenant_users']
|
|
354
|
+
else
|
|
355
|
+
self.max_tenant_users = nil
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
if attributes.key?(:'max_sso_users')
|
|
359
|
+
self.max_sso_users = attributes[:'max_sso_users']
|
|
360
|
+
else
|
|
361
|
+
self.max_sso_users = nil
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
if attributes.key?(:'max_moderators')
|
|
365
|
+
self.max_moderators = attributes[:'max_moderators']
|
|
366
|
+
else
|
|
367
|
+
self.max_moderators = nil
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
if attributes.key?(:'max_domains')
|
|
371
|
+
self.max_domains = attributes[:'max_domains']
|
|
372
|
+
else
|
|
373
|
+
self.max_domains = nil
|
|
374
|
+
end
|
|
375
|
+
|
|
376
|
+
if attributes.key?(:'max_white_labeled_tenants')
|
|
377
|
+
self.max_white_labeled_tenants = attributes[:'max_white_labeled_tenants']
|
|
378
|
+
else
|
|
379
|
+
self.max_white_labeled_tenants = nil
|
|
380
|
+
end
|
|
381
|
+
|
|
382
|
+
if attributes.key?(:'max_monthly_event_log_requests')
|
|
383
|
+
self.max_monthly_event_log_requests = attributes[:'max_monthly_event_log_requests']
|
|
384
|
+
else
|
|
385
|
+
self.max_monthly_event_log_requests = nil
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
if attributes.key?(:'has_white_labeling')
|
|
389
|
+
self.has_white_labeling = attributes[:'has_white_labeling']
|
|
390
|
+
else
|
|
391
|
+
self.has_white_labeling = nil
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
if attributes.key?(:'has_debranding')
|
|
395
|
+
self.has_debranding = attributes[:'has_debranding']
|
|
396
|
+
else
|
|
397
|
+
self.has_debranding = nil
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
if attributes.key?(:'has_llm_spam_detection')
|
|
401
|
+
self.has_llm_spam_detection = attributes[:'has_llm_spam_detection']
|
|
402
|
+
else
|
|
403
|
+
self.has_llm_spam_detection = nil
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
if attributes.key?(:'for_who_text')
|
|
407
|
+
self.for_who_text = attributes[:'for_who_text']
|
|
408
|
+
else
|
|
409
|
+
self.for_who_text = nil
|
|
410
|
+
end
|
|
411
|
+
|
|
412
|
+
if attributes.key?(:'feature_taglines')
|
|
413
|
+
if (value = attributes[:'feature_taglines']).is_a?(Array)
|
|
414
|
+
self.feature_taglines = value
|
|
415
|
+
end
|
|
416
|
+
else
|
|
417
|
+
self.feature_taglines = nil
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
if attributes.key?(:'has_auditing')
|
|
421
|
+
self.has_auditing = attributes[:'has_auditing']
|
|
422
|
+
else
|
|
423
|
+
self.has_auditing = nil
|
|
424
|
+
end
|
|
425
|
+
|
|
426
|
+
if attributes.key?(:'has_flex_pricing')
|
|
427
|
+
self.has_flex_pricing = attributes[:'has_flex_pricing']
|
|
428
|
+
else
|
|
429
|
+
self.has_flex_pricing = nil
|
|
430
|
+
end
|
|
431
|
+
|
|
432
|
+
if attributes.key?(:'enable_saml')
|
|
433
|
+
self.enable_saml = attributes[:'enable_saml']
|
|
434
|
+
end
|
|
435
|
+
|
|
436
|
+
if attributes.key?(:'flex_page_load_cost_cents')
|
|
437
|
+
self.flex_page_load_cost_cents = attributes[:'flex_page_load_cost_cents']
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
if attributes.key?(:'flex_page_load_unit')
|
|
441
|
+
self.flex_page_load_unit = attributes[:'flex_page_load_unit']
|
|
442
|
+
end
|
|
443
|
+
|
|
444
|
+
if attributes.key?(:'flex_comment_cost_cents')
|
|
445
|
+
self.flex_comment_cost_cents = attributes[:'flex_comment_cost_cents']
|
|
446
|
+
end
|
|
447
|
+
|
|
448
|
+
if attributes.key?(:'flex_comment_unit')
|
|
449
|
+
self.flex_comment_unit = attributes[:'flex_comment_unit']
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
if attributes.key?(:'flex_sso_user_cost_cents')
|
|
453
|
+
self.flex_sso_user_cost_cents = attributes[:'flex_sso_user_cost_cents']
|
|
454
|
+
end
|
|
455
|
+
|
|
456
|
+
if attributes.key?(:'flex_sso_user_unit')
|
|
457
|
+
self.flex_sso_user_unit = attributes[:'flex_sso_user_unit']
|
|
458
|
+
end
|
|
459
|
+
|
|
460
|
+
if attributes.key?(:'flex_api_credit_cost_cents')
|
|
461
|
+
self.flex_api_credit_cost_cents = attributes[:'flex_api_credit_cost_cents']
|
|
462
|
+
end
|
|
463
|
+
|
|
464
|
+
if attributes.key?(:'flex_api_credit_unit')
|
|
465
|
+
self.flex_api_credit_unit = attributes[:'flex_api_credit_unit']
|
|
466
|
+
end
|
|
467
|
+
|
|
468
|
+
if attributes.key?(:'flex_small_widgets_credit_cost_cents')
|
|
469
|
+
self.flex_small_widgets_credit_cost_cents = attributes[:'flex_small_widgets_credit_cost_cents']
|
|
470
|
+
end
|
|
471
|
+
|
|
472
|
+
if attributes.key?(:'flex_small_widgets_credit_unit')
|
|
473
|
+
self.flex_small_widgets_credit_unit = attributes[:'flex_small_widgets_credit_unit']
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
if attributes.key?(:'flex_moderator_cost_cents')
|
|
477
|
+
self.flex_moderator_cost_cents = attributes[:'flex_moderator_cost_cents']
|
|
478
|
+
end
|
|
479
|
+
|
|
480
|
+
if attributes.key?(:'flex_moderator_unit')
|
|
481
|
+
self.flex_moderator_unit = attributes[:'flex_moderator_unit']
|
|
482
|
+
end
|
|
483
|
+
|
|
484
|
+
if attributes.key?(:'flex_admin_cost_cents')
|
|
485
|
+
self.flex_admin_cost_cents = attributes[:'flex_admin_cost_cents']
|
|
486
|
+
end
|
|
487
|
+
|
|
488
|
+
if attributes.key?(:'flex_admin_unit')
|
|
489
|
+
self.flex_admin_unit = attributes[:'flex_admin_unit']
|
|
490
|
+
end
|
|
491
|
+
|
|
492
|
+
if attributes.key?(:'flex_domain_cost_cents')
|
|
493
|
+
self.flex_domain_cost_cents = attributes[:'flex_domain_cost_cents']
|
|
494
|
+
end
|
|
495
|
+
|
|
496
|
+
if attributes.key?(:'flex_domain_unit')
|
|
497
|
+
self.flex_domain_unit = attributes[:'flex_domain_unit']
|
|
498
|
+
end
|
|
499
|
+
|
|
500
|
+
if attributes.key?(:'flex_chat_gpt_cost_cents')
|
|
501
|
+
self.flex_chat_gpt_cost_cents = attributes[:'flex_chat_gpt_cost_cents']
|
|
502
|
+
end
|
|
503
|
+
|
|
504
|
+
if attributes.key?(:'flex_chat_gpt_unit')
|
|
505
|
+
self.flex_chat_gpt_unit = attributes[:'flex_chat_gpt_unit']
|
|
506
|
+
end
|
|
507
|
+
|
|
508
|
+
if attributes.key?(:'flex_minimum_cost_cents')
|
|
509
|
+
self.flex_minimum_cost_cents = attributes[:'flex_minimum_cost_cents']
|
|
510
|
+
end
|
|
511
|
+
|
|
512
|
+
if attributes.key?(:'flex_managed_tenant_cost_cents')
|
|
513
|
+
self.flex_managed_tenant_cost_cents = attributes[:'flex_managed_tenant_cost_cents']
|
|
514
|
+
end
|
|
515
|
+
|
|
516
|
+
if attributes.key?(:'flex_sso_admin_cost_cents')
|
|
517
|
+
self.flex_sso_admin_cost_cents = attributes[:'flex_sso_admin_cost_cents']
|
|
518
|
+
end
|
|
519
|
+
|
|
520
|
+
if attributes.key?(:'flex_sso_admin_unit')
|
|
521
|
+
self.flex_sso_admin_unit = attributes[:'flex_sso_admin_unit']
|
|
522
|
+
end
|
|
523
|
+
|
|
524
|
+
if attributes.key?(:'flex_sso_moderator_cost_cents')
|
|
525
|
+
self.flex_sso_moderator_cost_cents = attributes[:'flex_sso_moderator_cost_cents']
|
|
526
|
+
end
|
|
527
|
+
|
|
528
|
+
if attributes.key?(:'flex_sso_moderator_unit')
|
|
529
|
+
self.flex_sso_moderator_unit = attributes[:'flex_sso_moderator_unit']
|
|
530
|
+
end
|
|
531
|
+
|
|
532
|
+
if attributes.key?(:'is_sso_billing_monthly_active_users')
|
|
533
|
+
self.is_sso_billing_monthly_active_users = attributes[:'is_sso_billing_monthly_active_users']
|
|
534
|
+
end
|
|
535
|
+
end
|
|
536
|
+
|
|
537
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
538
|
+
# @return Array for valid properties with the reasons
|
|
539
|
+
def list_invalid_properties
|
|
540
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
541
|
+
invalid_properties = Array.new
|
|
542
|
+
if @_id.nil?
|
|
543
|
+
invalid_properties.push('invalid value for "_id", _id cannot be nil.')
|
|
544
|
+
end
|
|
545
|
+
|
|
546
|
+
if @name.nil?
|
|
547
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
548
|
+
end
|
|
549
|
+
|
|
550
|
+
if @tenant_id.nil?
|
|
551
|
+
invalid_properties.push('invalid value for "tenant_id", tenant_id cannot be nil.')
|
|
552
|
+
end
|
|
553
|
+
|
|
554
|
+
if @created_at.nil?
|
|
555
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
556
|
+
end
|
|
557
|
+
|
|
558
|
+
if @max_monthly_page_loads.nil?
|
|
559
|
+
invalid_properties.push('invalid value for "max_monthly_page_loads", max_monthly_page_loads cannot be nil.')
|
|
560
|
+
end
|
|
561
|
+
|
|
562
|
+
if @max_monthly_api_credits.nil?
|
|
563
|
+
invalid_properties.push('invalid value for "max_monthly_api_credits", max_monthly_api_credits cannot be nil.')
|
|
564
|
+
end
|
|
565
|
+
|
|
566
|
+
if @max_monthly_small_widgets_credits.nil?
|
|
567
|
+
invalid_properties.push('invalid value for "max_monthly_small_widgets_credits", max_monthly_small_widgets_credits cannot be nil.')
|
|
568
|
+
end
|
|
569
|
+
|
|
570
|
+
if @max_monthly_comments.nil?
|
|
571
|
+
invalid_properties.push('invalid value for "max_monthly_comments", max_monthly_comments cannot be nil.')
|
|
572
|
+
end
|
|
573
|
+
|
|
574
|
+
if @max_concurrent_users.nil?
|
|
575
|
+
invalid_properties.push('invalid value for "max_concurrent_users", max_concurrent_users cannot be nil.')
|
|
576
|
+
end
|
|
577
|
+
|
|
578
|
+
if @max_tenant_users.nil?
|
|
579
|
+
invalid_properties.push('invalid value for "max_tenant_users", max_tenant_users cannot be nil.')
|
|
580
|
+
end
|
|
581
|
+
|
|
582
|
+
if @max_sso_users.nil?
|
|
583
|
+
invalid_properties.push('invalid value for "max_sso_users", max_sso_users cannot be nil.')
|
|
584
|
+
end
|
|
585
|
+
|
|
586
|
+
if @max_moderators.nil?
|
|
587
|
+
invalid_properties.push('invalid value for "max_moderators", max_moderators cannot be nil.')
|
|
588
|
+
end
|
|
589
|
+
|
|
590
|
+
if @max_domains.nil?
|
|
591
|
+
invalid_properties.push('invalid value for "max_domains", max_domains cannot be nil.')
|
|
592
|
+
end
|
|
593
|
+
|
|
594
|
+
if @max_white_labeled_tenants.nil?
|
|
595
|
+
invalid_properties.push('invalid value for "max_white_labeled_tenants", max_white_labeled_tenants cannot be nil.')
|
|
596
|
+
end
|
|
597
|
+
|
|
598
|
+
if @max_monthly_event_log_requests.nil?
|
|
599
|
+
invalid_properties.push('invalid value for "max_monthly_event_log_requests", max_monthly_event_log_requests cannot be nil.')
|
|
600
|
+
end
|
|
601
|
+
|
|
602
|
+
if @has_white_labeling.nil?
|
|
603
|
+
invalid_properties.push('invalid value for "has_white_labeling", has_white_labeling cannot be nil.')
|
|
604
|
+
end
|
|
605
|
+
|
|
606
|
+
if @has_debranding.nil?
|
|
607
|
+
invalid_properties.push('invalid value for "has_debranding", has_debranding cannot be nil.')
|
|
608
|
+
end
|
|
609
|
+
|
|
610
|
+
if @has_llm_spam_detection.nil?
|
|
611
|
+
invalid_properties.push('invalid value for "has_llm_spam_detection", has_llm_spam_detection cannot be nil.')
|
|
612
|
+
end
|
|
613
|
+
|
|
614
|
+
if @for_who_text.nil?
|
|
615
|
+
invalid_properties.push('invalid value for "for_who_text", for_who_text cannot be nil.')
|
|
616
|
+
end
|
|
617
|
+
|
|
618
|
+
if @feature_taglines.nil?
|
|
619
|
+
invalid_properties.push('invalid value for "feature_taglines", feature_taglines cannot be nil.')
|
|
620
|
+
end
|
|
621
|
+
|
|
622
|
+
if @has_auditing.nil?
|
|
623
|
+
invalid_properties.push('invalid value for "has_auditing", has_auditing cannot be nil.')
|
|
624
|
+
end
|
|
625
|
+
|
|
626
|
+
if @has_flex_pricing.nil?
|
|
627
|
+
invalid_properties.push('invalid value for "has_flex_pricing", has_flex_pricing cannot be nil.')
|
|
628
|
+
end
|
|
629
|
+
|
|
630
|
+
invalid_properties
|
|
631
|
+
end
|
|
632
|
+
|
|
633
|
+
# Check to see if the all the properties in the model are valid
|
|
634
|
+
# @return true if the model is valid
|
|
635
|
+
def valid?
|
|
636
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
637
|
+
return false if @_id.nil?
|
|
638
|
+
return false if @name.nil?
|
|
639
|
+
return false if @tenant_id.nil?
|
|
640
|
+
return false if @created_at.nil?
|
|
641
|
+
return false if @max_monthly_page_loads.nil?
|
|
642
|
+
return false if @max_monthly_api_credits.nil?
|
|
643
|
+
return false if @max_monthly_small_widgets_credits.nil?
|
|
644
|
+
return false if @max_monthly_comments.nil?
|
|
645
|
+
return false if @max_concurrent_users.nil?
|
|
646
|
+
return false if @max_tenant_users.nil?
|
|
647
|
+
return false if @max_sso_users.nil?
|
|
648
|
+
return false if @max_moderators.nil?
|
|
649
|
+
return false if @max_domains.nil?
|
|
650
|
+
return false if @max_white_labeled_tenants.nil?
|
|
651
|
+
return false if @max_monthly_event_log_requests.nil?
|
|
652
|
+
return false if @has_white_labeling.nil?
|
|
653
|
+
return false if @has_debranding.nil?
|
|
654
|
+
return false if @has_llm_spam_detection.nil?
|
|
655
|
+
return false if @for_who_text.nil?
|
|
656
|
+
return false if @feature_taglines.nil?
|
|
657
|
+
return false if @has_auditing.nil?
|
|
658
|
+
return false if @has_flex_pricing.nil?
|
|
659
|
+
true
|
|
660
|
+
end
|
|
661
|
+
|
|
662
|
+
# Custom attribute writer method with validation
|
|
663
|
+
# @param [Object] _id Value to be assigned
|
|
664
|
+
def _id=(_id)
|
|
665
|
+
if _id.nil?
|
|
666
|
+
fail ArgumentError, '_id cannot be nil'
|
|
667
|
+
end
|
|
668
|
+
|
|
669
|
+
@_id = _id
|
|
670
|
+
end
|
|
671
|
+
|
|
672
|
+
# Custom attribute writer method with validation
|
|
673
|
+
# @param [Object] name Value to be assigned
|
|
674
|
+
def name=(name)
|
|
675
|
+
if name.nil?
|
|
676
|
+
fail ArgumentError, 'name cannot be nil'
|
|
677
|
+
end
|
|
678
|
+
|
|
679
|
+
@name = name
|
|
680
|
+
end
|
|
681
|
+
|
|
682
|
+
# Custom attribute writer method with validation
|
|
683
|
+
# @param [Object] tenant_id Value to be assigned
|
|
684
|
+
def tenant_id=(tenant_id)
|
|
685
|
+
if tenant_id.nil?
|
|
686
|
+
fail ArgumentError, 'tenant_id cannot be nil'
|
|
687
|
+
end
|
|
688
|
+
|
|
689
|
+
@tenant_id = tenant_id
|
|
690
|
+
end
|
|
691
|
+
|
|
692
|
+
# Custom attribute writer method with validation
|
|
693
|
+
# @param [Object] created_at Value to be assigned
|
|
694
|
+
def created_at=(created_at)
|
|
695
|
+
if created_at.nil?
|
|
696
|
+
fail ArgumentError, 'created_at cannot be nil'
|
|
697
|
+
end
|
|
698
|
+
|
|
699
|
+
@created_at = created_at
|
|
700
|
+
end
|
|
701
|
+
|
|
702
|
+
# Custom attribute writer method with validation
|
|
703
|
+
# @param [Object] max_monthly_page_loads Value to be assigned
|
|
704
|
+
def max_monthly_page_loads=(max_monthly_page_loads)
|
|
705
|
+
if max_monthly_page_loads.nil?
|
|
706
|
+
fail ArgumentError, 'max_monthly_page_loads cannot be nil'
|
|
707
|
+
end
|
|
708
|
+
|
|
709
|
+
@max_monthly_page_loads = max_monthly_page_loads
|
|
710
|
+
end
|
|
711
|
+
|
|
712
|
+
# Custom attribute writer method with validation
|
|
713
|
+
# @param [Object] max_monthly_api_credits Value to be assigned
|
|
714
|
+
def max_monthly_api_credits=(max_monthly_api_credits)
|
|
715
|
+
if max_monthly_api_credits.nil?
|
|
716
|
+
fail ArgumentError, 'max_monthly_api_credits cannot be nil'
|
|
717
|
+
end
|
|
718
|
+
|
|
719
|
+
@max_monthly_api_credits = max_monthly_api_credits
|
|
720
|
+
end
|
|
721
|
+
|
|
722
|
+
# Custom attribute writer method with validation
|
|
723
|
+
# @param [Object] max_monthly_small_widgets_credits Value to be assigned
|
|
724
|
+
def max_monthly_small_widgets_credits=(max_monthly_small_widgets_credits)
|
|
725
|
+
if max_monthly_small_widgets_credits.nil?
|
|
726
|
+
fail ArgumentError, 'max_monthly_small_widgets_credits cannot be nil'
|
|
727
|
+
end
|
|
728
|
+
|
|
729
|
+
@max_monthly_small_widgets_credits = max_monthly_small_widgets_credits
|
|
730
|
+
end
|
|
731
|
+
|
|
732
|
+
# Custom attribute writer method with validation
|
|
733
|
+
# @param [Object] max_monthly_comments Value to be assigned
|
|
734
|
+
def max_monthly_comments=(max_monthly_comments)
|
|
735
|
+
if max_monthly_comments.nil?
|
|
736
|
+
fail ArgumentError, 'max_monthly_comments cannot be nil'
|
|
737
|
+
end
|
|
738
|
+
|
|
739
|
+
@max_monthly_comments = max_monthly_comments
|
|
740
|
+
end
|
|
741
|
+
|
|
742
|
+
# Custom attribute writer method with validation
|
|
743
|
+
# @param [Object] max_concurrent_users Value to be assigned
|
|
744
|
+
def max_concurrent_users=(max_concurrent_users)
|
|
745
|
+
if max_concurrent_users.nil?
|
|
746
|
+
fail ArgumentError, 'max_concurrent_users cannot be nil'
|
|
747
|
+
end
|
|
748
|
+
|
|
749
|
+
@max_concurrent_users = max_concurrent_users
|
|
750
|
+
end
|
|
751
|
+
|
|
752
|
+
# Custom attribute writer method with validation
|
|
753
|
+
# @param [Object] max_tenant_users Value to be assigned
|
|
754
|
+
def max_tenant_users=(max_tenant_users)
|
|
755
|
+
if max_tenant_users.nil?
|
|
756
|
+
fail ArgumentError, 'max_tenant_users cannot be nil'
|
|
757
|
+
end
|
|
758
|
+
|
|
759
|
+
@max_tenant_users = max_tenant_users
|
|
760
|
+
end
|
|
761
|
+
|
|
762
|
+
# Custom attribute writer method with validation
|
|
763
|
+
# @param [Object] max_sso_users Value to be assigned
|
|
764
|
+
def max_sso_users=(max_sso_users)
|
|
765
|
+
if max_sso_users.nil?
|
|
766
|
+
fail ArgumentError, 'max_sso_users cannot be nil'
|
|
767
|
+
end
|
|
768
|
+
|
|
769
|
+
@max_sso_users = max_sso_users
|
|
770
|
+
end
|
|
771
|
+
|
|
772
|
+
# Custom attribute writer method with validation
|
|
773
|
+
# @param [Object] max_moderators Value to be assigned
|
|
774
|
+
def max_moderators=(max_moderators)
|
|
775
|
+
if max_moderators.nil?
|
|
776
|
+
fail ArgumentError, 'max_moderators cannot be nil'
|
|
777
|
+
end
|
|
778
|
+
|
|
779
|
+
@max_moderators = max_moderators
|
|
780
|
+
end
|
|
781
|
+
|
|
782
|
+
# Custom attribute writer method with validation
|
|
783
|
+
# @param [Object] max_domains Value to be assigned
|
|
784
|
+
def max_domains=(max_domains)
|
|
785
|
+
if max_domains.nil?
|
|
786
|
+
fail ArgumentError, 'max_domains cannot be nil'
|
|
787
|
+
end
|
|
788
|
+
|
|
789
|
+
@max_domains = max_domains
|
|
790
|
+
end
|
|
791
|
+
|
|
792
|
+
# Custom attribute writer method with validation
|
|
793
|
+
# @param [Object] max_white_labeled_tenants Value to be assigned
|
|
794
|
+
def max_white_labeled_tenants=(max_white_labeled_tenants)
|
|
795
|
+
if max_white_labeled_tenants.nil?
|
|
796
|
+
fail ArgumentError, 'max_white_labeled_tenants cannot be nil'
|
|
797
|
+
end
|
|
798
|
+
|
|
799
|
+
@max_white_labeled_tenants = max_white_labeled_tenants
|
|
800
|
+
end
|
|
801
|
+
|
|
802
|
+
# Custom attribute writer method with validation
|
|
803
|
+
# @param [Object] max_monthly_event_log_requests Value to be assigned
|
|
804
|
+
def max_monthly_event_log_requests=(max_monthly_event_log_requests)
|
|
805
|
+
if max_monthly_event_log_requests.nil?
|
|
806
|
+
fail ArgumentError, 'max_monthly_event_log_requests cannot be nil'
|
|
807
|
+
end
|
|
808
|
+
|
|
809
|
+
@max_monthly_event_log_requests = max_monthly_event_log_requests
|
|
810
|
+
end
|
|
811
|
+
|
|
812
|
+
# Custom attribute writer method with validation
|
|
813
|
+
# @param [Object] has_white_labeling Value to be assigned
|
|
814
|
+
def has_white_labeling=(has_white_labeling)
|
|
815
|
+
if has_white_labeling.nil?
|
|
816
|
+
fail ArgumentError, 'has_white_labeling cannot be nil'
|
|
817
|
+
end
|
|
818
|
+
|
|
819
|
+
@has_white_labeling = has_white_labeling
|
|
820
|
+
end
|
|
821
|
+
|
|
822
|
+
# Custom attribute writer method with validation
|
|
823
|
+
# @param [Object] has_debranding Value to be assigned
|
|
824
|
+
def has_debranding=(has_debranding)
|
|
825
|
+
if has_debranding.nil?
|
|
826
|
+
fail ArgumentError, 'has_debranding cannot be nil'
|
|
827
|
+
end
|
|
828
|
+
|
|
829
|
+
@has_debranding = has_debranding
|
|
830
|
+
end
|
|
831
|
+
|
|
832
|
+
# Custom attribute writer method with validation
|
|
833
|
+
# @param [Object] has_llm_spam_detection Value to be assigned
|
|
834
|
+
def has_llm_spam_detection=(has_llm_spam_detection)
|
|
835
|
+
if has_llm_spam_detection.nil?
|
|
836
|
+
fail ArgumentError, 'has_llm_spam_detection cannot be nil'
|
|
837
|
+
end
|
|
838
|
+
|
|
839
|
+
@has_llm_spam_detection = has_llm_spam_detection
|
|
840
|
+
end
|
|
841
|
+
|
|
842
|
+
# Custom attribute writer method with validation
|
|
843
|
+
# @param [Object] for_who_text Value to be assigned
|
|
844
|
+
def for_who_text=(for_who_text)
|
|
845
|
+
if for_who_text.nil?
|
|
846
|
+
fail ArgumentError, 'for_who_text cannot be nil'
|
|
847
|
+
end
|
|
848
|
+
|
|
849
|
+
@for_who_text = for_who_text
|
|
850
|
+
end
|
|
851
|
+
|
|
852
|
+
# Custom attribute writer method with validation
|
|
853
|
+
# @param [Object] feature_taglines Value to be assigned
|
|
854
|
+
def feature_taglines=(feature_taglines)
|
|
855
|
+
if feature_taglines.nil?
|
|
856
|
+
fail ArgumentError, 'feature_taglines cannot be nil'
|
|
857
|
+
end
|
|
858
|
+
|
|
859
|
+
@feature_taglines = feature_taglines
|
|
860
|
+
end
|
|
861
|
+
|
|
862
|
+
# Custom attribute writer method with validation
|
|
863
|
+
# @param [Object] has_auditing Value to be assigned
|
|
864
|
+
def has_auditing=(has_auditing)
|
|
865
|
+
if has_auditing.nil?
|
|
866
|
+
fail ArgumentError, 'has_auditing cannot be nil'
|
|
867
|
+
end
|
|
868
|
+
|
|
869
|
+
@has_auditing = has_auditing
|
|
870
|
+
end
|
|
871
|
+
|
|
872
|
+
# Custom attribute writer method with validation
|
|
873
|
+
# @param [Object] has_flex_pricing Value to be assigned
|
|
874
|
+
def has_flex_pricing=(has_flex_pricing)
|
|
875
|
+
if has_flex_pricing.nil?
|
|
876
|
+
fail ArgumentError, 'has_flex_pricing cannot be nil'
|
|
877
|
+
end
|
|
878
|
+
|
|
879
|
+
@has_flex_pricing = has_flex_pricing
|
|
880
|
+
end
|
|
881
|
+
|
|
882
|
+
# Checks equality by comparing each attribute.
|
|
883
|
+
# @param [Object] Object to be compared
|
|
884
|
+
def ==(o)
|
|
885
|
+
return true if self.equal?(o)
|
|
886
|
+
self.class == o.class &&
|
|
887
|
+
_id == o._id &&
|
|
888
|
+
name == o.name &&
|
|
889
|
+
tenant_id == o.tenant_id &&
|
|
890
|
+
created_at == o.created_at &&
|
|
891
|
+
monthly_cost_usd == o.monthly_cost_usd &&
|
|
892
|
+
yearly_cost_usd == o.yearly_cost_usd &&
|
|
893
|
+
monthly_stripe_plan_id == o.monthly_stripe_plan_id &&
|
|
894
|
+
yearly_stripe_plan_id == o.yearly_stripe_plan_id &&
|
|
895
|
+
max_monthly_page_loads == o.max_monthly_page_loads &&
|
|
896
|
+
max_monthly_api_credits == o.max_monthly_api_credits &&
|
|
897
|
+
max_monthly_small_widgets_credits == o.max_monthly_small_widgets_credits &&
|
|
898
|
+
max_monthly_comments == o.max_monthly_comments &&
|
|
899
|
+
max_concurrent_users == o.max_concurrent_users &&
|
|
900
|
+
max_tenant_users == o.max_tenant_users &&
|
|
901
|
+
max_sso_users == o.max_sso_users &&
|
|
902
|
+
max_moderators == o.max_moderators &&
|
|
903
|
+
max_domains == o.max_domains &&
|
|
904
|
+
max_white_labeled_tenants == o.max_white_labeled_tenants &&
|
|
905
|
+
max_monthly_event_log_requests == o.max_monthly_event_log_requests &&
|
|
906
|
+
has_white_labeling == o.has_white_labeling &&
|
|
907
|
+
has_debranding == o.has_debranding &&
|
|
908
|
+
has_llm_spam_detection == o.has_llm_spam_detection &&
|
|
909
|
+
for_who_text == o.for_who_text &&
|
|
910
|
+
feature_taglines == o.feature_taglines &&
|
|
911
|
+
has_auditing == o.has_auditing &&
|
|
912
|
+
has_flex_pricing == o.has_flex_pricing &&
|
|
913
|
+
enable_saml == o.enable_saml &&
|
|
914
|
+
flex_page_load_cost_cents == o.flex_page_load_cost_cents &&
|
|
915
|
+
flex_page_load_unit == o.flex_page_load_unit &&
|
|
916
|
+
flex_comment_cost_cents == o.flex_comment_cost_cents &&
|
|
917
|
+
flex_comment_unit == o.flex_comment_unit &&
|
|
918
|
+
flex_sso_user_cost_cents == o.flex_sso_user_cost_cents &&
|
|
919
|
+
flex_sso_user_unit == o.flex_sso_user_unit &&
|
|
920
|
+
flex_api_credit_cost_cents == o.flex_api_credit_cost_cents &&
|
|
921
|
+
flex_api_credit_unit == o.flex_api_credit_unit &&
|
|
922
|
+
flex_small_widgets_credit_cost_cents == o.flex_small_widgets_credit_cost_cents &&
|
|
923
|
+
flex_small_widgets_credit_unit == o.flex_small_widgets_credit_unit &&
|
|
924
|
+
flex_moderator_cost_cents == o.flex_moderator_cost_cents &&
|
|
925
|
+
flex_moderator_unit == o.flex_moderator_unit &&
|
|
926
|
+
flex_admin_cost_cents == o.flex_admin_cost_cents &&
|
|
927
|
+
flex_admin_unit == o.flex_admin_unit &&
|
|
928
|
+
flex_domain_cost_cents == o.flex_domain_cost_cents &&
|
|
929
|
+
flex_domain_unit == o.flex_domain_unit &&
|
|
930
|
+
flex_chat_gpt_cost_cents == o.flex_chat_gpt_cost_cents &&
|
|
931
|
+
flex_chat_gpt_unit == o.flex_chat_gpt_unit &&
|
|
932
|
+
flex_minimum_cost_cents == o.flex_minimum_cost_cents &&
|
|
933
|
+
flex_managed_tenant_cost_cents == o.flex_managed_tenant_cost_cents &&
|
|
934
|
+
flex_sso_admin_cost_cents == o.flex_sso_admin_cost_cents &&
|
|
935
|
+
flex_sso_admin_unit == o.flex_sso_admin_unit &&
|
|
936
|
+
flex_sso_moderator_cost_cents == o.flex_sso_moderator_cost_cents &&
|
|
937
|
+
flex_sso_moderator_unit == o.flex_sso_moderator_unit &&
|
|
938
|
+
is_sso_billing_monthly_active_users == o.is_sso_billing_monthly_active_users
|
|
939
|
+
end
|
|
940
|
+
|
|
941
|
+
# @see the `==` method
|
|
942
|
+
# @param [Object] Object to be compared
|
|
943
|
+
def eql?(o)
|
|
944
|
+
self == o
|
|
945
|
+
end
|
|
946
|
+
|
|
947
|
+
# Calculates hash code according to all attributes.
|
|
948
|
+
# @return [Integer] Hash code
|
|
949
|
+
def hash
|
|
950
|
+
[_id, name, tenant_id, created_at, monthly_cost_usd, yearly_cost_usd, monthly_stripe_plan_id, yearly_stripe_plan_id, max_monthly_page_loads, max_monthly_api_credits, max_monthly_small_widgets_credits, max_monthly_comments, max_concurrent_users, max_tenant_users, max_sso_users, max_moderators, max_domains, max_white_labeled_tenants, max_monthly_event_log_requests, has_white_labeling, has_debranding, has_llm_spam_detection, for_who_text, feature_taglines, has_auditing, has_flex_pricing, enable_saml, flex_page_load_cost_cents, flex_page_load_unit, flex_comment_cost_cents, flex_comment_unit, flex_sso_user_cost_cents, flex_sso_user_unit, flex_api_credit_cost_cents, flex_api_credit_unit, flex_small_widgets_credit_cost_cents, flex_small_widgets_credit_unit, flex_moderator_cost_cents, flex_moderator_unit, flex_admin_cost_cents, flex_admin_unit, flex_domain_cost_cents, flex_domain_unit, flex_chat_gpt_cost_cents, flex_chat_gpt_unit, flex_minimum_cost_cents, flex_managed_tenant_cost_cents, flex_sso_admin_cost_cents, flex_sso_admin_unit, flex_sso_moderator_cost_cents, flex_sso_moderator_unit, is_sso_billing_monthly_active_users].hash
|
|
951
|
+
end
|
|
952
|
+
|
|
953
|
+
# Builds the object from hash
|
|
954
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
955
|
+
# @return [Object] Returns the model itself
|
|
956
|
+
def self.build_from_hash(attributes)
|
|
957
|
+
return nil unless attributes.is_a?(Hash)
|
|
958
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
959
|
+
transformed_hash = {}
|
|
960
|
+
openapi_types.each_pair do |key, type|
|
|
961
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
962
|
+
transformed_hash["#{key}"] = nil
|
|
963
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
964
|
+
# check to ensure the input is an array given that the attribute
|
|
965
|
+
# is documented as an array but the input is not
|
|
966
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
967
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
968
|
+
end
|
|
969
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
970
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
971
|
+
end
|
|
972
|
+
end
|
|
973
|
+
new(transformed_hash)
|
|
974
|
+
end
|
|
975
|
+
|
|
976
|
+
# Returns the object in the form of hash
|
|
977
|
+
# @return [Hash] Returns the object in the form of hash
|
|
978
|
+
def to_hash
|
|
979
|
+
hash = {}
|
|
980
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
981
|
+
value = self.send(attr)
|
|
982
|
+
if value.nil?
|
|
983
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
984
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
985
|
+
end
|
|
986
|
+
|
|
987
|
+
hash[param] = _to_hash(value)
|
|
988
|
+
end
|
|
989
|
+
hash
|
|
990
|
+
end
|
|
991
|
+
|
|
992
|
+
end
|
|
993
|
+
|
|
994
|
+
end
|